mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
(easy-mmode-set-keymap-parents): Evaluate definition when compiling.
This commit is contained in:
parent
e8f28744e2
commit
210c6549fa
1 changed files with 12 additions and 11 deletions
|
|
@ -388,17 +388,18 @@ See `%s' for more information on %s."
|
|||
;;; easy-mmode-defmap
|
||||
;;;
|
||||
|
||||
(if (fboundp 'set-keymap-parents)
|
||||
(defalias 'easy-mmode-set-keymap-parents 'set-keymap-parents)
|
||||
(defun easy-mmode-set-keymap-parents (m parents)
|
||||
(set-keymap-parent
|
||||
m
|
||||
(cond
|
||||
((not (consp parents)) parents)
|
||||
((not (cdr parents)) (car parents))
|
||||
(t (let ((m (copy-keymap (pop parents))))
|
||||
(easy-mmode-set-keymap-parents m parents)
|
||||
m))))))
|
||||
(eval-and-compile
|
||||
(if (fboundp 'set-keymap-parents)
|
||||
(defalias 'easy-mmode-set-keymap-parents 'set-keymap-parents)
|
||||
(defun easy-mmode-set-keymap-parents (m parents)
|
||||
(set-keymap-parent
|
||||
m
|
||||
(cond
|
||||
((not (consp parents)) parents)
|
||||
((not (cdr parents)) (car parents))
|
||||
(t (let ((m (copy-keymap (pop parents))))
|
||||
(easy-mmode-set-keymap-parents m parents)
|
||||
m)))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun easy-mmode-define-keymap (bs &optional name m args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue