aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2016-01-16 17:13:16 +0200
committerEli Zaretskii2016-01-16 17:13:16 +0200
commit9f493814bb40f1794ab53c84a5397aba1da58cd7 (patch)
tree01be3fb2c27354471ce77ac62d632813b85f38c1
parent964ba0f5261b2de1c5979cef8727cd1663b4438b (diff)
downloademacs-9f493814bb40f1794ab53c84a5397aba1da58cd7.tar.gz
emacs-9f493814bb40f1794ab53c84a5397aba1da58cd7.zip
Document 'function-put'
* doc/lispref/symbols.texi (Symbol Plists): Document 'function-put'. Update documentation of 'function-get'.
-rw-r--r--doc/lispref/symbols.texi17
-rw-r--r--etc/NEWS1
2 files changed, 16 insertions, 2 deletions
diff --git a/doc/lispref/symbols.texi b/doc/lispref/symbols.texi
index c99f993e5da..8c1ec3d85e2 100644
--- a/doc/lispref/symbols.texi
+++ b/doc/lispref/symbols.texi
@@ -461,10 +461,23 @@ You could define @code{put} in terms of @code{setplist} and
461@end example 461@end example
462@end defun 462@end defun
463 463
464@defun function-get symbol property 464@defun function-get symbol property &optional autoload
465This function is identical to @code{get}, except that if @var{symbol} 465This function is identical to @code{get}, except that if @var{symbol}
466is the name of a function alias, it looks in the property list of the 466is the name of a function alias, it looks in the property list of the
467symbol naming the actual function. @xref{Defining Functions}. 467symbol naming the actual function. @xref{Defining Functions}. If the
468optional argument @var{autoload} is non-@code{nil}, and @var{symbol}
469is auto-loaded, this function will try to autoload it, since
470autoloading might set @var{property} of @var{symbol}. If
471@var{autoload} is the symbol @code{macro}, only try autoloading if
472@var{symbol} is an auto-loaded macro.
473@end defun
474
475@defun function-put function property value
476This function sets @var{property} of @var{function} to @var{value}.
477@var{function} should be a symbol. This function is preferred to
478calling @code{put} for setting properties of a function, because it
479will allow us some day to implement remapping of old properties to new
480ones.
468@end defun 481@end defun
469 482
470@node Standard Properties 483@node Standard Properties
diff --git a/etc/NEWS b/etc/NEWS
index 6735718b63c..9dba4e58bed 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1472,6 +1472,7 @@ MS-Windows doesn't support UTF-8 as codeset in its locales.
1472but makes `called-interactively-p' treat the function as (you guessed it) 1472but makes `called-interactively-p' treat the function as (you guessed it)
1473called interactively. 1473called interactively.
1474 1474
1475+++
1475** New function `function-put' to use instead of `put' for function properties. 1476** New function `function-put' to use instead of `put' for function properties.
1476 1477
1477+++ 1478+++