aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorNoam Postavsky2017-10-28 15:48:17 -0400
committerNoam Postavsky2019-07-06 14:34:47 -0400
commit8d43315cfa3db295736826272472ec1e394ecb60 (patch)
treee64dc6d631727c816675e0001fae5094ee5aade8 /lisp
parent1f7b602f843d82d2da46528c6cc2a16c794ca668 (diff)
downloademacs-8d43315cfa3db295736826272472ec1e394ecb60.tar.gz
emacs-8d43315cfa3db295736826272472ec1e394ecb60.zip
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.
Diffstat (limited to 'lisp')
-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."
787 (error "Cannot create bookmark - help command not known")) 787 (error "Cannot create bookmark - help command not known"))
788 `(,@(bookmark-make-record-default 'NO-FILE 'NO-CONTEXT) 788 `(,@(bookmark-make-record-default 'NO-FILE 'NO-CONTEXT)
789 (help-fn . ,(car help-xref-stack-item)) 789 (help-fn . ,(car help-xref-stack-item))
790 (help-args . ,(cdr help-xref-stack-item)) 790 (help-args . ,(mapcar (lambda (a)
791 (if (bufferp a) (buffer-name a) a))
792 (cdr help-xref-stack-item)))
791 (position . ,(point)) 793 (position . ,(point))
792 (handler . help-bookmark-jump))) 794 (handler . help-bookmark-jump)))
793 795