[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eww

From: Nicolas Richard
Subject: Re: eww
Date: Tue, 14 Jan 2014 12:09:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Bastien <address@hidden> writes:

> Stefan Monnier <address@hidden> 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 
          :type '(alist :key-type string :value-type function)
+       (put ',varalt-sym 'definition-name ',command)
        (defvar ,varimp-sym nil "Internal use only.")
        (defun ,command (&optional arg)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]