unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jonathan Ganc <jonganc@gmail.com>
To: martin rudalics <rudalics@gmx.at>, 26104@debbugs.gnu.org
Subject: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame cause Alt key to produce a <switch-frame> event
Date: Thu, 6 Apr 2017 23:56:11 -0400	[thread overview]
Message-ID: <c5255932-2b02-0947-1db0-3549b015ddde@gmail.com> (raw)
In-Reply-To: <58E4958F.5040200@gmx.at>

On 04/05/2017 02:58 AM, martin rudalics wrote:
>
> ‘yank-pop’ by itself does not query the mouse position so "pressing the
> Alt key produces a <switch-frame> event" as you said earlier does not
> describe what really happens.  Someone else must have changed
> `last-command' to `switch-frame' and it would be essential to find out
> who.  And, as a furthe clue, the event must have come from a mouse move
> since according to "the mouse is positioned over the other frame" this
> is the only thing you do in between ‘yank’ and ‘yank-pop’ and if you do
> not move the mouse in between them the M-y succeeds.  Or am I missing
> something?

switch-frame is produced when the Alt key is pressed (as soon as it is 
pressed, i.e. before the 'Y' is pressed). i can verify this by running 
'read-event`, which triggers and produces switch-frame as soon as Alt is 
pressed. Conversely, the event is still generated even if I disable both 
my mouse and trackpad, the only things which can produce mouse motion.

>
> If the above approach is inusfficient we indeed might have to add some
> extra code to make_lispy_switch_frame in order to find out what happens.
> In that case you have to be able to build Emacs on your machine.
>

I'm not averse to rebuilding emacs (I built the current version I'm 
using), if it could help.

I was trying to explore emacs input. One thing I've realized is that xev 
(i.e. if I monitor emacs using 'xev -id ...') does not see most keys 
(e.g. alphanumeric keys, Ctrl, shift) sent to emacs but it does see when 
Alt (or the Windows key) is pressed. So some keys are "special". I wish 
I knew about how emacs set this up.





  reply	other threads:[~2017-04-07  3:56 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-15  3:25 bug#26104: 26.0.50; In Ubuntu, having mouse over other frame cause Alt key to produce a <switch-frame> event Jonathan Ganc
2017-03-17  7:19 ` martin rudalics
2017-03-18  1:04   ` Jonathan Ganc
2017-03-18  8:19     ` martin rudalics
2017-04-01  9:53       ` martin rudalics
2017-04-04  0:59         ` Jonathan Ganc
2017-04-05  6:58           ` martin rudalics
2017-04-07  3:56             ` Jonathan Ganc [this message]
2017-04-07  5:56               ` martin rudalics
2017-04-07 15:27                 ` Jonathan Ganc
2017-04-08  8:59                   ` martin rudalics
2017-04-08 22:42                     ` Jonathan Ganc
2017-04-09  6:37                       ` martin rudalics
2017-04-15  9:41                         ` Jonathan Ganc
2017-04-15 14:50                           ` martin rudalics
2017-04-15 15:11                             ` Eli Zaretskii
2017-04-15 19:39                               ` martin rudalics
2017-04-15 20:23                                 ` Jonathan Ganc
2017-04-16  7:15                                   ` martin rudalics
2017-04-15 20:33                                 ` Jonathan Ganc
2022-04-21 15:15                           ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=c5255932-2b02-0947-1db0-3549b015ddde@gmail.com \
    --to=jonganc@gmail.com \
    --cc=26104@debbugs.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).