From 279e16bbdab38c61449199c444b2edf0a1c12b91 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Mon, 10 Jan 2022 23:52:01 +0800 Subject: ibuffer: don't delete default passlist. * ibuffer.el (durand-reset-clearlist): The `durand-default-clear-passlist' should be preserved on the list. --- ibuffer.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ibuffer.el b/ibuffer.el index 4b862c1..a761eeb 100644 --- a/ibuffer.el +++ b/ibuffer.el @@ -109,7 +109,8 @@ If ARG is non-nil, reset `durand-clear-passlist' to (delq nil (mapcar (lambda (buf) - (cond ((and (stringp buf) + (cond ((car (member buf durand-default-clear-passlist))) + ((and (stringp buf) (get-buffer buf) (buffer-live-p (get-buffer buf))) buf) -- cgit v1.2.3-18-g5258