Commit 18e9cb8f authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

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
parent 6b38e34a
Pipeline #2935 failed with stage
in 90 minutes and 1 second
......@@ -1846,7 +1846,8 @@ When BUF nil, default to the buffer at current line."
(stringp dired-directory)
(when name
(string-match regexp name))))))
;; Match on the displayed file name (which is abbreviated).
(string-match regexp (abbreviate-file-name name)))))))
(defun ibuffer-mark-by-content-regexp (regexp &optional all-buffers)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment