From 8be099a2c10ce4718e6630cef6b6ca1983617264 Mon Sep 17 00:00:00 2001 From: Nicolas Richard Date: Thu, 20 Nov 2014 12:09:30 +0100 Subject: [PATCH] byte-run.el (function-put): Match argument names to docstring (bug#19118). --- lisp/ChangeLog | 5 +++++ lisp/emacs-lisp/byte-run.el | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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) -- 2.39.5