mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(dired-undo): Call `dired-build-subdir-alist'.
Limit scope of `buffer-read-only' binding.
This commit is contained in:
parent
08384afd01
commit
487327a9ef
2 changed files with 10 additions and 6 deletions
|
|
@ -1448,14 +1448,13 @@ Keybindings:
|
|||
(defun dired-undo ()
|
||||
"Undo in a dired buffer.
|
||||
This doesn't recover lost files, it just undoes changes in the buffer itself.
|
||||
You can use it to recover marks, killed lines or subdirs.
|
||||
In the latter case, you have to do \\[dired-build-subdir-alist] to
|
||||
parse the buffer again."
|
||||
You can use it to recover marks, killed lines or subdirs."
|
||||
(interactive)
|
||||
(let (buffer-read-only)
|
||||
(undo)
|
||||
(message "Change in Dired buffer undone.
|
||||
Actual changes in files cannot be undone by Emacs.")))
|
||||
(undo))
|
||||
(dired-build-subdir-alist)
|
||||
(message "Change in Dired buffer undone.
|
||||
Actual changes in files cannot be undone by Emacs."))
|
||||
|
||||
(defun dired-next-line (arg)
|
||||
"Move down lines then position at filename.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue