(setq ibuffer-filter-groups (ibuffer-delete-alist
name ibuffer-filter-groups))
(setq ibuffer-hidden-filter-groups
- delete name ibuffer-hidden-filter-groups))
+ (delete name ibuffer-hidden-filter-groups)))
(error "No filter group with name \"%s\"" name))
(ibuffer-update nil t))
(progn
(when (equal it "Default")
(error "Can't kill default filtering group"))
- (push (assoc it ibuffer-filter-groups) ibuffer-filter-group-kill-ring)
+ (push (copy-tree (assoc it ibuffer-filter-groups))
+ ibuffer-filter-group-kill-ring)
(ibuffer-kill-filter-group it))
(funcall (if (interactive-p) #'call-interactively #'funcall)
#'kill-line arg)))
(get-text-property (point) 'ibuffer-filter-group)
(last all-groups)))
(pos (or (position cur (mapcar #'car all-groups) :test #'equal)
- (1- (length all-groups)))))
+ (length all-groups))))
(cond ((= pos 0)
(push last-killed ibuffer-filter-groups))
- ((= pos (1- (length all-groups)))
+ ((= pos (length all-groups))
(setq ibuffer-filter-groups
(nconc ibuffer-filter-groups (list last-killed))))
(t
(interactive
(list
(if (null ibuffer-saved-filter-groups)
- (error "No saved filters")
- (completing-read "Delete saved filters: "
+ (error "No saved filter groups")
+ (completing-read "Delete saved filter group: "
ibuffer-saved-filter-groups nil t))))
(setq ibuffer-saved-filter-groups
(ibuffer-delete-alist name ibuffer-saved-filter-groups))