diff options
| author | Daniel Colascione | 2014-05-24 12:51:52 -0700 |
|---|---|---|
| committer | Daniel Colascione | 2014-05-24 12:51:52 -0700 |
| commit | 8bb17f6471522c30630d0571a8b31d09554a17c2 (patch) | |
| tree | 20b7c759535855a36a057aa1e41680760bb48a38 | |
| parent | ec774634839b0d6ea52f96e272954bdbb5cd9726 (diff) | |
| download | emacs-8bb17f6471522c30630d0571a8b31d09554a17c2.tar.gz emacs-8bb17f6471522c30630d0571a8b31d09554a17c2.zip | |
Unbreak the build
* lisp/emacs-lisp/nadvice.el (defun): Write in eval-and-compile to avoid
breaking the build.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/nadvice.el | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b786027f76d..a14af45cc74 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-05-24 Daniel Colascione <dancol@dancol.org> | ||
| 2 | |||
| 3 | * emacs-lisp/nadvice.el (defun): Write in eval-and-compile to avoid | ||
| 4 | breaking the build. | ||
| 5 | |||
| 1 | 2014-05-24 Leo Liu <sdl.web@gmail.com> | 6 | 2014-05-24 Leo Liu <sdl.web@gmail.com> |
| 2 | 7 | ||
| 3 | * calc/calc.el (math-bignum): Handle most-negative-fixnum. (Bug#17556) | 8 | * calc/calc.el (math-bignum): Handle most-negative-fixnum. (Bug#17556) |
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el index 01027c43148..66a4f8fdea7 100644 --- a/lisp/emacs-lisp/nadvice.el +++ b/lisp/emacs-lisp/nadvice.el | |||
| @@ -232,11 +232,12 @@ different, but `function-equal' will hopefully ignore those differences.") | |||
| 232 | ;; This function acts like the t special value in buffer-local hooks. | 232 | ;; This function acts like the t special value in buffer-local hooks. |
| 233 | (lambda (&rest args) (apply (default-value var) args))))) | 233 | (lambda (&rest args) (apply (default-value var) args))))) |
| 234 | 234 | ||
| 235 | (defun advice--normalize-place (place) | 235 | (eval-and-compile |
| 236 | (cond ((eq 'local (car-safe place)) `(advice--buffer-local ,@(cdr place))) | 236 | (defun advice--normalize-place (place) |
| 237 | ((eq 'var (car-safe place)) (nth 1 place)) | 237 | (cond ((eq 'local (car-safe place)) `(advice--buffer-local ,@(cdr place))) |
| 238 | ((symbolp place) `(default-value ',place)) | 238 | ((eq 'var (car-safe place)) (nth 1 place)) |
| 239 | (t place))) | 239 | ((symbolp place) `(default-value ',place)) |
| 240 | (t place)))) | ||
| 240 | 241 | ||
| 241 | ;;;###autoload | 242 | ;;;###autoload |
| 242 | (defmacro add-function (where place function &optional props) | 243 | (defmacro add-function (where place function &optional props) |