From: Glenn Morris Date: Sun, 11 Nov 2012 02:22:26 +0000 (-0800) Subject: Add ibuffer-filter-by-derived-mode to ibuffer menu and doc X-Git-Tag: emacs-24.2.90~108 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a1d3e07e2896faadfd56b35a8c5f775353f39058;p=emacs.git Add ibuffer-filter-by-derived-mode to ibuffer menu and doc * lisp/ibuffer.el (ibuffer-mode-map, ibuffer-mode): Add ibuffer-filter-by-derived-mode. * etc/NEWS: Related markup. --- diff --git a/etc/NEWS b/etc/NEWS index 97e4f53620a..16feea02eaf 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -453,6 +453,7 @@ The option `follow-intercept-processes' has been removed. specifying URL types that should be converted to remote file names at the FFAP prompt. The default is now '("ftp"). +--- ** New Ibuffer `derived-mode' filter, bound to `/ M'. The old binding for `/ M' (filter by used-mode) is now bound to `/ m'. diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5551828c847..8228d857233 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2012-11-11 Glenn Morris + * ibuffer.el (ibuffer-mode-map, ibuffer-mode): + Add ibuffer-filter-by-derived-mode. + * ibuffer.el (ibuffer-mode-map): Don't have two menu items with the same name shadowing each other. diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index e5d9910a186..72ca189e9d5 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el @@ -636,6 +636,9 @@ directory, like `default-directory'." (define-key-after map [menu-bar view filter filter-by-used-mode] '(menu-item "Add filter by a major mode in use..." ibuffer-filter-by-used-mode)) + (define-key-after map [menu-bar view filter filter-by-derived-mode] + '(menu-item "Add filter by derived mode..." + ibuffer-filter-by-derived-mode)) (define-key-after map [menu-bar view filter filter-by-name] '(menu-item "Add filter by buffer name..." ibuffer-filter-by-name)) (define-key-after map [menu-bar view filter filter-by-filename] @@ -2438,8 +2441,9 @@ Marking commands: Filtering commands: - '\\[ibuffer-filter-by-mode]' - Add a filter by major mode. - '\\[ibuffer-filter-by-used-mode]' - Add a filter by major mode now in use. + '\\[ibuffer-filter-by-mode]' - Add a filter by any major mode. + '\\[ibuffer-filter-by-used-mode]' - Add a filter by a major mode now in use. + '\\[ibuffer-filter-by-derived-mode]' - Add a filter by derived mode. '\\[ibuffer-filter-by-name]' - Add a filter by buffer name. '\\[ibuffer-filter-by-content]' - Add a filter by buffer content. '\\[ibuffer-filter-by-filename]' - Add a filter by filename.