annotate lib-src/leditcfns.c @ 4623:a9f83990e6bf
Fix a byte compiler bug with characters above ?\xFF.
lisp/ChangeLog addition:
2009-02-22 Aidan Kehoe <kehoea@parhasard.net>
* bytecomp.el (byte-compile-force-escape-quoted): New variable,
used to force `byte-compile-insert-header' to treat the output as
having characters above ?\xFF.
(byte-compile-from-buffer):
If the compiled output contains characters above ?\xFF, and
byte-compile-dynamic-docstrings or byte-compile-dynamic is non-nil
(or we're using an inappropriate coding system) recompile the
file, turning off the dynamic features and using a more
appropriate header.
(byte-compile-insert-header): Pay attention to
byte-compile-force-escape-quoted.
tests/ChangeLog addition:
2009-02-22 Aidan Kehoe <kehoea@parhasard.net>
* automated/mule-tests.el:
Use more realistic tests for the escape-quoted mule encoding
checks; update a comment, change a Known-Bug-Expect-Failure to a
normal test now that we've addressed an old bug.
author |
Aidan Kehoe <kehoea@parhasard.net> |
date |
Sun, 22 Feb 2009 19:57:28 +0000 |
parents |
376386a54a3c |
children |
|
rev |
line source |
0
|
1 /* Synched up with: FSF 19.28. */
|
|
2
|
|
3 #include <sgtty.h>
|
|
4 #include <signal.h>
|
|
5 #define STRLEN 100
|
|
6 static char str[STRLEN+1] = "%?emacs"; /* extra char for the null */
|
|
7
|
|
8 switch_to_proc(){
|
|
9 char *ptr = str;
|
|
10 while (*ptr) ioctl(0, TIOCSTI, ptr++);
|
|
11 ioctl(0, TIOCSTI, "\n");
|
|
12 kill(getpid(), SIGTSTP);
|
|
13 }
|
|
14
|
|
15 set_proc_str(ptr) char *ptr; {
|
|
16 if (strlen(ptr) <= STRLEN)
|
|
17 strcpy(str, ptr);
|
|
18 else
|
|
19 printf("string too long for set-proc-str: %s\n", ptr);
|
|
20 }
|