+2014-02-20 Glenn Morris <rgm@gnu.org>
+
+ * functions.texi (Defining Functions): Mention defalias-fset-function.
+
2014-02-17 Glenn Morris <rgm@gnu.org>
* minibuf.texi (Text from Minibuffer): Update read-regexp details.
of @var{name}. Otherwise, any documentation provided by
@var{definition} is used.
+@cindex defalias-fset-function property
+Internally, @code{defalias} normally uses @code{fset} to set the definition.
+If @var{name} has a @code{defalias-fset-function} property, however,
+the associated value is used as a function to call in place of @code{fset}.
+
The proper place to use @code{defalias} is where a specific function
name is being defined---especially where that name appears explicitly in
the source file being loaded. This is because @code{defalias} records
Generic commands are interactive functions whose implementation can be
selected among several alternatives, as a matter of user preference.
-** The `defalias-fset-function' property lets you catch `defalias'
-calls, and redirect them to your own function, instead of `fset'.
++++
+** If you give a symbol a `defalias-fset-function' property, `defalias'
+on that symbol will use the associated value as a function to call
+in place of `fset'.
+++
** New variable `enable-dir-local-variables'.
+2014-02-20 Glenn Morris <rgm@gnu.org>
+
+ * data.c (Fdefalias): Doc fix.
+
2014-02-19 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (display_line): Fix horizontal scrolling of large images
The optional third argument DOCSTRING specifies the documentation string
for SYMBOL; if it is omitted or nil, SYMBOL uses the documentation string
determined by DEFINITION.
+
+Internally, this normally uses `fset', but if SYMBOL has a
+`defalias-fset-function' property, the associated value is used instead.
+
The return value is undefined. */)
(register Lisp_Object symbol, Lisp_Object definition, Lisp_Object docstring)
{