summaryrefslogtreecommitdiff
path: root/lisp/startup.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-04-08 05:05:32 +0000
committerRichard M. Stallman <rms@gnu.org>1995-04-08 05:05:32 +0000
commit8d4c2221cd8ff2acb627a16c1154560be80e5e54 (patch)
treed2948bb54c42add2f48af89fe381fe30178b8fc3 /lisp/startup.el
parent1b009b97bcad56fee09f86dc260562de7c2b8824 (diff)
downloademacs-8d4c2221cd8ff2acb627a16c1154560be80e5e54.tar.gz
(normal-top-level): Copy default-directory
from *scratch* to *Messages*.
Diffstat (limited to 'lisp/startup.el')
-rw-r--r--lisp/startup.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index cab5b3225cf..783fb9c4dfe 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -181,6 +181,12 @@ specified by the LC_ALL, LC_CTYPE and LANG environment variables.")
(if command-line-processed
(message "Back to top level.")
(setq command-line-processed t)
+ ;; Give *Messages* the same default-directory as *scratch*,
+ ;; just to keep things predictable.
+ (let ((dir default-directory))
+ (save-excursion
+ (set-buffer (get-buffer "*Messages*"))
+ (setq default-directory dir)))
;; Look in each dir in load-path for a subdirs.el file.
;; If we find one, load it, which will add the appropriate subdirs
;; of that dir into load-path,