From: Kenichi Handa <handa@m17n.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: schwab@suse.de, christopher.ian.moore@gmail.com, rms@gnu.org,
emacs-pretest-bug@gnu.org
Subject: Re: capslock changes control characters?
Date: Mon, 10 Mar 2008 09:54:42 +0900 [thread overview]
Message-ID: <E1JYWHq-0006Dq-RD@etlken.m17n.org> (raw)
In-Reply-To: <jwvskz2m990.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Fri, 07 Mar 2008 18:04:17 -0500)
In article <jwvskz2m990.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:
> > I think the current Emacs doesn't have a clear view about
> > when and how to resolve modifiers. For instance, S-i is
> > resolved to `I' by XLookupString, C-i is resolved to 9 in
> > make_ctrl_char. Then I think C-S-i should also be resolved
> > somewher before it's given to Lisp, at least before it's
> > given to Lisp as character.
> It should still be possible to distinguish key-bindings to C-i
> (i.e. TAB) and C-S-i (i.e. S-TAB), provided the underlying terminal
> allows it, obviously.
> Does your code still allow this distinction?
No. If one needs such distinction, he should use
read-event.
> > Resolving of M-i is surely questionable, but as Emacs has
> > accepeted M-i upon (insert (read-char)) for long, I resolved
> > them too for backward compatibility.
> I think this was just an accidental misfeature and would should not
> preserve this kind of backward compatibility. I can't imagine how it
> could break any existing elisp package, and if a user used that in the
> past, there are plenty of alternative ways to get the same result in
> a saner way.
Ok. But, currently Emacs allows this kind of string "\M-i"
(same as "\351", note that "\H-i" signales the error
"Invalid modifier in string"). It seems that this is also a
misfeature. If we disallow M-i upon (insert (read-char)),
shouldn't we disallow "\M-i" too?
---
Kenichi Handa
handa@ni.aist.go.jp
next prev parent reply other threads:[~2008-03-10 0:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-18 18:45 capslock changes control characters? Chris Moore
2008-02-24 22:30 ` Richard Stallman
2008-03-03 10:38 ` David Reitter
2008-03-03 14:02 ` Stefan Monnier
2008-03-03 14:49 ` Andreas Schwab
2008-03-04 13:15 ` Chris Moore
2008-03-05 5:13 ` Kenichi Handa
2008-03-05 16:18 ` Stefan Monnier
2008-03-05 16:50 ` Andreas Schwab
2008-03-06 11:20 ` Kenichi Handa
2008-03-07 23:04 ` Stefan Monnier
2008-03-10 0:54 ` Kenichi Handa [this message]
2008-03-10 3:26 ` Stefan Monnier
2008-03-16 9:15 ` Andreas Schwab
2008-03-17 0:48 ` Kenichi Handa
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1JYWHq-0006Dq-RD@etlken.m17n.org \
--to=handa@m17n.org \
--cc=christopher.ian.moore@gmail.com \
--cc=emacs-pretest-bug@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=rms@gnu.org \
--cc=schwab@suse.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).