aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-01-01 23:50:19 +0000
committerRichard M. Stallman1996-01-01 23:50:19 +0000
commit1f7f78f1abb5db40a6b04a51fe481a3bc5f4cea6 (patch)
tree0854a62acf0976e463fb8ec9f5950e1bfc0d2db0
parent21590f63ea589bdd953f88a720b406a3b0513f52 (diff)
downloademacs-1f7f78f1abb5db40a6b04a51fe481a3bc5f4cea6.tar.gz
emacs-1f7f78f1abb5db40a6b04a51fe481a3bc5f4cea6.zip
(auto-save-list-file-prefix): Under MS-DOS, use `.s-'.
(normal-top-level): Under MS-DOS, use `make-temp-name' to produce a unique `auto-save-list-file-name' (PID is not unique enough). (command-line-1): Delete explicit test for msdos and windowsnt; test just `window-system'. (command-line-x-option-alist): Use x-handle-geometry for geometry options.
-rw-r--r--lisp/startup.el28
1 files changed, 17 insertions, 11 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 8b698e5960a..d8d432c279c 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -172,8 +172,8 @@ This is normally copied from `default-directory' when Emacs starts.")
172 ("-fn" 1 x-handle-switch font) 172 ("-fn" 1 x-handle-switch font)
173 ("-font" 1 x-handle-switch font) 173 ("-font" 1 x-handle-switch font)
174 ("-ib" 1 x-handle-numeric-switch internal-border-width) 174 ("-ib" 1 x-handle-numeric-switch internal-border-width)
175 ("-g" 1 x-handle-switch geometry) 175 ("-g" 1 x-handle-geometry)
176 ("-geometry" 1 x-handle-switch geometry) 176 ("-geometry" 1 x-handle-geometry)
177 ("-fg" 1 x-handle-switch foreground-color) 177 ("-fg" 1 x-handle-switch foreground-color)
178 ("-foreground" 1 x-handle-switch foreground-color) 178 ("-foreground" 1 x-handle-switch foreground-color)
179 ("-bg" 1 x-handle-switch background-color) 179 ("-bg" 1 x-handle-switch background-color)
@@ -194,7 +194,7 @@ This is normally copied from `default-directory' when Emacs starts.")
194 ("--reverse-video" 0 x-handle-switch reverse t) 194 ("--reverse-video" 0 x-handle-switch reverse t)
195 ("--font" 1 x-handle-switch font) 195 ("--font" 1 x-handle-switch font)
196 ("--internal-border" 1 x-handle-numeric-switch internal-border-width) 196 ("--internal-border" 1 x-handle-numeric-switch internal-border-width)
197 ("--geometry" 1 x-handle-switch geometry) 197 ("--geometry" 1 x-handle-geometry)
198 ("--foreground-color" 1 x-handle-switch foreground-color) 198 ("--foreground-color" 1 x-handle-switch foreground-color)
199 ("--background-color" 1 x-handle-switch background-color) 199 ("--background-color" 1 x-handle-switch background-color)
200 ("--mouse-color" 1 x-handle-switch mouse-color) 200 ("--mouse-color" 1 x-handle-switch mouse-color)
@@ -284,7 +284,10 @@ specified by the LC_ALL, LC_CTYPE and LANG environment variables.")
284This is initialized based on `mail-host-address', 284This is initialized based on `mail-host-address',
285after your init file is read, in case it sets `mail-host-address'.") 285after your init file is read, in case it sets `mail-host-address'.")
286 286
287(defvar auto-save-list-file-prefix "~/.saves-" 287(defvar auto-save-list-file-prefix
288 (if (eq system-type 'ms-dos)
289 "~/_s" ; MS-DOS cannot have initial dot, and allows only 8.3 names
290 "~/.saves-")
288 "Prefix for generating `auto-save-list-file-name'. 291 "Prefix for generating `auto-save-list-file-name'.
289This is used after reading your `.emacs' file to initialize 292This is used after reading your `.emacs' file to initialize
290`auto-save-list-file-name', by appending Emacs's pid and the system name, 293`auto-save-list-file-name', by appending Emacs's pid and the system name,
@@ -347,11 +350,15 @@ from being initialized.")
347 (or auto-save-list-file-name 350 (or auto-save-list-file-name
348 (and auto-save-list-file-prefix 351 (and auto-save-list-file-prefix
349 (setq auto-save-list-file-name 352 (setq auto-save-list-file-name
350 (expand-file-name 353 ;; Under MS-DOS our PID is almost always reused between
351 (format "%s%d-%s" 354 ;; Emacs invocations. We need something more unique.
352 auto-save-list-file-prefix 355 (if (eq system-type 'ms-dos)
353 (emacs-pid) 356 (make-temp-name
354 (system-name)))))) 357 (expand-file-name auto-save-list-file-prefix))
358 (expand-file-name (format "%s%d-%s"
359 auto-save-list-file-prefix
360 (emacs-pid)
361 (system-name)))))))
355 (run-hooks 'emacs-startup-hook) 362 (run-hooks 'emacs-startup-hook)
356 (and term-setup-hook 363 (and term-setup-hook
357 (run-hooks 'term-setup-hook)) 364 (run-hooks 'term-setup-hook))
@@ -716,8 +723,7 @@ Type \\[info] to enter Info, which you can use to read GNU documentation."
716 723
717 ;; Windows and MSDOS (currently) do not count as 724 ;; Windows and MSDOS (currently) do not count as
718 ;; window systems, but do have mouse support. 725 ;; window systems, but do have mouse support.
719 (if (or (memq system-type '(msdos windowsnt)) 726 (if window-system
720 window-system)
721 (insert "\n 727 (insert "\n
722C-mouse-3 (third mouse button, with Control) gets a mode-specific menu.")) 728C-mouse-3 (third mouse button, with Control) gets a mode-specific menu."))
723 (if (directory-files (file-name-directory auto-save-list-file-prefix) 729 (if (directory-files (file-name-directory auto-save-list-file-prefix)