diff options
author | Philippe Vaucher <philippe.vaucher@gmail.com> | 2019-03-02 20:03:41 +0100 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-03-15 11:08:01 +0200 |
commit | 18fb250d6748bd31672a9d2bdd5dff99ac7f7743 (patch) | |
tree | 34178feabb3e6c19fdf3d5358f6a3d6ba6969b5f /doc | |
parent | c72c2b04c2ed1688c9903cd87e7925b74a307541 (diff) | |
download | emacs-18fb250d6748bd31672a9d2bdd5dff99ac7f7743.tar.gz |
Customize tabulated-list sort indicators
This allows the user to customize the sorting indicators displayed
near the current column.
* lisp/emacs-lisp/tabulated-list.el (tabulated-list): New group.
(tabulated-list-gui-sort-indicator-asc)
(tabulated-list-gui-sort-indicator-desc)
(tabulated-list-tty-sort-indicator-asc)
(tabulated-list-tty-sort-indicator-desc): New defcustomd.
(tabulated-list-glyphless-char-display): Remove.
(tabulated-list-make-glyphless-char-display-table): New function.
* doc/lispref/modes.texi (Tabulated List Mode): Add documentation
for new options.
* etc/NEWS: Mention the new options.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lispref/modes.texi | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 3f6bee9821d..1afbc5a5cee 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi @@ -1015,6 +1015,29 @@ list-processes}). The listing command should create or switch to a buffer, turn on the derived mode, specify the tabulated data, and finally call @code{tabulated-list-print} to populate the buffer. +@defopt tabulated-list-gui-sort-indicator-asc +This variable specifies the character to be used on GUI frames as an +indication that the column is sorted in the ascending order. + +Whenever you change the sort direction in Tabulated List buffers, this +indicator toggles between ascending (``asc'') and descending (``desc''). +@end defopt + +@defopt tabulated-list-gui-sort-indicator-desc +Like @code{tabulated-list-gui-sort-indicator-asc}, but used when the +column is sorted in the descending order. +@end defopt + +@defopt tabulated-list-tty-sort-indicator-asc +Like @code{tabulated-list-gui-sort-indicator-asc}, but used for +text-mode frames. +@end defopt + +@defopt tabulated-list-tty-sort-indicator-desc +Like @code{tabulated-list-tty-sort-indicator-asc}, but used when the +column is sorted in the descending order. +@end defopt + @defvar tabulated-list-format This buffer-local variable specifies the format of the Tabulated List data. Its value should be a vector. Each element of the vector |