unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Lisp reader bug
@ 2003-04-04 11:24 Kenichi Handa
  2003-04-04 17:08 ` Kim F. Storm
  2003-04-05  8:12 ` Richard Stallman
  0 siblings, 2 replies; 6+ messages in thread
From: Kenichi Handa @ 2003-04-04 11:24 UTC (permalink / raw)


Emacs of CVS HEAD has a bug in Lisp reader.  For instance,

(read (format "'%c" (decode-char 'ucs #x102)))
=> (quote )

I'm not sure, but perhaps this change is the cause.

2003-02-18  Kim F. Storm  <storm@cua.dk>

	* lread.c (read1): Fix last change.
	"`" is not always special.  Allow "?" after a character constant.

This change adds codes something like this (total 4 places):

	  || index ("\"';([#?", next_next_char)

but, it seems that `index' doesn't work well if the second
arg is greater than 0xFF.  Actually, if I change such lines
to:

	  || (next_next_char < 0x100 && index ("\"';([#?", next_next_char))

the bug disappears.

Kim, could you take a look at this problem?

---
Ken'ichi HANDA
handa@m17n.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-04-09  7:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-04 11:24 Lisp reader bug Kenichi Handa
2003-04-04 17:08 ` Kim F. Storm
2003-04-04 15:53   ` Andreas Schwab
2003-04-09  7:14   ` Kenichi Handa
2003-04-05  8:12 ` Richard Stallman
2003-04-09  7:18   ` Kenichi Handa

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).