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:
parent
1f7b602f84
commit
8d43315cfa
1 changed files with 3 additions and 1 deletions
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue