]> git.eshelyaron.com Git - emacs.git/commitdiff
Add new user option bookmark-bmenu-type-column-width
authorshipmints <shipmints@gmail.com>
Mon, 27 Jan 2025 16:16:04 +0000 (11:16 -0500)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Feb 2025 11:12:19 +0000 (12:12 +0100)
* 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)

(cherry picked from commit 004600e0142fb6f9c7ab492f855ee9668bb0421e)

lisp/bookmark.el

index ce3487f4da7aa96c28d65b08910a21c2e17fdcae..197523256ad8f6edc3f31ee6c849355ad8c9e79e 100644 (file)
@@ -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.
@@ -2049,7 +2053,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)