[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 18e9cb8: Make ibuffer-mark-by-file-name-regexp work
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 18e9cb8: Make ibuffer-mark-by-file-name-regexp work on the displayed file name |
Date: |
Thu, 22 Aug 2019 20:52:29 -0400 (EDT) |
branch: master
commit 18e9cb8f431e4b7520e99854b423c25d546335be
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Make ibuffer-mark-by-file-name-regexp work on the displayed file name
* lisp/ibuf-ext.el (ibuffer-mark-by-file-name-regexp): Perform the
matching on the abbreviated (i.e., displayed) file name, and not
the complete name (bug#18859). This seems like the more expected
action.
---
lisp/ibuf-ext.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el
index 1b69574..06a2248 100644
--- a/lisp/ibuf-ext.el
+++ b/lisp/ibuf-ext.el
@@ -1846,7 +1846,8 @@ When BUF nil, default to the buffer at current line."
(stringp dired-directory)
dired-directory)))))
(when name
- (string-match regexp name))))))
+ ;; Match on the displayed file name (which is abbreviated).
+ (string-match regexp (abbreviate-file-name name)))))))
;;;###autoload
(defun ibuffer-mark-by-content-regexp (regexp &optional all-buffers)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 18e9cb8: Make ibuffer-mark-by-file-name-regexp work on the displayed file name,
Lars Ingebrigtsen <=