]> git.eshelyaron.com Git - emacs.git/commitdiff
(ibuffer-define-filter filename): Use plain old `buffer-file-name'
authorJohn Paul Wallington <jpw@pobox.com>
Sun, 10 Aug 2008 03:43:47 +0000 (03:43 +0000)
committerJohn Paul Wallington <jpw@pobox.com>
Sun, 10 Aug 2008 03:43:47 +0000 (03:43 +0000)
instead of `ibuffer-buffer-file-name'.

lisp/ibuf-ext.el

index 2046c9a2b756119c157f2fc942b65badfbb78024..485a7351ff9fa4b7f34390bae84c62a70cdac406 100644 (file)
@@ -1041,9 +1041,8 @@ currently used by buffers."
   "Toggle current view to buffers with filename matching QUALIFIER."
   (:description "filename"
    :reader (read-from-minibuffer "Filter by filename (regexp): "))
-  (ibuffer-awhen (with-current-buffer buf
-                  (ibuffer-buffer-file-name))
-                (string-match qualifier it)))
+  (ibuffer-awhen (buffer-local-value 'buffer-file-name buf)
+    (string-match qualifier it)))
 
 ;;;###autoload (autoload 'ibuffer-filter-by-size-gt  "ibuf-ext")
 (define-ibuffer-filter size-gt