From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yagnesh Raghava Yakkala Newsgroups: gmane.emacs.help Subject: Re: capture gtk kill (gnome alt-f4) (delete-event?) Date: Sat, 26 May 2012 15:28:12 +0900 Message-ID: References: <87sjen34fr.fsf@okhotsk19.lowtem.hokudai.ac.jp> <87ehq7pl5y.fsf@xc.laptop> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1338013604 15502 80.91.229.3 (26 May 2012 06:26:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 26 May 2012 06:26:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: XeCycle Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 26 08:26:43 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SYASW-0001df-5m for geh-help-gnu-emacs@m.gmane.org; Sat, 26 May 2012 08:26:40 +0200 Original-Received: from localhost ([::1]:36293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYASV-0006lV-Op for geh-help-gnu-emacs@m.gmane.org; Sat, 26 May 2012 02:26:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYASQ-0006l8-Mr for help-gnu-emacs@gnu.org; Sat, 26 May 2012 02:26:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYASO-0005fT-Uk for help-gnu-emacs@gnu.org; Sat, 26 May 2012 02:26:34 -0400 Original-Received: from blu0-omc4-s29.blu0.hotmail.com ([65.55.111.168]:41866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYASO-0005fH-RL for help-gnu-emacs@gnu.org; Sat, 26 May 2012 02:26:32 -0400 Original-Received: from BLU0-SMTP138 ([65.55.111.136]) by blu0-omc4-s29.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 25 May 2012 23:26:30 -0700 X-Originating-IP: [133.87.217.175] X-Originating-Email: [yagnesh@live.com] Original-Received: from smtp.live.com ([133.87.217.175]) by BLU0-SMTP138.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 25 May 2012 23:26:28 -0700 In-Reply-To: <87ehq7pl5y.fsf@xc.laptop> (XeCycle@gmail.com's message of "Sat, 26 May 2012 13:26:49 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-OriginalArrivalTime: 26 May 2012 06:26:28.0844 (UTC) FILETIME=[7BEBCAC0:01CD3B08] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-Received-From: 65.55.111.168 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84987 Archived-At: Hello XeCycle, Thanks for the reply., XeCycle writes: > Yagnesh Raghava Yakkala writes: > [=E2=80=A6] >> 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?=20 PS: FWIW I am using Gtk(2.20.1-2), Gnome (2.30.2) on Debian squeeze. Thanks., --=20 =E0=B0=8E=E0=B0=82=E0=B0=A6=E0=B0=B0=E0=B1=8B =E0=B0=AE=E0=B0=B9=E0=B0=BE= =E0=B0=A8=E0=B1=81=E0=B0=AD=E0=B0=BE=E0=B0=B5=E0=B1=81=E0=B0=B2=E0=B1=81 = =E0=B0=85=E0=B0=82=E0=B0=A6=E0=B0=B0=E0=B0=BF=E0=B0=95=E0=B0=BF =E0=B0=B5= =E0=B0=82=E0=B0=A6=E0=B0=A8=E0=B0=AE=E0=B1=81=E0=B0=B2=E0=B1=81 YYR