GNU bug report logs -
#10987
ibuffer: remove "No Buffers" error
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hi gurus,
I noticed a little issue with ibuffer on GNU Emacs 24.0.94.1
(x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-03-10.
I use ibuffer-never-show-predicates to reduce the list of buffers in
ibuffer. This works fine whilst there are buffers for ibuffer to
display. If there are no buffers, ibuffer will error (and will leave an
unusable ibuffer-buffer behind). What the point behind this error? I
think that no buffers is a perfectly legitimate situation.
Recipe:
emacs -q
eval: (require 'ibuf-ext)
(push "" ibuffer-never-show-predicates)
M-x ibuffer RET
I think the whole error should be removed.
[ibuffer.diff (text/x-diff, inline)]
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 17be553..7db4cc4 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -2140,11 +2140,10 @@ If optional arg SILENT is non-nil, do not display progress messages."
(unless silent
(message "Redisplaying current buffer list..."))
(let ((blist (ibuffer-current-state-list)))
- (when (null blist)
- (if (and (featurep 'ibuf-ext)
+ (when (and (null blist)
+ (featurep 'ibuf-ext)
(or ibuffer-filtering-qualifiers ibuffer-hidden-filter-groups))
- (message "No buffers! (note: filtering in effect)")
- (error "No buffers!")))
+ (message "No buffers! (note: filtering in effect)"))
(ibuffer-redisplay-engine blist t)
(unless silent
(message "Redisplaying current buffer list...done"))
[Message part 3 (text/plain, inline)]
Christopher
This bug report was last modified 13 years and 71 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.