Commit 77144ebc authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(help-xref-go-back): Restore POSITION in proper buffer and proper window.

parent 9639be74
......@@ -560,8 +560,10 @@ help buffer."
method (cadr item)
args (cddr item))))
(apply method args)
;; FIXME: are we sure we're in the right buffer ?
(goto-char position)))
(with-current-buffer buffer
(if (get-buffer-window buffer)
(set-window-point (get-buffer-window buffer) position)
(goto-char position)))))
(defun help-go-back ()
"Invoke the [back] button (if any) in the Help mode buffer."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment