From: Noam Postavsky Date: Sat, 28 Oct 2017 19:48:17 +0000 (-0400) Subject: Use buffer's name for help-mode bookmarks (Bug#24573) X-Git-Tag: emacs-27.0.90~2079 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8d43315cfa3db295736826272472ec1e394ecb60;p=emacs.git 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. --- 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)))