emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#11672: 23.3; info menu-bar acts on wrong window


From: Dr. Gerhard Kahl
Subject: Re: bug#11672: 23.3; info menu-bar acts on wrong window
Date: Sat, 23 Jun 2012 14:53:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

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 via email to

[Prev in Thread] Current Thread [Next in Thread]