Add new user option bookmark-bmenu-type-column-width
* lisp/bookmark.el (bookmark-bmenu-mode): Add new user option bookmark-bmenu-type-column-width, defaulting to 8 for backwards compatibility, and use it when creating the tabulated bookmark list. (Bug#75826)
This commit is contained in:
parent
e067f2763f
commit
004600e014
2 changed files with 13 additions and 1 deletions
8
etc/NEWS
8
etc/NEWS
|
@ -451,6 +451,14 @@ Such bindings make it possible to compute which function to bind to FUNC.
|
|||
If 'whitespace-style' includes 'missing-newline-at-eof' (which is the
|
||||
default), the 'whitespace-cleanup' function will now add the newline.
|
||||
|
||||
** Bookmark
|
||||
|
||||
---
|
||||
*** New user option 'bookmark-bmenu-type-column-width'.
|
||||
This user option controls the width of the type column on the bookmark
|
||||
menu 'bookmark-bmenu-list'. The default value is 8 which is backwards
|
||||
compatible.
|
||||
|
||||
** Gnus
|
||||
|
||||
---
|
||||
|
|
|
@ -165,6 +165,10 @@ This includes the annotations column.")
|
|||
You can toggle whether files are shown with \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-toggle-filenames]."
|
||||
:type 'natnum)
|
||||
|
||||
(defcustom bookmark-bmenu-type-column-width 8
|
||||
"Column width for bookmark type in a buffer listing bookmarks."
|
||||
:type 'natnum
|
||||
:version "31.1")
|
||||
|
||||
(defcustom bookmark-bmenu-toggle-filenames t
|
||||
"Non-nil means show filenames when listing bookmarks.
|
||||
|
@ -2061,7 +2065,7 @@ At any time you may use \\[revert-buffer] to go back to sorting by creation orde
|
|||
`[("" 1) ;; Space to add "*" for bookmark with annotation
|
||||
("Bookmark Name"
|
||||
,bookmark-bmenu-file-column bookmark-bmenu--name-predicate)
|
||||
("Type" 8 bookmark-bmenu--type-predicate)
|
||||
("Type" ,bookmark-bmenu-type-column-width bookmark-bmenu--type-predicate)
|
||||
,@(if bookmark-bmenu-toggle-filenames
|
||||
'(("File" 0 bookmark-bmenu--file-predicate)))])
|
||||
(setq tabulated-list-padding bookmark-bmenu-marks-width)
|
||||
|
|
Loading…
Add table
Reference in a new issue