From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Dr. Gerhard Kahl" Newsgroups: gmane.emacs.devel Subject: Re: bug#11672: 23.3; info menu-bar acts on wrong window Date: Sat, 23 Jun 2012 14:53:25 +0200 Message-ID: <4FE5BC45.9040209@abara.de> References: <877gvefbwh.fsf@abara.de> <4FD6E793.4050808@gmx.at> <4FDF1EA4.9000408@abara.de> <4FE1923E.4060907@gmx.at> <4FE44746.5000505@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340491514 31195 80.91.229.3 (23 Jun 2012 22:45:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Jun 2012 22:45:14 +0000 (UTC) Cc: emacs-devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 24 00:45:14 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SiZ4q-0000IM-2z for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2012 00:45:12 +0200 Original-Received: from localhost ([::1]:40503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiZ4p-0001xZ-TU for ged-emacs-devel@m.gmane.org; Sat, 23 Jun 2012 18:45:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiPqZ-0008S3-8Y for emacs-devel@gnu.org; Sat, 23 Jun 2012 08:53:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiPqX-0002aB-L4 for emacs-devel@gnu.org; Sat, 23 Jun 2012 08:53:50 -0400 Original-Received: from mailout02.ims-firmen.de ([213.174.32.97]:48208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiPqX-0002Zq-Do for emacs-devel@gnu.org; Sat, 23 Jun 2012 08:53:49 -0400 Original-Received: from mailin04.ims-firmen.de ([192.168.1.144]) by mailout02.ims-firmen.de with esmtp (envelope-from ) id 1SiPqU-0000KT-m0; Sat, 23 Jun 2012 14:53:46 +0200 Original-Received: from [85.180.10.73] (helo=[192.168.0.110]) by mailin04.ims-firmen.de with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (envelope-from ) id 1SiPnN-0002Yg-CK; Sat, 23 Jun 2012 14:50:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 In-Reply-To: <4FE44746.5000505@gmx.at> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.174.32.97 X-Mailman-Approved-At: Sat, 23 Jun 2012 18:45:09 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151121 Archived-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