From: Nicolas Richard Date: Thu, 20 Nov 2014 11:09:30 +0000 (+0100) Subject: byte-run.el (function-put): Match argument names to docstring (bug#19118). X-Git-Tag: emacs-25.0.90~2635^2~334 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8be099a2c10ce4718e6630cef6b6ca1983617264;p=emacs.git byte-run.el (function-put): Match argument names to docstring (bug#19118). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 12f81b76693..d4f1dbd2177 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-11-20 Nicolas Richard + + * emacs-lisp/byte-run.el (function-put): Match argument names to + docstring. + 2014-11-24 Sam Steingold * vc/vc-hooks.el (vc-directory-exclusion-list): 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)