diff options
| author | Stefan Monnier | 2004-05-19 00:56:46 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-05-19 00:56:46 +0000 |
| commit | 933cd61ed486b4900d8771c958f00cffad2f6c48 (patch) | |
| tree | cca2ccbc060aba48b3b317faebc75fd2a8dcbc0b | |
| parent | b1e5937ca1bb2202e372e2d35122ad10077e5a61 (diff) | |
| download | emacs-933cd61ed486b4900d8771c958f00cffad2f6c48.tar.gz emacs-933cd61ed486b4900d8771c958f00cffad2f6c48.zip | |
(help-go-back): Don't depend on position of back button.
| -rw-r--r-- | lisp/help-mode.el | 9 |
1 files changed, 4 insertions, 5 deletions
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." | |||
| 577 | (goto-char position))))) | 577 | (goto-char position))))) |
| 578 | 578 | ||
| 579 | (defun help-go-back () | 579 | (defun help-go-back () |
| 580 | "Invoke the [back] button (if any) in the Help mode buffer." | 580 | "Go back to previous topic in this help buffer." |
| 581 | (interactive) | 581 | (interactive) |
| 582 | (let ((back-button (button-at (1- (point-max))))) | 582 | (if help-xref-stack |
| 583 | (if back-button | 583 | (help-xref-go-back (current-buffer)) |
| 584 | (button-activate back-button) | 584 | (error "No previous help buffer."))) |
| 585 | (error "No [back] button")))) | ||
| 586 | 585 | ||
| 587 | (defun help-do-xref (pos function args) | 586 | (defun help-do-xref (pos function args) |
| 588 | "Call the help cross-reference function FUNCTION with args ARGS. | 587 | "Call the help cross-reference function FUNCTION with args ARGS. |