forked from johnsonjh/NeXTEmacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME_Franz
379 lines (376 loc) · 11.2 KB
/
README_Franz
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
The following diffs represent the changes made by Franz Inc. to the
standard GNU Emacs 18.53 [from prep.ai.mit.edu on 4/14/89 in the
directory /u2/emacs, file emacs-18.53.tar.Z]. The changes were either
to fix bugs in GNU Emacs or to add features necessary for the
Emacs/Lisp interface.
Kevin Layer
Franz Inc.
5/23/89
============================= ./etc/server.c
68a69
> char *server_file;
87,93c88,97
< if ((homedir = getenv ("HOME")) == NULL)
< {
< fprintf (stderr,"No home directory\n");
< exit (1);
< }
< strcpy (server.sun_path, homedir);
< strcat (server.sun_path, "/.emacs_server");
---
> if ((server_file = getenv ("EMACS_SERVER")) != NULL) {
> strcat (server.sun_path, server_file);
> } else {
> if ((homedir = getenv ("HOME")) == NULL) {
> fprintf (stderr,"No home directory\n");
> exit (1);
> }
> strcpy (server.sun_path, homedir);
> strcat (server.sun_path, "/.emacs_server");
> }
============================= ./etc/emacsclient.c
59a60
> char *server_file;
79,85c80,89
< if ((homedir = getenv ("HOME")) == NULL)
< {
< fprintf (stderr, "No home directory\n");
< exit (1);
< }
< strcpy (server.sun_path, homedir);
< strcat (server.sun_path, "/.emacs_server");
---
> if ((server_file = getenv ("EMACS_SERVER")) != NULL) {
> strcat (server.sun_path, server_file);
> } else {
> if ((homedir = getenv ("HOME")) == NULL) {
> fprintf (stderr,"No home directory\n");
> exit (1);
> }
> strcpy (server.sun_path, homedir);
> strcat (server.sun_path, "/.emacs_server");
> }
============================= ./lisp/loadup.el
115c115,117
< (message "Dumping under names xemacs and %s" name))
---
> (message "Dumping under name xemacs")
> ;; (message "Dumping under names xemacs and %s" name)
> )
121,126c123,128
< (let ((name (concat "emacs-" emacs-version)))
< (while (string-match "[^-+_.a-zA-Z0-9]+" name)
< (setq name (concat (downcase (substring name 0 (match-beginning 0)))
< "-"
< (substring name (match-end 0)))))
< (add-name-to-file "xemacs" name t))
---
> ;; (let ((name (concat "emacs-" emacs-version)))
> ;; (while (string-match "[^-+_.a-zA-Z0-9]+" name)
> ;; (setq name (concat (downcase (substring name 0 (match-beginning 0)))
> ;; "-"
> ;; (substring name (match-end 0)))))
> ;; (add-name-to-file "xemacs" name t))
============================= ./src/emacs.c
227,231d226
< #ifdef BSD
< /* interrupt_input has trouble if we aren't in a separate process group. */
< setpgrp (getpid (), getpid ());
< #endif
<
============================= ./src/malloc.c
580c580
< if ((p = (struct mhead *) mem) == 0)
---
> if (mem == 0)
582c582
< p -= (8 / sizeof (struct mhead));
---
> p = (struct mhead *) (mem - ((sizeof *p + 7) & ~7));
600c600
< nbytes = (n + sizeof *p + EXTRA + 7) & ~7;
---
> nbytes = (n + ((sizeof *p + 7) & ~7) + EXTRA + 7) & ~7;
============================= ./src/process.c
686a687,697
>
> DEFUN ("process-kill-without-query-p", Fprocess_kill_without_query_p,
> Sprocess_kill_without_query_p, 1, 1, 0,
> "Return t or nil, depending on whether or not PROCESS will be killed\n\
> without query.")
> (proc)
> register Lisp_Object proc;
> {
> CHECK_PROCESS (proc, 0);
> return XPROCESS (proc)->kill_without_query;
> }
1064a1076,1079
> #ifdef HAVE_UNIX_DOMAIN
> #include <sys/un.h>
> #endif HAVE_UNIX_DOMAIN
>
1066c1081,1082
< 4, 4, 0,
---
> 4, 4, 0,
> #ifdef HAVE_UNIX_DOMAIN
1070a1087,1088
> If SERVICE is 0, then HOST is taken to be the name of a socket file, and a\n\
> Unix domain socket is opened.\n\
1079c1097,1113
< specifying a port number to connect to.")
---
> specifying a port number to connect to."
> #else
> "Open a TCP connection for a service to a host.\n\
> Returns a subprocess-object to represent the connection.\n\
> Input and output work as for subprocesses; `delete-process' closes it.\n\
> Args are NAME BUFFER HOST SERVICE.\n\
> NAME is name for process. It is modified if necessary to make it unique.\n\
> BUFFER is the buffer (or buffer-name) to associate with the process.\n\
> Process output goes at end of that buffer, unless you specify\n\
> an output stream or filter function to handle the output.\n\
> BUFFER may be also nil, meaning that this process is not associated\n\
> with any buffer\n\
> Third arg is name of the host to connect to.\n\
> Fourth arg SERVICE is name of the service desired, or an integer\n\
> specifying a port number to connect to."
> #endif HAVE_UNIX_DOMAIN
> )
1085a1120,1123
> #ifdef HAVE_UNIX_DOMAIN
> struct sockaddr_un server;
> int unix_domain = 0;
> #endif HAVE_UNIX_DOMAIN
1095c1133,1140
< port = htons ((unsigned short) XINT (service));
---
> {
> #ifdef HAVE_UNIX_DOMAIN
> if (XINT (service) == 0)
> unix_domain = 1;
> else
> #endif HAVE_UNIX_DOMAIN
> port = htons ((unsigned short) XINT (service));
> }
1105,1107c1150,1161
< host_info = gethostbyname (XSTRING (host)->data);
< if (host_info == 0)
< error ("Unknown host \"%s\"", XSTRING(host)->data);
---
> #ifdef HAVE_UNIX_DOMAIN
> if (unix_domain)
> {
> server.sun_family = AF_UNIX;
> strcpy (server.sun_path, XSTRING (host)->data);
> }
> else
> #endif HAVE_UNIX_DOMAIN
> {
> host_info = gethostbyname (XSTRING (host)->data);
> if (host_info == 0)
> error ("Unknown host \"%s\"", XSTRING(host)->data);
1109,1112c1163,1167
< bzero (&address, sizeof address);
< bcopy (host_info->h_addr, (char *) &address.sin_addr, host_info->h_length);
< address.sin_family = host_info->h_addrtype;
< address.sin_port = port;
---
> bzero (&address, sizeof address);
> bcopy (host_info->h_addr, (char *) &address.sin_addr, host_info->h_length);
> address.sin_family = host_info->h_addrtype;
> address.sin_port = port;
> }
1114,1115c1169,1176
< s = socket (host_info->h_addrtype, SOCK_STREAM, 0);
< if (s < 0)
---
> #ifdef HAVE_UNIX_DOMAIN
> if (unix_domain)
> s = socket (AF_UNIX, SOCK_STREAM, 0);
> else
> #endif HAVE_UNIX_DOMAIN
> s = socket (host_info->h_addrtype, SOCK_STREAM, 0);
>
> if (s < 0)
1118,1119c1179,1190
< if (connect (s, &address, sizeof address) == -1)
< error ("Host \"%s\" not responding", XSTRING (host)->data);
---
> #ifdef HAVE_UNIX_DOMAIN
> if (unix_domain)
> {
> if (connect (s, &server, strlen (server.sun_path) + 2) < 0)
> error ("connect failed for socket: \"%s\"", XSTRING (host)->data);
> }
> else
> #endif HAVE_UNIX_DOMAIN
> {
> if (connect (s, &address, sizeof address) == -1)
> error ("Host \"%s\" not responding", XSTRING (host)->data);
> }
1199c1270
< 0, 1, 0,
---
> 0, 2, 0,
1203,1205c1274,1277
< from PROCESS.")
< (proc)
< register Lisp_Object proc;
---
> from PROCESS. Non-nil arg TIMEOUT means wait for that many seconds, -1\n\
> return immediately.")
> (proc, timeout)
> register Lisp_Object proc, timeout;
1207,1208c1279,1285
< if (NULL (proc))
< wait_reading_process_input (-1, 0, 0);
---
> if (NULL (proc)) {
> if (XTYPE(timeout) == Lisp_Int)
> timeout = XINT(timeout);
> else
> timeout = -1;
> wait_reading_process_input (timeout, 0, 0);
> }
1210a1288,1291
> if (XTYPE(timeout) == Lisp_Int)
> timeout = XINT(timeout);
> else
> timeout = 0;
1212c1293
< wait_reading_process_input (0, XPROCESS (proc), 0);
---
> wait_reading_process_input (timeout, XPROCESS (proc), 0);
2169a2251
> defsubr (&Sprocess_kill_without_query_p);
============================= ./src/s-bsd4-3.h
77a78,84
> * Define HAVE_UNIX_DOMAIN is system supports 4.2-compatible UNIX
> * domain sockets.
> */
>
> #define HAVE_UNIX_DOMAIN
>
> /*
============================= ./src/s-bsd4-2.h
77a78,84
> * Define HAVE_UNIX_DOMAIN is system supports 4.2-compatible UNIX
> * domain sockets.
> */
>
> #define HAVE_UNIX_DOMAIN
>
> /*
============================= ./src/s-rtu.h
90a91,97
> * Define HAVE_UNIX_DOMAIN is system supports 4.2-compatible UNIX
> * domain sockets.
> */
>
> #define HAVE_UNIX_DOMAIN
>
> /*
============================= ./src/s-hpux.h
90a91,97
> * Define HAVE_UNIX_DOMAIN is system supports 4.2-compatible UNIX
> * domain sockets.
> */
>
> #define HAVE_UNIX_DOMAIN
>
> /*
============================= ./src/syntax.c
510a511
> case Squote: /* DKL 5/23/89 */
1031a1033,1034
> Lisp_Object Vparse_partial_sexp_result;
>
1036a1040
> Lisp_Object val1, val2, val3, val4, val5, val6, val7;
1054,1060c1058,1085
< return Fcons (make_number (state.depth),
< Fcons (state.prevlevelstart < 0 ? Qnil : make_number (state.prevlevelstart),
< Fcons (state.thislevelstart < 0 ? Qnil : make_number (state.thislevelstart),
< Fcons (state.instring >= 0 ? make_number (state.instring) : Qnil,
< Fcons (state.incomment ? Qt : Qnil,
< Fcons (state.quoted ? Qt : Qnil,
< Fcons (make_number (state.mindepth), Qnil)))))));
---
> val1 = make_number (state.depth);
> val2 = state.prevlevelstart < 0 ? Qnil : make_number (state.prevlevelstart);
> val3 = state.thislevelstart < 0 ? Qnil : make_number (state.thislevelstart);
> val4 = state.instring >= 0 ? make_number (state.instring) : Qnil;
> val5 = state.incomment ? Qt : Qnil;
> val6 = state.quoted ? Qt : Qnil;
> val7 = make_number (state.mindepth);
> if (NULL (Vparse_partial_sexp_result))
> return Fcons (val1,
> Fcons (val2,
> Fcons (val3,
> Fcons (val4,
> Fcons (val5,
> Fcons (val6,
> Fcons (val7, Qnil)))))));
> else
> {
> Lisp_Object xx = Vparse_partial_sexp_result;
>
> Fsetcar(xx, val1), xx = Fcdr(xx);
> Fsetcar(xx, val2), xx = Fcdr(xx);
> Fsetcar(xx, val3), xx = Fcdr(xx);
> Fsetcar(xx, val4), xx = Fcdr(xx);
> Fsetcar(xx, val5), xx = Fcdr(xx);
> Fsetcar(xx, val6), xx = Fcdr(xx);
> Fsetcar(xx, val7), xx = Fcdr(xx);
> return Vparse_partial_sexp_result;
> }
1133a1159,1163
>
> Vparse_partial_sexp_result = Qnil;
>
> DEFVAR_LISP ("parse-partial-sexp-result", &Vparse_partial_sexp_result,
> "If non-nil, it should be a list of length 7.");
============================= ./src/ymakefile
135c135
< CFLAGS= C_DEBUG_SWITCH -Demacs $(MYCPPFLAG) C_SWITCH_MACHINE C_SWITCH_SYSTEM
---
> CFLAGS= C_OPTIMIZE_SWITCH -Demacs $(MYCPPFLAG) C_SWITCH_MACHINE C_SWITCH_SYSTEM
273c273
< ./temacs -batch -l inc-vers
---
> /* ./temacs -batch -l inc-vers */
============================= ./src/m-news800.h
74c74
< #define SEGMENT_MASK (SEGSIZ - 1)
---
> /* #define SEGMENT_MASK (SEGSIZ - 1) */
76,77c76
< /* No sigmask defined anywhere else that I know of. */
< #define sigmask(n) (1 << ((n) - 1))
---
> /* the following is not needed on NEWS-OS Release 3.2 (4.3BSD compatible) */
78a78
> /* #define sigmask(n) (1 << ((n) - 1)) */
============================= ./src/fileio.c
1365a1366,1380
> DEFUN ("file-size", Ffile_size, Sfile_size, 1, 1, 0,
> "Return the size of FILE, as an integer.")
> (filename)
> Lisp_Object filename;
> {
> Lisp_Object abspath;
> struct stat st;
>
> abspath = expand_and_dir_to_file (filename, bf_cur->directory);
>
> if (stat (XSTRING (abspath)->data, &st) < 0)
> return Qnil;
> return make_number (st.st_size);
> }
>
2169a2185
> defsubr (&Sfile_size);
============================= ./src/x11term.c
87d86
< #include <sys/time.h>