GNU bug report logs - #10445
24.0.92; patch: dired.el: mark files by regexp

Previous Next

Package: emacs;

Reported by: Eduard Wiebe <usenet <at> pusto.de>

Date: Fri, 6 Jan 2012 21:25:02 UTC

Severity: minor

Tags: patch

Found in version 24.0.92

Fixed in version 24.0.93

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eduard Wiebe <usenet <at> pusto.de>
Subject: bug#10445: closed (Re: bug#10445: 24.0.92; patch: dired.el: mark
 files by regexp)
Date: Fri, 27 Jan 2012 21:43:02 +0000
[Message part 1 (text/plain, inline)]
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 10445 <at> debbugs.gnu.org.

-- 
10445: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10445
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 10445-done <at> debbugs.gnu.org
Subject: Re: bug#10445: 24.0.92; patch: dired.el: mark files by regexp
Date: Fri, 27 Jan 2012 16:41:47 -0500
Version: 24.0.93

Thank you; applied.

[Message part 3 (message/rfc822, inline)]
From: Eduard Wiebe <usenet <at> pusto.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.92; patch: dired.el: mark files by regexp
Date: Fri, 06 Jan 2012 22:17:32 +0100
[Message part 4 (text/plain, inline)]
 Hi all,

i want to suggest this simple patch:

[dired.el.patch (text/x-diff, inline)]
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)
[Message part 6 (text/plain, inline)]
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

This bug report was last modified 13 years and 123 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.