[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to change mouse binding for html view in gnus
From: |
Tom Tromey |
Subject: |
Re: Patch to change mouse binding for html view in gnus |
Date: |
Thu, 12 Jul 2007 10:05:50 -0600 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) |
>>>>> "Katsumi" == Katsumi Yamaoka <address@hidden> writes:
Katsumi> For this reason, I recommend using the function form
Katsumi> (lambda (url) (browse-url url) t)
Katsumi> rather than just using `browse-url'.
I tried:
(setq w3m-goto-article-function (lambda (url) (browse-url url) t))
but this fails:
fboundp((lambda (url) (browse-url url) t))
w3m-safe-view-this-url()
w3m-mouse-safe-view-this-url((mouse-2 (#<window 1388 on *Article*> 436 (111 .
209) -81415166 nil 436 (18 . 16) nil (3 . 1) (6 . 13))))
call-interactively(w3m-mouse-safe-view-this-url)
The reason is this code in w3m-safe-view-this-url:
(url (or (when (fboundp w3m-goto-article-function)
(funcall w3m-goto-article-function url))
So to make this work I had to make a new defun and then setq
w3m-goto-article-function to that. Using an anonymous function won't
work, due to the fboundp.
I didn't look to see whether your patch here fixed this problem or
not, I just thought I'd post in case anybody else is trying to set
things up this way.
>> If you do all your browsing in Emacs then you probably already have
>> browse-url-browser-function set as you like...
Katsumi> I leave all those as the default and have no problem (Firefox
Katsumi> happens to be used by default). I don't always necessarily use
Katsumi> emacs-w3m. I use Firefox when purchasing something, manipulating
Katsumi> my bank account... ;-)
Ok. I suppose this response means you are not swayed by my argument
that users should only have to customize in a single place.
Tom
- Patch to change mouse binding for html view in gnus, Tom Tromey, 2007/07/01
- Re: Patch to change mouse binding for html view in gnus, Reiner Steib, 2007/07/01
- Re: Patch to change mouse binding for html view in gnus, Tom Tromey, 2007/07/01
- Re: Patch to change mouse binding for html view in gnus, Katsumi Yamaoka, 2007/07/01
- Re: Patch to change mouse binding for html view in gnus, Tom Tromey, 2007/07/02
- Re: Patch to change mouse binding for html view in gnus, Katsumi Yamaoka, 2007/07/03
- Re: Patch to change mouse binding for html view in gnus, Tom Tromey, 2007/07/03
- Re: Patch to change mouse binding for html view in gnus, Katsumi Yamaoka, 2007/07/03
- Re: Patch to change mouse binding for html view in gnus, Katsumi Yamaoka, 2007/07/04
- Re: Patch to change mouse binding for html view in gnus,
Tom Tromey <=
- Re: Patch to change mouse binding for html view in gnus, Stefan Monnier, 2007/07/12
- Re: Patch to change mouse binding for html view in gnus, Katsumi Yamaoka, 2007/07/12