From 8d43315cfa3db295736826272472ec1e394ecb60 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sat, 28 Oct 2017 15:48:17 -0400 Subject: 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 dc2992cd4a5..fb29bd2be4f 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))) -- cgit v1.2.1