emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8d43315 2/3: Use buffer's name for help-mode bookma


From: Noam Postavsky
Subject: [Emacs-diffs] master 8d43315 2/3: Use buffer's name for help-mode bookmarks (Bug#24573)
Date: Sat, 6 Jul 2019 14:41:38 -0400 (EDT)

branch: master
commit 8d43315cfa3db295736826272472ec1e394ecb60
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Use buffer's name for help-mode bookmarks (Bug#24573)
    
    * lisp/help-mode.el (help-bookmark-make-record): Replace buffer
    objects with their names in help-args, otherwise the bookmark won't be
    readable from the bookmark save file.
---
 lisp/help-mode.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index dc2992c..fb29bd2 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -787,7 +787,9 @@ Implements `bookmark-make-record-function' for help-mode 
buffers."
     (error "Cannot create bookmark - help command not known"))
   `(,@(bookmark-make-record-default 'NO-FILE 'NO-CONTEXT)
       (help-fn     . ,(car help-xref-stack-item))
-      (help-args   . ,(cdr help-xref-stack-item))
+      (help-args   . ,(mapcar (lambda (a)
+                                (if (bufferp a) (buffer-name a) a))
+                              (cdr help-xref-stack-item)))
       (position    . ,(point))
       (handler     . help-bookmark-jump)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]