File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -215,12 +215,16 @@ If both are nil, just return `mode'. If
215215`bind-map-use-remapped-modes' is non-nil, also return mode to
216216which it has been remapped in `major-mode-remap-alist' (if
217217applicable). If `bind-map-use-aliased-modes' is non-nil, also
218- return any modes for which `mode' is an alias (if applicable)."
218+ return any modes for which `mode' is an alias (if applicable).
219+ Note: finding aliased modes relies on `function-alias-p' , which
220+ is only available on Emacs 29.1+."
219221 (let ((r-mode
220222 (or (and bind-map-use-remapped-modes
221223 (boundp 'major-mode-remap-alist )
222224 (alist-get mode major-mode-remap-alist))))
223- (a-modes (and bind-map-use-aliased-modes (function-alias-p mode))))
225+ (a-modes (and bind-map-use-aliased-modes
226+ (fboundp 'function-alias-p )
227+ (function-alias-p mode))))
224228 (delq nil (append (list mode r-mode) a-modes))))
225229
226230(defun bind-map-add-to-major-mode-list (activate-var major-mode-list )
You can’t perform that action at this time.
0 commit comments