mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Make `d' in Dired skip dot files
* lisp/dired.el (dired-mark): Skip dot files (bug#38729). This makes `C-u 10 d' (etc) consistent with marking the next ten lines with the mouse and then hitting `d'.
This commit is contained in:
parent
a9b393c773
commit
4b15b88e71
2 changed files with 13 additions and 1 deletions
8
etc/NEWS
8
etc/NEWS
|
|
@ -136,6 +136,14 @@ of 'user-emacs-directory'.
|
|||
|
||||
* Incompatible changes in Emacs 29.1
|
||||
|
||||
---
|
||||
** The 'd' command in Dired now more consistently skip dot files.
|
||||
In previous Emacs versions, commands like `C-u 10 d' would put the "D"
|
||||
mark on the next ten files, no matter whether they were dot files
|
||||
(i.e., "." and "..") or not, while marking the next ten lines with the
|
||||
mouse (in 'transient-mark-mode') and then hitting 'd' would skip dot
|
||||
files. These now work equivalently.
|
||||
|
||||
---
|
||||
** Isearch in "*Help*" and "*info*" now char-folds quote characters by default.
|
||||
This means that you can say 'C-s `foo' (GRAVE ACCENT) if the buffer
|
||||
|
|
|
|||
|
|
@ -3957,7 +3957,11 @@ this subdir."
|
|||
(let ((inhibit-read-only t))
|
||||
(dired-repeat-over-lines
|
||||
(prefix-numeric-value arg)
|
||||
(lambda () (delete-char 1) (insert dired-marker-char)))))))
|
||||
(lambda ()
|
||||
(when (or (not (looking-at-p dired-re-dot))
|
||||
(not (equal dired-marker-char dired-del-marker)))
|
||||
(delete-char 1)
|
||||
(insert dired-marker-char))))))))
|
||||
|
||||
(defun dired-unmark (arg &optional interactive)
|
||||
"Unmark the file at point in the Dired buffer.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue