From: Stefan Monnier <monnier@iro.umontreal.ca> Date: Wed, 19 May 2004 00:56:46 +0000 (+0000) Subject: (help-go-back): Don't depend on position of back button. X-Git-Tag: ttn-vms-21-2-B4~6146 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=933cd61ed486b4900d8771c958f00cffad2f6c48;p=emacs.git (help-go-back): Don't depend on position of back button. --- diff --git a/lisp/help-mode.el b/lisp/help-mode.el index 1f1b529c8ef..11656ec368c 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el @@ -577,12 +577,11 @@ help buffer." (goto-char position))))) (defun help-go-back () - "Invoke the [back] button (if any) in the Help mode buffer." + "Go back to previous topic in this help buffer." (interactive) - (let ((back-button (button-at (1- (point-max))))) - (if back-button - (button-activate back-button) - (error "No [back] button")))) + (if help-xref-stack + (help-xref-go-back (current-buffer)) + (error "No previous help buffer."))) (defun help-do-xref (pos function args) "Call the help cross-reference function FUNCTION with args ARGS.