summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@users.sourceforge.net>2017-10-28 15:48:17 -0400
committerNoam Postavsky <npostavs@gmail.com>2019-07-06 14:34:47 -0400
commit8d43315cfa3db295736826272472ec1e394ecb60 (patch)
treee64dc6d631727c816675e0001fae5094ee5aade8
parent1f7b602f843d82d2da46528c6cc2a16c794ca668 (diff)
downloademacs-8d43315cfa3db295736826272472ec1e394ecb60.tar.gz
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.
-rw-r--r--lisp/help-mode.el4
1 files changed, 3 insertions, 1 deletions
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)))