diff options
| author | Richard M. Stallman | 1998-06-23 15:53:08 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-06-23 15:53:08 +0000 |
| commit | 6e883aeb775acda70f38bbfaf861d854c7e3467c (patch) | |
| tree | c58bc9c445f6b7a4d8f342a46841c7d61b8edddf | |
| parent | 1ffddaf4d4c079452ac0b5f935cef2281a99780e (diff) | |
| download | emacs-6e883aeb775acda70f38bbfaf861d854c7e3467c.tar.gz emacs-6e883aeb775acda70f38bbfaf861d854c7e3467c.zip | |
(rmail-output): Handle directories properly
in suggestions fro the alist.
| -rw-r--r-- | lisp/mail/rmailout.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index 81aa941abd4..1c4194cda83 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el | |||
| @@ -234,7 +234,7 @@ The optional fourth argument FROM-GNUS is set when called from GNUS." | |||
| 234 | (if (re-search-forward (car (car tail)) nil t) | 234 | (if (re-search-forward (car (car tail)) nil t) |
| 235 | (setq answer (eval (cdr (car tail))))) | 235 | (setq answer (eval (cdr (car tail))))) |
| 236 | (setq tail (cdr tail)))) | 236 | (setq tail (cdr tail)))) |
| 237 | ;; If not suggestions, use same file as last time. | 237 | ;; If no suggestion, use same file as last time. |
| 238 | (or answer rmail-default-file)))) | 238 | (or answer rmail-default-file)))) |
| 239 | (list (setq rmail-default-file | 239 | (list (setq rmail-default-file |
| 240 | (let ((read-file | 240 | (let ((read-file |
| @@ -242,13 +242,13 @@ The optional fourth argument FROM-GNUS is set when called from GNUS." | |||
| 242 | (concat "Output message to Unix mail file: (default " | 242 | (concat "Output message to Unix mail file: (default " |
| 243 | (file-name-nondirectory default-file) | 243 | (file-name-nondirectory default-file) |
| 244 | ") ") | 244 | ") ") |
| 245 | (file-name-directory default-file) | 245 | (file-name-directory (expand-file-name default-file)) |
| 246 | default-file))) | 246 | (expand-file-name default-file)))) |
| 247 | (if (file-directory-p read-file) | 247 | (if (file-directory-p read-file) |
| 248 | (expand-file-name (file-name-nondirectory default-file) | 248 | (expand-file-name (file-name-nondirectory default-file) |
| 249 | read-file) | 249 | read-file) |
| 250 | (expand-file-name | 250 | (expand-file-name |
| 251 | (or read-file default-file) | 251 | (or read-file (file-name-nondirectory default-file)) |
| 252 | (file-name-directory default-file))))) | 252 | (file-name-directory default-file))))) |
| 253 | (prefix-numeric-value current-prefix-arg)))) | 253 | (prefix-numeric-value current-prefix-arg)))) |
| 254 | (or count (setq count 1)) | 254 | (or count (setq count 1)) |