unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23163: 25.1.50; w32-lwindow-modifier "unset" while running GDB
@ 2016-03-30 17:32 martin rudalics
  2016-03-30 18:23 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: martin rudalics @ 2016-03-30 17:32 UTC (permalink / raw)
  To: 23163

In my .emacs for Windows I have for many years the following settings.

(setq w32-pass-lwindow-to-system nil)
(setq w32-lwindow-modifier 'hyper)	; lwindow is hyper
(global-set-key [(control hyper meta b)] 'break-point-insert)

‘break-point-insert’ is a command that inserts a breakpoint into the
*gud-emacs.exe* buffer.  This command works fine in emacs-25 but fails
in master when running GDB.  In particular, it fails _after_ focus has
shifted to the debugged frame and I shifted it back to the debugger
frame.  The command actually executed by C-H-M b is then ‘backward-sexp’
which means that apparently ‘w32-lwindow-modifier’ has been unset and my
modifier given back to the system.

I believe that I have seen similar "unsettings" in other occasions as
well but the example given here is the only one I can confirm.

In GNU Emacs 25.1.50.1 (i686-pc-mingw32)
  of 2016-03-30 built on MACHNO
Repository revision: 292c4753923a468e6c29733ef8701cf2c6680aa8
Windowing system distributor 'Microsoft Corp.', version 5.1.2600
Configured using:
  'configure --prefix=/c/emacs-git/opt CFLAGS=-O3'

martin






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#23163: 25.1.50; w32-lwindow-modifier "unset" while running GDB
  2016-03-30 17:32 bug#23163: 25.1.50; w32-lwindow-modifier "unset" while running GDB martin rudalics
@ 2016-03-30 18:23 ` Eli Zaretskii
  2016-03-31  6:34   ` Jussi Lahdenniemi
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2016-03-30 18:23 UTC (permalink / raw)
  To: martin rudalics, Jussi Lahdenniemi; +Cc: 23163

> Date: Wed, 30 Mar 2016 19:32:49 +0200
> From: martin rudalics <rudalics@gmx.at>
> 
> In my .emacs for Windows I have for many years the following settings.
> 
> (setq w32-pass-lwindow-to-system nil)
> (setq w32-lwindow-modifier 'hyper)	; lwindow is hyper
> (global-set-key [(control hyper meta b)] 'break-point-insert)
> 
> ‘break-point-insert’ is a command that inserts a breakpoint into the
> *gud-emacs.exe* buffer.  This command works fine in emacs-25 but fails
> in master when running GDB.  In particular, it fails _after_ focus has
> shifted to the debugged frame and I shifted it back to the debugger
> frame.  The command actually executed by C-H-M b is then ‘backward-sexp’
> which means that apparently ‘w32-lwindow-modifier’ has been unset and my
> modifier given back to the system.
> 
> I believe that I have seen similar "unsettings" in other occasions as
> well but the example given here is the only one I can confirm.

Probably due to changes in 97d7a0b.  Jussi, could you please take a
look?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#23163: 25.1.50; w32-lwindow-modifier "unset" while running GDB
  2016-03-30 18:23 ` Eli Zaretskii
@ 2016-03-31  6:34   ` Jussi Lahdenniemi
  2016-03-31  7:14     ` martin rudalics
  0 siblings, 1 reply; 4+ messages in thread
From: Jussi Lahdenniemi @ 2016-03-31  6:34 UTC (permalink / raw)
  To: martin rudalics; +Cc: 23163

>> Date: Wed, 30 Mar 2016 19:32:49 +0200
>> From: martin rudalics <rudalics@gmx.at>
>>
>> In my .emacs for Windows I have for many years the following settings.
>>
>> (setq w32-pass-lwindow-to-system nil)
>> (setq w32-lwindow-modifier 'hyper)	; lwindow is hyper
>> (global-set-key [(control hyper meta b)] 'break-point-insert)
>>
>> ‘break-point-insert’ is a command that inserts a breakpoint into the
>> *gud-emacs.exe* buffer.  This command works fine in emacs-25 but fails
>> in master when running GDB.  In particular, it fails _after_ focus has
>> shifted to the debugged frame and I shifted it back to the debugger
>> frame.  The command actually executed by C-H-M b is then ‘backward-sexp’
>> which means that apparently ‘w32-lwindow-modifier’ has been unset and my
>> modifier given back to the system.
>>
>> I believe that I have seen similar "unsettings" in other occasions as
>> well but the example given here is the only one I can confirm.

Does it help if you add
(w32-register-hot-key [H-])
after the (global-set-key ...) line in your .emacs?

-- 
Jussi Lahdenniemi







^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#23163: 25.1.50; w32-lwindow-modifier "unset" while running GDB
  2016-03-31  6:34   ` Jussi Lahdenniemi
@ 2016-03-31  7:14     ` martin rudalics
  0 siblings, 0 replies; 4+ messages in thread
From: martin rudalics @ 2016-03-31  7:14 UTC (permalink / raw)
  To: Jussi Lahdenniemi; +Cc: 23163

 > Does it help if you add
 > (w32-register-hot-key [H-])
 > after the (global-set-key ...) line in your .emacs?

No.  Even worse, this breaks my ahk settings: Here, for example,
C-H-M-left is bound (via ahk) to a script that makes any Windows window
occupy the left half of my display.  This allows XP do what Aero does
later and also binds it to a different key, because Windows 7 broke my
old standard Emacs binding for S-H-up (or whatever old binding Aero was
usurping here, I don't recall at the moment).  It's not sufficient for
me to rebind keys in Emacs only - keys for resizing Windows windows must
be obviously uniform.

I believe the problem I see with GDB is due to refocussing during
debugging.  More precisely, the binding is hidden only _after_ I start
running an Emacs instance via GDB, the Windows window of the debugged
Emacs instance pops up, a breakpoint gets hit and I manually refocus the
Windows window of the debugging Emacs instance (using the mouse or
Alt-TAB, for example) in order to continue debugging.  The binding is
restored as soon as I quit GDB.

Please tell me if you have problems understanding this description (I
might have omitted some crucial detail).

Thanks, martin





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-31  7:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-30 17:32 bug#23163: 25.1.50; w32-lwindow-modifier "unset" while running GDB martin rudalics
2016-03-30 18:23 ` Eli Zaretskii
2016-03-31  6:34   ` Jussi Lahdenniemi
2016-03-31  7:14     ` martin rudalics

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).