* [PATCH] Add mailer as a candidate for browse-url-default-browser
@ 2008-02-26 2:00 Xavier Maillard
0 siblings, 0 replies; only message in thread
From: Xavier Maillard @ 2008-02-26 2:00 UTC (permalink / raw)
To: emacs-devel
Hi,
this is another test at trying to have the possibility to send an
email to a recipient at point. This one is a one-line patch that
just add `browse-url-mail' as the first candidate in the function
`browser-url-default-browser' function.
Here is the proposed changelog entry plus the change.
2008-02-25 Xavier Maillard <xma@gnu.org>
* net/browse-url.el (browse-url-default-browser): Add support to
send an email to the recipient at point (if found).
--- browse-url.el.~1.73.~ 2008-01-08 21:45:53.000000000 +0100
+++ browse-url.el 2008-02-25 23:50:33.000000000 +0100
@@ -874,10 +874,12 @@
When called non-interactively, optional second argument NEW-WINDOW is
used instead of `browse-url-new-window-flag'.
-The order attempted is gnome-moz-remote, Mozilla, Firefox,
-Galeon, Konqueror, Netscape, Mosaic, Lynx in an xterm, and then W3."
+The order attempted is mailer (if qualified), gnome-moz-remote,
+Mozilla, Firefox, Galeon, Konqueror, Netscape, Mosaic, Lynx in an
+xterm, and then W3."
(apply
(cond
+ ((thing-at-point 'email) 'browse-url-mail)
((executable-find browse-url-gnome-moz-program) 'browse-url-gnome-moz)
((executable-find browse-url-mozilla-program) 'browse-url-mozilla)
((executable-find browse-url-firefox-program) 'browse-url-firefox)
What do you think of this one ? I tested it very quickly and it
works for me.
Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-26 2:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-26 2:00 [PATCH] Add mailer as a candidate for browse-url-default-browser Xavier Maillard
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.