From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Nicolas Richard" Newsgroups: gmane.emacs.devel Subject: Re: eww Date: Tue, 14 Jan 2014 12:09:48 +0100 Message-ID: <878uui6cqr.fsf@yahoo.fr> References: <87zjn0gmas.fsf@bzg.ath.cx> <87fvorbjuh.fsf@bzg.ath.cx> <87r48aaog5.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389697810 16902 80.91.229.3 (14 Jan 2014 11:10:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2014 11:10:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 14 12:10:17 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W31ss-0003fd-T5 for ged-emacs-devel@m.gmane.org; Tue, 14 Jan 2014 12:10:15 +0100 Original-Received: from localhost ([::1]:47538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W31ss-0004az-C0 for ged-emacs-devel@m.gmane.org; Tue, 14 Jan 2014 06:10:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W31sk-0004YW-O4 for emacs-devel@gnu.org; Tue, 14 Jan 2014 06:10:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W31sf-0000Y5-KM for emacs-devel@gnu.org; Tue, 14 Jan 2014 06:10:06 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:41684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W31sf-0000Wp-EQ for emacs-devel@gnu.org; Tue, 14 Jan 2014 06:10:01 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W31sa-00038j-EE for emacs-devel@gnu.org; Tue, 14 Jan 2014 12:09:56 +0100 Original-Received: from geodiff-mac3.ulb.ac.be ([164.15.131.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jan 2014 12:09:56 +0100 Original-Received: from theonewiththeevillook by geodiff-mac3.ulb.ac.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jan 2014 12:09:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: geodiff-mac3.ulb.ac.be User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:lKsrSrm2AEEb7M7/M8jkvWfRANU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:168349 Archived-At: Bastien writes: > Stefan Monnier writes: > >>>> This calling convention has the drawback that (define-alternatives web) >>>> isn't recognized as a definition for the variable web-alternatives. >>> I'm not sure I understand. >> >> If you try to jump to the source from "C-h v web-alternatives", Emacs >> won't find the right spot. > > M-: (define-alternatives web) RET > C-h web-alternatives RET > > will display a correct docstring for `web-alternatives'. > > What am I missing? The link to the source (when (define-alternatives web) is done in an .el file) won't work right, and result in "Unable to find location in file". It's a common problem with macros that define things. Here's a patch to implement Stefan's solution: --- a/lisp/simple.el +++ b/lisp/simple.el @@ -7675,7 +7675,7 @@ ALTFUN - The function called to implement this alternative." command-name) :type '(alist :key-type string :value-type function) ,@customizations) - + (put ',varalt-sym 'definition-name ',command) (defvar ,varimp-sym nil "Internal use only.") (defun ,command (&optional arg) -- Nico.