From: martin rudalics <rudalics@gmx.at>
To: Markus Triska <markus.triska@gmx.at>, 1042@emacsbugs.donarmstrong.com
Subject: bug#1042: 23.0.60; read-char can evaluate to non-character
Date: Sun, 28 Sep 2008 10:50:12 +0200 [thread overview]
Message-ID: <48DF4544.2070704@gmx.at> (raw)
In-Reply-To: <20080928050936.D9027B0F76E@mt-computer.local>
> In "$ emacs -Q", when I evaluate:
>
> (read-char)
>
> and press C-0, I get:
>
> 67108912
>
> However, (characterp 67108912) is nil, and (char-to-string 67108912)
> throws an error. Thus I expect an error also from read-char in this
> case.
The doc-string of `read-char' says
If the character has modifiers, they are resolved and reflected to the
character code if possible (e.g. C-SPC -> 0).
Do you have a particular use case that calls for throwing an error here?
> Besides, in `char-resolve-modifers', "modifiers" is misspelled.
I fixed that.
Thanks, martin.
next prev parent reply other threads:[~2008-09-28 8:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-28 5:09 bug#1042: 23.0.60; read-char can evaluate to non-character Markus Triska
2008-09-28 8:50 ` martin rudalics [this message]
2008-09-28 12:14 ` Markus Triska
-- strict thread matches above, loose matches on Subject: below --
2008-09-29 22:38 Chong Yidong
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=48DF4544.2070704@gmx.at \
--to=rudalics@gmx.at \
--cc=1042@emacsbugs.donarmstrong.com \
--cc=markus.triska@gmx.at \
/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).