From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#11672: 23.3; info menu-bar acts on wrong window Date: Tue, 12 Jun 2012 08:54:11 +0200 Message-ID: <4FD6E793.4050808@gmx.at> References: <877gvefbwh.fsf@abara.de> 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 1339484078 28034 80.91.229.3 (12 Jun 2012 06:54:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2012 06:54:38 +0000 (UTC) Cc: 11672@debbugs.gnu.org To: Gerhard Kahl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 12 08:54:37 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SeKzp-0001bF-T4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jun 2012 08:54:34 +0200 Original-Received: from localhost ([::1]:38396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeKzp-00066o-Rs for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jun 2012 02:54:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeKzi-0005wF-A8 for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 02:54:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeKzf-0002Js-U0 for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 02:54:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeKzf-0002JE-QV for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 02:54:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SeL2E-00066W-UI for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 02:57:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jun 2012 06:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11672 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11672-submit@debbugs.gnu.org id=B11672.133948422023455 (code B ref 11672); Tue, 12 Jun 2012 06:57:02 +0000 Original-Received: (at 11672) by debbugs.gnu.org; 12 Jun 2012 06:57:00 +0000 Original-Received: from localhost ([127.0.0.1]:38760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SeL2A-00066E-9A for submit@debbugs.gnu.org; Tue, 12 Jun 2012 02:57:00 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:51488) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SeL27-000666-Rz for 11672@debbugs.gnu.org; Tue, 12 Jun 2012 02:56:57 -0400 Original-Received: (qmail invoked by alias); 12 Jun 2012 06:54:14 -0000 Original-Received: from 62-47-49-58.adsl.highway.telekom.at (EHLO [62.47.49.58]) [62.47.49.58] by mail.gmx.net (mp004) with SMTP; 12 Jun 2012 08:54:14 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19G9ExR7QxGANz4W04L4oDJxFTy9V3K1tBOCQg71k JnC22iTKCMZg/w In-Reply-To: <877gvefbwh.fsf@abara.de> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60886 Archived-At: > Steps to reproduce the bug: > > -start emacs > -start info > -clone-buffer > -activate the 1st window (e.g by clicking in the window) > -open a node in the first window (e.g by hitting '3') > -activate the 2nd window (e.g. by clicking in the window) > -open a node in the 2nd window (e.g. by clicking '5') > -click the "Up: (dir)" link in the menu-bar of the first window > without activating the window first > > As you see, the node changes in the second window, not in the first one. > > The same happens with emacs started in a text mode terminal with gpm > mouse support. I'd define things like (defun Info-header-up () (interactive) (let* ((mouse-position (mouse-position)) (window (ignore-errors (window-at (cadr mouse-position) (cddr mouse-position) (car mouse-position))))) (if window (with-selected-window window (Info-up)) (Info-up)))) together with (define-key keymap [header-line mouse-1] 'Info-header-up) (define-key keymap [header-line mouse-2] 'Info-header-up) martin