aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-05-07 02:09:00 +0000
committerKarl Heuer1994-05-07 02:09:00 +0000
commit5d2e242cb86a1aa834b8a686f5b9ca356bda3e7a (patch)
treeb4acb146d5a61ed5cc8e4687244bba15037923d3
parent24768ef9ce1bd26dd13159959d5d4e2c9ec14030 (diff)
downloademacs-5d2e242cb86a1aa834b8a686f5b9ca356bda3e7a.tar.gz
emacs-5d2e242cb86a1aa834b8a686f5b9ca356bda3e7a.zip
Provide 'resume.
(resume-process-args): Bind `command-line-default-directory' for command-line-1.
-rw-r--r--lisp/resume.el8
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