[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19118: 25.0.50; [patch] Change the argument names of function-put (c
From: |
Stefan Monnier |
Subject: |
bug#19118: 25.0.50; [patch] Change the argument names of function-put (currently: "ARG1 ARG2 ARG3") |
Date: |
Thu, 20 Nov 2014 21:56:12 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> +
> +\(fn FUNCTION PROP VALUE)")
I think that the better way to get the right args, is to use a normal
docstring, as in the patch below. I can't remember why I used
a "defalias docstring" instead.
Stefan
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 1f8b04e..b1cc0f6 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -34,10 +34,11 @@
;; 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.
+ #'(lambda (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.")
+So far, F can only be a symbol, not a lambda expression."
+ (put f prop value)))
(function-put 'defmacro 'doc-string-elt 3)
(function-put 'defmacro 'lisp-indent-function 2)