* bug#13190: [PATCH] Help xref truncates info navigation stack, and displays info in too many windows
@ 2012-12-15 11:17 Kelly Dean
2015-02-18 1:03 ` bug#13190: " Kelly Dean
0 siblings, 1 reply; 2+ messages in thread
From: Kelly Dean @ 2012-12-15 11:17 UTC (permalink / raw)
To: 13190
[-- 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 ()
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-18 1:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-15 11:17 bug#13190: [PATCH] Help xref truncates info navigation stack, and displays info in too many windows Kelly Dean
2015-02-18 1:03 ` bug#13190: " Kelly Dean
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).