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: Glenn Morris <rgm <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#10445: closed (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 message dated Fri, 27 Jan 2012 16:41:47 -0500
with message-id <j8y5sssu04.fsf <at> fencepost.gnu.org>
and subject line Re: bug#10445: 24.0.92; patch: dired.el: mark files by regexp
has caused the debbugs.gnu.org bug report #10445,
regarding 24.0.92; patch: dired.el: mark files by regexp
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> 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: 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 3 (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 5 (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
[Message part 6 (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.


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.