From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: usr1-signal, usr2-signal, etc. Date: Mon, 04 Dec 2006 00:15:42 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: dough.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1165209388 31017 80.91.229.10 (4 Dec 2006 05:16:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Dec 2006 05:16:28 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 04 06:16:26 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gr6Bk-0007mK-Bf for ged-emacs-devel@m.gmane.org; Mon, 04 Dec 2006 06:16:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gr6Bk-0007K5-2x for ged-emacs-devel@m.gmane.org; Mon, 04 Dec 2006 00:16:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gr6B7-00077W-8F for emacs-devel@gnu.org; Mon, 04 Dec 2006 00:15:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gr6B6-000770-K5 for emacs-devel@gnu.org; Mon, 04 Dec 2006 00:15:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gr6B6-00076p-CK for emacs-devel@gnu.org; Mon, 04 Dec 2006 00:15:44 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gr6B6-00054e-B2 for emacs-devel@gnu.org; Mon, 04 Dec 2006 00:15:44 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.52) id 1Gr6B4-0005bb-Ts; Mon, 04 Dec 2006 00:15:42 -0500 Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: (storm@cua.dk) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63259 Archived-At: IMHO, the new signal events in emacs 22 are not done the right way. To me, it would be cleaner to define them as [signal usr1], [signal usr2], etc. Do you mean that it would generate a sequence of two events, `signal' and `usr1', so that `signal' would act as a prefix char? I agree. Please change it. Ok, there is currently no "etc" in emacs 22, but if we later want to be able to catch more signals, this would be a cleaner way to extend the interface. I don't understand what that refers to. We could even allow numeric bindings, like [signal 10] for SIGUSR1, and also variants like [signal SIGUSR1]. I don't see how that would work. The signal has to generate a certain sequence of events. If it generates `signal' and `usr1', the second event is not `SIGUSR1' and it is not 10 (C-h).