From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs 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 Message-ID: <48A31466.9080401@gmx.at> References: <002201c8f8ba$a2eebea0$c2b22382@us.oracle.com> <003201c8f8cf$bafb9df0$c2b22382@us.oracle.com> Reply-To: martin rudalics , 669@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218648476 21363 80.91.229.12 (13 Aug 2008 17:27:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2008 17:27:56 +0000 (UTC) Cc: 669@emacsbugs.donarmstrong.com To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 13 19:28:48 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KTK9H-0003gG-Su for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 19:28:40 +0200 Original-Received: from localhost ([127.0.0.1]:40169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTK8J-0007mm-FL for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 13:27:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTK8E-0007l8-0G for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2008 13:27:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTK8B-0007hr-66 for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2008 13:27:32 -0400 Original-Received: from [199.232.76.173] (port=35020 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTK8A-0007hY-2k for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2008 13:27:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35608) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KTK88-0001ro-QW for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2008 13:27:29 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7DHRPYP020015; Wed, 13 Aug 2008 10:27:25 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7DHF3uF015760; Wed, 13 Aug 2008 10:15:03 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 13 Aug 2008 17:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 669 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 669-submit@emacsbugs.donarmstrong.com id=B669.121864729514115 (code B ref 669); Wed, 13 Aug 2008 17:15:03 +0000 Original-Received: (at 669) by emacsbugs.donarmstrong.com; 13 Aug 2008 17:08:15 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m7DH8Bd8014034 for <669@emacsbugs.donarmstrong.com>; Wed, 13 Aug 2008 10:08:12 -0700 Original-Received: (qmail invoked by alias); 13 Aug 2008 17:08:05 -0000 Original-Received: from 62-47-38-123.adsl.highway.telekom.at (EHLO [62.47.38.123]) [62.47.38.123] by mail.gmx.net (mp013) with SMTP; 13 Aug 2008 19:08:05 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19WlQkFGOVWgS4KOhbKqewMk+hTgPap3uN7siyYIj 7Z8bkVyDPFr4FQ User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <003201c8f8cf$bafb9df0$c2b22382@us.oracle.com> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 13 Aug 2008 13:27:32 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19384 Archived-At: > If you use (defalias 'lisp-complete-symbol 'foo) instead, then this is output: > > M-TAB (translated from ) 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 ) 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 ) runs the command lisp-complete-symbol, which is an interactive Lisp function. It is bound to M-TAB, , H-SPC. (lisp-complete-symbol &optional predicate) and M-TAB (translated from ) runs the command lisp-complete-symbol, which is an alias for `foo'. It is bound to M-TAB, , H-SPC. (lisp-complete-symbol &optional predicate) Are these acceptable? martin