view lib-src/leditcfns.c @ 40285:2869c6ed16fc

(texinfo-environments, texinfo-environment-regexp): Hoisted. (texinfo-font-lock-keywords): Use `italic' and `bold' faces. Only highlight the menu name in menu items. Setup `@foo ... @end foo' as text clones. (texinfo-clone-environment): New function. (texinfo-mode): Simplify auto-fill-inhibit-regexp. (texinfo-insert-block): Simplify. (texinfo-insert-quote): Insert a plain " if preceded by \ or if the command is repeated. (texinfo-last-unended-begin, texinfo-next-unmatched-end): New funs. (texinfo-insert-@end): Simplify.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 25 Oct 2001 03:54:21 +0000
parents da530eb93c1a
children 695cf19ef79e
line wrap: on
line source

#include <sgtty.h>
#include <signal.h>
#define STRLEN 100
static char str[STRLEN+1] = "%?emacs"; /* extra char for the null */

switch_to_proc(){
    char *ptr = str;
    while (*ptr) ioctl(0, TIOCSTI, ptr++);
    ioctl(0, TIOCSTI, "\n");
    kill(getpid(), SIGTSTP);
    }

set_proc_str(ptr) char *ptr; {
    if (strlen(ptr) <= STRLEN)
	strcpy(str, ptr);
    else
	printf("string too long for set-proc-str: %s\n", ptr);
    }