diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/dired-x.el | 19 | ||||
| -rw-r--r-- | lisp/dired.el | 2 |
3 files changed, 19 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3dea3ed0380..6e1fe6d20ce 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-02-09 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * dired-x.el (dired-do-run-mail): Prompt for confirmation | ||
| 4 | (Bug#13561). | ||
| 5 | |||
| 1 | 2013-02-08 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2013-02-08 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * emacs-lisp/byte-run.el (eval-when-compile, eval-and-compile): | 8 | * emacs-lisp/byte-run.el (eval-when-compile, eval-and-compile): |
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index a2c13033cd1..3cf6654da2b 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -1344,13 +1344,20 @@ Otherwise obeys the value of `dired-vm-read-only-folders'." | |||
| 1344 | (rmail (dired-get-filename))) | 1344 | (rmail (dired-get-filename))) |
| 1345 | 1345 | ||
| 1346 | (defun dired-do-run-mail () | 1346 | (defun dired-do-run-mail () |
| 1347 | "If `dired-bind-vm' is non-nil, call `dired-vm', else call `dired-rmail'." | 1347 | "Visit the current file as a mailbox, using VM or RMAIL. |
| 1348 | Prompt for confirmation first; if the user says yes, call | ||
| 1349 | `dired-vm' if `dired-bind-vm' is non-nil, `dired-rmail' | ||
| 1350 | otherwise." | ||
| 1348 | (interactive) | 1351 | (interactive) |
| 1349 | (if dired-bind-vm | 1352 | (let ((file (dired-get-filename t))) |
| 1350 | ;; Read mail folder using vm. | 1353 | (if dired-bind-vm |
| 1351 | (dired-vm) | 1354 | (if (y-or-n-p (concat "Visit `" file |
| 1352 | ;; Read mail folder using rmail. | 1355 | "' as a mail folder with VM?")) |
| 1353 | (dired-rmail))) | 1356 | (dired-vm)) |
| 1357 | ;; Read mail folder using rmail. | ||
| 1358 | (if (y-or-n-p (concat "Visit `" file | ||
| 1359 | "' as a mailbox with RMAIL?")) | ||
| 1360 | (dired-rmail))))) | ||
| 1354 | 1361 | ||
| 1355 | 1362 | ||
| 1356 | ;;; MISCELLANEOUS INTERNAL FUNCTIONS. | 1363 | ;;; MISCELLANEOUS INTERNAL FUNCTIONS. |
diff --git a/lisp/dired.el b/lisp/dired.el index 30069488586..b5fc46eb78d 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -4297,7 +4297,7 @@ instead. | |||
| 4297 | ;;;*** | 4297 | ;;;*** |
| 4298 | 4298 | ||
| 4299 | ;;;### (autoloads (dired-do-relsymlink dired-jump-other-window dired-jump) | 4299 | ;;;### (autoloads (dired-do-relsymlink dired-jump-other-window dired-jump) |
| 4300 | ;;;;;; "dired-x" "dired-x.el" "cdaacce7c861256289ba48493dd6d0ec") | 4300 | ;;;;;; "dired-x" "dired-x.el" "90ba5245f6f5df3bdbda6303c725ef45") |
| 4301 | ;;; Generated autoloads from dired-x.el | 4301 | ;;; Generated autoloads from dired-x.el |
| 4302 | 4302 | ||
| 4303 | (autoload 'dired-jump "dired-x" "\ | 4303 | (autoload 'dired-jump "dired-x" "\ |