diff options
| author | Richard M. Stallman | 2001-11-21 12:04:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-11-21 12:04:17 +0000 |
| commit | eb61b61b2659f83edbadd24df2ba08cea61b4efb (patch) | |
| tree | 0ca177261c5d84c87320e060c472771d6f64cfa1 | |
| parent | 8e3acc66298b71b3ca8c5c12691b2dcb6ea8403f (diff) | |
| download | emacs-eb61b61b2659f83edbadd24df2ba08cea61b4efb.tar.gz emacs-eb61b61b2659f83edbadd24df2ba08cea61b4efb.zip | |
(temporary-file-directory)
(small-temporary-file-directory): Definitions moved up.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/files.el | 40 |
2 files changed, 23 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 75cea91a253..0a842a59c66 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2001-11-21 Richard M. Stallman <rms@gnu.org> | 1 | 2001-11-21 Richard M. Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * files.el (temporary-file-directory, null-device) | ||
| 4 | (small-temporary-file-directory): Definitions moved up. | ||
| 5 | |||
| 3 | * progmodes/cperl-mode.el (cperl-problems, cperl-tips) | 6 | * progmodes/cperl-mode.el (cperl-problems, cperl-tips) |
| 4 | (cperl-non-problems, cperl-praise): Doc fixes. | 7 | (cperl-non-problems, cperl-praise): Doc fixes. |
| 5 | 8 | ||
diff --git a/lisp/files.el b/lisp/files.el index 8d447f8e7a8..e86c9d8db54 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -201,6 +201,26 @@ If the buffer is visiting a new file, the value is nil.") | |||
| 201 | "Non-nil if visited file was read-only when visited.") | 201 | "Non-nil if visited file was read-only when visited.") |
| 202 | (make-variable-buffer-local 'buffer-file-read-only) | 202 | (make-variable-buffer-local 'buffer-file-read-only) |
| 203 | 203 | ||
| 204 | (defvar temporary-file-directory | ||
| 205 | (file-name-as-directory | ||
| 206 | (cond ((memq system-type '(ms-dos windows-nt)) | ||
| 207 | (or (getenv "TEMP") (getenv "TMPDIR") (getenv "TMP") "c:/temp")) | ||
| 208 | ((memq system-type '(vax-vms axp-vms)) | ||
| 209 | (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") "SYS$SCRATCH:")) | ||
| 210 | (t | ||
| 211 | (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") "/tmp")))) | ||
| 212 | "The directory for writing temporary files.") | ||
| 213 | |||
| 214 | (defvar small-temporary-file-directory | ||
| 215 | (if (eq system-type 'ms-dos) (getenv "TMPDIR")) | ||
| 216 | "The directory for writing small temporary files. | ||
| 217 | If non-nil, this directory is used instead of `temporary-file-directory' | ||
| 218 | by programs that create small temporary files. This is for systems that | ||
| 219 | have fast storage with limited space, such as a RAM disk.") | ||
| 220 | |||
| 221 | ;; The system null device. (Should reference NULL_DEVICE from C.) | ||
| 222 | (defvar null-device "/dev/null" "The system null device.") | ||
| 223 | |||
| 204 | (defvar file-name-invalid-regexp | 224 | (defvar file-name-invalid-regexp |
| 205 | (cond ((and (eq system-type 'ms-dos) (not (msdos-long-file-names))) | 225 | (cond ((and (eq system-type 'ms-dos) (not (msdos-long-file-names))) |
| 206 | (concat "^\\([^A-Z[-`a-z]\\|..+\\)?:\\|" ; colon except after drive | 226 | (concat "^\\([^A-Z[-`a-z]\\|..+\\)?:\\|" ; colon except after drive |
| @@ -428,26 +448,6 @@ and ignores this variable." | |||
| 428 | (defvar view-read-only nil | 448 | (defvar view-read-only nil |
| 429 | "*Non-nil means buffers visiting files read-only, do it in view mode.") | 449 | "*Non-nil means buffers visiting files read-only, do it in view mode.") |
| 430 | 450 | ||
| 431 | (defvar temporary-file-directory | ||
| 432 | (file-name-as-directory | ||
| 433 | (cond ((memq system-type '(ms-dos windows-nt)) | ||
| 434 | (or (getenv "TEMP") (getenv "TMPDIR") (getenv "TMP") "c:/temp")) | ||
| 435 | ((memq system-type '(vax-vms axp-vms)) | ||
| 436 | (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") "SYS$SCRATCH:")) | ||
| 437 | (t | ||
| 438 | (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") "/tmp")))) | ||
| 439 | "The directory for writing temporary files.") | ||
| 440 | |||
| 441 | (defvar small-temporary-file-directory | ||
| 442 | (if (eq system-type 'ms-dos) (getenv "TMPDIR")) | ||
| 443 | "The directory for writing small temporary files. | ||
| 444 | If non-nil, this directory is used instead of `temporary-file-directory' | ||
| 445 | by programs that create small temporary files. This is for systems that | ||
| 446 | have fast storage with limited space, such as a RAM disk.") | ||
| 447 | |||
| 448 | ;; The system null device. (Should reference NULL_DEVICE from C.) | ||
| 449 | (defvar null-device "/dev/null" "The system null device.") | ||
| 450 | |||
| 451 | (defun ange-ftp-completion-hook-function (op &rest args) | 451 | (defun ange-ftp-completion-hook-function (op &rest args) |
| 452 | "Provides support for ange-ftp host name completion. | 452 | "Provides support for ange-ftp host name completion. |
| 453 | Runs the usual ange-ftp hook, but only for completion operations." | 453 | Runs the usual ange-ftp hook, but only for completion operations." |