aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2022-12-31 10:44:53 +0200
committerEli Zaretskii2022-12-31 10:44:53 +0200
commit2a7e072e5396d00c17b7d2a12ce867138f6f8c19 (patch)
treecab77f52866d7d511ef4cc42f367643d66b1312b
parenteee2aeca251a6fb3db09cfeeb3ae3aaf48db02fc (diff)
downloademacs-2a7e072e5396d00c17b7d2a12ce867138f6f8c19.tar.gz
emacs-2a7e072e5396d00c17b7d2a12ce867138f6f8c19.zip
; Fix documentation of 'defalias'
* doc/lispref/functions.texi (Defining Functions): Document that a defalias's DEFINITION can be a macro. (Bug#60432)
-rw-r--r--doc/lispref/functions.texi10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index 9d5a2661916..9232dc38e78 100644
--- a/doc/lispref/functions.texi
+++ b/doc/lispref/functions.texi
@@ -700,7 +700,7 @@ redefinition from unintentional redefinition.
700@defun defalias name definition &optional doc 700@defun defalias name definition &optional doc
701@anchor{Definition of defalias} 701@anchor{Definition of defalias}
702This function defines the symbol @var{name} as a function, with 702This function defines the symbol @var{name} as a function, with
703definition @var{definition} (which can be any valid Lisp function). 703definition @var{definition} (which can be any valid Lisp function or macro).
704Its return value is @emph{undefined}. 704Its return value is @emph{undefined}.
705 705
706If @var{doc} is non-@code{nil}, it becomes the function documentation 706If @var{doc} is non-@code{nil}, it becomes the function documentation
@@ -713,10 +713,10 @@ If @var{name} has a @code{defalias-fset-function} property, however,
713the associated value is used as a function to call in place of @code{fset}. 713the associated value is used as a function to call in place of @code{fset}.
714 714
715The proper place to use @code{defalias} is where a specific function 715The proper place to use @code{defalias} is where a specific function
716name is being defined---especially where that name appears explicitly in 716or macro name is being defined---especially where that name appears
717the source file being loaded. This is because @code{defalias} records 717explicitly in the source file being loaded. This is because
718which file defined the function, just like @code{defun} 718@code{defalias} records which file defined the function, just like
719(@pxref{Unloading}). 719@code{defun} (@pxref{Unloading}).
720 720
721By contrast, in programs that manipulate function definitions for other 721By contrast, in programs that manipulate function definitions for other
722purposes, it is better to use @code{fset}, which does not keep such 722purposes, it is better to use @code{fset}, which does not keep such