annotate lib-src/leditcfns.c @ 88907:eca48744527f

Include charset.h. (load_face_font): Argument C deleted. Caller changed. (generate_ascii_font_name): Renamed from generate_ascii_font. (font_name_registry): New function. (cache_face): Store ascii faces before non-ascii faces in buckets. (lookup_face): Arguments C and BASE_FACE deleted. Caller changed. Lookup only ascii faces. (lookup_non_ascii_face): New function. (lookup_named_face): Argument C deleted. Caller changed. (lookup_derived_face): Argument C deleted. Caller changed. (try_font_list): New arg PATTERN. Caller changed. If PATTERN is a string, just call font_list with it. (choose_face_font): Arguments FACE and C deleted. New arg FONT_SPEC. Caller changed. (realize_face): Arguments C and BASE_FACE deleted. Caller (realize_x_face): Likewise. (realize_non_ascii_face): New function. (realize_x_face): Call load_face_font here. (realize_tty_face): Argument C deleted. Caller changed. (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to get a face ID. (dump_realized_face): Don't print charset of FACE.
author Kenichi Handa <handa@m17n.org>
date Fri, 26 Jul 2002 04:07:39 +0000
parents da530eb93c1a
children 695cf19ef79e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1 #include <sgtty.h>
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2 #include <signal.h>
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3 #define STRLEN 100
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4 static char str[STRLEN+1] = "%?emacs"; /* extra char for the null */
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6 switch_to_proc(){
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7 char *ptr = str;
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8 while (*ptr) ioctl(0, TIOCSTI, ptr++);
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9 ioctl(0, TIOCSTI, "\n");
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
10 kill(getpid(), SIGTSTP);
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
11 }
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
12
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
13 set_proc_str(ptr) char *ptr; {
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14 if (strlen(ptr) <= STRLEN)
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
15 strcpy(str, ptr);
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
16 else
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
17 printf("string too long for set-proc-str: %s\n", ptr);
da530eb93c1a entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
18 }