1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

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.
This commit is contained in:
Noam Postavsky 2017-10-28 15:48:17 -04:00 committed by Noam Postavsky
parent 1f7b602f84
commit 8d43315cfa

View File

@ -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)))