summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-01-10 23:52:01 +0800
committerJSDurand <mmemmew@gmail.com>2022-01-10 23:52:01 +0800
commit279e16bbdab38c61449199c444b2edf0a1c12b91 (patch)
treeefc7f48a9db4ef6ff97bd8e46c66e06f6ea2597b
parentad8581ed73d09dac341be5fba7e826bc949f97dc (diff)
ibuffer: don't delete default passlist.
* ibuffer.el (durand-reset-clearlist): The `durand-default-clear-passlist' should be preserved on the list.
-rw-r--r--ibuffer.el3
1 files changed, 2 insertions, 1 deletions
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)