* Can we run Lisp function in encode_terminal_code of term.c?
[not found] <v97joddgi4.fsf@marauder.physik.uni-ulm.de>
@ 2004-11-26 12:15 ` Kenichi Handa
2004-11-29 6:12 ` Richard Stallman
0 siblings, 1 reply; 2+ messages in thread
From: Kenichi Handa @ 2004-11-26 12:15 UTC (permalink / raw)
In article <v97joddgi4.fsf@marauder.physik.uni-ulm.de>, Reiner Steib <reinersteib+gmane@imap.cc> writes:
> gb2312 characters are not displayed correctly in an UTF-8 enabled
> xterm when started with `emacs -nw'.
This is because encode_terminal_code (that is called from
write_glyphs) doesn't run pre-write-conversion of utf-8. I
don't remember why I didn't do that. There's a possibility
that running Lisp here is not safe. As write_glyphs is
called from various places in dispnew.c, I can't tell easily
whether it is safe or not. Does anybody know?
---
Ken'ichi HANDA
handa@m17n.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can we run Lisp function in encode_terminal_code of term.c?
2004-11-26 12:15 ` Can we run Lisp function in encode_terminal_code of term.c? Kenichi Handa
@ 2004-11-29 6:12 ` Richard Stallman
0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2004-11-29 6:12 UTC (permalink / raw)
Cc: emacs-devel
This is because encode_terminal_code (that is called from
write_glyphs) doesn't run pre-write-conversion of utf-8. I
don't remember why I didn't do that. There's a possibility
that running Lisp here is not safe. As write_glyphs is
called from various places in dispnew.c, I can't tell easily
whether it is safe or not.
In general, running Lisp code from redisplay is safe nowadays.
I looked at the callers of write_glyphs, and it seems to be safe
to run Lisp code there. I am not quite certain it is ok
to get an error from there, but it looks safe.
Anyway, if you make sure this particular Lisp code will
never get an error unless Emacs is badly screwed, then
we don't have to worry about the issue of what happens if it
gets an error.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-29 6:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <v97joddgi4.fsf@marauder.physik.uni-ulm.de>
2004-11-26 12:15 ` Can we run Lisp function in encode_terminal_code of term.c? Kenichi Handa
2004-11-29 6:12 ` Richard Stallman
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.