Mercurial > emacs
view lib-src/leditcfns.c @ 17737:f79f2d6b119b
(Fread_command): New optional arg DEFAULT-VALUE. Callers changed.
(Fread_variable, Fread_string, Fread_from_minibuffer): Likewise.
(read_minibuf): Now static. New arg DEFALT. Callers changed.
Bind minibuffer-default here.
(read_minibuf_unwind): Now static.
(Fcompleting_read): Past DEF to Fread_from_minibuffer;
no need to use it directly here.
(Fcompleting_read): New arg DEF. Callers changed.
(Qminibuffer_default): New variable.
(syms_of_minibuf): Initialize it.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 10 May 1997 21:47: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); }