From: "Jan D." <jan.h.d@swipnet.se>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Leo <sdl.web@gmail.com>,
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>,
emacs-devel@gnu.org
Subject: Re: Emacs 23 Mac port
Date: Wed, 13 Jan 2010 08:39:38 +0100 [thread overview]
Message-ID: <4B4D78BA.8030703@swipnet.se> (raw)
In-Reply-To: <jwvljg3aujb.fsf-monnier+emacs@gnu.org>
On 2010-01-12 22:22, Stefan Monnier wrote:
>>>> 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<drop .c-file> C-e
>
> In which sense would it be wrong? What would you consider to be "right"?
>
>
Well, given that we recompute only if the key-sequence is empty, the
case above will then behave as the original bug. I guess right would be
to somehow detect that ketmaps need to be recomputed and do so without
discarding any ongoing key sequence.
I'm just playing devils advocate here. I don't think we can get it 100%
correct easily. Recompute on buffer change gets some border cases
right, recompute on empty key-sequence gets some other border cases
right. But for the majority of cases, they are probably equivalent.
Jan D.
next prev parent reply other threads:[~2010-01-13 7:39 UTC|newest]
Thread overview: 156+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-20 11:02 Carbon: resizing a frame on wrong "space" David Reitter
2008-02-21 1:13 ` YAMAMOTO Mitsuharu
2008-02-28 20:26 ` Harald Maier
2008-02-29 0:15 ` YAMAMOTO Mitsuharu
2008-02-29 2:40 ` William Xu
2008-02-29 3:02 ` YAMAMOTO Mitsuharu
2008-02-29 3:10 ` William Xu
2008-02-29 3:18 ` YAMAMOTO Mitsuharu
2008-02-29 4:55 ` Dan Nicolaescu
2008-02-29 8:36 ` YAMAMOTO Mitsuharu
2008-03-02 4:44 ` Stefan Monnier
2008-09-07 3:46 ` YAMAMOTO Mitsuharu
2008-11-27 11:37 ` YAMAMOTO Mitsuharu
2009-01-26 4:48 ` YAMAMOTO Mitsuharu
2009-03-27 0:28 ` YAMAMOTO Mitsuharu
2009-05-13 3:25 ` YAMAMOTO Mitsuharu
2009-06-27 5:58 ` Emacs 22 Carbon+AppKit port (was Re: Carbon: resizing a frame on wrong "space") YAMAMOTO Mitsuharu
2009-08-03 2:55 ` Emacs 22 Carbon+AppKit port YAMAMOTO Mitsuharu
2009-08-07 20:41 ` CHENG Gao
2009-08-29 0:48 ` YAMAMOTO Mitsuharu
2009-08-31 17:38 ` Benjamin Riefenstahl
2009-09-01 5:40 ` YAMAMOTO Mitsuharu
2009-09-05 2:18 ` Emacs 22 Carbon+AppKit port and Emacs 23 Mac port YAMAMOTO Mitsuharu
2009-09-05 7:47 ` CHENG Gao
2009-09-05 8:56 ` YAMAMOTO Mitsuharu
2009-09-05 11:27 ` CHENG Gao
2009-09-05 12:15 ` David Reitter
2009-09-05 12:42 ` Stephen J. Turnbull
2009-09-05 14:35 ` CHENG Gao
2009-09-05 17:28 ` David Reitter
2009-09-08 18:45 ` David Reitter
2009-09-08 16:22 ` Stefan Monnier
2009-09-09 0:26 ` YAMAMOTO Mitsuharu
2009-09-05 8:03 ` CHENG Gao
2009-09-08 10:38 ` CHENG Gao
2009-09-09 1:04 ` YAMAMOTO Mitsuharu
2009-09-10 10:16 ` YAMAMOTO Mitsuharu
2009-09-11 18:11 ` CHENG Gao
2009-09-27 4:23 ` YAMAMOTO Mitsuharu
2009-11-01 4:47 ` YAMAMOTO Mitsuharu
2009-12-09 22:08 ` YAMAMOTO Mitsuharu
2009-12-31 11:46 ` YAMAMOTO Mitsuharu
2010-01-02 1:27 ` Leo
2010-01-02 4:21 ` YAMAMOTO Mitsuharu
2010-01-02 10:19 ` Leo
2010-01-02 15:26 ` Leo
2010-01-02 20:56 ` Leo
2010-01-03 2:45 ` YAMAMOTO Mitsuharu
2010-01-03 11:07 ` Leo
2010-01-12 8:16 ` Jan Djärv
2010-01-12 9:03 ` YAMAMOTO Mitsuharu
2010-01-12 9:28 ` Jan Djärv
2010-01-12 10:18 ` YAMAMOTO Mitsuharu
2010-01-03 11:07 ` bug#5295: 23.1.91; special-event-map bug Leo
2010-01-12 10:19 ` bug#5295: marked as done (23.1.91; special-event-map bug) Emacs bug Tracking System
2010-01-12 14:15 ` Emacs 23 Mac port Stefan Monnier
2010-01-12 17:21 ` Jan Djärv
2010-01-12 21:22 ` Stefan Monnier
2010-01-13 7:39 ` Jan D. [this message]
2010-01-13 14:38 ` Stefan Monnier
2010-01-12 23:35 ` YAMAMOTO Mitsuharu
2010-01-13 7:43 ` Jan D.
2010-01-04 2:08 ` Stefan Monnier
2010-01-30 4:42 ` YAMAMOTO Mitsuharu
2010-02-27 9:19 ` YAMAMOTO Mitsuharu
2010-04-03 2:26 ` YAMAMOTO Mitsuharu
2010-04-03 14:55 ` Leo
2010-04-03 16:07 ` Leo
2010-04-04 5:36 ` YAMAMOTO Mitsuharu
2010-04-06 13:09 ` Leo
2010-04-20 9:08 ` YAMAMOTO Mitsuharu
2010-04-20 13:07 ` Leo
2010-04-28 8:57 ` Leo
2010-04-30 1:21 ` YAMAMOTO Mitsuharu
2010-05-04 2:35 ` YAMAMOTO Mitsuharu
2010-05-04 3:10 ` Leo
2010-05-05 1:09 ` YAMAMOTO Mitsuharu
2010-05-05 15:58 ` David Reitter
2010-05-06 1:04 ` YAMAMOTO Mitsuharu
2010-05-06 16:34 ` covici
2010-05-07 0:33 ` YAMAMOTO Mitsuharu
2010-05-06 17:31 ` David Reitter
2010-06-06 18:48 ` John Higgins
2010-06-06 21:28 ` David Reitter
2010-06-07 0:53 ` YAMAMOTO Mitsuharu
2010-06-11 21:27 ` Daniel Colascione
2010-11-16 1:25 ` YAMAMOTO Mitsuharu
2010-11-16 14:11 ` Ted Zlatanov
2010-11-17 13:44 ` YAMAMOTO Mitsuharu
2010-11-17 14:57 ` Ted Zlatanov
2010-11-17 17:00 ` David Reitter
2010-05-09 4:45 ` YAMAMOTO Mitsuharu
2010-05-29 8:14 ` YAMAMOTO Mitsuharu
2010-06-26 3:51 ` YAMAMOTO Mitsuharu
2010-07-31 5:23 ` YAMAMOTO Mitsuharu
2010-07-31 11:36 ` covici
2010-08-05 19:15 ` David Reitter
2010-09-27 8:38 ` YAMAMOTO Mitsuharu
2010-09-27 9:24 ` Leo
2010-11-10 8:50 ` YAMAMOTO Mitsuharu
2010-11-14 21:47 ` Daniel Colascione
2010-11-15 1:48 ` Leo
2010-11-15 1:52 ` covici
2010-11-15 7:03 ` Chad Brown
2010-11-15 15:23 ` Ted Zlatanov
2010-11-17 21:49 ` ken manheimer
2010-11-18 14:35 ` YAMAMOTO Mitsuharu
2010-12-01 3:34 ` Leo
2010-12-01 10:43 ` Leo
2010-12-02 10:01 ` YAMAMOTO Mitsuharu
2010-12-02 14:52 ` Leo
2010-12-03 4:41 ` YAMAMOTO Mitsuharu
2010-12-03 6:34 ` Leo
2010-12-12 4:41 ` YAMAMOTO Mitsuharu
2011-01-15 10:35 ` YAMAMOTO Mitsuharu
2011-02-01 9:40 ` YAMAMOTO Mitsuharu
2011-02-15 8:04 ` YAMAMOTO Mitsuharu
2011-03-10 6:29 ` YAMAMOTO Mitsuharu
2011-07-23 3:28 ` YAMAMOTO Mitsuharu
2011-07-26 11:07 ` YAMAMOTO Mitsuharu
2011-08-06 5:55 ` YAMAMOTO Mitsuharu
2011-08-06 11:48 ` Dimitri Fontaine
2011-08-06 13:00 ` Jan Djärv
2011-08-08 0:08 ` Alp Aker
2011-08-08 3:37 ` Stefan Monnier
2011-08-08 4:45 ` YAMAMOTO Mitsuharu
2011-08-08 9:48 ` Jan Djärv
2011-08-08 13:02 ` David Reitter
2011-08-08 16:14 ` Jan Djärv
2011-08-08 12:59 ` David Reitter
2011-08-12 16:57 ` Dimitri Fontaine
2011-08-27 0:52 ` YAMAMOTO Mitsuharu
2011-09-01 0:42 ` YAMAMOTO Mitsuharu
2011-10-02 12:30 ` YAMAMOTO Mitsuharu
2011-10-06 19:08 ` Lars Magne Ingebrigtsen
2011-10-07 0:27 ` YAMAMOTO Mitsuharu
2011-10-07 10:25 ` Lars Magne Ingebrigtsen
2011-10-17 1:29 ` YAMAMOTO Mitsuharu
2011-10-27 2:46 ` YAMAMOTO Mitsuharu
2011-11-28 10:45 ` YAMAMOTO Mitsuharu
2011-11-28 12:06 ` Carsten Mattner
2011-11-29 18:51 ` Jan Djärv
2011-11-28 14:58 ` Xu Xin
2012-01-15 6:07 ` YAMAMOTO Mitsuharu
2012-01-15 17:29 ` Xu Xin
2012-01-31 6:52 ` YAMAMOTO Mitsuharu
2012-01-31 15:57 ` Xu Xin
2012-01-31 19:01 ` John Wiegley
2010-03-13 0:16 ` Emacs 22 Carbon+AppKit port and " YAMAMOTO Mitsuharu
2010-03-15 18:12 ` Giovanni Lanzani
2010-03-16 0:23 ` YAMAMOTO Mitsuharu
-- strict thread matches above, loose matches on Subject: below --
2012-01-16 11:32 emacs user
2012-01-16 13:01 ` Leo
2012-01-17 0:49 ` YAMAMOTO Mitsuharu
2012-01-17 3:47 ` YAMAMOTO Mitsuharu
2012-01-17 10:51 ` YAMAMOTO Mitsuharu
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=4B4D78BA.8030703@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=mituharu@math.s.chiba-u.ac.jp \
--cc=monnier@IRO.UMontreal.CA \
--cc=sdl.web@gmail.com \
/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.