Mercurial > hg > xemacs-beta
diff lisp/files.el @ 276:6330739388db r21-0b36
Import from CVS: tag r21-0b36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:30:37 +0200 |
parents | ca9a9ec9c1c1 |
children | 7df0dd720c89 |
line wrap: on
line diff
--- a/lisp/files.el Mon Aug 13 10:29:43 2007 +0200 +++ b/lisp/files.el Mon Aug 13 10:30:37 2007 +0200 @@ -129,11 +129,12 @@ :group 'backup) (defvar backup-enable-predicate - '(lambda (name) - (not (or (string-match "^/tmp/" name) + #'(lambda (name) + (not (or (null name) + (string-match "^/tmp/" name) (let ((tmpdir (temp-directory))) (and tmpdir - (string-match (concat "^" (regexp-quote tmpdir) "/") + (string-match (concat "\\`" (regexp-quote tmpdir) "/") tmpdir)))))) "Predicate that looks at a file name and decides whether to make backups. Called with an absolute file name as argument, it returns t to enable backup.") @@ -2454,7 +2455,7 @@ (set-buffer-modified-p arg)) (defun toggle-read-only (&optional arg) - "Change whether this buffer is visiting its file read-only. + "Toggle the current buffer's read-only status. With arg, set read-only iff arg is positive." (interactive "_P") (setq buffer-read-only