>>>>> Ted Zlatanov wrote: > On Sun, 18 Apr 2010 06:41:23 +0800 jidanni@jidanni.org wrote: j> In emacs-w3m, right clicking on a link brings up a menu with lots of choices. j> However doing the same action inside gnus doesn't. j> E.g., try right clicking on http://example.org/ . > This is composed of two things actually: > 1) the emacs-w3m popup menu should be accessible in the Article buffer. > Currently it can be invoked with (w3m-mouse-major-mode-menu EVENT) so it > *can* be bound to right-click in the article mode by the user. This > part is pretty easy. > 2) right-click on a URL should bring up that menu. I'm not sure if > there are any other logical things to hang on right-click in Gnus. For > instance we could bring up the Treatment or Commands menus that are > otherwise in the pulldown. So maybe the emacs-w3m menu should be under > the main popup menu in the article buffer, and it should also show up in > the menu bar when the article buffer is using emacs-w3m. > Any opinions? I don't know what items the menu should provide but I tried hacking it as attached below. Currently the right-click pops up this menu: ,---- | Open this link with | =================== | browse-url | emacs-w3m `---- (The first item overlaps to the middle-click though.) 2010-04-21 Katsumi Yamaoka * gnus-art.el (gnus-article-add-buttons): Add url string as text property to button. (gnus-article-extend-url-button): Use text property instead of overlay to add url to button. (gnus-article-link-map): New variable. (gnus-article-open-link-with-browse-url) (gnus-article-open-link-with-emacs-w3m): New functions. (gnus-article-link-menu): New menu. (gnus-article-add-button): Add url string as text property to button. (gnus-button-push): Assume gnus-button-url is text property.