From 8d4c2221cd8ff2acb627a16c1154560be80e5e54 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 8 Apr 1995 05:05:32 +0000 Subject: [PATCH] (normal-top-level): Copy default-directory from *scratch* to *Messages*. --- lisp/startup.el | 6 ++++++ 1 file changed, 6 insertions(+) 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, -- 2.39.5