aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-04-16 03:57:23 +0000
committerRichard M. Stallman1996-04-16 03:57:23 +0000
commiteba8dcd060689675c9778392d4ada66395d21a3e (patch)
tree6826c9a1982f323882c52ec096d702ea4d811183
parentc898fb2821fde0faa18488405fcce4da1a2a8a58 (diff)
downloademacs-eba8dcd060689675c9778392d4ada66395d21a3e.tar.gz
emacs-eba8dcd060689675c9778392d4ada66395d21a3e.zip
(goto-address-send-using-mh-e):
Renamed from goto-address-send-using-mhe. Require `mh-comp'.
-rw-r--r--lisp/goto-addr.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/goto-addr.el b/lisp/goto-addr.el
index 89645ec08e9..30f7eca8137 100644
--- a/lisp/goto-addr.el
+++ b/lisp/goto-addr.el
@@ -42,7 +42,7 @@
42;; By default, goto-address now sends using `mail' instead of `mh-send'. 42;; By default, goto-address now sends using `mail' instead of `mh-send'.
43;; To use mh-e to send mail, add the following to your .emacs file: 43;; To use mh-e to send mail, add the following to your .emacs file:
44;; 44;;
45;; (setq goto-address-mail-method 'goto-address-send-using-mhe) 45;; (setq goto-address-mail-method 'goto-address-send-using-mh-e)
46;; 46;;
47;; The mouse click method is bound to [mouse-2] on highlighted URL's or 47;; The mouse click method is bound to [mouse-2] on highlighted URL's or
48;; e-mail addresses only; it functions normally everywhere else. To bind 48;; e-mail addresses only; it functions normally everywhere else. To bind
@@ -98,7 +98,7 @@ But only if `goto-address-highlight-p' is also non-nil.")
98 'goto-address-send-using-mail 98 'goto-address-send-using-mail
99 "*Function to compose mail. 99 "*Function to compose mail.
100Two pre-made functions are `goto-address-send-using-mail' (sendmail); 100Two pre-made functions are `goto-address-send-using-mail' (sendmail);
101and `goto-address-send-using-mhe' (MH-E).") 101and `goto-address-send-using-mh-e' (MH-E).")
102 102
103(defvar goto-address-highlight-keymap 103(defvar goto-address-highlight-keymap
104 (let ((m (make-sparse-keymap))) 104 (let ((m (make-sparse-keymap)))
@@ -194,7 +194,8 @@ address. If no e-mail address found, return the empty string."
194 (buffer-substring (match-beginning 0) (match-end 0)) 194 (buffer-substring (match-beginning 0) (match-end 0))
195 ""))) 195 "")))
196 196
197(defun goto-address-send-using-mhe (to) 197(defun goto-address-send-using-mh-e (to)
198 (require 'mh-comp)
198 (mh-find-path) 199 (mh-find-path)
199 (let ((cc (mh-read-address "Cc: ")) 200 (let ((cc (mh-read-address "Cc: "))
200 (subject (read-string "Subject: ")) 201 (subject (read-string "Subject: "))
@@ -202,6 +203,8 @@ address. If no e-mail address found, return the empty string."
202 (delete-other-windows) 203 (delete-other-windows)
203 (mh-send-sub to cc subject config))) 204 (mh-send-sub to cc subject config)))
204 205
206(fset 'goto-address-send-using-mhe 'goto-address-send-using-mh-e)
207
205(defun goto-address-send-using-mail (to) 208(defun goto-address-send-using-mail (to)
206 (mail-other-window nil to) 209 (mail-other-window nil to)
207 (and (goto-char (point-min)) 210 (and (goto-char (point-min))