emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-q vs documentation


From: Marco Parrone
Subject: Re: C-q vs documentation
Date: 24 Mar 2003 16:19:05 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"Stefan Monnier" <monnier+gnu/emacs/address@hidden> writes:

> The reason why I used this-single-command-raw-keys is because CHAR has
> already been through key-translation-map, so pushing it back onto
> the unread-command-events will cause it to go through key-translation-map
> a second time, which can result in incorrect results.
> E.g. if you use key-translation-map to switch two keys.
> 
> 
>       Stefan

I missed to Cc: the ML.
The my past reply follows.
I hope it helps.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Stallman <address@hidden> writes:

> Does this patch fix it?
> 
> *** subr.el.~1.344.~  Mon Mar 17 13:59:36 2003
> --- subr.el   Sat Mar 22 09:03:07 2003
> ***************
> *** 1112,1118 ****
>                (setq char (aref translated 0)))))
>         (cond ((null char))
>           ((not (integerp char))
> !          (setq unread-command-events (listify-key-sequence 
> (this-single-command-raw-keys))
>                  done t))
[...]
> !          (setq unread-command-events (list char)
[...]

No, it's the same.

IMHO the problem is not that the first non-digit is ignored, but that
the first non-digit may terminate the sequence, but it don't.

IMHO if you make the first non-digit terminate the sequence, then it
will be only and so the last non-digit, and it will not be ignored.

"(setq unread-command-events ..." (in my little understanding of
elisp) unreads the last char, and if you make the first non-digit the
last (as it may be) then it will be correct.

- -- 
Marco Parrone - address@hidden
www.autistici.org/marc0
2143 9E77 D5E6 115A 48AD  A170 D0EE F736 (4E88 99C2)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQE+fc5B0O73Nk6ImcIRAkpfAJ4m64tvr3QjQCLV/rhNABLaMXOhbgCeM57E
p6vN2rUXUKmaUCYS4smHEdU=
=StGg
-----END PGP SIGNATURE-----

-- 
Marco Parrone - address@hidden
www.autistici.org/marc0
2143 9E77 D5E6 115A 48AD  A170 D0EE F736 (4E88 99C2)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]