|
From: | Stefan Monnier |
Subject: | Re: [Emacs-diffs] /srv/bzr/emacs/trunk r107024: Small define-minor-mode fix for variable: keyword. |
Date: | Tue, 31 Jan 2012 09:29:48 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
> (:keymap (setq keymap (pop body))) > (:variable (setq variable (pop body)) > - (if (not (functionp (cdr-safe variable))) > + (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)))) It's probably sufficient to check (and (cdr-safe variable) (or (symbolp (cdr variable)) (functionp (cdr variable)))) so as to avoid the byte-compile-function-environment hack. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |