diff options
| author | Tino Calancha | 2016-11-22 15:23:50 +0900 |
|---|---|---|
| committer | Tino Calancha | 2016-11-22 15:23:50 +0900 |
| commit | 27b754cb4432ece3efe3fc9d8e52a869ae061b7f (patch) | |
| tree | a0b2c5c7a1747c07c41187723b629280a9e6f05c /etc | |
| parent | 3c194dafe080c45528063a20075f8cd53a3760b3 (diff) | |
| download | emacs-27b754cb4432ece3efe3fc9d8e52a869ae061b7f.tar.gz emacs-27b754cb4432ece3efe3fc9d8e52a869ae061b7f.zip | |
buff-menu: Add command to unmark all buffers
Bind 'U' in buff-menu, bs and electric-buff-menu to commands
to unmark all buffers (Bug#24880).
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-header-overlay-p):
New predicate; return non-nil if tabulated-list has a fake header.
* lisp/buff-menu.el (Buffer-menu-unmark-all-buffers):
New command; remove all flags that use a particular mark from all the lines.
Bind it to 'M-DEL'.
(Buffer-menu-unmark-all):
New command; remove all flags from all the lines. Bind it to 'U'.
(Buffer-menu-marker-char, Buffer-menu-del-char): New variables.
(Buffer-menu-delete, Buffer-menu-mark): Use them.
(Buffer-menu-mode-map): Update menus.
(Buffer-menu-mode): Update mode doc.
* lisp/bs.el (bs-unmark-all, bs-unmark-previous): New commands.
(bs-mode-map): Bind them to 'U' and '<backspace>' respectively.
(bs-mode): Update mode doc.
* lisp/ebuff-menu.el (electric-buffer-menu-mode-map):
Bind Buffer-menu-unmark-all to 'U' and Buffer-menu-unmark-all-buffers
to 'M-DEL'.
(bs--down, bs-down, bs--up, bs-up, bs-unmark-current, bs-mark-current):
Use point instead of cursor in doc string.
(electric-buffer-list): Update mode doc.
* doc/emacs/buffers.texi (Several Buffers): Mention Buffer-menu-unmark-all
and Buffer-menu-unmark-all-buffers.
; * etc/NEWS: Add an entry per each new feature.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 18 |
1 files changed, 18 insertions, 0 deletions
| @@ -283,6 +283,24 @@ the file's actual content before prompting the user. | |||
| 283 | 283 | ||
| 284 | * Changes in Specialized Modes and Packages in Emacs 26.1 | 284 | * Changes in Specialized Modes and Packages in Emacs 26.1 |
| 285 | 285 | ||
| 286 | ** Electric-Buffer-menu | ||
| 287 | |||
| 288 | +++ | ||
| 289 | *** Key 'U' is bound to 'Buffer-menu-unmark-all' and key 'M-DEL' is | ||
| 290 | bound to 'Buffer-menu-unmark-all-buffers'. | ||
| 291 | |||
| 292 | ** bs | ||
| 293 | |||
| 294 | --- | ||
| 295 | *** Two new commands 'bs-unmark-all', bound to 'U', and | ||
| 296 | 'bs-unmark-previous', bound to <backspace>. | ||
| 297 | |||
| 298 | ** Buffer-menu | ||
| 299 | |||
| 300 | +++ | ||
| 301 | *** Two new commands 'Buffer-menu-unmark-all', bound to 'U' and | ||
| 302 | 'Buffer-menu-unmark-all-buffers', bound to 'M-DEL'. | ||
| 303 | |||
| 286 | ** Ibuffer | 304 | ** Ibuffer |
| 287 | 305 | ||
| 288 | --- | 306 | --- |