projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d536f2
)
Fix tramp-revert-buffer-with-sudo
author
Michael Albinus
<michael.albinus@gmx.de>
Tue, 17 Oct 2023 09:41:12 +0000
(11:41 +0200)
committer
Michael Albinus
<michael.albinus@gmx.de>
Tue, 17 Oct 2023 09:41:12 +0000
(11:41 +0200)
* lisp/net/tramp-cmds.el (tramp-revert-buffer-with-sudo):
Use `buffer-file-name' instead of `buffer-name'. (Bug#66571)
lisp/net/tramp-cmds.el
patch
|
blob
|
history
diff --git
a/lisp/net/tramp-cmds.el
b/lisp/net/tramp-cmds.el
index 22fb7eee8f398cba98a5ac60ec30edc75d6930a7..f56c93c370dbea534328d3887d20bafa7528d9fa 100644
(file)
--- a/
lisp/net/tramp-cmds.el
+++ b/
lisp/net/tramp-cmds.el
@@
-610,7
+610,7
@@
If the buffer runs `dired', the buffer is reverted."
(interactive)
(cond
((buffer-file-name)
- (find-alternate-file (tramp-file-name-with-sudo (buffer-name))))
+ (find-alternate-file (tramp-file-name-with-sudo (buffer-
file-
name))))
((tramp-dired-buffer-p)
(dired-unadvertise (expand-file-name default-directory))
(setq default-directory (tramp-file-name-with-sudo default-directory)