Subject: bug#10445: closed (Re: bug#10445: 24.0.92; patch: dired.el: mark files by regexp)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 27 Jan 2012 21:43:02 +0000

Your bug report

#10445: 24.0.92; patch: dired.el: mark files by regexp

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
10445: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10445
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#10445: 24.0.92; patch: dired.el: mark files by regexp
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Fri, 27 Jan 2012 16:41:47 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 24.0.93

Thank you; applied.

Subject: 24.0.92; patch: dired.el: mark files by regexp
From: Eduard Wiebe <[email-masked]>
To: [email-masked]
Date: Fri, 06 Jan 2012 22:17:32 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

 Hi all,

i want to suggest this simple patch:

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)

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