From: Eli Zaretskii Date: Sat, 31 Dec 2022 15:01:22 +0000 (+0200) Subject: ; More fixes for documentation of 'defalias' X-Git-Tag: emacs-29.0.90~893 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9871ee8b14a5ad3e7dcd59f3fd1503300f9d0234;p=emacs.git ; More fixes for documentation of 'defalias' * doc/lispref/functions.texi (Defining Functions): Document other possible values of DEFINITION in a defalias. (Bug#60432) --- diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index 9232dc38e78..a0ee59df7ee 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi @@ -700,8 +700,10 @@ 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 or macro). -Its return value is @emph{undefined}. +definition @var{definition}. @var{definition} can be any valid Lisp +function or macro, or a special form (@pxref{Special Forms}), or a +keymap (@pxref{Keymaps}), or a vector or string (a keyboard macro). +The return value of @code{defalias} is @emph{undefined}. If @var{doc} is non-@code{nil}, it becomes the function documentation of @var{name}. Otherwise, any documentation provided by