From: XeCycle <XeCycle@Gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: capture gtk kill (gnome alt-f4) (delete-event?)
Date: Sat, 26 May 2012 13:26:49 +0800 [thread overview]
Message-ID: <87ehq7pl5y.fsf@xc.laptop> (raw)
In-Reply-To: 87sjen34fr.fsf@okhotsk19.lowtem.hokudai.ac.jp
[-- 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 --]
next prev parent reply other threads:[~2012-05-26 5:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-26 5:19 capture gtk kill (gnome alt-f4) (delete-event?) Yagnesh Raghava Yakkala
2012-05-26 5:26 ` XeCycle [this message]
2012-05-26 6:28 ` Yagnesh Raghava Yakkala
2012-05-26 7:36 ` XeCycle
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=87ehq7pl5y.fsf@xc.laptop \
--to=xecycle@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.