* bug#10445: 24.0.92; patch: dired.el: mark files by regexp
@ 2012-01-06 21:17 Eduard Wiebe
2012-01-27 21:41 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Eduard Wiebe @ 2012-01-06 21:17 UTC (permalink / raw
To: 10445
[-- Attachment #1: Type: text/plain, Size: 49 bytes --]
Hi all,
i want to suggest this simple patch:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: dired.el.patch --]
[-- Type: text/x-diff, Size: 548 bytes --]
diff -r 068c58b8caca lisp/dired.el
--- a/lisp/dired.el Thu Jan 05 09:03:42 2012 +0100
+++ b/lisp/dired.el Thu Jan 05 09:07:14 2012 +0100
@@ -3103,8 +3103,8 @@
(dired-mark-if
(and (not (looking-at dired-re-dot))
(not (eolp)) ; empty line
- (let ((fn (dired-get-filename nil t)))
- (and fn (string-match regexp (file-name-nondirectory fn)))))
+ (let ((fn (dired-get-filename t t)))
+ (and fn (string-match regexp fn))))
"matching file")))
(defun dired-mark-files-containing-regexp (regexp &optional
marker-char)
[-- Attachment #3: Type: text/plain, Size: 215 bytes --]
With this patch i am able to mark entries in dired buffer even when these contain
directory parts.
(Try `find-dired' in emacs.bzr/trunk/test and mark all
entries files in "automated/" entries.)
--
Eduard Wiebe
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#10445: 24.0.92; patch: dired.el: mark files by regexp
2012-01-06 21:17 bug#10445: 24.0.92; patch: dired.el: mark files by regexp Eduard Wiebe
@ 2012-01-27 21:41 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2012-01-27 21:41 UTC (permalink / raw
To: 10445-done
Version: 24.0.93
Thank you; applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-27 21:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-06 21:17 bug#10445: 24.0.92; patch: dired.el: mark files by regexp Eduard Wiebe
2012-01-27 21:41 ` Glenn Morris
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.