diff options
| author | Mike Kupfer | 2022-07-17 11:23:48 -0700 |
|---|---|---|
| committer | Mike Kupfer | 2022-07-24 11:30:12 -0700 |
| commit | bb0af6489a1ca0104636fe2d658916e8c5b54dfc (patch) | |
| tree | 908fde50b5451d01516a33e17e862c4da50782a0 /lisp/mh-e | |
| parent | 9ed5c39aad09571314097be91cb28e7504614421 (diff) | |
| download | emacs-bb0af6489a1ca0104636fe2d658916e8c5b54dfc.tar.gz emacs-bb0af6489a1ca0104636fe2d658916e8c5b54dfc.zip | |
* mh-mime.el (mh-mime-save-parts): Restore default-directory (SF#498)
Diffstat (limited to 'lisp/mh-e')
| -rw-r--r-- | lisp/mh-e/mh-mime.el | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el index b93f7d8c412..5eada03ba46 100644 --- a/lisp/mh-e/mh-mime.el +++ b/lisp/mh-e/mh-mime.el | |||
| @@ -394,18 +394,19 @@ do the work." | |||
| 394 | (if (equal nil mh-mime-save-parts-default-directory) | 394 | (if (equal nil mh-mime-save-parts-default-directory) |
| 395 | (setq mh-mime-save-parts-directory directory)) | 395 | (setq mh-mime-save-parts-directory directory)) |
| 396 | (with-current-buffer (get-buffer-create mh-log-buffer) | 396 | (with-current-buffer (get-buffer-create mh-log-buffer) |
| 397 | (cd directory) | 397 | (let (default-directory) |
| 398 | (setq mh-mime-save-parts-directory directory) | 398 | (cd directory) |
| 399 | (let ((initial-size (mh-truncate-log-buffer))) | 399 | (setq mh-mime-save-parts-directory directory) |
| 400 | (apply #'call-process | 400 | (let ((initial-size (mh-truncate-log-buffer))) |
| 401 | (expand-file-name command mh-progs) nil t nil | 401 | (apply #'call-process |
| 402 | (mh-list-to-string (list folder msg "-auto" | 402 | (expand-file-name command mh-progs) nil t nil |
| 403 | (if (not (mh-variant-p 'nmh)) | 403 | (mh-list-to-string (list folder msg "-auto" |
| 404 | "-store")))) | 404 | (if (not (mh-variant-p 'nmh)) |
| 405 | (if (> (buffer-size) initial-size) | 405 | "-store")))) |
| 406 | (save-window-excursion | 406 | (if (> (buffer-size) initial-size) |
| 407 | (switch-to-buffer-other-window mh-log-buffer) | 407 | (save-window-excursion |
| 408 | (sit-for 3)))))))) | 408 | (switch-to-buffer-other-window mh-log-buffer) |
| 409 | (sit-for 3))))))))) | ||
| 409 | 410 | ||
| 410 | ;;;###mh-autoload | 411 | ;;;###mh-autoload |
| 411 | (defun mh-toggle-mh-decode-mime-flag () | 412 | (defun mh-toggle-mh-decode-mime-flag () |