]> git.eshelyaron.com Git - emacs.git/commitdiff
(ibuffer-buffer-file-name): Return nil rather than empty string when
authorJohn Paul Wallington <jpw@pobox.com>
Sun, 10 Aug 2008 03:42:43 +0000 (03:42 +0000)
committerJohn Paul Wallington <jpw@pobox.com>
Sun, 10 Aug 2008 03:42:43 +0000 (03:42 +0000)
no filename.
(define-ibuffer-column filename): Accomodate that change.

lisp/ibuffer.el

index 8626e6921627a431192ef5c7608ad20d78ae94b3..539f88ec3c1da21619a134c219589eb7c1d74912 100644 (file)
@@ -1245,8 +1245,7 @@ a new window in the current frame, splitting vertically."
                                  dired-directory
                                (car dired-directory)))
                         (bound-and-true-p list-buffers-directory))))
-       (and dirname (expand-file-name dirname)))
-      ""))
+       (and dirname (expand-file-name dirname)))))
 
 (define-ibuffer-op ibuffer-do-save ()
   "Save marked buffers as with `save-buffer'."
@@ -1768,7 +1767,7 @@ If point is on a group name, this function operates on that group."
             (t (format "%d files" total))))))
   (let ((directory-abbrev-alist ibuffer-directory-abbrev-alist))
     (abbreviate-file-name
-     (ibuffer-buffer-file-name))))
+     (or (ibuffer-buffer-file-name) ""))))
 
 (define-ibuffer-column filename-and-process
   (:name "Filename/Process"