From: Karl Chen <quarl@hkn.eecs.berkeley.edu>
Subject: help-go-back
Date: Sat, 08 May 2004 13:44:11 -0700 [thread overview]
Message-ID: <quack.20040508T1344.j58yg2sl7o@hkn.eecs.berkeley.edu> (raw)
`Help-go-back' hasn't been working. Here are two possible fixes.
I think `help-go-back' was kludgey before (that's why it broke) so
patch #2 is better.
It would also be nice if there were a `help-go-forward' (opposite
of `help-go-back'). I can write this if there is interest.
--- /home/quarl/local/Node-Linux-i686/stow/emacs-cvs/share/emacs/21.3.50/lisp/help-mode.el Sat May 8 13:24:44 2004
+++ /tmp/buffer-content-33160vh Sat May 8 13:24:58 2004
@@ -579,7 +579,7 @@
(defun help-go-back ()
"Invoke the [back] button (if any) in the Help mode buffer."
(interactive)
- (let ((back-button (button-at (1- (point-max)))))
+ (let ((back-button (button-at (- (point-max) 2))))
(if back-button
(button-activate back-button)
(error "No [back] button"))))
--- /home/quarl/local/Node-Linux-i686/stow/emacs-cvs/share/emacs/21.3.50/lisp/.backup/help-mode.el.~1~ Thu Apr 29 11:43:32 2004
+++ /home/quarl/local/Node-Linux-i686/stow/emacs-cvs/share/emacs/21.3.50/lisp/help-mode.el Sat May 8 13:35:05 2004
@@ -577,12 +577,11 @@
(goto-char position)))))
(defun help-go-back ()
- "Invoke the [back] button (if any) in the Help mode buffer."
+ "Go back to previous 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.
--
Karl 2004-05-08 13:26
next reply other threads:[~2004-05-08 20:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-08 20:44 Karl Chen [this message]
2004-05-08 21:32 ` help-go-back Juri Linkov
2004-05-08 22:24 ` help-go-back Karl Chen
2004-05-09 0:08 ` help-go-back Juri Linkov
2004-05-09 0:48 ` help-go-back Nick Roberts
2004-05-09 1:11 ` help-go-back Juri Linkov
2004-05-09 6:52 ` help-go-back Eli Zaretskii
2004-05-09 11:25 ` help-go-back Juri Linkov
2004-05-09 18:47 ` help-go-back Richard Stallman
2004-05-19 0:57 ` help-go-back Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=quack.20040508T1344.j58yg2sl7o@hkn.eecs.berkeley.edu \
--to=quarl@hkn.eecs.berkeley.edu \
--cc=quarl+dated+1084481051.3fa455@hkn.eecs.berkeley.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).