chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9841a8c
)
el/dot-emacs.el: Replace `directory-name-p' by a circumlocution.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 26 Aug 2020 12:02:30 +0000
(13:02 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 26 Aug 2020 12:15:37 +0000
(13:15 +0100)
I hadn't noticed that this function doesn't exist in Emacs 24.
el/dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/el/dot-emacs.el
b/el/dot-emacs.el
index c138bda390ede95a223a4c634b764fda0b0ffd77..dafedfd7531b8c921ff1bba12fe61fecda5b7043 100644
(file)
--- a/
el/dot-emacs.el
+++ b/
el/dot-emacs.el
@@
-617,7
+617,7
@@
(defadvice rename-file (after mdw-rename-buffers (from to &optional forcep)
(unless mdw-inhibit-rename-buffer
(let ((buffer (get-file-buffer from)))
(when buffer
- (let ((to (if (not (
directory-name-p to
)) to
+ (let ((to (if (not (
string= (file-name-nondirectory to) ""
)) to
(concat to (file-name-nondirectory from)))))
(with-current-buffer buffer
(set-visited-file-name to nil t)))))))