diff options
author | Tino Calancha <tino.calancha@gmail.com> | 2016-07-08 01:34:35 +0900 |
---|---|---|
committer | Tino Calancha <tino.calancha@gmail.com> | 2016-07-08 01:34:35 +0900 |
commit | 44517b21abc4c243cdc7df264c629d592d9fb4cf (patch) | |
tree | 85212e1836c7cd715b639db2ae6c4963f8fb8e1f /lisp/ibuffer.el | |
parent | 9d70e4da7402e5a89db6a1b175b917cd3fb37e36 (diff) | |
download | emacs-44517b21abc4c243cdc7df264c629d592d9fb4cf.tar.gz |
Ibuffer: Mark locked buffers
* lisp/ibuf-ext.el (ibuffer-locked-buffer-p): New defun.
(ibuffer-mark-by-locked): New command.
(ibuffer-mode-map): Bind it to '% L'; update menus.
(ibuffer-mode): Update mode doc.
;* etc/NEWS: Add NEWS entry for these changes and previous two commits.
Diffstat (limited to 'lisp/ibuffer.el')
-rw-r--r-- | lisp/ibuffer.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index ff1eb8b2dda..d67f95f8454 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el @@ -556,6 +556,7 @@ directory, like `default-directory'." (define-key map (kbd "% m") 'ibuffer-mark-by-mode-regexp) (define-key map (kbd "% f") 'ibuffer-mark-by-file-name-regexp) (define-key map (kbd "% g") 'ibuffer-mark-by-content-regexp) + (define-key map (kbd "% L") 'ibuffer-mark-by-locked) (define-key map (kbd "C-t") 'ibuffer-visit-tags-table) @@ -782,6 +783,9 @@ directory, like `default-directory'." '(menu-item "Mark by content (regexp)..." ibuffer-mark-by-content-regexp :help "Mark buffers whose content matches a regexp")) + (define-key-after map [menu-bar mark mark-by-locked] + '(menu-item "Mark by locked buffers..." ibuffer-mark-by-locked + :help "Mark all locked buffers")) map)) @@ -2476,6 +2480,7 @@ Marking commands: `\\[ibuffer-mark-by-mode-regexp]' - Mark buffers by their major mode, using a regexp. `\\[ibuffer-mark-by-file-name-regexp]' - Mark buffers by their filename, using a regexp. `\\[ibuffer-mark-by-content-regexp]' - Mark buffers by their content, using a regexp. + `\\[ibuffer-mark-by-locked]' - Mark all locked buffers. Filtering commands: |