From 5a31c2d2c13b8ec1799d38937ed183c94eb1954a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 2 Dec 1993 21:04:45 +0000 Subject: [PATCH] (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. --- lisp/mail/sendmail.el | 8 ++++---- 1 file 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 @@ ;;; sendmail.el --- mail sending commands for Emacs. -;; Copyright (C) 1985, 1986, 1992 Free Software Foundation, Inc. +;; Copyright (C) 1985, 1986, 1992, 1993 Free Software Foundation, Inc. ;; Maintainer: FSF ;; Keywords: mail @@ -584,13 +584,13 @@ the user from the mailer." (progn (mail-position-on-field "to") (insert "\nBCC: ")))) -(defun mail-fcc () +(defun mail-fcc (folder) "Add a new FCC field, with file name completion." - (interactive) + (interactive "FFolder carbon copy: ") (expand-abbrev) (or (mail-position-on-field "fcc" t) ;Put new field after exiting FCC. (mail-position-on-field "to")) - (insert "\nFCC: " (read-file-name "Folder carbon copy: "))) + (insert "\nFCC: " folder)) (defun mail-position-on-field (field &optional soft) (let (end -- 2.39.5