* capture gtk kill (gnome alt-f4) (delete-event?)
@ 2012-05-26 5:19 Yagnesh Raghava Yakkala
2012-05-26 5:26 ` XeCycle
0 siblings, 1 reply; 4+ messages in thread
From: Yagnesh Raghava Yakkala @ 2012-05-26 5:19 UTC (permalink / raw)
To: help-gnu-emacs
Hello.,
is there a way I can capture alt-f4 (in gnome) and act within Emacs.?
This is because, recent times, I am killing Emacs by mistake with
alt-f4.
I am longing for a function which captures alt-f4 event and ask me for
confirmation in all circumstances.
Thanks.,
--
ఎందరో మహానుభావులు అందరికి వందనములు
YYR
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: capture gtk kill (gnome alt-f4) (delete-event?)
2012-05-26 5:19 capture gtk kill (gnome alt-f4) (delete-event?) Yagnesh Raghava Yakkala
@ 2012-05-26 5:26 ` XeCycle
2012-05-26 6:28 ` Yagnesh Raghava Yakkala
0 siblings, 1 reply; 4+ messages in thread
From: XeCycle @ 2012-05-26 5:26 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 809 bytes --]
Yagnesh Raghava Yakkala <yagnesh@live.com> writes:
> Hello.,
>
> is there a way I can capture alt-f4 (in gnome) and act within Emacs.?
>
> This is because, recent times, I am killing Emacs by mistake with
> alt-f4.
>
> I am longing for a function which captures alt-f4 event and ask me for
> confirmation in all circumstances.
Don't think there will be one, since it may or may not work.
The key is received by X server, then goes to whichever program
that binds this key; if the key is first bound by the window
manager, it may or may not allow rebinds of it.
You'd better play with it in your window manager.
--
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591
[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: capture gtk kill (gnome alt-f4) (delete-event?)
2012-05-26 5:26 ` XeCycle
@ 2012-05-26 6:28 ` Yagnesh Raghava Yakkala
2012-05-26 7:36 ` XeCycle
0 siblings, 1 reply; 4+ messages in thread
From: Yagnesh Raghava Yakkala @ 2012-05-26 6:28 UTC (permalink / raw)
To: XeCycle; +Cc: help-gnu-emacs
Hello XeCycle,
Thanks for the reply.,
XeCycle <XeCycle@Gmail.com> writes:
> Yagnesh Raghava Yakkala <yagnesh@live.com> writes:
>
[…]
>> I am longing for a function which captures alt-f4 event and ask me for
>> confirmation in all circumstances.
>
> Don't think there will be one, since it may or may not work.
>
> The key is received by X server, then goes to whichever program
> that binds this key; if the key is first bound by the window
> manager, it may or may not allow rebinds of it.
I thought it is possible since Emacs is asking for confirmation(with
unsaved buffer exist) when I click [X] button with mouse on a Emacs frame.
They are the same signals., aren't they?
PS: FWIW I am using Gtk(2.20.1-2), Gnome (2.30.2) on Debian squeeze.
Thanks.,
--
ఎందరో మహానుభావులు అందరికి వందనములు
YYR
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: capture gtk kill (gnome alt-f4) (delete-event?)
2012-05-26 6:28 ` Yagnesh Raghava Yakkala
@ 2012-05-26 7:36 ` XeCycle
0 siblings, 0 replies; 4+ messages in thread
From: XeCycle @ 2012-05-26 7:36 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 498 bytes --]
Yagnesh Raghava Yakkala <yagnesh@live.com> writes:
[...]
> I thought it is possible since Emacs is asking for confirmation(with
> unsaved buffer exist) when I click [X] button with mouse on a Emacs frame.
>
> They are the same signals., aren't they?
If Emacs acts differently on them, they must be different.
--
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591
[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-05-26 7:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-26 5:19 capture gtk kill (gnome alt-f4) (delete-event?) Yagnesh Raghava Yakkala
2012-05-26 5:26 ` XeCycle
2012-05-26 6:28 ` Yagnesh Raghava Yakkala
2012-05-26 7:36 ` XeCycle
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.