Mercurial > emacs
changeset 7385:ad1c04ef7695
Provide 'resume.
(resume-process-args): Bind `command-line-default-directory' for
command-line-1.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Sat, 07 May 1994 02:09:00 +0000 |
parents | 2395bbd3dd6e |
children | 60b718b9aac6 |
files | lisp/resume.el |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/resume.el Sat May 07 01:58:40 1994 +0000 +++ b/lisp/resume.el Sat May 07 02:09:00 1994 +0000 @@ -97,7 +97,8 @@ "Handler for command line args given when Emacs is resumed." (let ((start-buffer (current-buffer)) (args-buffer (get-buffer-create resume-emacs-args-buffer)) - length args) + length args + (command-line-default-directory default-directory)) (unwind-protect (progn (set-buffer args-buffer) @@ -127,7 +128,8 @@ (resume-write-buffer-to-file (current-buffer) resume-emacs-args-file) ;; if nothing was in buffer, args will be null (or (null args) - (setq default-directory (file-name-as-directory (car args)) + (setq command-line-default-directory + (file-name-as-directory (car args)) args (cdr args))) ;; actually process the arguments (command-line-1 args)) @@ -161,4 +163,6 @@ (write-region (point-min) (point-max) file nil 'quiet)) (set-buffer-modified-p nil))) +(provide 'resume) + ;;; resume.el ends here