From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Emacs 23 Mac port Date: Tue, 12 Jan 2010 18:21:23 +0100 Message-ID: <4B4CAF93.70101@swipnet.se> References: <2282B3B4-D844-4E26-BB94-9F79EEA2E847@gmail.com> <4B4C2FD7.8070406@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1263317102 28066 80.91.229.12 (12 Jan 2010 17:25:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2010 17:25:02 +0000 (UTC) Cc: Leo , YAMAMOTO Mitsuharu , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 12 18:24:54 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NUkU5-0007nM-99 for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2010 18:24:49 +0100 Original-Received: from localhost ([127.0.0.1]:53994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUkU5-0008Hw-Tg for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2010 12:24:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUkQx-0005sR-21 for emacs-devel@gnu.org; Tue, 12 Jan 2010 12:21:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUkQs-0005pw-Bm for emacs-devel@gnu.org; Tue, 12 Jan 2010 12:21:34 -0500 Original-Received: from [199.232.76.173] (port=58953 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUkQr-0005pr-QK for emacs-devel@gnu.org; Tue, 12 Jan 2010 12:21:30 -0500 Original-Received: from proxy2.bredband.net ([195.54.101.72]:63299) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUkQr-0005LJ-F1 for emacs-devel@gnu.org; Tue, 12 Jan 2010 12:21:29 -0500 Original-Received: from ipb1.telenor.se (195.54.127.164) by proxy2.bredband.net (7.3.140.3) id 4AD3E1BC02535614 for emacs-devel@gnu.org; Tue, 12 Jan 2010 18:21:26 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoZDAA8+TEtV4S1uPGdsb2JhbACBRYZukx4BAQEBN7ohhDAE X-IronPort-AV: E=Sophos;i="4.49,262,1262559600"; d="scan'208";a="26090612" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 12 Jan 2010 18:21:25 +0100 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id DA1DA7FA01A; Tue, 12 Jan 2010 18:21:24 +0100 (CET) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:119875 Archived-At: Stefan Monnier skrev 2010-01-12 15.15: >> Thanks. But then a special event such as SIGUSR1 cancels an >> incomplete key sequence being typed. How about doing this only when >> the current buffer is changed by the special event? > > IIRC the general approach to these kinds of problems in > read-key-sequence is to only recompute the initial state if the current > key-sequence is still empty. > I.e. rather than check whether the special event has changed current > buffer, we would instead check whether the keybuf is still empty. > But that can be wrong too. In *scratch*: C-c C-e Jan D.