GNU bug report logs - #1042
23.0.60; read-char can evaluate to non-character

Previous Next

Package: emacs;

Reported by: Markus Triska <markus.triska <at> gmx.at>

Date: Sun, 28 Sep 2008 05:15:02 UTC

Severity: minor

Merged with 13599, 32562

Found in version 24.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 1042 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Markus Triska <markus.triska <at> gmx.at>, 1042 <at> debbugs.gnu.org
Subject: Re: bug#1042: 23.0.60; read-char can evaluate to non-character
Date: Sun, 28 Sep 2008 10:50:12 +0200
> 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.





This bug report was last modified 6 years and 256 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.