# HG changeset patch # User Richard M. Stallman # Date 1010869217 0 # Node ID 3814cb15269eb90dff3791712d095fb4304165ba # Parent 8e00fb340b95eaca6d82b832a397b192542c4027 (help-xref-go-back): Restore POSITION in proper buffer and proper window. diff -r 8e00fb340b95 -r 3814cb15269e lisp/help-mode.el --- a/lisp/help-mode.el Sat Jan 12 20:53:27 2002 +0000 +++ b/lisp/help-mode.el Sat Jan 12 21:00:17 2002 +0000 @@ -560,8 +560,10 @@ 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."