all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 4751@emacsbugs.donarmstrong.com
Subject: bug#4751: 23.1; `read-char' inserts accented chars when you use `M-' modifier
Date: Tue, 20 Oct 2009 15:56:22 -0400	[thread overview]
Message-ID: <jwvzl7lonka.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <5915254BB95348E2BB2962DF2A524778@us.oracle.com> (Drew Adams's message of "Tue, 20 Oct 2009 08:05:55 -0700")

> I'm also confused about `characterp' and the notion of a character.
> `(elisp)Character Type' says that only integers/chars from 0 to
> 4194303 can be in strings or buffers.
> But ?\M-t is 134217844,

Yes.

> yet "\M-t" is a string with that char (`o' circumflex),

\M-t in strings is a special case inherited from ASCII days where the
meta modifier was used to represent the upper 8th bit.  We still support
it because it's very commonly (mis)used in .emacsen for key bindings,
but I'd strongly recommend to stay very far away from it.

And whenever \M-t is turned into ô (or vice-versa), this is a pretty
much a bug (tho there are a few cases where fixing this bug may be
difficult).  The only case I know where it's a "feature" is for C-q M-t.

> and (insert-char ?\M-t 1) inserts it in a buffer.

I believe the patch I installed earlier to fix read_char also fixed this one.

> a string or buffer. What is that subset (it seems to be chars <
> 4194304)? 

Yes, currently this is the subset.  In Emacs-22 it was different, and
who knows what the future may bring.

> Wrt `read-char' what is/are the intention(s) - use cases?

I really wish I knew.


        Stefan





  reply	other threads:[~2009-10-20 19:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-18 21:44 bug#4751: 23.1; `read-char' inserts accented chars when you use `M-' modifier Drew Adams
2009-10-18 22:36 ` Andreas Schwab
2009-10-19  2:15 ` Stefan Monnier
2009-10-19  6:11   ` Drew Adams
2009-10-19 13:54     ` Stefan Monnier
2009-10-19 21:42       ` Drew Adams
2009-10-20  1:20         ` Stefan Monnier
2009-10-20  2:13           ` Stefan Monnier
2009-10-20  2:30             ` Drew Adams
2009-10-20 13:51               ` Stefan Monnier
2009-10-20 15:05                 ` Drew Adams
2009-10-20 19:56                   ` Stefan Monnier [this message]
2011-09-11  4:47                     ` Lars Magne Ingebrigtsen

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=jwvzl7lonka.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=4751@emacsbugs.donarmstrong.com \
    --cc=drew.adams@oracle.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.