aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1993-12-02 21:04:45 +0000
committerRoland McGrath1993-12-02 21:04:45 +0000
commit5a31c2d2c13b8ec1799d38937ed183c94eb1954a (patch)
tree8475223e9723292e08ffbcfd94db8f530dfb046b
parent73960ffd67cfa0bac6cb0e67112e42a81f48a607 (diff)
downloademacs-5a31c2d2c13b8ec1799d38937ed183c94eb1954a.tar.gz
emacs-5a31c2d2c13b8ec1799d38937ed183c94eb1954a.zip
(mail-fcc): Take argument and use interactive spec to prompt, rather than
calling read-file-name explicitly. This function is useful to call from programs with a computed argument.
-rw-r--r--lisp/mail/sendmail.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index e90d46bb949..b09f09c9698 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -1,6 +1,6 @@
1;;; sendmail.el --- mail sending commands for Emacs. 1;;; sendmail.el --- mail sending commands for Emacs.
2 2
3;; Copyright (C) 1985, 1986, 1992 Free Software Foundation, Inc. 3;; Copyright (C) 1985, 1986, 1992, 1993 Free Software Foundation, Inc.
4 4
5;; Maintainer: FSF 5;; Maintainer: FSF
6;; Keywords: mail 6;; Keywords: mail
@@ -584,13 +584,13 @@ the user from the mailer."
584 (progn (mail-position-on-field "to") 584 (progn (mail-position-on-field "to")
585 (insert "\nBCC: ")))) 585 (insert "\nBCC: "))))
586 586
587(defun mail-fcc () 587(defun mail-fcc (folder)
588 "Add a new FCC field, with file name completion." 588 "Add a new FCC field, with file name completion."
589 (interactive) 589 (interactive "FFolder carbon copy: ")
590 (expand-abbrev) 590 (expand-abbrev)
591 (or (mail-position-on-field "fcc" t) ;Put new field after exiting FCC. 591 (or (mail-position-on-field "fcc" t) ;Put new field after exiting FCC.
592 (mail-position-on-field "to")) 592 (mail-position-on-field "to"))
593 (insert "\nFCC: " (read-file-name "Folder carbon copy: "))) 593 (insert "\nFCC: " folder))
594 594
595(defun mail-position-on-field (field &optional soft) 595(defun mail-position-on-field (field &optional soft)
596 (let (end 596 (let (end