* bug#5608: 23.1.92; ibuffer.el lacks instructions
@ 2010-02-20 0:38 jidanni
2019-06-30 6:44 ` Stefan Kangas
0 siblings, 1 reply; 3+ messages in thread
From: jidanni @ 2010-02-20 0:38 UTC (permalink / raw
To: 5608
In ibuffer.el we see
;; ibuffer.el is an advanced replacement for the `buffer-menu' which
;; is normally distributed with Emacs. Its interface is intended to
;; be analogous to that of Dired.
and
(defgroup ibuffer nil
"An advanced replacement for `buffer-menu'.
Ibuffer allows you to operate on buffers in a manner much like Dired.
Operations include sorting, marking by regular expression, and
the ability to filter the displayed buffers by various criteria."
However nowhere is it mentioned what one should do to their .emacs file
to become a regular ibuffer user. It should mention rebinding stanzas or
"put" commands, etc.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#5608: 23.1.92; ibuffer.el lacks instructions
2010-02-20 0:38 bug#5608: 23.1.92; ibuffer.el lacks instructions jidanni
@ 2019-06-30 6:44 ` Stefan Kangas
2019-07-23 3:16 ` Noam Postavsky
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Kangas @ 2019-06-30 6:44 UTC (permalink / raw
To: jidanni; +Cc: 5608
[-- Attachment #1: Type: text/plain, Size: 891 bytes --]
tags 5608 + patch
quit
jidanni@jidanni.org writes:
> In ibuffer.el we see
>
> ;; ibuffer.el is an advanced replacement for the `buffer-menu' which
> ;; is normally distributed with Emacs. Its interface is intended to
> ;; be analogous to that of Dired.
>
> and
>
> (defgroup ibuffer nil
> "An advanced replacement for `buffer-menu'.
>
> Ibuffer allows you to operate on buffers in a manner much like Dired.
> Operations include sorting, marking by regular expression, and
> the ability to filter the displayed buffers by various criteria."
>
> However nowhere is it mentioned what one should do to their .emacs file
> to become a regular ibuffer user. It should mention rebinding stanzas or
> "put" commands, etc.
I took a stab at this. Please see the attached patch.
I also took the opportunity to remove redundant :group args from
defcustoms.
Thanks,
Stefan Kangas
[-- Attachment #2: 0001-Document-normal-usage-in-ibuffer.el.patch --]
[-- Type: application/octet-stream, Size: 9555 bytes --]
From c683f541c55a0ea2b5adf0a4cd76956c371a34dd Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefankangas@gmail.com>
Date: Sun, 30 Jun 2019 08:31:21 +0200
Subject: [PATCH] Document normal usage in ibuffer.el
* lisp/ibuffer.el (Commentary): Document normal usage. (Bug#5608)
Remove redundant :group args.
---
lisp/ibuffer.el | 125 ++++++++++++++++++++----------------------------
1 file changed, 51 insertions(+), 74 deletions(-)
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 929336c479..658f2cd337 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -24,9 +24,22 @@
;;; Commentary:
-;; ibuffer.el is an advanced replacement for the `buffer-menu' which
-;; is normally distributed with Emacs. Its interface is intended to
-;; be analogous to that of Dired.
+;; Ibuffer is an advanced replacement for the `buffer-menu' which is
+;; distributed with Emacs. It lets you operate on buffers in a
+;; Dired-like way, with the ability to sort, mark by regular
+;; expression, and filter displayed buffers by various criteria. Its
+;; interface is intended to be analogous to that of Dired.
+;;
+;; To start using it, type `M-x ibuffer'. If you use it regularly,
+;; you might be interested in replacing the default `list-buffers' key
+;; binding by adding the following to your init file:
+;;
+;; (global-set-key (kbd "C-x C-b") 'ibuffer)
+;;
+;; See also the various customization options, not least the
+;; documentation for `ibuffer-formats'.
+;;
+;; For more help, type `?' in the "*Ibuffer*" buffer.
;;; Code:
@@ -139,15 +152,13 @@ ibuffer-formats
Using \\[ibuffer-switch-format], you can rotate the display between
the specified formats in the list."
:version "26.1"
- :type '(repeat sexp)
- :group 'ibuffer)
+ :type '(repeat sexp))
(defcustom ibuffer-always-compile-formats (featurep 'bytecomp)
"If non-nil, then use the byte-compiler to optimize `ibuffer-formats'.
This will increase the redisplay speed, at the cost of loading the
elisp byte-compiler."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defcustom ibuffer-fontification-alist
'((10 buffer-read-only font-lock-constant-face)
@@ -174,34 +185,28 @@ ibuffer-fontification-alist
:type '(repeat
(list (integer :tag "Priority")
(sexp :tag "Test Form")
- face))
- :group 'ibuffer)
+ face)))
(defcustom ibuffer-use-other-window nil
"If non-nil, display Ibuffer in another window by default."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defcustom ibuffer-default-shrink-to-minimum-size nil
"If non-nil, minimize the size of the Ibuffer window by default."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defvar ibuffer-shrink-to-minimum-size nil)
(defcustom ibuffer-display-summary t
"If non-nil, summarize Ibuffer columns."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defcustom ibuffer-truncate-lines t
"If non-nil, do not display continuation lines."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defcustom ibuffer-case-fold-search case-fold-search
"If non-nil, ignore case when searching."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defcustom ibuffer-default-sorting-mode 'recency
"The criteria by which to sort the buffers.
@@ -213,21 +218,18 @@ ibuffer-default-sorting-mode
(const :tag "Lexicographic" :value alphabetic)
(const :tag "Buffer size" :value size)
(const :tag "File name" :value filename/process)
- (const :tag "Major mode" :value major-mode))
- :group 'ibuffer)
+ (const :tag "Major mode" :value major-mode)))
(defvar ibuffer-sorting-mode nil)
(defvar ibuffer-last-sorting-mode nil)
(defcustom ibuffer-default-sorting-reversep nil
"If non-nil, reverse the default sorting order."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defvar ibuffer-sorting-reversep nil)
(defcustom ibuffer-eliding-string "..."
"The string to use for eliding long columns."
- :type 'string
- :group 'ibuffer)
+ :type 'string)
(defcustom ibuffer-maybe-show-predicates `(,(lambda (buf)
(and (string-match "^ " (buffer-name buf))
@@ -243,13 +245,11 @@ ibuffer-maybe-show-predicates
via `ibuffer-default-display-maybe-show-predicates' and is toggled by
giving a non-nil prefix argument to `ibuffer-update'.
Note that this specialized filtering occurs before real filtering."
- :type '(repeat (choice regexp function))
- :group 'ibuffer)
+ :type '(repeat (choice regexp function)))
(defcustom ibuffer-default-display-maybe-show-predicates nil
"Non-nil means show buffers that match `ibuffer-maybe-show-predicates'."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defvar ibuffer-display-maybe-show-predicates nil)
@@ -257,47 +257,39 @@ ibuffer-current-format
(defcustom ibuffer-movement-cycle t
"If non-nil, then forward and backwards movement commands cycle."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defcustom ibuffer-modified-char ?*
"The character to display for modified buffers."
- :type 'character
- :group 'ibuffer)
+ :type 'character)
(defcustom ibuffer-read-only-char ?%
"The character to display for read-only buffers."
- :type 'character
- :group 'ibuffer)
+ :type 'character)
(defcustom ibuffer-marked-char ?>
"The character to display for marked buffers."
- :type 'character
- :group 'ibuffer)
+ :type 'character)
(defcustom ibuffer-locked-char ?L
"The character to display for locked buffers."
:version "26.1"
- :type 'character
- :group 'ibuffer)
+ :type 'character)
(defcustom ibuffer-deletion-char ?D
"The character to display for buffers marked for deletion."
- :type 'character
- :group 'ibuffer)
+ :type 'character)
(defcustom ibuffer-expert nil
"If non-nil, don't ask for confirmation of \"dangerous\" operations."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defcustom ibuffer-view-ibuffer nil
"If non-nil, display the current Ibuffer buffer itself.
Note that this has a drawback - the data about the current Ibuffer
buffer will most likely be inaccurate. This includes modification
state, size, etc."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defcustom ibuffer-always-show-last-buffer nil
"If non-nil, always display the previous buffer.
@@ -305,19 +297,16 @@ ibuffer-always-show-last-buffer
`ibuffer-never-show-predicates'."
:type '(choice (const :tag "Always" :value t)
(const :tag "Never" :value nil)
- (const :tag "Always except minibuffer" :value :nomini))
- :group 'ibuffer)
+ (const :tag "Always except minibuffer" :value :nomini)))
(defcustom ibuffer-jump-offer-only-visible-buffers nil
"If non-nil, only offer buffers visible in the Ibuffer buffer
in completion lists of the `ibuffer-jump-to-buffer' command."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defcustom ibuffer-use-header-line (boundp 'header-line-format)
"If non-nil, display a header line containing current filters."
- :type 'boolean
- :group 'ibuffer)
+ :type 'boolean)
(defcustom ibuffer-default-directory nil
"The default directory to use for a new Ibuffer buffer.
@@ -325,65 +314,54 @@ ibuffer-default-directory
called. Otherwise, this variable should be a string naming a
directory, like `default-directory'."
:type '(choice (const :tag "Inherit" :value nil)
- string)
- :group 'ibuffer)
+ string))
(defcustom ibuffer-help-buffer-modes
'(help-mode apropos-mode Info-mode Info-edit-mode)
"List of \"Help\" major modes."
- :type '(repeat function)
- :group 'ibuffer)
+ :type '(repeat function))
(defcustom ibuffer-compressed-file-name-regexp
"\\.\\(arj\\|bgz\\|bz2\\|gz\\|lzh\\|taz\\|tgz\\|xz\\|zip\\|z\\)$"
"Regexp to match compressed file names."
:version "24.1" ; added xz
- :type 'regexp
- :group 'ibuffer)
+ :type 'regexp)
(defcustom ibuffer-hook nil
"Hook run when `ibuffer' is called."
- :type 'hook
- :group 'ibuffer)
+ :type 'hook)
(defcustom ibuffer-mode-hook nil
"Hook run upon entry into `ibuffer-mode'."
:type 'hook
- :options '(ibuffer-auto-mode)
- :group 'ibuffer)
+ :options '(ibuffer-auto-mode))
(defcustom ibuffer-load-hook nil
"Hook run when Ibuffer is loaded."
- :type 'hook
- :group 'ibuffer)
+ :type 'hook)
(defcustom ibuffer-marked-face 'warning
"Face used for displaying marked buffers."
- :type 'face
- :group 'ibuffer)
+ :type 'face)
(defcustom ibuffer-deletion-face 'error
"Face used for displaying buffers marked for deletion."
- :type 'face
- :group 'ibuffer)
+ :type 'face)
(defcustom ibuffer-title-face 'font-lock-type-face
"Face used for the title string."
- :type 'face
- :group 'ibuffer)
+ :type 'face)
(defcustom ibuffer-filter-group-name-face 'bold
"Face used for displaying filtering group names."
- :type 'face
- :group 'ibuffer)
+ :type 'face)
(defcustom ibuffer-directory-abbrev-alist nil
"An alist of file name abbreviations like `directory-abbrev-alist'."
:type '(repeat (cons :format "%v"
:value ("" . "")
(regexp :tag "From")
- (regexp :tag "To")))
- :group 'ibuffer)
+ (regexp :tag "To"))))
(defvar ibuffer-mode-groups-popup
(let ((groups-map (make-sparse-keymap "Filter Groups")))
@@ -1811,7 +1789,6 @@ ibuffer-locked-buffer
(t (:foreground "brown4")))
"Face used for locked buffers in Ibuffer."
:version "26.1"
- :group 'ibuffer
:group 'font-lock-highlighting-faces)
(defvar ibuffer-locked-buffer 'ibuffer-locked-buffer)
--
2.21.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#5608: 23.1.92; ibuffer.el lacks instructions
2019-06-30 6:44 ` Stefan Kangas
@ 2019-07-23 3:16 ` Noam Postavsky
0 siblings, 0 replies; 3+ messages in thread
From: Noam Postavsky @ 2019-07-23 3:16 UTC (permalink / raw
To: Stefan Kangas; +Cc: jidanni, 5608
tags 5608 fixed
close 5608 27.1
quit
> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Sun, 30 Jun 2019 08:31:21 +0200
> Subject: [PATCH] Document normal usage in ibuffer.el
>
> * lisp/ibuffer.el (Commentary): Document normal usage. (Bug#5608)
> Remove redundant :group args.
Pushed to master.
> @@ -1811,7 +1789,6 @@ ibuffer-locked-buffer
> (t (:foreground "brown4")))
> "Face used for locked buffers in Ibuffer."
> :version "26.1"
> - :group 'ibuffer
> :group 'font-lock-highlighting-faces)
> (defvar ibuffer-locked-buffer 'ibuffer-locked-buffer)
Except for this hunk, because that :group arg is not redundant.
97477edaf2 2019-07-22T23:13:16-04:00 "Document normal usage in ibuffer.el"
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=97477edaf2044e51696f46b166b43801893156a3
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-23 3:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-20 0:38 bug#5608: 23.1.92; ibuffer.el lacks instructions jidanni
2019-06-30 6:44 ` Stefan Kangas
2019-07-23 3:16 ` Noam Postavsky
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.