From: martin rudalics <rudalics@gmx.at>
To: Drew Adams <drew.adams@ORACLE.COM>
Cc: 669@emacsbugs.donarmstrong.com
Subject: bug#669: 23.0.60; defalias is not taken into account by C-h k
Date: Wed, 13 Aug 2008 19:05:42 +0200 [thread overview]
Message-ID: <48A31466.9080401@gmx.at> (raw)
In-Reply-To: <003201c8f8cf$bafb9df0$c2b22382@us.oracle.com>
> If you use (defalias 'lisp-complete-symbol 'foo) instead, then this is output:
>
> M-TAB (translated from <escape> <tab>) runs the command
> lisp-complete-symbol, which is an alias for `foo' in `lisp.el'.
>
> It is bound to M-TAB.
>
> (lisp-complete-symbol &optional predicate)
>
> This is still wrong, because `foo' is not in `lisp.el' (and the defalias is not
> in `lisp.el').
>
> This bug appears as far back as Emacs 20.7.
>
>
>> From: Drew Adams Sent: Thursday, August 07, 2008 11:23 AM
>> emacs -Q
>>
>> (defun foo (&optional predicate)
>> "" (interactive) (message "FOO"))
>>
>> (defalias 'lisp-complete-symbol (symbol-function 'foo))
>>
>> C-h k then shows this, which is 100% wrong:
>>
>> M-TAB (translated from <escape> <tab>) runs the command
>> lisp-complete-symbol, which is an interactive Lisp function in
>> `lisp.el'.
>>
>> It is bound to M-TAB.
>>
>> (lisp-complete-symbol &optional predicate)
I'm currently rewriting help-fns.el and can produce
M-TAB (translated from <escape> <tab>) runs the command
lisp-complete-symbol, which is an interactive Lisp function.
It is bound to M-TAB, <menu-bar> <lisp-interaction>
<lisp-complete-symbol>, H-SPC.
(lisp-complete-symbol &optional predicate)
and
M-TAB (translated from <escape> <tab>) runs the command
lisp-complete-symbol, which is an alias for `foo'.
It is bound to M-TAB, <menu-bar> <lisp-interaction>
<lisp-complete-symbol>, H-SPC.
(lisp-complete-symbol &optional predicate)
Are these acceptable?
martin
next prev parent reply other threads:[~2008-08-13 17:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-07 18:23 bug#669: 23.0.60; defalias is not taken into account by C-h k Drew Adams
2008-08-07 20:54 ` Drew Adams
2008-08-13 17:05 ` martin rudalics [this message]
2008-08-13 17:27 ` Drew Adams
2008-08-13 21:17 ` martin rudalics
2008-08-13 21:41 ` Drew Adams
2008-08-14 6:18 ` martin rudalics
2008-08-14 15:33 ` Drew Adams
2008-08-14 20:03 ` Stefan Monnier
2008-08-14 20:00 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48A31466.9080401@gmx.at \
--to=rudalics@gmx.at \
--cc=669@emacsbugs.donarmstrong.com \
--cc=drew.adams@ORACLE.COM \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).