[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
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.
- Re: Creating aliases for epa-* comands => crypt-* commands?, (continued)
- Re: Creating aliases for epa-* comands => crypt-* commands?, Bastien, 2014/01/17
- Re: Creating aliases for epa-* comands => crypt-* commands?, Richard Stallman, 2014/01/18
- Re: Creating aliases for epa-* comands => crypt-* commands?, Richard Stallman, 2014/01/18
- Re: Creating aliases for epa-* comands => crypt-* commands?, Richard Stallman, 2014/01/18
- Re: Creating aliases for epa-* comands => crypt-* commands?, Stefan Monnier, 2014/01/18
- Re: Creating aliases for epa-* comands => crypt-* commands?, Richard Stallman, 2014/01/19
- Re: eww, Richard Stallman, 2014/01/13
- Re: eww, Bastien, 2014/01/13
- Re: eww, Stefan Monnier, 2014/01/13
- Re: eww, Bastien, 2014/01/14
- Re: eww,
Nicolas Richard <=
- Re: eww, Bastien, 2014/01/14
- Re: eww, Nicolas Richard, 2014/01/14
- Re: eww, Bastien, 2014/01/14
- Re: eww, Nicolas Richard, 2014/01/14
- Re: eww, Bastien, 2014/01/14
- Re: eww, Richard Stallman, 2014/01/15
- Re: eww, Andreas Schwab, 2014/01/15
- Re: eww, Nicolas Richard, 2014/01/15
- Re: eww, Richard Stallman, 2014/01/16
- Re: eww, Andreas Schwab, 2014/01/16