GNU bug report logs -
#60432
28.2; Doc of `defalias'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Fri, 30 Dec 2022 17:10:02 UTC
Severity: minor
Found in version 28.2
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>> The doc (doc string and Elisp manual) doesn't make clear that "function"
>> in this context applies also to Lisp macros. Please make that clear.
> Which part of the documentation doesn't make that clear? The
> references to "function" seem all to refer to SYMBOL's function cell,
> where SYMBOL is the first argument of defalias. The doc string
> says nothing AFAICT about what DEFINITION could be, and your point is
> about DEFINITION. The manual indeed said that DEFINITION could be any
> Lisp function, so I added "or macro" there. However, I wonder whether
> function and macro are the only kinds of DEFINITION. Stefan, what
> exactly can the DEFINITION be?
It can also be a "special form" (e.g. what you have in (symbol-function
'if)), or a keymap, or a symbol (alias) or a vector or string (kdb
macro).
Of course, it can also be any other kind of value, tho in that case
it'll only be useful if the symbol is treated in an ad-hoc manner
elsewhere, since "normal" use (such as evaluating something of the form
`(SYMBOL ...) or adding SYMBOL as the command to use in a keymap) would
then lead to an error.
Stefan
This bug report was last modified 2 years and 139 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.