[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 2a7e072e53: ; Fix documentation of 'defalias'
From: |
Eli Zaretskii |
Subject: |
emacs-29 2a7e072e53: ; Fix documentation of 'defalias' |
Date: |
Sat, 31 Dec 2022 03:45:34 -0500 (EST) |
branch: emacs-29
commit 2a7e072e5396d00c17b7d2a12ce867138f6f8c19
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; Fix documentation of 'defalias'
* doc/lispref/functions.texi (Defining Functions): Document that a
defalias's DEFINITION can be a macro. (Bug#60432)
---
doc/lispref/functions.texi | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index 9d5a266191..9232dc38e7 100644
--- a/doc/lispref/functions.texi
+++ b/doc/lispref/functions.texi
@@ -700,7 +700,7 @@ redefinition from unintentional redefinition.
@defun defalias name definition &optional doc
@anchor{Definition of defalias}
This function defines the symbol @var{name} as a function, with
-definition @var{definition} (which can be any valid Lisp function).
+definition @var{definition} (which can be any valid Lisp function or macro).
Its return value is @emph{undefined}.
If @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,
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
-which file defined the function, just like @code{defun}
-(@pxref{Unloading}).
+or macro name is being defined---especially where that name appears
+explicitly in the source file being loaded. This is because
+@code{defalias} records which file defined the function, just like
+@code{defun} (@pxref{Unloading}).
By contrast, in programs that manipulate function definitions for other
purposes, it is better to use @code{fset}, which does not keep such
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 2a7e072e53: ; Fix documentation of 'defalias',
Eli Zaretskii <=