From: Kelly Dean <kellydeanch@yahoo.com>
To: 13190@debbugs.gnu.org
Subject: bug#13190: [PATCH] Help xref truncates info navigation stack, and displays info in too many windows
Date: Sat, 15 Dec 2012 03:17:14 -0800 (PST) [thread overview]
Message-ID: <1355570234.63728.YahooMailClassic@web141102.mail.bf1.yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1019 bytes --]
On 24.2, emacs -Q
M-x split-window C-h r
Follow any link, then follow another one, then do Info-history-back twice. Then you could return to the other nodes again using Info-history-forward, but don't do that yet.
Do C-h f visited-file-modtime RET, then click the link in the help page for the info node.
Two problems: it opens the info page in both windows, and it truncates the navigation stack, so Info-history-forward won't return you to the other nodes you were visiting. You can still use Info-history to see the nodes you were visiting, but it's distracting to have to do that.
The attached helpinfobug.patch fixes both problems by creating a new info buffer rather than reusing an existing one. I think this is the simplest solution, though maybe it'd be better to search all info buffers for one which is already displaying the target node, and switch to one if found, so if you repeatedly follow the same info link from a help page, you'll get no more than one new info buffer, rather than multiple new ones.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: helpinfobug.patch --]
[-- Type: text/x-diff; name="helpinfobug.patch", Size: 503 bytes --]
--- emacs-24.2/lisp/help-mode.el 2012-08-23 14:33:42.000000000 +0900
+++ emacs-24.2/lisp/help-mode.el.new3 2012-12-15 19:52:25.907113419 +0900
@@ -733,7 +733,8 @@
a proper [back] button."
;; There is a reference at point. Follow it.
(let ((help-xref-following t))
- (apply function args)))
+ (apply function (if (eq function 'info)
+ (append args (list (generate-new-buffer-name "*info*"))) args))))
;; The doc string is meant to explain what buttons do.
(defun help-follow-mouse ()
next reply other threads:[~2012-12-15 11:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-15 11:17 Kelly Dean [this message]
2015-02-18 1:03 ` bug#13190: Help xref truncates info navigation stack, and displays info in too many windows Kelly Dean
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=1355570234.63728.YahooMailClassic@web141102.mail.bf1.yahoo.com \
--to=kellydeanch@yahoo.com \
--cc=13190@debbugs.gnu.org \
/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).