summaryrefslogtreecommitdiff
path: root/misc/fep/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'misc/fep/patches/patch-ae')
-rw-r--r--misc/fep/patches/patch-ae80
1 files changed, 37 insertions, 43 deletions
diff --git a/misc/fep/patches/patch-ae b/misc/fep/patches/patch-ae
index e64b76f4c43..21550d85ecc 100644
--- a/misc/fep/patches/patch-ae
+++ b/misc/fep/patches/patch-ae
@@ -1,14 +1,8 @@
-$NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
+$NetBSD: patch-ae,v 1.4 2003/11/11 10:42:32 wiz Exp $
---- fep_edit.c.orig 1995-01-20 03:16:37.000000000 -0500
-+++ fep_edit.c 2003-11-07 11:25:48.000000000 -0500
-@@ -3,12 +3,22 @@
- #ifndef lint
- static char rcsid[]=
- "$Id: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $ (SRA)";
--#endif lint
-+#endif /* lint */
-
+--- fep_edit.c.orig Fri Jan 20 09:16:37 1995
++++ fep_edit.c
+@@ -8,7 +8,17 @@ static char rcsid[]=
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -26,7 +20,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
#include <sys/time.h>
#include <ctype.h>
#include <sys/dir.h>
-@@ -25,7 +35,7 @@
+@@ -25,7 +35,7 @@ int MarkPosition = -1; /* Marked positi
EDITMODE editmode = NOTYET; /* edtimode EMACS, VI */
EDITSTATUS editstatus = NOTEDITING;/* EDITING, NOTEDITING */
@@ -35,7 +29,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
int NeedNewLine; /* add new line flag */
int NeedSave; /* need to save to history */
int Transparency = OFF; /* transparent flag */
-@@ -86,7 +96,7 @@
+@@ -86,7 +96,7 @@ BINDENT emacsBindings[] = {
/* ^X-^V */ {"\\^X\\^V", view_buffer},
/* ^X-^K */ {"\\^X\\^K", kill_to_top_of_line},
/* ^X-^L */ {"\\^X\\^L", fep_repaint},
@@ -44,7 +38,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
/* ^X-^D */ {"\\^X\\^D", send_eof},
/* ^X-( */ {"\\^X(", fep_start_script},
/* ^X-) */ {"\\^X)", fep_end_script},
-@@ -192,6 +202,30 @@
+@@ -192,6 +202,30 @@ initEmacsBindings (cft, aft)
#define import(table,key,fn) if((int)key>0)table[(int)key]=fn
@@ -75,7 +69,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
/* Now, using cbreak mode
import (cft, tchars_buf.t_startc, ignore);
import (cft, tchars_buf.t_stopc, ignore);
-@@ -212,6 +246,7 @@
+@@ -212,6 +246,7 @@ initEmacsBindings (cft, aft)
import (cft, ltchars_buf.t_lnextc, literal_next);
import (cft, initial_ttymode.sg_erase, delete_previous_character);
import (cft, initial_ttymode.sg_kill, delete_line);
@@ -83,7 +77,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
#undef import
-@@ -257,7 +292,7 @@
+@@ -257,7 +292,7 @@ RETRY:
*/
swallow_output();
@@ -92,7 +86,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
++redirect_line;
execute_command = CommandLine;
goto RETURN;
-@@ -301,7 +336,11 @@
+@@ -301,7 +336,11 @@ RETRY:
* call send_eof
*/
if (
@@ -104,7 +98,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
&& curFuncTab[c] != send_eof
&& ! look_var ("ignore-eof")
&& CommandLine [0] == '\0'
-@@ -422,11 +461,11 @@
+@@ -422,11 +461,11 @@ self_insert(c)
register int i, nbyte = 1, currentNull;
#ifdef KANJI
CHAR byte2;
@@ -118,7 +112,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
errorBell();
return (0);
}
-@@ -441,7 +480,7 @@
+@@ -441,7 +480,7 @@ self_insert(c)
nbyte = 2;
}
else
@@ -127,7 +121,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
putChar (c);
reverse_strcpy (
&CommandLine[CurrentPosition] + nbyte,
-@@ -453,7 +492,7 @@
+@@ -453,7 +492,7 @@ self_insert(c)
if (nbyte > 1) {
CommandLine[CurrentPosition - 1] = byte2;
}
@@ -136,7 +130,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
printS (&CommandLine [CurrentPosition]);
if (CommandLine[CurrentPosition] != '\0') {
-@@ -557,7 +596,7 @@
+@@ -557,7 +596,7 @@ moveto (position)
#ifdef KANJI
&& !(CurrentPosition + 1 == position
&& iskanji (CommandLine[CurrentPosition]))
@@ -145,7 +139,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
)
(void) forward_n_character (1);
}
-@@ -581,10 +620,10 @@
+@@ -581,10 +620,10 @@ beginning_of_line()
#ifdef KANJI
#define INC(i) if(iskanji(CommandLine[i])) i+=2; else i++;
#define DEC(i) if(i>=2 && iskanji_in_string(CommandLine, i-2)) i-=2; else i--;
@@ -158,7 +152,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
/*
* Move cursor to end of line
-@@ -642,7 +681,7 @@
+@@ -642,7 +681,7 @@ backward_n_character(n)
i--;
}
else
@@ -167,7 +161,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
putchar (BS);
i--;
}
-@@ -697,7 +736,7 @@
+@@ -697,7 +736,7 @@ backward_n_word (n)
nchars++;
}
}
@@ -176,7 +170,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
while (n--) {
i--, nchars++;
while (i > 0 && !iswordchar (CommandLine [i])) {
-@@ -707,7 +746,7 @@
+@@ -707,7 +746,7 @@ backward_n_word (n)
i--, nchars++;
}
}
@@ -185,7 +179,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
return (backward_n_character (nchars));
}
-@@ -758,7 +797,7 @@
+@@ -758,7 +797,7 @@ backward_n_Word (n)
nchars++;
}
}
@@ -194,7 +188,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
while (n--) {
i--, nchars++;
while (i > 0 && !isWordchar (CommandLine [i]))
-@@ -766,7 +805,7 @@
+@@ -766,7 +805,7 @@ backward_n_Word (n)
while (i > 0 && isWordchar (CommandLine [i - 1]))
i--, nchars++;
}
@@ -203,7 +197,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
return (backward_n_character (nchars));
}
-@@ -804,7 +843,7 @@
+@@ -804,7 +843,7 @@ forward_n_character(n)
(void) putchar (CommandLine[i++]);
}
else
@@ -212,7 +206,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
if (isctlchar(CommandLine[i])) {
(void) putchar (unctl (CommandLine [i]));
i++;
-@@ -819,7 +858,7 @@
+@@ -819,7 +858,7 @@ forward_n_character(n)
(void) putchar (CommandLine[i++]);
}
else
@@ -221,7 +215,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
putChar (CommandLine [i++]);
}
-@@ -1000,9 +1039,9 @@
+@@ -1000,9 +1039,9 @@ delete_previous_n_character(n)
i -= 2, nbyte += 2;
else
i -= 1, nbyte += 1;
@@ -233,7 +227,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
deleteArea = howlong (&CommandLine[CurrentPosition - nbyte], nbyte);
restArea = howlong (&CommandLine[CurrentPosition], 0);
-@@ -1075,7 +1114,7 @@
+@@ -1075,7 +1114,7 @@ delete_previous_n_word(n)
nchars++;
}
}
@@ -242,7 +236,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
while (n--) {
i--, nchars++;
while (i > 0 && !iswordchar (CommandLine [i]))
-@@ -1083,7 +1122,7 @@
+@@ -1083,7 +1122,7 @@ delete_previous_n_word(n)
while (i > 0 && iswordchar (CommandLine [i - 1]))
i--, nchars++;
}
@@ -251,7 +245,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
return (delete_previous_n_character (nchars));
}
-@@ -1136,7 +1175,7 @@
+@@ -1136,7 +1175,7 @@ delete_previous_n_Word(n)
nchars++;
}
}
@@ -260,7 +254,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
while (n--) {
i--, nchars++;
while (i > 0 && !isWordchar (CommandLine [i]))
-@@ -1144,7 +1183,7 @@
+@@ -1144,7 +1183,7 @@ delete_previous_n_Word(n)
while (i > 0 && isWordchar (CommandLine [i - 1]))
i--, nchars++;
}
@@ -269,7 +263,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
return (delete_previous_n_character (nchars));
}
-@@ -1183,9 +1222,9 @@
+@@ -1183,9 +1222,9 @@ delete_next_n_character (n)
else
cp++, nbyte++;
}
@@ -281,7 +275,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
deleteArea = howlong (&CommandLine[CurrentPosition], nbyte);
restArea = howlong (&CommandLine[CurrentPosition + nbyte], 0);
-@@ -1481,7 +1520,11 @@
+@@ -1481,7 +1520,11 @@ insert_and_flush(c)
*/
send_eof()
{
@@ -293,7 +287,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
(void) self_insert (c);
if (isctlchar (c))
-@@ -1738,9 +1781,9 @@
+@@ -1738,9 +1781,9 @@ expand_file_name ()
# ifdef ALLOCA
fcp = (char *) alloca (strlen (dp->d_name) + 1);
@@ -305,7 +299,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
if (fcp == 0) {
fputs ("\r\n", stdout);
perror ("alloca:");
-@@ -1754,7 +1797,7 @@
+@@ -1754,7 +1797,7 @@ expand_file_name ()
fileList [i] = (char *) 0;
if (*start_expand == '~' && look_var ("expand-tilde")) {
@@ -314,7 +308,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
strcpy (buf, start_expand);
p = x_dirname (buf);
-@@ -1801,7 +1844,7 @@
+@@ -1801,7 +1844,7 @@ expand_file_name ()
# ifndef ALLOCA
for (i = 0; fileList [i]; i++)
free (fileList [i]);
@@ -323,7 +317,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
closedir(dirp);
return (0);
-@@ -1929,9 +1972,9 @@
+@@ -1929,9 +1972,9 @@ ls (dirp, prefixstring)
if (prefix (prefixstring, dp->d_name)) {
# ifdef ALLOCA
fcp = (char *) alloca (strlen (dp->d_name) + 1);
@@ -335,7 +329,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
if (fcp == 0) {
fputs ("\r\n", stdout);
perror ("alloca:");
-@@ -1975,7 +2018,7 @@
+@@ -1975,7 +2018,7 @@ BACK:
# ifndef ALLOCA
for (i = 0; fileList [i]; i++)
free (fileList [i]);
@@ -344,7 +338,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
return;
}
-@@ -2022,7 +2065,7 @@
+@@ -2022,7 +2065,7 @@ list_remote_file (host, pattern)
fputs ("\n", stdout);
}
}
@@ -353,7 +347,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
bind_key (ft, func, s, dfunc)
FUNC ft[]; /* Function table */
-@@ -2032,7 +2075,7 @@
+@@ -2032,7 +2075,7 @@ bind_key (ft, func, s, dfunc)
{
char tmps[16];
@@ -362,7 +356,7 @@ $NetBSD: patch-ae,v 1.3 2003/11/07 16:35:51 christos Exp $
tmps[0] = toctrl (s[2]);
strcpy (&tmps[1], &s[3]);
s = tmps;
-@@ -2042,7 +2085,7 @@
+@@ -2042,7 +2085,7 @@ bind_key (ft, func, s, dfunc)
* If the string contain only one character, put the function to
* appropriate position in the table.
*/