Mercurial > emacs
view lib-src/leditcfns.c @ 12137:e6af973190dc
(vip-envelop-ESC-key): if an ESC-sequence translates
into a function key, pretend that this key was the last command event.
(vip-put-back,vip-Put-back): now emulate Vi's behavior
more closely.
(vip-line): no longer not bombs out.
(vip-exec-shift) now preserves the point.
Fixed the behavior of the Vi commands M, L, G, yw, dg, etc.
Changed vip-*-frame-* to *-frame-*, incorporated overlay strings,
unread-command-events, removed support for emacs versions 19.28 and
xemacs 19.11 and earlier.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 09 Jun 1995 00:09:26 +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); }