summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/byte-run.el
diff options
context:
space:
mode:
authorDaniel Colascione <dancol@dancol.org>2014-04-22 14:46:19 -0700
committerDaniel Colascione <dancol@dancol.org>2014-04-22 14:46:19 -0700
commit1b0f10d2df1c58921644fe286dfb7a159fa56904 (patch)
treea5c219d6939ca5116e1f01595295d27e305ec316 /lisp/emacs-lisp/byte-run.el
parent42e910349d699ee3f8024371ca1e60e015fc6aa7 (diff)
downloademacs-1b0f10d2df1c58921644fe286dfb7a159fa56904.tar.gz
emacs-1b0f10d2df1c58921644fe286dfb7a159fa56904.tar.bz2
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'.
Diffstat (limited to 'lisp/emacs-lisp/byte-run.el')
-rw-r--r--lisp/emacs-lisp/byte-run.el25
1 files changed, 13 insertions, 12 deletions
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 @@
;;; Code:
+(defalias 'function-put
+ ;; We don't want people to just use `put' because we can't conveniently
+ ;; hook into `put' to remap old properties to new ones. But for now, there's
+ ;; no such remapping, so we just call `put'.
+ #'(lambda (f prop value) (put f prop value))
+ "Set function F's property PROP to VALUE.
+The namespace for PROP is shared with symbols.
+So far, F can only be a symbol, not a lambda expression.")
+(function-put 'defmacro 'doc-string-elt 3)
+(function-put 'defmacro 'lisp-indent-function 2)
+
;; `macro-declaration-function' are both obsolete (as marked at the end of this
;; file) but used in many .elc files.
@@ -140,17 +151,6 @@ and should return the code to use to set this property.
This is used by `declare'.")
-(defun function-put (f prop value)
- "Set function F's property PROP to VALUE.
-The namespace for PROP is shared with symbols.
-So far, F can only be a symbol, not a lambda expression."
- ;; We don't want people to just use `put' because we can't conveniently
- ;; hook into `put' to remap old properties to new ones. But for now, there's
- ;; no such remapping, so we just call `put'.
- (put f prop value))
-
-(function-put 'defmacro 'doc-string-elt 3)
-(function-put 'defmacro 'lisp-indent-function 2)
(defalias 'defmacro
(cons
'macro
@@ -250,7 +250,8 @@ The return value is undefined.
(cons arglist body))))))
(if declarations
(cons 'prog1 (cons def declarations))
- def))))
+ def))))
+
;; Redefined in byte-optimize.el.
;; This is not documented--it's not clear that we should promote it.