emacs-devel
[Top][All Lists]
Advanced

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

[PATCH] Add mailer as a candidate for browse-url-default-browser


From: Xavier Maillard
Subject: [PATCH] Add mailer as a candidate for browse-url-default-browser
Date: Tue, 26 Feb 2008 03:00:24 +0100
User-agent: Rmail in GNU Emacs 23.0.60.2 on GNU/Linux

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  <address@hidden>

        * 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




reply via email to

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