From: Lars Magne Ingebrigtsen Date: Wed, 24 Nov 2010 06:34:12 +0000 (+0100) Subject: (mailclient-send-it): Bind `browse-url-mailto-function' to nil to X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~133 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7bd9b9d8b4e201ee169801c0ced5e0c5e172a9e2;p=emacs.git (mailclient-send-it): Bind `browse-url-mailto-function' to nil to use the external browser function to send the mail. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6936c2ad17d..eb5d49387f8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,9 @@ 2010-11-24 Lars Magne Ingebrigtsen + * mail/mailclient.el (browse-url): Require. + (mailclient-send-it): Bind `browse-url-mailto-function' to nil to + use the external browser function to send the mail (bug#7469). + * net/browse-url.el (browse-url-browser-function): Revert the default back to the previous value, since the new value broke mailclient.el. diff --git a/lisp/mail/mailclient.el b/lisp/mail/mailclient.el index dd5ec2dd388..2a5d77d4f74 100644 --- a/lisp/mail/mailclient.el +++ b/lisp/mail/mailclient.el @@ -46,6 +46,7 @@ (require 'sendmail) ;; for mail-sendmail-undelimit-header (require 'mail-utils) ;; for mail-fetch-field +(require 'browse-url) (defcustom mailclient-place-body-on-clipboard-flag (fboundp 'w32-set-clipboard-data) @@ -122,7 +123,10 @@ The mail client is taken to be the handler of mailto URLs." (while (and (re-search-forward "\n\n\n*" delimline t) (< (point) delimline)) (replace-match "\n")) - (let ((case-fold-search t)) + (let ((case-fold-search t) + ;; Use the external browser function to send the + ;; message. + (browse-url-mailto-function nil)) ;; initialize limiter (setq mailclient-delim-static "?") ;; construct and call up mailto URL