comparison lisp/files.el @ 57830:c139689dbd5d

(large-file-warning-threshold): Add :version keyword. (kill-some-buffers): Doc fix.
author John Paul Wallington <jpw@pobox.com>
date Mon, 01 Nov 2004 07:56:17 +0000
parents c0463887998f
children 78c9886e4daf
comparison
equal deleted inserted replaced
57829:95e2d2018daa 57830:c139689dbd5d
1223 (defcustom large-file-warning-threshold 10000000 1223 (defcustom large-file-warning-threshold 10000000
1224 "Maximum size of file above which a confirmation is requested. 1224 "Maximum size of file above which a confirmation is requested.
1225 When nil, never request confirmation." 1225 When nil, never request confirmation."
1226 :group 'files 1226 :group 'files
1227 :group 'find-file 1227 :group 'find-file
1228 :version "21.4"
1228 :type '(choice integer (const :tag "Never request confirmation" nil))) 1229 :type '(choice integer (const :tag "Never request confirmation" nil)))
1229 1230
1230 (defun find-file-noselect (filename &optional nowarn rawfile wildcards) 1231 (defun find-file-noselect (filename &optional nowarn rawfile wildcards)
1231 "Read file FILENAME into a buffer and return the buffer. 1232 "Read file FILENAME into a buffer and return the buffer.
1232 If a buffer exists visiting FILENAME, return that one, but 1233 If a buffer exists visiting FILENAME, return that one, but
3811 (message "No files can be recovered from this session now"))) 3812 (message "No files can be recovered from this session now")))
3812 (kill-buffer buffer)))) 3813 (kill-buffer buffer))))
3813 3814
3814 (defun kill-some-buffers (&optional list) 3815 (defun kill-some-buffers (&optional list)
3815 "Kill some buffers. Asks the user whether to kill each one of them. 3816 "Kill some buffers. Asks the user whether to kill each one of them.
3816 Non-interactively, if optional argument LIST is non-`nil', it 3817 Non-interactively, if optional argument LIST is non-nil, it
3817 specifies the list of buffers to kill, asking for approval for each one." 3818 specifies the list of buffers to kill, asking for approval for each one."
3818 (interactive) 3819 (interactive)
3819 (if (null list) 3820 (if (null list)
3820 (setq list (buffer-list))) 3821 (setq list (buffer-list)))
3821 (while list 3822 (while list