diff options
| author | Juanma Barranquero | 2005-07-20 01:57:49 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2005-07-20 01:57:49 +0000 |
| commit | 26b9ecbcb970a5dd631cad0e221e68bac0946e4b (patch) | |
| tree | 6e630c17d1aeaf1320b861c804d558509a754dbd | |
| parent | 3f32d6a3edf422a52ac4c06beeeb42ff22e13ad8 (diff) | |
| download | emacs-26b9ecbcb970a5dd631cad0e221e68bac0946e4b.tar.gz emacs-26b9ecbcb970a5dd631cad0e221e68bac0946e4b.zip | |
(find-file-noselect, recode-file-name): Doc fixes.
(insert-directory, kill-some-buffers): "?\ " -> "?\s".
(magic-mode-alist, buffer-file-numbers-unique, write-file-functions,
get-free-disk-space): Fix typos in docstrings.
(find-file-not-found-hooks, find-file-hooks, write-file-hooks,
write-contents-hooks, write-file-hooks): Declare with
`define-obsolete-variable-alias'.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/files.el | 42 |
2 files changed, 28 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 268547ca204..4523f3d5caa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -5,6 +5,15 @@ | |||
| 5 | (desktop-internal-v2s): Don't quote keywords. | 5 | (desktop-internal-v2s): Don't quote keywords. |
| 6 | (desktop-clear): "?\ " -> "?\s". | 6 | (desktop-clear): "?\ " -> "?\s". |
| 7 | 7 | ||
| 8 | * files.el (find-file-noselect, recode-file-name): Doc fixes. | ||
| 9 | (insert-directory, kill-some-buffers): "?\ " -> "?\s". | ||
| 10 | (magic-mode-alist, buffer-file-numbers-unique) | ||
| 11 | (write-file-functions, get-free-disk-space): | ||
| 12 | Fix typos in docstrings. | ||
| 13 | (find-file-not-found-hooks, find-file-hooks, write-file-hooks) | ||
| 14 | (write-contents-hooks, write-file-hooks): | ||
| 15 | Declare with `define-obsolete-variable-alias'. | ||
| 16 | |||
| 8 | * textmodes/org.el (org-table-formula-substitute-names) | 17 | * textmodes/org.el (org-table-formula-substitute-names) |
| 9 | (org-table-get-vertical-vector): Doc fixes. | 18 | (org-table-get-vertical-vector): Doc fixes. |
| 10 | (org-table-recalculate): Remove unused argument to `message'. | 19 | (org-table-recalculate): Remove unused argument to `message'. |
diff --git a/lisp/files.el b/lisp/files.el index 5746047ef5b..6479ef3bc92 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -159,8 +159,7 @@ both at the file level and at the levels of the containing directories." | |||
| 159 | :type 'boolean | 159 | :type 'boolean |
| 160 | :group 'find-file) | 160 | :group 'find-file) |
| 161 | 161 | ||
| 162 | (defcustom revert-without-query | 162 | (defcustom revert-without-query nil |
| 163 | nil | ||
| 164 | "*Specify which files should be reverted without query. | 163 | "*Specify which files should be reverted without query. |
| 165 | The value is a list of regular expressions. | 164 | The value is a list of regular expressions. |
| 166 | If the file name matches one of these regular expressions, | 165 | If the file name matches one of these regular expressions, |
| @@ -178,7 +177,7 @@ If the buffer is visiting a new file, the value is nil.") | |||
| 178 | (put 'buffer-file-number 'permanent-local t) | 177 | (put 'buffer-file-number 'permanent-local t) |
| 179 | 178 | ||
| 180 | (defvar buffer-file-numbers-unique (not (memq system-type '(windows-nt))) | 179 | (defvar buffer-file-numbers-unique (not (memq system-type '(windows-nt))) |
| 181 | "Non-nil means that buffer-file-number uniquely identifies files.") | 180 | "Non-nil means that `buffer-file-number' uniquely identifies files.") |
| 182 | 181 | ||
| 183 | (defvar buffer-file-read-only nil | 182 | (defvar buffer-file-read-only nil |
| 184 | "Non-nil if visited file was read-only when visited.") | 183 | "Non-nil if visited file was read-only when visited.") |
| @@ -381,9 +380,8 @@ and should return either a buffer or nil." | |||
| 381 | These functions are called as soon as the error is detected. | 380 | These functions are called as soon as the error is detected. |
| 382 | Variable `buffer-file-name' is already set up. | 381 | Variable `buffer-file-name' is already set up. |
| 383 | The functions are called in the order given until one of them returns non-nil.") | 382 | The functions are called in the order given until one of them returns non-nil.") |
| 384 | (defvaralias 'find-file-not-found-hooks 'find-file-not-found-functions) | 383 | (define-obsolete-variable-alias 'find-file-not-found-hooks |
| 385 | (make-obsolete-variable | 384 | 'find-file-not-found-functions "22.1") |
| 386 | 'find-file-not-found-hooks 'find-file-not-found-functions "22.1") | ||
| 387 | 385 | ||
| 388 | ;;;It is not useful to make this a local variable. | 386 | ;;;It is not useful to make this a local variable. |
| 389 | ;;;(put 'find-file-hooks 'permanent-local t) | 387 | ;;;(put 'find-file-hooks 'permanent-local t) |
| @@ -395,8 +393,7 @@ functions are called." | |||
| 395 | :type 'hook | 393 | :type 'hook |
| 396 | :options '(auto-insert) | 394 | :options '(auto-insert) |
| 397 | :version "22.1") | 395 | :version "22.1") |
| 398 | (defvaralias 'find-file-hooks 'find-file-hook) | 396 | (define-obsolete-variable-alias 'find-file-hooks 'find-file-hook "22.1") |
| 399 | (make-obsolete-variable 'find-file-hooks 'find-file-hook "22.1") | ||
| 400 | 397 | ||
| 401 | (defvar write-file-functions nil | 398 | (defvar write-file-functions nil |
| 402 | "List of functions to be called before writing out a buffer to a file. | 399 | "List of functions to be called before writing out a buffer to a file. |
| @@ -412,10 +409,9 @@ This hook is not run if any of the functions in | |||
| 412 | to how to save a buffer to file, for instance, choosing a suitable | 409 | to how to save a buffer to file, for instance, choosing a suitable |
| 413 | coding system and setting mode bits. (See Info | 410 | coding system and setting mode bits. (See Info |
| 414 | node `(elisp)Saving Buffers'.) To perform various checks or | 411 | node `(elisp)Saving Buffers'.) To perform various checks or |
| 415 | updates before the buffer is saved, use `before-save-hook' .") | 412 | updates before the buffer is saved, use `before-save-hook'.") |
| 416 | (put 'write-file-functions 'permanent-local t) | 413 | (put 'write-file-functions 'permanent-local t) |
| 417 | (defvaralias 'write-file-hooks 'write-file-functions) | 414 | (define-obsolete-variable-alias 'write-file-hooks 'write-file-functions "22.1") |
| 418 | (make-obsolete-variable 'write-file-hooks 'write-file-functions "22.1") | ||
| 419 | 415 | ||
| 420 | (defvar local-write-file-hooks nil) | 416 | (defvar local-write-file-hooks nil) |
| 421 | (make-variable-buffer-local 'local-write-file-hooks) | 417 | (make-variable-buffer-local 'local-write-file-hooks) |
| @@ -439,8 +435,8 @@ For hooks that _do_ pertain to the particular visited file, use | |||
| 439 | To perform various checks or updates before the buffer is saved, | 435 | To perform various checks or updates before the buffer is saved, |
| 440 | use `before-save-hook'.") | 436 | use `before-save-hook'.") |
| 441 | (make-variable-buffer-local 'write-contents-functions) | 437 | (make-variable-buffer-local 'write-contents-functions) |
| 442 | (defvaralias 'write-contents-hooks 'write-contents-functions) | 438 | (define-obsolete-variable-alias 'write-contents-hooks |
| 443 | (make-obsolete-variable 'write-contents-hooks 'write-contents-functions "22.1") | 439 | 'write-contents-functions "22.1") |
| 444 | 440 | ||
| 445 | (defcustom enable-local-variables t | 441 | (defcustom enable-local-variables t |
| 446 | "*Control use of local variables in files you visit. | 442 | "*Control use of local variables in files you visit. |
| @@ -866,8 +862,8 @@ it means chase no more than that many links and then stop." | |||
| 866 | "Change the encoding of FILE's name from CODING to NEW-CODING. | 862 | "Change the encoding of FILE's name from CODING to NEW-CODING. |
| 867 | The value is a new name of FILE. | 863 | The value is a new name of FILE. |
| 868 | Signals a `file-already-exists' error if a file of the new name | 864 | Signals a `file-already-exists' error if a file of the new name |
| 869 | already exists unless optional third argument OK-IF-ALREADY-EXISTS | 865 | already exists unless optional fourth argument OK-IF-ALREADY-EXISTS |
| 870 | is non-nil. A number as third arg means request confirmation if | 866 | is non-nil. A number as fourth arg means request confirmation if |
| 871 | the new name already exists. This is what happens in interactive | 867 | the new name already exists. This is what happens in interactive |
| 872 | use with M-x." | 868 | use with M-x." |
| 873 | (interactive | 869 | (interactive |
| @@ -1326,9 +1322,9 @@ When nil, never request confirmation." | |||
| 1326 | If a buffer exists visiting FILENAME, return that one, but | 1322 | If a buffer exists visiting FILENAME, return that one, but |
| 1327 | verify that the file has not changed since visited or saved. | 1323 | verify that the file has not changed since visited or saved. |
| 1328 | The buffer is not selected, just returned to the caller. | 1324 | The buffer is not selected, just returned to the caller. |
| 1329 | Optional first arg NOWARN non-nil means suppress any warning messages. | 1325 | Optional second arg NOWARN non-nil means suppress any warning messages. |
| 1330 | Optional second arg RAWFILE non-nil means the file is read literally. | 1326 | Optional third arg RAWFILE non-nil means the file is read literally. |
| 1331 | Optional third arg WILDCARDS non-nil means do wildcard processing | 1327 | Optional fourth arg WILDCARDS non-nil means do wildcard processing |
| 1332 | and visit all the matching files. When wildcards are actually | 1328 | and visit all the matching files. When wildcards are actually |
| 1333 | used and expanded, return a list of buffers that are visiting | 1329 | used and expanded, return a list of buffers that are visiting |
| 1334 | the various files." | 1330 | the various files." |
| @@ -2000,7 +1996,7 @@ if REGEXP matches the text at the beginning of the buffer, | |||
| 2000 | to decide the buffer's major mode. | 1996 | to decide the buffer's major mode. |
| 2001 | 1997 | ||
| 2002 | If FUNCTION is nil, then it is not called. (That is a way of saying | 1998 | If FUNCTION is nil, then it is not called. (That is a way of saying |
| 2003 | \"allow `auto-mode-alist' to decide for these files.)") | 1999 | \"allow `auto-mode-alist' to decide for these files.\")") |
| 2004 | 2000 | ||
| 2005 | (defun set-auto-mode (&optional keep-mode-if-same) | 2001 | (defun set-auto-mode (&optional keep-mode-if-same) |
| 2006 | "Select major mode appropriate for current buffer. | 2002 | "Select major mode appropriate for current buffer. |
| @@ -4009,7 +4005,7 @@ specifies the list of buffers to kill, asking for approval for each one." | |||
| 4009 | (and name ; Can be nil for an indirect buffer | 4005 | (and name ; Can be nil for an indirect buffer |
| 4010 | ; if we killed the base buffer. | 4006 | ; if we killed the base buffer. |
| 4011 | (not (string-equal name "")) | 4007 | (not (string-equal name "")) |
| 4012 | (/= (aref name 0) ? ) | 4008 | (/= (aref name 0) ?\s) |
| 4013 | (yes-or-no-p | 4009 | (yes-or-no-p |
| 4014 | (format "Buffer %s %s. Kill? " | 4010 | (format "Buffer %s %s. Kill? " |
| 4015 | name | 4011 | name |
| @@ -4392,9 +4388,9 @@ preference to the program given by this variable." | |||
| 4392 | :group 'dired) | 4388 | :group 'dired) |
| 4393 | 4389 | ||
| 4394 | (defun get-free-disk-space (dir) | 4390 | (defun get-free-disk-space (dir) |
| 4395 | "Return the mount of free space on directory DIR's file system. | 4391 | "Return the amount of free space on directory DIR's file system. |
| 4396 | The result is a string that gives the number of free 1KB blocks, | 4392 | The result is a string that gives the number of free 1KB blocks, |
| 4397 | or nil if the system call or the program which retrieve the infornmation | 4393 | or nil if the system call or the program which retrieve the information |
| 4398 | fail. | 4394 | fail. |
| 4399 | 4395 | ||
| 4400 | This function calls `file-system-info' if it is available, or invokes the | 4396 | This function calls `file-system-info' if it is available, or invokes the |
| @@ -4642,7 +4638,7 @@ normally equivalent short `-D' option is just passed on to | |||
| 4642 | (end (insert-directory-adj-pos | 4638 | (end (insert-directory-adj-pos |
| 4643 | (+ beg (read (current-buffer))) | 4639 | (+ beg (read (current-buffer))) |
| 4644 | error-lines))) | 4640 | error-lines))) |
| 4645 | (if (memq (char-after end) '(?\n ?\ )) | 4641 | (if (memq (char-after end) '(?\n ?\s)) |
| 4646 | ;; End is followed by \n or by " -> ". | 4642 | ;; End is followed by \n or by " -> ". |
| 4647 | (put-text-property start end 'dired-filename t) | 4643 | (put-text-property start end 'dired-filename t) |
| 4648 | ;; It seems that we can't trust ls's output as to | 4644 | ;; It seems that we can't trust ls's output as to |