summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorNicolas Richard <theonewiththeevillook@yahoo.fr>2014-11-20 12:09:30 +0100
committerNicolas Richard <theonewiththeevillook@yahoo.fr>2014-11-25 13:18:40 +0100
commit8be099a2c10ce4718e6630cef6b6ca1983617264 (patch)
tree1464d01bd74abbd37c0ca1919c8e703922b7878b /lisp/emacs-lisp
parent10f2f8aafa5de5821718cc4a7fc8ed87dfdf895a (diff)
downloademacs-8be099a2c10ce4718e6630cef6b6ca1983617264.tar.gz
emacs-8be099a2c10ce4718e6630cef6b6ca1983617264.tar.bz2
emacs-8be099a2c10ce4718e6630cef6b6ca1983617264.zip
byte-run.el (function-put): Match argument names to docstring (bug#19118).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/byte-run.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 1f8b04ec8f0..8bf63ea572e 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 (function prop value)
+ "Set FUNCTION'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, FUNCTION can only be a symbol, not a lambda expression."
+ (put function prop value)))
(function-put 'defmacro 'doc-string-elt 3)
(function-put 'defmacro 'lisp-indent-function 2)