* lisp/dired.el (dired-mark-files-regexp): Add file name
and its extension to the list of suggested defaults. (Bug#25578)
(interactive
(list (read-regexp (concat (if current-prefix-arg "Unmark" "Mark")
" files (regexp): ")
- nil 'dired-regexp-history)
+ ;; Add more suggestions into the default list
+ (cons nil (list (dired-get-filename t t)
+ (and (dired-get-filename nil t)
+ (concat (regexp-quote
+ (file-name-extension
+ (dired-get-filename nil t) t))
+ "\\'"))))
+ 'dired-regexp-history)
(if current-prefix-arg ?\040)))
(let ((dired-marker-char (or marker-char dired-marker-char)))
(dired-mark-if