summaryrefslogtreecommitdiff
path: root/lisp/help-mode.el
diff options
context:
space:
mode:
authorDrew Adams <drew.adams@oracle.com>2012-06-13 08:36:29 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2012-06-13 08:36:29 -0400
commit87e6e64f99de751c4459eb7acc6ac31e20db1f25 (patch)
tree1e1acbd1b6c5f28c76505bfd24e23bc7a6de470f /lisp/help-mode.el
parent682cefaf0c2f61d8d83c3628ae3b0da880771dcf (diff)
downloademacs-87e6e64f99de751c4459eb7acc6ac31e20db1f25.tar.gz
* lisp/help-mode.el (help-bookmark-make-record, help-bookmark-jump):
Fix last change.
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r--lisp/help-mode.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 88b5e095cf6..85c1e62e2c3 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -808,9 +808,8 @@ Implements `bookmark-make-record-function' for help-mode buffers."
(unless (car help-xref-stack-item)
(error "Cannot create bookmark - help command not known"))
`(,@(bookmark-make-record-default 'NO-FILE 'NO-CONTEXT)
- (buffer-name . "*Help*")
(help-fn . ,(car help-xref-stack-item))
- (help-arg . ,(cadr help-xref-stack-item))
+ (help-args . ,(cdr help-xref-stack-item))
(position . ,(point))
(handler . help-bookmark-jump)))
@@ -819,10 +818,10 @@ Implements `bookmark-make-record-function' for help-mode buffers."
"Jump to help-mode bookmark BOOKMARK.
Handler function for record returned by `help-bookmark-make-record'.
BOOKMARK is a bookmark name or a bookmark record."
- (let ((help-fn (bookmark-prop-get bookmark 'help-fn))
- (help-arg (bookmark-prop-get bookmark 'help-arg))
- (position (bookmark-prop-get bookmark 'position)))
- (funcall help-fn help-arg)
+ (let ((help-fn (bookmark-prop-get bookmark 'help-fn))
+ (help-args (bookmark-prop-get bookmark 'help-args))
+ (position (bookmark-prop-get bookmark 'position)))
+ (apply help-fn help-args)
(pop-to-buffer "*Help*")
(goto-char position)))