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: Eduard Wiebe <usenet <at> pusto.de>
To: 10445 <at> debbugs.gnu.org
Subject: bug#10445: 24.0.92; patch: dired.el: mark files by regexp
Date: Fri, 06 Jan 2012 22:17:32 +0100
[Message part 1 (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 3 (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.