Tweak previous define-minor-mode change
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Relax :variable's test for a named function.
This commit is contained in:
parent
9e7056a545
commit
781acb9f3a
2 changed files with 8 additions and 9 deletions
|
@ -182,15 +182,9 @@ For example, you could write
|
|||
(:require (setq require (pop body)))
|
||||
(:keymap (setq keymap (pop body)))
|
||||
(:variable (setq variable (pop body))
|
||||
(setq tmp (cdr-safe variable))
|
||||
(if (not (or (functionp tmp)
|
||||
(and tmp
|
||||
(symbolp tmp)
|
||||
;; Hack to allow for named functions not within
|
||||
;; eval-when-compile.
|
||||
;; Cf define-compilation-mode.
|
||||
(boundp 'byte-compile-function-environment)
|
||||
(assq tmp byte-compile-function-environment))))
|
||||
(if (not (and (setq tmp (cdr-safe variable))
|
||||
(or (symbolp tmp)
|
||||
(functionp tmp))))
|
||||
;; PLACE is not of the form (GET . SET).
|
||||
(setq mode variable)
|
||||
(setq mode (car variable))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue