diff options
| author | Daniel Colascione | 2014-04-22 14:46:19 -0700 |
|---|---|---|
| committer | Daniel Colascione | 2014-04-22 14:46:19 -0700 |
| commit | 1b0f10d2df1c58921644fe286dfb7a159fa56904 (patch) | |
| tree | a5c219d6939ca5116e1f01595295d27e305ec316 | |
| parent | 42e910349d699ee3f8024371ca1e60e015fc6aa7 (diff) | |
| download | emacs-1b0f10d2df1c58921644fe286dfb7a159fa56904.tar.gz emacs-1b0f10d2df1c58921644fe286dfb7a159fa56904.zip | |
2014-04-22 Daniel Colascione <dancol@dancol.org>
* emacs-lisp/byte-run.el (function-put): Unbreak build: don't
use defun to define `function-put'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/byte-run.el | 25 |
2 files changed, 18 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 623d81f4715..3caac76cb8b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -35,6 +35,11 @@ | |||
| 35 | * net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if | 35 | * net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if |
| 36 | possible. | 36 | possible. |
| 37 | 37 | ||
| 38 | 2014-04-22 Daniel Colascione <dancol@dancol.org> | ||
| 39 | |||
| 40 | * emacs-lisp/byte-run.el (function-put): Unbreak build: don't | ||
| 41 | use defun to define `function-put'. | ||
| 42 | |||
| 38 | 2014-04-22 Stefan Monnier <monnier@iro.umontreal.ca> | 43 | 2014-04-22 Stefan Monnier <monnier@iro.umontreal.ca> |
| 39 | 44 | ||
| 40 | * emacs-lisp/lisp-mode.el (lisp--match-hidden-arg): New function. | 45 | * emacs-lisp/lisp-mode.el (lisp--match-hidden-arg): New function. |
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index e5f8feb888b..0edcf6197b4 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el | |||
| @@ -30,6 +30,17 @@ | |||
| 30 | 30 | ||
| 31 | ;;; Code: | 31 | ;;; Code: |
| 32 | 32 | ||
| 33 | (defalias 'function-put | ||
| 34 | ;; We don't want people to just use `put' because we can't conveniently | ||
| 35 | ;; hook into `put' to remap old properties to new ones. But for now, there's | ||
| 36 | ;; no such remapping, so we just call `put'. | ||
| 37 | #'(lambda (f prop value) (put f prop value)) | ||
| 38 | "Set function F's property PROP to VALUE. | ||
| 39 | The namespace for PROP is shared with symbols. | ||
| 40 | So far, F can only be a symbol, not a lambda expression.") | ||
| 41 | (function-put 'defmacro 'doc-string-elt 3) | ||
| 42 | (function-put 'defmacro 'lisp-indent-function 2) | ||
| 43 | |||
| 33 | ;; `macro-declaration-function' are both obsolete (as marked at the end of this | 44 | ;; `macro-declaration-function' are both obsolete (as marked at the end of this |
| 34 | ;; file) but used in many .elc files. | 45 | ;; file) but used in many .elc files. |
| 35 | 46 | ||
| @@ -140,17 +151,6 @@ and should return the code to use to set this property. | |||
| 140 | 151 | ||
| 141 | This is used by `declare'.") | 152 | This is used by `declare'.") |
| 142 | 153 | ||
| 143 | (defun function-put (f prop value) | ||
| 144 | "Set function F's property PROP to VALUE. | ||
| 145 | The namespace for PROP is shared with symbols. | ||
| 146 | So far, F can only be a symbol, not a lambda expression." | ||
| 147 | ;; We don't want people to just use `put' because we can't conveniently | ||
| 148 | ;; hook into `put' to remap old properties to new ones. But for now, there's | ||
| 149 | ;; no such remapping, so we just call `put'. | ||
| 150 | (put f prop value)) | ||
| 151 | |||
| 152 | (function-put 'defmacro 'doc-string-elt 3) | ||
| 153 | (function-put 'defmacro 'lisp-indent-function 2) | ||
| 154 | (defalias 'defmacro | 154 | (defalias 'defmacro |
| 155 | (cons | 155 | (cons |
| 156 | 'macro | 156 | 'macro |
| @@ -250,7 +250,8 @@ The return value is undefined. | |||
| 250 | (cons arglist body)))))) | 250 | (cons arglist body)))))) |
| 251 | (if declarations | 251 | (if declarations |
| 252 | (cons 'prog1 (cons def declarations)) | 252 | (cons 'prog1 (cons def declarations)) |
| 253 | def)))) | 253 | def)))) |
| 254 | |||
| 254 | 255 | ||
| 255 | ;; Redefined in byte-optimize.el. | 256 | ;; Redefined in byte-optimize.el. |
| 256 | ;; This is not documented--it's not clear that we should promote it. | 257 | ;; This is not documented--it's not clear that we should promote it. |