From b8210c6e5ff747e56efa978a99b4ed176d58aa69 Mon Sep 17 00:00:00 2001 From: John Paul Wallington Date: Wed, 2 Mar 2005 21:28:57 +0000 Subject: [PATCH] (ibuffer-filter-disable): Move back to the current buffer after removing limits. (ibuffer-pop-filter): Ditto. Update copyright. From: Romain Francoise --- lisp/ChangeLog | 7 +++++++ lisp/ibuf-ext.el | 12 +++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 01fb5a5e6b4..8964538ee3e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2005-03-02 Romain Francoise + + * ibuf-ext.el (ibuffer-filter-disable): Move back to the current + buffer after removing limits. + (ibuffer-pop-filter): Ditto. + Update copyright. + 2005-03-02 Miles Bader * button.el (make-text-button): If the user doesn't specify a diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el index bed4330d0c2..e2e5d251371 100644 --- a/lisp/ibuf-ext.el +++ b/lisp/ibuf-ext.el @@ -1,6 +1,6 @@ ;;; ibuf-ext.el --- extensions for ibuffer -;; Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. ;; Author: Colin Walters ;; Maintainer: John Paul Wallington @@ -753,7 +753,10 @@ of replacing the current filters." "Disable all filters currently in effect in this buffer." (interactive) (setq ibuffer-filtering-qualifiers nil) - (ibuffer-update nil t)) + (let ((buf (ibuffer-current-buffer))) + (ibuffer-update nil t) + (when buf + (ibuffer-jump-to-buffer (buffer-name buf))))) ;;;###autoload (defun ibuffer-pop-filter () @@ -762,7 +765,10 @@ of replacing the current filters." (when (null ibuffer-filtering-qualifiers) (error "No filters in effect")) (pop ibuffer-filtering-qualifiers) - (ibuffer-update nil t)) + (let ((buf (ibuffer-current-buffer))) + (ibuffer-update nil t) + (when buf + (ibuffer-jump-to-buffer (buffer-name buf))))) (defun ibuffer-push-filter (qualifier) "Add QUALIFIER to `ibuffer-filtering-qualifiers'." -- 2.39.2