Mercurial > emacs
changeset 6085:b44d5d121bc5
(set-visited-file-name): Unlock the file if setting the visited file name to
nil.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 25 Feb 1994 03:24:15 +0000 |
parents | d42c85701055 |
children | fc2dc869f5d4 |
files | lisp/files.el |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/files.el Fri Feb 25 01:42:03 1994 +0000 +++ b/lisp/files.el Fri Feb 25 03:24:15 1994 +0000 @@ -1151,9 +1151,8 @@ nil (expand-file-name filename)))) (or (equal filename buffer-file-name) - (null filename) (progn - (lock-buffer filename) + (and filename (lock-buffer filename)) (unlock-buffer))) (setq buffer-file-name filename) (if filename ; make buffer name reflect filename.