all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Gerhard Kahl <gkahl@abara.de>
Cc: 11672@debbugs.gnu.org
Subject: bug#11672: 23.3; info menu-bar acts on wrong window
Date: Tue, 12 Jun 2012 08:54:11 +0200	[thread overview]
Message-ID: <4FD6E793.4050808@gmx.at> (raw)
In-Reply-To: <877gvefbwh.fsf@abara.de>

 > 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





  reply	other threads:[~2012-06-12  6:54 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 [this message]
     [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
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=4FD6E793.4050808@gmx.at \
    --to=rudalics@gmx.at \
    --cc=11672@debbugs.gnu.org \
    --cc=gkahl@abara.de \
    /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.