branch: externals/bufferlo
commit 43aecf49d5be825e350ee894da33b087223fd9f1
Author: shipmints <shipmi...@gmail.com>
Commit: shipmints <shipmi...@gmail.com>

    Support inhibiting bookmark-insert
    
    This feature is in Emacs 31 and will prevent weird bookmark-insert
    behavior for anyone using master or 31 when it is released.
---
 bufferlo.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bufferlo.el b/bufferlo.el
index 7d14364f7b..e05143451e 100644
--- a/bufferlo.el
+++ b/bufferlo.el
@@ -2336,6 +2336,7 @@ this bookmark is embedded in a frame bookmark."
 
 ;; We use a short name here as bookmark-bmenu-list hard codes width of 8 chars
 (put #'bufferlo--bookmark-tab-handler 'bookmark-handler-type "B-Tab")
+(put #'bufferlo--bookmark-tab-handler 'bookmark-inhibit 'insert)
 
 (defun bufferlo--bookmark-frame-make (&optional frame)
   "Make a bufferlo frame bookmark.
@@ -2506,6 +2507,7 @@ the message after successfully restoring the bookmark."
 
 ;; We use a short name here as bookmark-bmenu-list hard codes width of 8 chars
 (put #'bufferlo--bookmark-frame-handler 'bookmark-handler-type "B-Frame")
+(put #'bufferlo--bookmark-frame-handler 'bookmark-inhibit 'insert)
 
 (defun bufferlo--bookmark-set-location (bookmark-name-or-record &optional 
location)
   "Set the location of BOOKMARK-NAME-OR-RECORD to LOCATION or \\=\"\", if nil."
@@ -2843,6 +2845,7 @@ the message after successfully restoring the bookmark."
 
 ;; We use a short name here as bookmark-bmenu-list hard codes width of 8 chars
 (put #'bufferlo--bookmark-set-handler 'bookmark-handler-type "B-Set")
+(put #'bufferlo--bookmark-set-handler 'bookmark-inhibit 'insert)
 
 (defun bufferlo--set-save (bookmark-name active-bookmark-names 
active-bookmarks &optional no-overwrite)
   "Save a bufferlo bookmark set for the specified active bookmarks.

Reply via email to