diff options
| author | Richard M. Stallman | 1993-07-25 02:19:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-25 02:19:47 +0000 |
| commit | 6e446ebbcc8e58217ff60d232c5137c10d00c108 (patch) | |
| tree | 3ae6b83fbf0a3c34a258387ce267029ce80e8bdd | |
| parent | e76841099a7068e805a903de44a8dd74c874fc87 (diff) | |
| download | emacs-6e446ebbcc8e58217ff60d232c5137c10d00c108.tar.gz emacs-6e446ebbcc8e58217ff60d232c5137c10d00c108.zip | |
(rmail-output): New arg NOATTRIBUTE.
| -rw-r--r-- | lisp/mail/rmailout.el | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index 1be4cacb871..4806f5db67c 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el | |||
| @@ -148,11 +148,14 @@ starting with the current one. Deleted messages are skipped and don't count." | |||
| 148 | 148 | ||
| 149 | ;;; There are functions elsewhere in Emacs that use this function; check | 149 | ;;; There are functions elsewhere in Emacs that use this function; check |
| 150 | ;;; them out before you change the calling method. | 150 | ;;; them out before you change the calling method. |
| 151 | (defun rmail-output (file-name &optional count) | 151 | (defun rmail-output (file-name &optional count noattribute) |
| 152 | "Append this message to Unix mail file named FILE-NAME. | 152 | "Append this message to Unix mail file named FILE-NAME. |
| 153 | A prefix argument N says to output N consecutive messages | 153 | A prefix argument N says to output N consecutive messages |
| 154 | starting with the current one. Deleted messages are skipped and don't count. | 154 | starting with the current one. Deleted messages are skipped and don't count. |
| 155 | When called from lisp code, N may be omitted." | 155 | When called from lisp code, N may be omitted. |
| 156 | |||
| 157 | The optional third argument NOATTRIBUTE, if non-nil, says not | ||
| 158 | to set the `filed' attribute, and not to display a message." | ||
| 156 | (interactive | 159 | (interactive |
| 157 | (list (setq rmail-last-file | 160 | (list (setq rmail-last-file |
| 158 | (read-file-name | 161 | (read-file-name |
| @@ -194,10 +197,12 @@ When called from lisp code, N may be omitted." | |||
| 194 | (while (search-forward "\nFrom " nil t) | 197 | (while (search-forward "\nFrom " nil t) |
| 195 | (forward-char -5) | 198 | (forward-char -5) |
| 196 | (insert ?>)) | 199 | (insert ?>)) |
| 197 | (append-to-file (point-min) (point-max) file-name)) | 200 | (write-region (point-min) (point-max) file-name t |
| 201 | (if noattribute 'nomsg))) | ||
| 198 | (kill-buffer tembuf)) | 202 | (kill-buffer tembuf)) |
| 199 | (if (equal major-mode 'rmail-mode) | 203 | (or noattribute |
| 200 | (rmail-set-attribute "filed" t)) | 204 | (if (equal major-mode 'rmail-mode) |
| 205 | (rmail-set-attribute "filed" t))) | ||
| 201 | (setq count (1- count)) | 206 | (setq count (1- count)) |
| 202 | (if rmail-delete-after-output | 207 | (if rmail-delete-after-output |
| 203 | (rmail-delete-forward) | 208 | (rmail-delete-forward) |