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 23:17:08 +0200 Message-ID: <48A34F54.9090302@gmx.at> References: <002201c8f8ba$a2eebea0$c2b22382@us.oracle.com> <003201c8f8cf$bafb9df0$c2b22382@us.oracle.com> <48A31466.9080401@gmx.at> <001d01c8fd69$da11c450$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 1218662869 7663 80.91.229.12 (13 Aug 2008 21:27:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2008 21:27:49 +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 23:28:40 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 1KTNtQ-0005g2-DP for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 23:28:32 +0200 Original-Received: from localhost ([127.0.0.1]:40929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTNsT-00007A-Vq for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 17:27:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTNsQ-00006y-JN for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2008 17:27:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTNsP-00006g-38 for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2008 17:27:30 -0400 Original-Received: from [199.232.76.173] (port=37502 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTNsO-00006d-Ss for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2008 17:27:28 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35043) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KTNsO-0001xr-EG for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2008 17:27:28 -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 m7DLRPVd029669; Wed, 13 Aug 2008 14:27:25 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7DLP4G8028434; Wed, 13 Aug 2008 14:25:04 -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 21:25:04 +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.121866236826805 (code B ref 669); Wed, 13 Aug 2008 21:25:04 +0000 Original-Received: (at 669) by emacsbugs.donarmstrong.com; 13 Aug 2008 21:19:28 +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 m7DLJNEu026798 for <669@emacsbugs.donarmstrong.com>; Wed, 13 Aug 2008 14:19:25 -0700 Original-Received: (qmail invoked by alias); 13 Aug 2008 21:19:17 -0000 Original-Received: from 62-47-61-125.adsl.highway.telekom.at (EHLO [62.47.61.125]) [62.47.61.125] by mail.gmx.net (mp031) with SMTP; 13 Aug 2008 23:19:17 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18dnK45eAUdbFkmu+dnsFvOrPCuC7obUk/YTi4/w1 wd7uZJaIRLfagP User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <001d01c8fd69$da11c450$c2b22382@us.oracle.com> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.73 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 13 Aug 2008 17:27:30 -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:19389 Archived-At: > Not completely fixed yet, because it doesn't say anything about where `foo' is > defined (assuming it is defined in a file somewhere). If it is "defined in a file somewhere" you can jump to `foo' and see where it is defined. IIUC your assumption was that it's been defined and evaluated in a buffer only. > If you could add that, > that would be great. The point is that we do want to send the user to the source > code, but not to the original `lisp-complete-symbol' source code. If it's defined in a file we can send the user to the source code in the (defalias 'lisp-complete-symbol 'foo) case via the `foo' indirection but certainly _not_ in the (defalias 'lisp-complete-symbol (symbol-function 'foo)) because, well, look at the return value of (symbol-function 'foo). > We also need to be sure that the `foo' doc string is used. In my test example I > omitted that. In the indirection case follow the link to `foo' and get its doc-string from there. In the `symbol-function' case you simply have to provide your own doc-string via the third arg of `defalias'. > And both of these cases need to be treated: > > (defalias 'lisp-complete-symbol 'foo) > (defalias 'lisp-complete-symbol (symbol-function 'foo)) I suppose I posted the *Help* output for both cases. martin