Note: it should really be int-char and char-int, not int-to-char and
char-to-int.
Yoshiki Hayashi <t90553(a)m.ecc.u-tokyo.ac.jp> writes:
> This is exactly the kind of code that we should disallow. What
> does each of those 558 characters mean when inserted in the
> buffer? Surely most of them are not characters in any known
> character set. Should they be inserted? Ignored? Do you tell
> the user what you've done? In which functions do you want to put
> the checking code? What are you supposed to do with the integers
> that are not characters: signal an error, display a warning, set a
> flag for user code to check?
Signal an error.
I hope you don't propose that int-char signals an error. It would be
a serious breach of compatibility. What should happen is that it
returns nil, just as before. (insert nil) will, of course, signal an
error.
Desired code is like this
(let ((i 32))
(while (< i 128)
(insert (make-char 'latin-iso8859-9 i))
(setq i (1+ i))))
Yup. That's where we all agree.