diff options
| -rw-r--r-- | lisp/resume.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/resume.el b/lisp/resume.el index 57019bed65e..a41a729a809 100644 --- a/lisp/resume.el +++ b/lisp/resume.el | |||
| @@ -97,7 +97,8 @@ | |||
| 97 | "Handler for command line args given when Emacs is resumed." | 97 | "Handler for command line args given when Emacs is resumed." |
| 98 | (let ((start-buffer (current-buffer)) | 98 | (let ((start-buffer (current-buffer)) |
| 99 | (args-buffer (get-buffer-create resume-emacs-args-buffer)) | 99 | (args-buffer (get-buffer-create resume-emacs-args-buffer)) |
| 100 | length args) | 100 | length args |
| 101 | (command-line-default-directory default-directory)) | ||
| 101 | (unwind-protect | 102 | (unwind-protect |
| 102 | (progn | 103 | (progn |
| 103 | (set-buffer args-buffer) | 104 | (set-buffer args-buffer) |
| @@ -127,7 +128,8 @@ | |||
| 127 | (resume-write-buffer-to-file (current-buffer) resume-emacs-args-file) | 128 | (resume-write-buffer-to-file (current-buffer) resume-emacs-args-file) |
| 128 | ;; if nothing was in buffer, args will be null | 129 | ;; if nothing was in buffer, args will be null |
| 129 | (or (null args) | 130 | (or (null args) |
| 130 | (setq default-directory (file-name-as-directory (car args)) | 131 | (setq command-line-default-directory |
| 132 | (file-name-as-directory (car args)) | ||
| 131 | args (cdr args))) | 133 | args (cdr args))) |
| 132 | ;; actually process the arguments | 134 | ;; actually process the arguments |
| 133 | (command-line-1 args)) | 135 | (command-line-1 args)) |
| @@ -161,4 +163,6 @@ | |||
| 161 | (write-region (point-min) (point-max) file nil 'quiet)) | 163 | (write-region (point-min) (point-max) file nil 'quiet)) |
| 162 | (set-buffer-modified-p nil))) | 164 | (set-buffer-modified-p nil))) |
| 163 | 165 | ||
| 166 | (provide 'resume) | ||
| 167 | |||
| 164 | ;;; resume.el ends here | 168 | ;;; resume.el ends here |