]> git.eshelyaron.com Git - emacs.git/commitdiff
(help-go-back): Don't depend on position of back button.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 May 2004 00:56:46 +0000 (00:56 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 May 2004 00:56:46 +0000 (00:56 +0000)
lisp/help-mode.el

index 1f1b529c8ef180cce01acf1ba0411915c4e34cc8..11656ec368c1fd0edccf83bfbf9ea553cd93f1d0 100644 (file)
@@ -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.