all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xavier Maillard <xma@gnu.org>
To: emacs-devel@gnu.org
Subject: [PATCH] Add mailer as a candidate for browse-url-default-browser
Date: Tue, 26 Feb 2008 03:00:24 +0100	[thread overview]
Message-ID: <200802260200.m1Q20OBP006845@localhost.localdomain> (raw)

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




                 reply	other threads:[~2008-02-26  2:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200802260200.m1Q20OBP006845@localhost.localdomain \
    --to=xma@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.