all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Dr. Gerhard Kahl" <gkahl@abara.de>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: bug#11672: 23.3; info menu-bar acts on wrong window
Date: Sat, 23 Jun 2012 14:53:25 +0200	[thread overview]
Message-ID: <4FE5BC45.9040209@abara.de> (raw)
In-Reply-To: <4FE44746.5000505@gmx.at>

Am 22.06.2012 12:21, schrieb martin rudalics:
> Gerhard could you please provide a
> patch and a ChangeLog entry?
>
> Thanks, martin


as a ChangeLog entry I would suggest:


	* info.el (Info-next, Info-prev, Info-up): Select the window
	with the header that was clicked, so that the node gets changed
	in the right window in case there is another info buffer
	in another window that is still active (Bug #11672).


and here is the patch:


--- emacs-24.1/lisp/info.el	2012-05-14 14:00:02.000000000 +0200
+++ modified/lisp/info.el	2012-06-22 17:09:04.672818093 +0200
@@ -2036,7 +2036,7 @@

  (defun Info-next ()
    "Go to the next node of this node."
-  (interactive)
+  (interactive "@")
    ;; In case another window is currently selected
    (save-window-excursion
      (or (eq major-mode 'Info-mode) (switch-to-buffer "*info*"))
@@ -2044,7 +2044,7 @@

  (defun Info-prev ()
    "Go to the previous node of this node."
-  (interactive)
+  (interactive "@")
    ;; In case another window is currently selected
    (save-window-excursion
      (or (eq major-mode 'Info-mode) (switch-to-buffer "*info*"))
@@ -2053,7 +2053,7 @@
  (defun Info-up (&optional same-file)
    "Go to the superior node of this node.
  If SAME-FILE is non-nil, do not move to a different Info file."
-  (interactive)
+  (interactive "@")
    ;; In case another window is currently selected
    (save-window-excursion
      (or (eq major-mode 'Info-mode) (switch-to-buffer "*info*"))


Gerhard



  reply	other threads:[~2012-06-23 12:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-11  9:14 bug#11672: 23.3; info menu-bar acts on wrong window Gerhard Kahl
2012-06-12  6:54 ` martin rudalics
     [not found]   ` <4FDF1EA4.9000408@abara.de>
2012-06-20  9:05     ` martin rudalics
2012-06-22 10:21       ` martin rudalics
2012-06-23 12:53         ` Dr. Gerhard Kahl [this message]
2012-06-23 13:33         ` Chong Yidong

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FE5BC45.9040209@abara.de \
    --to=gkahl@abara.de \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.