home *** CD-ROM | disk | FTP | other *** search
- diff -cb src/doc.cmd src.new/doc.cmd
- *** src/doc.cmd Sun May 03 14:20:16 1992
- --- src.new/doc.cmd Sun Aug 16 19:33:13 1992
- ***************
- *** 1 ****
- ! ..\etc\make-docfile -o ..\etc\DOC dispnew.o scroll.o xdisp.o window.o term.o cm.o emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o filemode.o cmds.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o eval.o fns.o print.o lread.o abbrev.o syntax.o unexec.o mocklisp.o bytecode.o process.o callproc.o doprnt.o ..\lisp\simple.elc ..\lisp\help.elc ..\lisp\files.elc ..\lisp\window.elc ..\lisp\indent.elc ..\lisp\loaddefs.el ..\lisp\paths.el ..\lisp\startup.elc ..\lisp\lisp.elc ..\lisp\page.elc ..\lisp\register.elc ..\lisp\paragraphs.elc ..\lisp\lisp-mode.elc ..\lisp\text-mode.elc ..\lisp\fill.elc ..\lisp\c-mode.elc ..\lisp\isearch.elc ..\lisp\replace.elc ..\lisp\abbrev.elc ..\lisp\buff-menu.elc ..\lisp\subr.elc ..\lisp\version.el
- --- 1 ----
- ! ..\etc\make-docfile -o ..\etc\DOC os2.o dispnew.o scroll.o xdisp.o window.o term.o cm.o emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o filemode.o cmds.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o eval.o fns.o print.o lread.o abbrev.o syntax.o unexec.o mocklisp.o bytecode.o process.o callproc.o doprnt.o ..\lisp\simple.elc ..\lisp\help.elc ..\lisp\files.elc ..\lisp\window.elc ..\lisp\indent.elc ..\lisp\loaddefs.el ..\lisp\paths.el ..\lisp\startup.elc ..\lisp\lisp.elc ..\lisp\page.elc ..\lisp\register.elc ..\lisp\paragraphs.elc ..\lisp\lisp-mode.elc ..\lisp\text-mode.elc ..\lisp\fill.elc ..\lisp\c-mode.elc ..\lisp\isearch.elc ..\lisp\replace.elc ..\lisp\abbrev.elc ..\lisp\buff-menu.elc ..\lisp\subr.elc ..\lisp\version.el
- diff -cb src/editfns.c src.new/editfns.c
- *** src/editfns.c Fri May 01 17:14:24 1992
- --- src.new/editfns.c Sun Aug 16 19:21:20 1992
- ***************
- *** 100,105 ****
- --- 100,109 ----
- if (NULL (tem))
- pw = (struct passwd *) getpwnam (XSTRING (Vuser_name)->data);
-
- + p = (unsigned char *) getenv("FULLNAME");
- + if (p==0)
- + p = (unsigned char *) getenv("USERFULLNAME");
- + if (p==0)
- p = (unsigned char *) (pw ? USER_FULL_NAME : "unknown");
- q = (unsigned char *) index (p, ',');
- Vuser_full_name = make_string (p, q ? q - p : strlen (p));
- diff -cb src/emacs.c src.new/emacs.c
- *** src/emacs.c Sat Apr 25 16:20:10 1992
- --- src.new/emacs.c Sun Aug 16 19:15:02 1992
- ***************
- *** 124,129 ****
- --- 124,133 ----
-
- int noninteractive1;
-
- + #ifdef OS2
- + void ctrl_break_signal();
- + #endif
- +
- /* Signal code for the fatal signal that was received */
- int fatal_error_code;
-
- ***************
- *** 223,228 ****
- --- 227,238 ----
- extern int errno;
- extern void malloc_warning ();
-
- + #ifdef OS2
- + char pid[32];
- + sprintf(pid, "EMACS_PID=%d", getpid());
- + putenv(pid);
- + #endif
- +
- /* Map in shared memory, if we are using that. */
- #ifdef HAVE_SHM
- if (argc > 1 && !strcmp (argv[1], "-nl"))
- ***************
- *** 346,352 ****
- #endif
-
- #ifdef OS2
- ! environ = envp;
- /* In batch mode, screen output should be normal, else binary */
- if (! noninteractive)
- setmode(1, O_BINARY);
- --- 356,362 ----
- #endif
-
- #ifdef OS2
- ! /* environ = envp; */
- /* In batch mode, screen output should be normal, else binary */
- if (! noninteractive)
- setmode(1, O_BINARY);
- ***************
- *** 387,392 ****
- --- 397,406 ----
- signal (SIGXFSZ, fatal_error_signal);
- #endif SIGXFSZ
-
- + #ifdef OS2
- + signal (SIGBREAK, ctrl_break_signal);
- + #endif /* OS2 */
- +
- #ifdef AIX
- /* This used to run fatal_error_signal,
- but it isn't fatal. There's nothing Emacs can usefully do.
- diff -cb src/fileio.c src.new/fileio.c
- *** src/fileio.c Sun May 03 14:13:23 1992
- --- src.new/fileio.c Sun Aug 16 19:15:03 1992
- ***************
- *** 603,608 ****
- --- 603,613 ----
- }
- else if (p[0] == '/' || p[0] == '\\' || _fngetdrive (p) != 0)
- {
- + /* Find out about Server paths */
- + if ((p[0] == '/' || p[0] == '\\') &&
- + (p[1] == '/' || p[1] == '\\'))
- + return build_string(p);
- +
- rel = 0;
- if (_fngetdrive (p) == 0)
- {
- ***************
- *** 986,991 ****
- --- 991,997 ----
-
- for (p = nm; p != endp; p++)
- {
- + #ifndef OS2
- if ((p[0] == '~' ||
- #ifdef APOLLO
- /* // at start of file name is meaningful in Apollo system */
- ***************
- *** 1002,1007 ****
- --- 1008,1035 ----
- #ifdef VMS
- )
- #endif /* VMS */
- + #else /* OS2 */
- + /* Ok, it seems as if the following needs a little explanation:
- + Line 1+2: Detects an absolute path name:
- + ~ / \ indicate absolute pathnames if the previous character
- + is / or \. : indicates absolute pathnames in the sequence
- + /a: or \a:, where a is a character.
- + In the case of / and \ it must be tested, if the sequence
- + starts at the beginning of the file name, since the means
- + name of the server on network software.
- + Line 3: If the above characters appear at the very beginning of a file
- + name, nothing is to do, but this condition must be tested to
- + secure line 3.
- + Line 4: Checks wether the chars from Line 1 really appear in sequences
- + that indicates an absolute path name.
- + Uff !
- + */
- +
- + if ( (p[0] == '~' || p[1] == ':'
- + || (p[0] == '/' && p-1!=nm) || (p[0] == '\\' && p-1!=nm))
- + && p!=nm
- + && (p[-1] == '/' || p[-1] == '\\'))
- + #endif /* OS2 */
- {
- nm = p;
- substituted = 1;
- diff -cb src/keyboard.c src.new/keyboard.c
- *** src/keyboard.c Sun Apr 19 18:03:23 1992
- --- src.new/keyboard.c Sun Aug 16 19:15:03 1992
- ***************
- *** 2047,2054 ****
- /* Perhaps should really fork an inferior shell?
- But that would not provide any way to get back
- to the original shell, ever. */
- ! printf ("No support for stopping a process on this operating system;\n");
- ! printf ("you can continue or abort.\n");
- #endif /* not VMS */
- #endif /* not SIGTSTP */
- printf ("Auto-save? (y or n) ");
- --- 2047,2054 ----
- /* Perhaps should really fork an inferior shell?
- But that would not provide any way to get back
- to the original shell, ever. */
- ! printf ("No support for stopping a process on this operating system;\n\r");
- ! printf ("you can continue or abort.\n\r");
- #endif /* not VMS */
- #endif /* not SIGTSTP */
- printf ("Auto-save? (y or n) ");
- ***************
- *** 2065,2071 ****
- if (((c = getchar ()) & ~040) == 'Y')
- abort ();
- while (c != '\n') c = getchar ();
- ! printf ("Continuing...\n");
- fflush (stdout);
- init_sys_modes ();
- }
- --- 2065,2071 ----
- if (((c = getchar ()) & ~040) == 'Y')
- abort ();
- while (c != '\n') c = getchar ();
- ! printf ("Continuing...\n\r");
- fflush (stdout);
- init_sys_modes ();
- }
- diff -cb src/makefile src.new/makefile
- *** src/makefile Sun May 03 14:14:23 1992
- --- src.new/makefile Sun Aug 16 19:34:09 1992
- ***************
- *** 203,209 ****
-
-
-
- -
-
-
-
- --- 203,208 ----
- ***************
- *** 282,287 ****
- --- 281,287 ----
-
-
-
- +
- # 26 "config.h" 2
-
-
- ***************
- *** 570,576 ****
-
-
-
- ! STARTFILES = /emx/lib/crt0.o
-
-
-
- --- 570,576 ----
-
-
-
- ! STARTFILES =
-
-
-
- ***************
- *** 601,607 ****
-
-
-
- ! LD=ld
- LDFLAGS =
-
-
- --- 601,607 ----
-
-
-
- ! LD=gcc
- LDFLAGS =
-
-
- ***************
- *** 616,623 ****
-
-
-
- ! CFLAGS= -g -Demacs $(MYCPPFLAG)
- !
-
-
-
- --- 616,622 ----
-
-
-
- ! CFLAGS= -O -Demacs $(MYCPPFLAG)
-
-
-
- ***************
- *** 712,718 ****
-
-
-
- ! otherobj= $(termcapobj) lastfile.o $(mallocobj)
-
-
- lisp= ${lispdir}simple.elc ${lispdir}help.elc ${lispdir}files.elc ${lispdir}window.elc ${lispdir}indent.elc ${lispdir}loaddefs.el ${lispdir}paths.el ${lispdir}startup.elc ${lispdir}lisp.elc ${lispdir}page.elc ${lispdir}register.elc ${lispdir}paragraphs.elc ${lispdir}lisp-mode.elc ${lispdir}text-mode.elc ${lispdir}fill.elc ${lispdir}c-mode.elc # ${lispdir}isearch.elc # ${lispdir}replace.elc ${lispdir}abbrev.elc ${lispdir}buff-menu.elc ${lispdir}subr.elc
- --- 711,717 ----
-
-
-
- ! otherobj= $(termcapobj) lastfile.o $(mallocobj) os2.o
-
-
- lisp= ${lispdir}simple.elc ${lispdir}help.elc ${lispdir}files.elc ${lispdir}window.elc ${lispdir}indent.elc ${lispdir}loaddefs.el ${lispdir}paths.el ${lispdir}startup.elc ${lispdir}lisp.elc ${lispdir}page.elc ${lispdir}register.elc ${lispdir}paragraphs.elc ${lispdir}lisp-mode.elc ${lispdir}text-mode.elc ${lispdir}fill.elc ${lispdir}c-mode.elc # ${lispdir}isearch.elc # ${lispdir}replace.elc ${lispdir}abbrev.elc ${lispdir}buff-menu.elc ${lispdir}subr.elc
- ***************
- *** 742,764 ****
- all: xemacs.exe
-
- xemacs.exe: temacs.exe DOC ${lisp}
- !
- !
- !
- !
- !
- !
- !
- !
- !
- ! echo Version is not incremented !
- # temacs -batch -l inc-vers
- ! temacs -batch -l loadup.el dump
- !
- ! emxbind -x temacs.exe a.out
- ! emxbind -ccore c:\emx\bin\emxl.exe a.out xemacs.exe
- ! del a.out
- ! del core
-
-
-
- --- 741,749 ----
- all: xemacs.exe
-
- xemacs.exe: temacs.exe DOC ${lisp}
- ! cmd /c echo Version is not incremented !
- # temacs -batch -l inc-vers
- ! cmd /c "dump-emacs.cmd"
-
-
-
- ***************
- *** 777,783 ****
-
-
-
- ! temacs.exe: $(LOCALCPP) $(SHORT) $(STARTFILES) $(OLDXMENU) ${obj} ${otherobj}
- $(LD) ${STARTFLAGS} ${LDFLAGS} -o temacs.exe ${STARTFILES} ${obj} ${otherobj} ${LIBES}
-
-
- --- 762,768 ----
-
-
-
- ! temacs.exe: $(LOCALCPP) $(SHORT) $(OLDXMENU) ${obj} ${otherobj}
- $(LD) ${STARTFLAGS} ${LDFLAGS} -o temacs.exe ${STARTFILES} ${obj} ${otherobj} ${LIBES}
-
-
- diff -cb src/s-os2.h src.new/s-os2.h
- *** src/s-os2.h Sun May 03 14:17:04 1992
- --- src.new/s-os2.h Sun Aug 16 19:15:04 1992
- ***************
- *** 1,5 ****
-
- ! /* Definitions file for GNU Emacs running on AT&T's System V Release 3
- Copyright (C) 1987 Free Software Foundation, Inc.
-
- This file is part of GNU Emacs.
- --- 1,5 ----
-
- ! /* Definitions file for GNU Emacs running on IBM's OS/2 2.0
- Copyright (C) 1987 Free Software Foundation, Inc.
-
- This file is part of GNU Emacs.
- ***************
- *** 221,225 ****
-
- #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->ptr - (FILE)->buffer)
- #define SYSTEM_MALLOC
- ! #define PURESIZE 200000
- #define CANNOT_UNEXEC
- --- 221,227 ----
-
- #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->ptr - (FILE)->buffer)
- #define SYSTEM_MALLOC
- ! #define PURESIZE 300000
- #define CANNOT_UNEXEC
- + #define SYMS_SYSTEM syms_of_os2()
- + #define OBJECTS_SYSTEM os2.o
- diff -cb src/ymakefile src.new/ymakefile
- *** src/ymakefile Sun Apr 19 17:47:24 1992
- --- src.new/ymakefile Sun Aug 16 19:15:05 1992
- ***************
- *** 333,346 ****
- @if exist xemacs.exe del xemacs.exe
- @ren temacs.exe xemacs.exe
- #else
- - echo Version is not incremented !
- # temacs -batch -l inc-vers
- - temacs -batch -l loadup.el dump
- #ifdef OS2
- ! emxbind -x temacs.exe a.out
- ! emxbind -ccore c:\emx\bin\emxl.exe a.out xemacs.exe
- ! del a.out
- ! del core
- #endif /* not OS2 */
- #endif /* not CANNOT_DUMP */
- #endif /* not HAVE_SHM */
- --- 333,341 ----
- @if exist xemacs.exe del xemacs.exe
- @ren temacs.exe xemacs.exe
- #else
- # temacs -batch -l inc-vers
- #ifdef OS2
- ! cmd /c "dump-emacs.cmd"
- #endif /* not OS2 */
- #endif /* not CANNOT_DUMP */
- #endif /* not HAVE_SHM */
- ***************
- *** 360,366 ****
- #endif
-
- temacs.exe: MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) $(OLDXMENU) ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE
- ! $(LD) ${STARTFLAGS} ${LDFLAGS} -o temacs.exe ${STARTFILES} ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE ${LIBES}
-
- /* These are needed for C compilation, on the systems that need them */
- #ifdef NEED_CPP
- --- 355,361 ----
- #endif
-
- temacs.exe: MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) $(OLDXMENU) ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE
- ! $(LD) ${STARTFLAGS} ${LDFLAGS} -o temacs.exe ${STARTFILES} ${obj} ${otherobj} _fill.o read.o open.o OBJECTS_SYSTEM OBJECTS_MACHINE ${LIBES}
-
- /* These are needed for C compilation, on the systems that need them */
- #ifdef NEED_CPP
- ***************
- *** 447,452 ****
- --- 442,450 ----
- buffer.o : buffer.c syntax.h buffer.h commands.h window.h config.h
- callint.o : callint.c window.h commands.h buffer.h config.h
- callproc.o : callproc.c paths.h buffer.h commands.h config.h
- + #ifdef OS2
- + os2.o : os2.c config.h
- + #endif
- casefiddle.o : casefiddle.c syntax.h commands.h buffer.h config.h
- cm.o : cm.c cm.h termhooks.h config.h
- cmds.o : cmds.c syntax.h buffer.h commands.h config.h
- diff -cbN src/os2.c src.new/os2.c
- *** src/os2.c
- --- src.new/os2.c Tue Jun 23 11:51:13 1992
- ***************
- *** 0 ****
- --- 1,76 ----
- + /* OS/2 specific functions for GNU Emacs for OS/2
- + Copyright (C) 1992 Free Software Foundation, Inc.
- +
- + This file is part of GNU Emacs.
- +
- + GNU Emacs is free software; you can redistribute it and/or modify
- + it under the terms of the GNU General Public License as published by
- + the Free Software Foundation; either version 1, or (at your option)
- + any later version.
- +
- + GNU Emacs is distributed in the hope that it will be useful,
- + but WITHOUT ANY WARRANTY; without even the implied warranty of
- + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + GNU General Public License for more details.
- +
- + You should have received a copy of the GNU General Public License
- + along with GNU Emacs; see the file COPYING. If not, write to
- + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
- +
- +
- + #include <signal.h>
- + #include "lisp.h"
- +
- +
- +
- + /* Look at ctrl-break-action for explanation. */
- + int Vctrl_break_action;
- +
- +
- + void ctrl_break_signal()
- + {
- +
- + signal(SIGBREAK, SIG_ACK);
- +
- + switch (Vctrl_break_action)
- + {
- + case 0:
- + break;
- +
- + case 1:
- + Vquit_flag = Qt;
- + raise(SIGINT);
- + break;
- +
- + case 2:
- + exit(1); break;
- +
- + case 3:
- + abort(); break;
- +
- + default:
- + break;
- +
- + }
- +
- + }
- +
- +
- + syms_of_os2()
- + {
- +
- + DEFVAR_INT("ctrl-break-action", &Vctrl_break_action,
- + "Determines the behavior of Emacs after Ctrl-Break has been pressed.\n\
- + Available only under OS/2.\n\
- + 0 : Do nothing, just return C-@.\n\
- + 1 : Like C-g C-g, termination with request.\n\
- + 2 : Terminate program immediatly without request.\n\
- + 3 : Force an abnormal program termination (dump core) without request.\n\
- + The default value is 1.
- + It is strongly recommended not to use a value of 2 or higher
- + since you may loose data after hitting Ctrl-Break !");
- + Vctrl_break_action = 1;
- +
- + }
- +
- +
-