annotate lib-src/leditcfns.c @ 22758:dbd9ecc9dbac

Added next-buffer/previous-buffer keybindings (bound to M-n/M-p). (crisp-unbury-buffer): New function. Fixed bogus XEmacs/Lucid string-match checking. Made modeline entry mouse2-able. (crisp-mode-map): Make this a sparse keymap parented from current-global-map. (crisp-mode-original-keymap): Don't copy the keymap. (crisp-last-last-command): Renamed from last-last-command. defvar it. (crisp-mode): Honor ARG. (crisp-kill-line, crisp-copy-line): When a region isn't highlighted, use the region from point to eol. Honor prefix argument. (crisp-submit-bug-report): New command, taken from cc-mode. Shortened the version numbering, removed the release-version tracking (crisp-version): New function. New keybindings `C-home', `C-end', `M-home', `M-end', `C-f', `M-l', `M-m'. (crisp-copy-line): No need to save point. Removed S-right and S-left bindings. Abstract the marking and selection interfaces so that we can be compatible with both Emacs and XEmacs. And try and make the behavior as close as possible under both environments so that there are no surprises.
author Karl Heuer <kwzh@gnu.org>
date Tue, 14 Jul 1998 22:17:35 +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 }