88
|
1 -*- mode:outline; minor-mode:outl-mouse -*-
|
0
|
2 This file describes various problems that have been encountered
|
|
3 in compiling, installing and running XEmacs.
|
|
4
|
124
|
5 This file is large, but we have tried to sort the entries by their
|
|
6 respective relevance for XEmacs, but may have not succeeded completely
|
|
7 in that task. Try finding the things you need using one of the search
|
|
8 commands XEmacs provides (e.g. `C-s').
|
|
9
|
120
|
10 (updated for 20.1)
|
|
11
|
|
12 * Watch out for .emacs file
|
|
13
|
|
14 ~/.emacs is your Emacs init file. If you observe strange problems,
|
|
15 invoke XEmacs with the `-q' option and see if you can repeat the
|
|
16 problem.
|
|
17
|
124
|
18 * Problems with building XEmacs
|
0
|
19
|
124
|
20 ** The compiler generates lots and lots of syntax errors.
|
0
|
21
|
|
22 Are you using an ANSI C compiler, like lcc or gcc? The SunOS 4.1 bundled cc
|
|
23 is not ANSI.
|
|
24
|
|
25 If X has not been configured to compile itself using lcc, gcc, or another ANSI
|
|
26 compiler, then you will have to hack the automatically-generated makefile in
|
|
27 the `lwlib' directory by hand to make it use an ANSI compiler.
|
|
28
|
124
|
29 ** test-distrib says that the distribution has been clobbered
|
|
30 ** or, temacs prints "Command key out of range 0-127"
|
|
31 ** or, temacs runs and dumps xemacs, but xemacs totally fails to work.
|
|
32 ** or, temacs gets errors dumping xemacs
|
0
|
33
|
|
34 This can be because the .elc files have been garbled. Do not be
|
|
35 fooled by the fact that most of a .elc file is text: these are
|
|
36 binary files and can contain all 256 byte values.
|
|
37
|
|
38 In particular `shar' cannot be used for transmitting GNU Emacs.
|
|
39 It typically truncates "lines". What appear to be "lines" in
|
|
40 a binary file can of course be of any length. Even once `shar'
|
|
41 itself is made to work correctly, `sh' discards null characters
|
|
42 when unpacking the shell archive.
|
|
43
|
|
44 I have also seen character \177 changed into \377. I do not know
|
|
45 what transfer means caused this problem. Various network
|
|
46 file transfer programs are suspected of clobbering the high bit.
|
|
47
|
|
48 If you have a copy of Emacs that has been damaged in its
|
|
49 nonprinting characters, you can fix them:
|
|
50
|
|
51 1) Record the names of all the .elc files.
|
|
52 2) Delete all the .elc files.
|
|
53 3) Recompile alloc.c with a value of PURESIZE twice as large.
|
|
54 You might as well save the old alloc.o.
|
|
55 4) Remake xemacs. It should work now.
|
|
56 5) Running xemacs, do Meta-x byte-compile-file repeatedly
|
|
57 to recreate all the .elc files that used to exist.
|
|
58 You may need to increase the value of the variable
|
|
59 max-lisp-eval-depth to succeed in running the compiler interpreted
|
|
60 on certain .el files. 400 was sufficient as of last report.
|
|
61 6) Reinstall the old alloc.o (undoing changes to alloc.c if any)
|
|
62 and remake temacs.
|
|
63 7) Remake xemacs. It should work now, with valid .elc files.
|
|
64
|
124
|
65 ** temacs prints "Pure Lisp storage exhausted"
|
0
|
66
|
|
67 This means that the Lisp code loaded from the .elc and .el
|
|
68 files during temacs -l loadup inc dump took up more
|
|
69 space than was allocated.
|
|
70
|
|
71 This could be caused by
|
|
72 1) adding code to the preloaded Lisp files
|
|
73 2) adding more preloaded files in loadup.el
|
|
74 3) having a site-init.el or site-load.el which loads files.
|
|
75 Note that ANY site-init.el or site-load.el is nonstandard;
|
|
76 if you have received Emacs from some other site
|
|
77 and it contains a site-init.el or site-load.el file, consider
|
|
78 deleting that file.
|
|
79 4) getting the wrong .el or .elc files
|
|
80 (not from the directory you expected).
|
|
81 5) deleting some .elc files that are supposed to exist.
|
|
82 This would cause the source files (.el files) to be
|
|
83 loaded instead. They take up more room, so you lose.
|
|
84 6) a bug in the Emacs distribution which underestimates
|
|
85 the space required.
|
|
86
|
|
87 If the need for more space is legitimate, use the --puresize option
|
|
88 to `configure' to specify more pure space.
|
|
89
|
|
90 But in some of the cases listed above, this problem is a consequence
|
|
91 of something else that is wrong. Be sure to check and fix the real
|
|
92 problem.
|
|
93
|
124
|
94 ** Don't use -O2 with gcc 2.7.2 under Linux without also using
|
|
95 `-fno-strength-reduce'.
|
|
96
|
|
97 gcc will generate incorrect code otherwise. This bug is present in at
|
|
98 least 2.6.x and 2.7.[0-2]. This bug has been fixed in GCC 2.7.2.1 and
|
|
99 later.
|
|
100
|
|
101 ** `Error: No ExtNode to pop!' on Linux systems with Lesstif.
|
|
102
|
|
103 This error message has been observed with lesstif-0.75a. It does not
|
|
104 appear to cause any harm.
|
|
105
|
126
|
106 ** Movemail on Linux doesn't work any more
|
|
107
|
|
108 Linux now defaults to using .lock mail locking. To get back to the
|
|
109 previous flock locking, edit src/s/linux.h and uncomment out the
|
|
110 `# define MAIL_USE_FLOCK' line.
|
|
111
|
124
|
112 ** Sparc Linux -vs- libXmu.
|
|
113
|
|
114 There have been reports of configure not detecting libXmu on
|
|
115 SparcLinux. The fix is to add -lXmu to the link flags.
|
|
116
|
|
117 ** Debian Linux and Berkeley db include files.
|
|
118
|
|
119 Debian Linux puts the Berkeley db include files in /usr/include/db
|
|
120 instead of /usr/include. The fix is to use
|
|
121 --site-includes=/usr/include/db with configure.
|
|
122
|
|
123 ** alloc.c will not compile without -P on HP-UX 9.05
|
|
124
|
|
125 Pekka Marjola <pema@iki.fi> writes:
|
|
126 Gcc (2.7.2, with cpplib IIRC) required something (-P worked :) to
|
|
127 get it to compile. Otherwise it failed on those DEFUN macros with
|
|
128 comments inside parameter lists (like buffer.c, line 296).
|
|
129
|
|
130 ** Excessive optimization with pgcc can break XEmacs
|
|
131
|
|
132 It has been reported on some systems that compiling with -O6 can lead
|
|
133 to XEmacs failures. The workaround is to use a lower optimization
|
|
134 level. -O2 and -O4 have been tested extensively.
|
|
135
|
|
136 ** -O2 optimization on Irix 5.3 can cause compiler complaint.
|
|
137
|
|
138 Nick J. Crabtree <nickc@scopic.com> writes:
|
|
139 Comes up OK on a tty (all I have available over this slow link). Ill
|
|
140 give it a hammering tomorrow. The -O2 optimisation complained about
|
|
141 sizes exceeding thresholds; I haven't bothered to use the -Olimit
|
|
142 option it recommends.
|
|
143
|
|
144 ** Excessive optimization on AIX 4.2 can lead to compiler failure.
|
|
145
|
|
146 Valdis.Kletnieks@vt.edu writes:
|
|
147 At least at the b34 level, and the latest-and-greatest IBM xlc
|
|
148 (3.1.4.4), there are problems with -O3. I haven't investigated
|
|
149 further.
|
|
150
|
|
151 ** Sed problems on Solaris 2.5
|
|
152
|
|
153 There have been reports of Sun sed truncating very lines in the
|
|
154 Makefile during configuration. The workaround is to use GNU sed or,
|
|
155 even better, think of a better way to generate Makefile, and send us a
|
|
156 patch. :-)
|
|
157
|
|
158 ** CDE is not autodetected on HP.
|
|
159
|
|
160 Richard Cognot <cognot@ensg.u-nancy.fr> writes:
|
|
161 I have to force /usr/dt/{lib,include} into the site include/lib
|
|
162 command line options. I could add these in hpux10.h, but then I
|
|
163 would think these should be pretty standard (to my knowledge, that's
|
|
164 also where Sun puts its CDE stuff), so that wouldn't fix the problem
|
|
165 on other architectures. AAMOF, when these path are given, CDE is
|
|
166 detected, and DragAndDrop works (more or less, see next issue).
|
|
167
|
|
168 ** Linking with -rpath on IRIX.
|
|
169
|
|
170 Darrell Kindred <dkindred@cmu.edu> writes:
|
|
171 There are a couple of problems [with use of -rpath with Irix ld], though:
|
|
172
|
|
173 1. The ld in IRIX 5.3 ignores all but the last -rpath
|
|
174 spec, so the patched configure spits out a warning
|
|
175 if --x-libraries or --site-runtime-libraries are
|
|
176 specified under irix 5.x, and it only adds -rpath
|
|
177 entries for the --site-runtime-libraries. This bug was
|
|
178 fixed sometime between 5.3 and 6.2.
|
|
179
|
|
180 2. IRIX gcc 2.7.2 doesn't accept -rpath directly, so
|
|
181 it would have to be prefixed by -Xlinker or "-Wl,".
|
|
182 This would be fine, except that configure compiles with
|
|
183 ${CC-cc} $CFLAGS $LDFLAGS ...
|
|
184 rather than quoting $LDFLAGS with prefix-args, like
|
|
185 src/Makefile does. So if you specify --x-libraries
|
|
186 or --site-runtime-libraries, you must use --use-gcc=no,
|
|
187 or configure will fail.
|
|
188
|
|
189 ** On Irix 5.x and 6.x, the dumped XEmacs (xemacs) core dumps when executed
|
|
190 on another machine, or after newer SGI IRIX patches have been installed.
|
|
191
|
|
192 The xemacs binary must be executed with the same "libc.so" file which
|
|
193 was used when the xemacs binary was dumped. Some SGI IRIX patches
|
|
194 update this file. Make sure that all machines using the xemacs binary
|
|
195 are using the same set of IRIX patches. If xemacs core dumps after a
|
|
196 patch upgrade then you will have to redump it from temacs.
|
|
197
|
|
198 ** xemacs: can't resolve symbol '__malloc_hook'
|
|
199
|
|
200 This is a Linux problem where you've compiled the XEmacs binary on a libc
|
|
201 5.4 with version higher than 5.4.19 and attempted to run the binary against
|
|
202 an earlier version. The solution is to upgrade your old library.
|
|
203
|
|
204 ** Compilation errors on VMS.
|
|
205
|
|
206 Sorry, XEmacs does not work under VMS. You might consider working on
|
|
207 the port if you really want to have XEmacs work under VMS.
|
|
208
|
|
209 ** On HP/UX configure selects gcc even though it isn't actually present.
|
|
210
|
|
211 Some versions of SoftBench have an executable called 'gcc' that is not
|
|
212 actually the GNU C compiler. Use the --with-gcc=no flag when running
|
|
213 configure.
|
|
214
|
|
215 ** On Solaris 2.* I get undefined symbols from libcurses.a.
|
|
216
|
|
217 You probably have /usr/ucblib/ on your LD_LIBRARY_PATH. Do the link with
|
|
218 LD_LIBRARY_PATH unset.
|
|
219
|
|
220 ** On Solaris 2.* I cannot make alloc.o, glyphs.o or process.o.
|
|
221
|
|
222 The SparcWorks C compiler may have difficulty building those modules
|
|
223 with optimization level -xO4. Try using only "-fast" optimization
|
|
224 for just those modules. (Or use gcc).
|
|
225
|
|
226 ** On Digital UNIX, the DEC C compiler might have a problem compiling
|
|
227 some files.
|
|
228
|
|
229 In particular, src/extents.c and src/faces.c might cause the DEC C
|
|
230 compiler to abort. When this happens: cd src, compile the files by
|
|
231 hand, cd .., and redo the "make" command. When recompiling the files by
|
|
232 hand, use the old C compiler for the following versions of Digital UNIX:
|
|
233 - V3.n: Remove "-migrate" from the compile command.
|
|
234 - V4.n: Add "-oldc" to the compile command.
|
|
235
|
126
|
236 ** On Digital UNIX, TOOLTALK gets misdetected and misconfigured
|
|
237
|
|
238 This problem manifested itself in the beta cycle as putting a literal
|
|
239 LIB_TOOLTALK string into the Makefile.
|
|
240
|
124
|
241 ** On HPUX, the HP C compiler might have a problem compiling some files
|
|
242 with optimization.
|
|
243
|
|
244 Richard Cognot <cognot@ensg.u-nancy.fr> writes:
|
|
245
|
|
246 Had to drop once again to level 2 optimization, at least to
|
|
247 compile lstream.c. Otherwise, I get a "variable is void: \if"
|
|
248 problem while dumping (this is a problem I already reported
|
|
249 with vanilla hpux 10.01 and 9.07, which went away after
|
|
250 applying patches for the C compiler). Trouble is I still
|
|
251 haven't found the same patch for hpux 10.10, and I don't
|
|
252 remember the patch numbers. I think potential XEmacs builders
|
|
253 on HP should be warned about this.
|
|
254
|
|
255 ** I don't have `xmkmf' and `imake' on my HP.
|
|
256
|
|
257 You can get these standard X tools by anonymous FTP to hpcvaaz.cv.hp.com.
|
|
258 Essentially all X programs need these.
|
|
259
|
|
260 ** Solaris 2.3 /bin/sh coredumps during configuration.
|
|
261
|
|
262 This only occurs if you have LANG != C. This is a known bug with
|
|
263 /bin/sh fixed by installing Patch-ID# 101613-01.
|
|
264
|
|
265 ** On Irix 6.0, make tries (and fails) to build a program named unexelfsgi
|
|
266
|
|
267 A compiler bug inserts spaces into the string "unexelfsgi . o"
|
|
268 in src/Makefile. Edit src/Makefile, after configure is run,
|
|
269 find that string, and take out the spaces.
|
|
270
|
|
271 Compiler fixes in Irix 6.0.1 should eliminate this problem.
|
|
272
|
|
273 ** Native cc on SCO OpenServer 5 is now OK. Icc may still throw you
|
|
274 a curve. Here is what Robert Lipe <robertl@arnet.com> says:
|
|
275
|
|
276 Unlike XEmacs 19.13, building with the native cc on SCO OpenServer 5
|
|
277 now produces a functional binary. I will typically build this
|
|
278 configuration for COFF with:
|
|
279
|
|
280 /path_to_XEmacs_source/configure --with-gcc=no \
|
|
281 --site-includes=/usr/local/include --site-libraries=/usr/local/lib \
|
|
282 --with-xpm --with-xface --with-sound=nas
|
|
283
|
|
284 This version now supports ELF builds. I highly recommend this to
|
|
285 reduce the in-core footprint of XEmacs. This is now how I compile
|
|
286 all my test releases. Build it like this:
|
|
287
|
|
288 /path_to_XEmacs_source/configure --with-gcc=no \
|
|
289 --site-includes=/usr/local/include --site-libraries=/usr/local/lib \
|
|
290 --with-xpm --with-xface --with-sound=nas --dynamic
|
|
291
|
|
292 The compiler known as icc [ supplied with the OpenServer 5 Development
|
|
293 System ] generates a working binary, but it takes forever to generate
|
|
294 XEmacs. ICC also whines more about the code than /bin/cc does. I do
|
|
295 believe all its whining is legitimate, however. Note that you do
|
|
296 have to 'cd src ; make LD=icc' to avoid linker errors.
|
|
297
|
|
298 The way I handle the build procedure is:
|
|
299
|
|
300 /path_to_XEmacs_source/configure --with-gcc=no \
|
|
301 --site-includes=/usr/local/include --site-libraries=/usr/local/lib \
|
|
302 --with-xpm --with-xface --with-sound=nas --dynamic --compiler="icc"
|
|
303
|
|
304 NOTE I have the xpm, xface, and audio libraries and includes in
|
|
305 /usr/local/lib, /usr/local/include. If you don't have these,
|
|
306 don't include the "--with-*" arguments in any of my examples.
|
|
307
|
|
308 In previous versions of XEmacs, you had to override the defaults while
|
|
309 compiling font-lock.o and extents.o when building with icc. This seems
|
|
310 to no longer be true, but I'm including this old information in case it
|
|
311 resurfaces. The process I used was:
|
|
312
|
|
313 make -k
|
|
314 [ procure pizza, beer, repeat ]
|
|
315 cd src
|
|
316 make CC="icc -W0,-mP1COPT_max_tree_size=3000" font-lock.o extents.o
|
|
317 make LD=icc
|
|
318
|
|
319 If you want sound support, get the tls566 supplement from
|
|
320 ftp.sco.com:/TLS or any of its mirrors. It works just groovy
|
|
321 with XEmacs.
|
|
322
|
|
323 The M-x manual-entry is known not to work. If you know Lisp and would
|
|
324 like help in making it work, e-mail me at <robertl@dgii.com>.
|
|
325 (UNCHECKED for 19.15 -- it might work).
|
|
326
|
|
327 In earlier releases, gnuserv/gnuclient/gnudoit would open a frame
|
|
328 just fine, but the client would lock up and the server would
|
|
329 terminate when you used C-x # to close the frame. This is now
|
|
330 fixed in XEmacs.
|
|
331
|
|
332 In etc/ there are two files of note. emacskeys.sco and emacsstrs.sco.
|
|
333 The comments at the top of emacskeys.sco describe its function, and
|
|
334 the emacstrs.sco is a suitable candidate for /usr/lib/keyboard/strings
|
|
335 to take advantage of the keyboard map in emacskeys.sco.
|
|
336
|
|
337 ** Under some versions of OSF XEmacs runs fine if built without
|
|
338 optimization but will crash randomly if built with optimization.
|
|
339
|
|
340 Using 'cc -g' is not sufficient to eliminate all optimization. Try
|
|
341 'cc -g -O0' instead.
|
|
342
|
|
343 ** On SunOS, you get linker errors
|
|
344 ld: Undefined symbol
|
|
345 _get_wmShellWidgetClass
|
|
346 _get_applicationShellWidgetClass
|
|
347
|
|
348 The fix to this is to install patch 100573 for OpenWindows 3.0
|
|
349 or link libXmu statically.
|
|
350
|
|
351 ** On Sunos 4, you get the error ld: Undefined symbol __lib_version.
|
|
352
|
|
353 This is the result of using cc or gcc with the shared library meant
|
|
354 for acc (the Sunpro compiler). Check your LD_LIBRARY_PATH and delete
|
|
355 /usr/lang/SC2.0.1 or some similar directory.
|
|
356
|
|
357 ** On AIX 4.1.2, linker error messages such as
|
|
358 ld: 0711-212 SEVERE ERROR: Symbol .__quous, found in the global symbol table
|
|
359 of archive /usr/lib/libIM.a, was not defined in archive member shr.o.
|
|
360
|
|
361 This is a problem in libIM.a. You can work around it by executing
|
|
362 these shell commands in the src subdirectory of the directory where
|
|
363 you build Emacs:
|
|
364
|
|
365 cp /usr/lib/libIM.a .
|
|
366 chmod 664 libIM.a
|
|
367 ranlib libIM.a
|
|
368
|
|
369 Then change -lIM to ./libIM.a in the command to link temacs (in
|
|
370 Makefile).
|
|
371
|
|
372 ** On Irix 5.2, unexelfsgi.c can't find cmplrs/stsupport.h.
|
|
373
|
|
374 The file cmplrs/stsupport.h was included in the wrong file set in the
|
|
375 Irix 5.2 distribution. You can find it in the optional fileset
|
|
376 compiler_dev, or copy it from some other Irix 5.2 system. A kludgy
|
|
377 workaround is to change unexelfsgi.c to include sym.h instead of
|
|
378 syms.h.
|
|
379
|
|
380 ** Link failure when using acc on a Sun.
|
|
381
|
|
382 To use acc, you need additional options just before the libraries, such as
|
|
383
|
|
384 /usr/lang/SC2.0.1/values-Xt.o -L/usr/lang/SC2.0.1/cg87 -L/usr/lang/SC2.0.1
|
|
385
|
|
386 and you need to add -lansi just before -lc.
|
|
387
|
|
388 The precise file names depend on the compiler version, so we
|
|
389 cannot easily arrange to supply them.
|
|
390
|
|
391 ** Link failure on IBM AIX 1.3 ptf 0013.
|
|
392
|
|
393 There is a real duplicate definition of the function `_slibc_free' in
|
|
394 the library /lib/libc_s.a (just do nm on it to verify). The
|
|
395 workaround/fix is:
|
|
396
|
|
397 cd /lib
|
|
398 ar xv libc_s.a NLtmtime.o
|
|
399 ar dv libc_s.a NLtmtime.o
|
|
400
|
|
401 ** Undefined symbols _dlopen, _dlsym and/or _dlclose on a Sun.
|
|
402
|
|
403 If you see undefined symbols _dlopen, _dlsym, or _dlclose when linking
|
|
404 with -lX11, compile and link against the file mit/util/misc/dlsym.c in
|
|
405 the MIT X11R5 distribution. Alternatively, link temacs using shared
|
|
406 libraries with s/sunos4shr.h. (This doesn't work if you use the X
|
|
407 toolkit.)
|
|
408
|
|
409 If you get the additional error that the linker could not find
|
|
410 lib_version.o, try extracting it from X11/usr/lib/X11/libvim.a in
|
|
411 X11R4, then use it in the link.
|
|
412
|
|
413 ** Undefined symbols when linking on Sunos 4.1.
|
|
414
|
|
415 If you get the undefined symbols _atowc _wcslen, _iswprint, _iswspace,
|
|
416 _iswcntrl, _wcscpy, and _wcsncpy, then you need to add -lXwchar after
|
|
417 -lXaw in the command that links temacs.
|
|
418
|
|
419 This problem seems to arise only when the international language
|
|
420 extensions to X11R5 are installed.
|
|
421
|
|
422 ** src/Makefile and lib-src/Makefile are truncated--most of the file missing.
|
|
423
|
|
424 This can happen if configure uses GNU sed version 2.03. That version
|
|
425 had a bug. GNU sed version 2.05 works properly.
|
|
426
|
|
427 ** On AIX, you get this compiler error message:
|
|
428
|
|
429 Processing include file ./XMenuInt.h
|
|
430 1501-106: (S) Include file X11/Xlib.h not found.
|
|
431
|
|
432 This means your system was installed with only the X11 runtime i.d
|
|
433 libraries. You have to find your sipo (bootable tape) and install
|
|
434 X11Dev... with smit.
|
|
435
|
|
436 ** C-z just refreshes the screen instead of suspending Emacs.
|
|
437
|
|
438 You are probably using a shell that doesn't support job control, even
|
|
439 though the system itself is capable of it. Either use a different shell,
|
|
440 or set the variable `cannot-suspend' to a non-nil value.
|
|
441
|
|
442 ** On a Sun running SunOS 4.1.1, you get this error message from GNU ld:
|
|
443
|
|
444 /lib/libc.a(_Q_sub.o): Undefined symbol __Q_get_rp_rd referenced from text segment
|
|
445
|
|
446 The problem is in the Sun shared C library, not in GNU ld.
|
|
447
|
|
448 The solution is to install Patch-ID# 100267-03 from Sun.
|
|
449
|
|
450 ** SunOS 4.1.2: undefined symbol _get_wmShellWidgetClass
|
|
451
|
|
452 Apparently the version of libXmu.so.a that Sun ships is hosed: it's missing
|
|
453 some stuff that is in libXmu.a (the static version). Sun has a patch for
|
|
454 this, but a workaround is to use the static version of libXmu, by changing
|
|
455 the link command from "-lXmu" to "-Bstatic -lXmu -Bdynamic". If you have
|
|
456 OpenWindows 3.0, ask Sun for these patches:
|
|
457 100512-02 4.1.x OpenWindows 3.0 libXt Jumbo patch
|
|
458 100573-03 4.1.x OpenWindows 3.0 undefined symbols with shared libXmu
|
|
459
|
|
460 ** Random other SunOS 4.1.[12] link errors.
|
|
461
|
|
462 The X headers and libraries that Sun ships in /usr/{include,lib}/X11 are
|
|
463 broken. Use the ones in /usr/openwin/{include,lib} instead.
|
|
464
|
|
465 ** When using gcc, you get the error message "undefined symbol __fixunsdfsi".
|
|
466 ** When using gcc, you get the error message "undefined symbol __main".
|
|
467
|
|
468 This means that you need to link with the gcc library. It may be called
|
|
469 "gcc-gnulib" or "libgcc.a"; figure out where it is, and define LIB_GCC in
|
|
470 config.h to point to it.
|
|
471
|
|
472 It may also work to use the GCC version of `ld' instead of the standard one.
|
|
473
|
|
474 ** When compiling with X11, you get "undefined symbol _XtStrings".
|
|
475
|
|
476 This means that you are trying to link emacs against the X11r4 version of
|
|
477 libXt.a, but you have compiled either Emacs or the code in the lwlib
|
|
478 subdirectory with the X11r5 header files. That doesn't work.
|
|
479
|
|
480 Remember, you can't compile lwlib for r4 and emacs for r5, or vice versa.
|
|
481 They must be in sync.
|
|
482
|
136
|
483 ** Problems finding X11 libraries on Solaris with Openwindows
|
|
484
|
|
485 Some users have reported problems in this area. The reported solution
|
|
486 is to define the environment variable OPENWINHOME, even if you must set
|
|
487 it to `/usr/openwin'.
|
|
488
|
124
|
489 * Problems with running XEmacs
|
|
490
|
|
491 ** You type Control-H (Backspace) expecting to delete characters.
|
|
492
|
|
493 Emacs has traditionally used Control-H for help; unfortunately this
|
|
494 interferes with its use as Backspace on TTY's. One way to solve this
|
|
495 problem is to put this in your .emacs:
|
|
496
|
|
497 (keyboard-translate ?\C-h ?\C-?)
|
|
498 (global-set-key "\M-?" 'help-command)
|
|
499
|
|
500 This makes Control-H (Backspace) work sensibly, and moves help to
|
|
501 Meta-? (ESC ?).
|
|
502
|
|
503 Note that you can probably also access help using F1.
|
|
504
|
|
505 ** On Solaris, C-x doesn't get through to Emacs when you use the console.
|
|
506
|
|
507 This is a Solaris feature (at least on Intel x86 cpus). Type C-r
|
|
508 C-r C-t, to toggle whether C-x gets through to Emacs.
|
|
509
|
|
510 ** VM appears to hang in large folders
|
|
511
|
|
512 This is normal (trust us) when upgrading to VM-6.22 from earlier
|
|
513 versions. Let VM finish what it is doing and all will be well.
|
|
514
|
|
515 ** Changes made to .el files do not take effect.
|
0
|
516
|
|
517 You may have forgotten to recompile them into .elc files.
|
|
518 Then the old .elc files will be loaded, and your changes
|
|
519 will not be seen. To fix this, do M-x byte-recompile-directory
|
|
520 and specify the directory that contains the Lisp files.
|
|
521
|
|
522 Note that you may get a warning when loading a .elc file that
|
|
523 is older than the corresponding .el file.
|
|
524
|
124
|
525 ** Things which should be bold or italic (such as the initial copyright notice)
|
|
526 are not.
|
0
|
527
|
|
528 The fonts of the "bold" and "italic" faces are generated from the font of
|
|
529 the "default" face; in this way, your bold and italic fonts will have the
|
|
530 appropriate size and family. However, emacs can only be clever in this
|
|
531 way if you have specified the default font using the XLFD (X Logical Font
|
|
532 Description) format, which looks like
|
|
533
|
|
534 *-courier-medium-r-*-*-*-120-*-*-*-*-*-*
|
|
535
|
|
536 if you use any of the other, less strict font name formats, some of which
|
|
537 look like
|
|
538 lucidasanstypewriter-12
|
|
539 and fixed
|
|
540 and 9x13
|
|
541
|
|
542 then emacs won't be able to guess the names of the "bold" and "italic"
|
|
543 versions. All X fonts can be referred to via XLFD-style names, so you
|
|
544 should use those forms. See the man pages for X(1), xlsfonts(1), and
|
|
545 xfontsel(1).
|
|
546
|
124
|
547 ** The dumped Emacs (XEmacs) crashes when run, trying to write pure data.
|
0
|
548
|
|
549 Two causes have been seen for such problems.
|
|
550
|
|
551 1) On a system where getpagesize is not a system call, it is defined
|
|
552 as a macro. If the definition (in both unexec.c and malloc.c) is wrong,
|
|
553 it can cause problems like this. You might be able to find the correct
|
|
554 value in the man page for a.out (5).
|
|
555
|
|
556 2) Some systems allocate variables declared static among the
|
|
557 initialized variables. Emacs makes all initialized variables in most
|
|
558 of its files pure after dumping, but the variables declared static and
|
|
559 not initialized are not supposed to be pure. On these systems you
|
|
560 may need to add "#define static" to the m- or the s- file.
|
|
561
|
124
|
562 ** Reading and writing files is very very slow.
|
0
|
563
|
|
564 Try evaluating the form (setq lock-directory nil) and see if that helps.
|
|
565 There is a problem with file-locking on some systems (possibly related
|
|
566 to NFS) that I don't understand. Please send mail to the address
|
|
567 xemacs@xemacs.org if you figure this one out.
|
|
568
|
124
|
569 ** The Emacs window disappears when you type M-q.
|
|
570
|
|
571 Some versions of the Open Look window manager interpret M-q as a quit
|
|
572 command for whatever window you are typing at. If you want to use
|
|
573 Emacs with that window manager, you should try to configure the window
|
|
574 manager to use some other command. You can disable the
|
|
575 shortcut keys entirely by adding this line to ~/.OWdefaults:
|
|
576
|
|
577 OpenWindows.WindowMenuAccelerators: False
|
|
578
|
|
579 ** The `Alt' key doesn't behave as `Meta' when running DECwindows.
|
|
580
|
|
581 The default DEC keyboard mapping has the Alt keys set up to generate the
|
|
582 keysym `Multi_key', which has a meaning to xemacs which is distinct from that
|
|
583 of the `Meta_L' and `Meta-R' keysyms. A second problem is that certain keys
|
|
584 have the Mod2 modifier attached to them for no adequately explored reason.
|
|
585 The correct fix is to pass this file to xmodmap upon starting X:
|
|
586
|
|
587 clear mod2
|
|
588 keysym Multi_key = Alt_L
|
|
589 add mod1 = Alt_L
|
|
590 add mod1 = Alt_R
|
|
591
|
|
592 ** The Compose key on a DEC keyboard does not work as Meta key.
|
|
593
|
|
594 This shell command should fix it:
|
|
595
|
|
596 xmodmap -e 'keycode 0xb1 = Meta_L'
|
|
597
|
|
598
|
|
599 ** When emacs starts up, I get lots of warnings about unknown keysyms.
|
|
600
|
|
601 If you are running the prebuilt binaries, the Motif library expects to find
|
|
602 certain thing in the XKeysymDB file. This file is normally in /usr/lib/X11/
|
|
603 or in /usr/openwin/lib/. If you keep yours in a different place, set the
|
|
604 environment variable $XKEYSYMDB to point to it before starting emacs. If
|
|
605 you still have the problem after doing that, perhaps your version of X is
|
|
606 too old. There is a copy of the MIT X11R5 XKeysymDB file in the emacs `etc'
|
|
607 directory. Try using that one.
|
|
608
|
|
609 ** My X resources used to work, and now some of them are being ignored.
|
0
|
610
|
124
|
611 Check the resources in .../etc/Emacs.ad (which is the same as the file
|
|
612 sample.Xdefaults). Perhaps some of the default resources built in to
|
|
613 emacs are now overriding your existing resources. Copy and edit the
|
|
614 resources in Emacs.ad as necessary.
|
|
615
|
|
616 ** I get complaints about the mapping of my HP keyboard at startup, but I
|
|
617 haven't changed anything.
|
|
618
|
|
619 The default HP keymap is set up to have Mod1 assigned to two different keys:
|
|
620 Meta_L and Mode_switch (even though there is not actually a Mode_switch key on
|
|
621 the keyboard -- it uses an "imaginary" keycode.) There actually is a reason
|
|
622 for this, but it's not a good one. The correct fix is to execute this command
|
|
623 upon starting X:
|
|
624
|
|
625 xmodmap -e 'remove mod1 = Mode_switch'
|
|
626
|
|
627 ** I have focus problems when I use `M-o' to switch to another screen without
|
|
628 using the mouse.
|
|
629
|
|
630 The focus issues with a program like XEmacs, which has multiple homogeneous
|
|
631 top-level windows, are very complicated, and as a result, most window managers
|
|
632 don't implement them correctly.
|
0
|
633
|
124
|
634 The R4/R5 version of twm (and all of its descendants) had buggy focus
|
|
635 handling; there is a patch in .../xemacs/etc/twm-patch which fixes this.
|
|
636 Sufficiently recent versions of tvtwm do not need this patch, but most other
|
|
637 versions of twm do. If you need to apply this patch, please try to get it
|
|
638 integrated by the maintainer of whichever version of twm you're using.
|
|
639
|
|
640 In addition, if you're using twm, make sure you have not specified
|
|
641 "NoTitleFocus" in your .tvtwmrc file. The very nature of this option makes
|
|
642 twm do some illegal focus tricks, even with the patch.
|
|
643
|
|
644 It is known that olwm and olvwm are buggy, and in different ways. If you're
|
|
645 using click-to-type mode, try using point-to-type, or vice versa.
|
|
646
|
|
647 In older versions of NCDwm, one could not even type at XEmacs windows. This
|
|
648 has been fixed in newer versions (2.4.3, and possibly earlier).
|
|
649
|
|
650 (Many people suggest that XEmacs should warp the mouse when focusing on
|
|
651 another screen in point-to-type mode. This is not ICCCM-compliant behavior.
|
|
652 Implementing such policy is the responsibility of the window manager itself,
|
|
653 it is not legal for a client to do this.)
|
|
654
|
|
655 ** Mail agents (VM, Gnus, rmail) cannot get new mail
|
0
|
656
|
|
657 rmail and VM get new mail from /usr/spool/mail/$USER using a program
|
120
|
658 called `movemail'. This program interlocks with /bin/mail using the
|
|
659 protocol defined by /bin/mail.
|
0
|
660
|
|
661 There are two different protocols in general use. One of them uses
|
|
662 the `flock' system call. The other involves creating a lock file;
|
|
663 `movemail' must be able to write in /usr/spool/mail in order to do
|
120
|
664 this. You control which one is used by defining, or not defining, the
|
|
665 macro MAIL_USE_FLOCK in config.h or the m- or s- file it includes. IF
|
|
666 YOU DON'T USE THE FORM OF INTERLOCKING THAT IS NORMAL ON YOUR SYSTEM,
|
|
667 YOU CAN LOSE MAIL!
|
0
|
668
|
|
669 If your system uses the lock file protocol, and fascist restrictions
|
|
670 prevent ordinary users from writing the lock files in /usr/spool/mail,
|
|
671 you may need to make `movemail' setgid to a suitable group such as
|
|
672 `mail'. You can use these commands (as root):
|
|
673
|
|
674 chgrp mail movemail
|
|
675 chmod 2755 movemail
|
|
676
|
|
677 If your system uses the lock file protocol, and fascist restrictions
|
|
678 prevent ordinary users from writing the lock files in /usr/spool/mail,
|
|
679 you may need to make `movemail' setgid to a suitable group such as
|
120
|
680 `mail'. To do this, use the following commands (as root) after doing
|
|
681 the make install.
|
0
|
682
|
|
683 chgrp mail movemail
|
|
684 chmod 2755 movemail
|
|
685
|
|
686 Installation normally copies movemail from the build directory to an
|
|
687 installation directory which is usually under /usr/local/lib. The
|
|
688 installed copy of movemail is usually in the directory
|
|
689 /usr/local/lib/emacs/VERSION/TARGET. You must change the group and
|
|
690 mode of the installed copy; changing the group and mode of the build
|
|
691 directory copy is ineffective.
|
|
692
|
124
|
693 ** Emacs spontaneously displays "I-search: " at the bottom of the screen.
|
0
|
694
|
|
695 This means that Control-S/Control-Q (XON/XOFF) "flow control" is being
|
|
696 used. C-s/C-q flow control is bad for Emacs editors because it takes
|
|
697 away C-s and C-q as user commands. Since editors do not output long
|
|
698 streams of text without user commands, there is no need for a
|
|
699 user-issuable "stop output" command in an editor; therefore, a
|
|
700 properly designed flow control mechanism would transmit all possible
|
|
701 input characters without interference. Designing such a mechanism is
|
|
702 easy, for a person with at least half a brain.
|
|
703
|
|
704 There are three possible reasons why flow control could be taking place:
|
|
705
|
|
706 1) Terminal has not been told to disable flow control
|
|
707 2) Insufficient padding for the terminal in use
|
|
708 3) Some sort of terminal concentrator or line switch is responsible
|
|
709
|
|
710 First of all, many terminals have a set-up mode which controls whether
|
|
711 they generate XON/XOFF flow control characters. This must be set to
|
|
712 "no XON/XOFF" in order for Emacs to work. Sometimes there is an
|
|
713 escape sequence that the computer can send to turn flow control off
|
|
714 and on. If so, perhaps the termcap `ti' string should turn flow
|
|
715 control off, and the `te' string should turn it on.
|
|
716
|
|
717 Once the terminal has been told "no flow control", you may find it
|
|
718 needs more padding. The amount of padding Emacs sends is controlled
|
|
719 by the termcap entry for the terminal in use, and by the output baud
|
|
720 rate as known by the kernel. The shell command `stty' will print
|
|
721 your output baud rate; `stty' with suitable arguments will set it if
|
|
722 it is wrong. Setting to a higher speed causes increased padding. If
|
|
723 the results are wrong for the correct speed, there is probably a
|
|
724 problem in the termcap entry. You must speak to a local Unix wizard
|
|
725 to fix this. Perhaps you are just using the wrong terminal type.
|
|
726
|
|
727 For terminals that lack a "no flow control" mode, sometimes just
|
|
728 giving lots of padding will prevent actual generation of flow control
|
|
729 codes. You might as well try it.
|
|
730
|
|
731 If you are really unlucky, your terminal is connected to the computer
|
|
732 through a concentrator which sends XON/XOFF flow control to the
|
|
733 computer, or it insists on sending flow control itself no matter how
|
|
734 much padding you give it. Unless you can figure out how to turn flow
|
|
735 control off on this concentrator (again, refer to your local wizard),
|
|
736 you are screwed! You should have the terminal or concentrator
|
|
737 replaced with a properly designed one. In the mean time, some drastic
|
|
738 measures can make Emacs semi-work.
|
|
739
|
|
740 You can make Emacs ignore C-s and C-q and let the operating system
|
|
741 handle them. To do this on a per-session basis, just type M-x
|
|
742 enable-flow-control RET. You will see a message that C-\ and C-^ are
|
|
743 now translated to C-s and C-q. (Use the same command M-x
|
|
744 enable-flow-control to turn *off* this special mode. It toggles flow
|
|
745 control handling.)
|
|
746
|
|
747 If C-\ and C-^ are inconvenient for you (for example, if one of them
|
|
748 is the escape character of your terminal concentrator), you can choose
|
|
749 other characters by setting the variables flow-control-c-s-replacement
|
|
750 and flow-control-c-q-replacement. But choose carefully, since all
|
|
751 other control characters are already used by emacs.
|
|
752
|
|
753 IMPORTANT: if you type C-s by accident while flow control is enabled,
|
|
754 Emacs output will freeze, and you will have to remember to type C-q in
|
|
755 order to continue.
|
|
756
|
|
757 If you work in an environment where a majority of terminals of a
|
|
758 certain type are flow control hobbled, you can use the function
|
|
759 `enable-flow-control-on' to turn on this flow control avoidance scheme
|
|
760 automatically. Here is an example:
|
|
761
|
|
762 (enable-flow-control-on "vt200" "vt300" "vt101" "vt131")
|
|
763
|
|
764 If this isn't quite correct (e.g. you have a mixture of flow-control hobbled
|
|
765 and good vt200 terminals), you can still run enable-flow-control
|
|
766 manually.
|
|
767
|
|
768 I have no intention of ever redesigning the Emacs command set for the
|
|
769 assumption that terminals use C-s/C-q flow control. XON/XOFF flow
|
|
770 control technique is a bad design, and terminals that need it are bad
|
|
771 merchandise and should not be purchased. Now that X is becoming
|
|
772 widespread, XON/XOFF seems to be on the way out. If you can get some
|
|
773 use out of GNU Emacs on inferior terminals, more power to you, but I
|
|
774 will not make Emacs worse for properly designed systems for the sake
|
|
775 of inferior systems.
|
|
776
|
124
|
777 ** Control-S and Control-Q commands are ignored completely.
|
0
|
778
|
|
779 For some reason, your system is using brain-damaged C-s/C-q flow
|
|
780 control despite Emacs's attempts to turn it off. Perhaps your
|
|
781 terminal is connected to the computer through a concentrator
|
|
782 that wants to use flow control.
|
|
783
|
|
784 You should first try to tell the concentrator not to use flow control.
|
|
785 If you succeed in this, try making the terminal work without
|
|
786 flow control, as described in the preceding section.
|
|
787
|
|
788 If that line of approach is not successful, map some other characters
|
|
789 into C-s and C-q using keyboard-translate-table. The example above
|
|
790 shows how to do this with C-^ and C-\.
|
|
791
|
124
|
792 ** Control-S and Control-Q commands are ignored completely on a net
|
|
793 connection.
|
0
|
794
|
|
795 Some versions of rlogin (and possibly telnet) do not pass flow
|
|
796 control characters to the remote system to which they connect.
|
|
797 On such systems, emacs on the remote system cannot disable flow
|
|
798 control on the local system.
|
|
799
|
|
800 One way to cure this is to disable flow control on the local host
|
|
801 (the one running rlogin, not the one running rlogind) using the
|
|
802 stty command, before starting the rlogin process. On many systems,
|
120
|
803 `stty start u stop u' will do this.
|
0
|
804
|
|
805 Some versions of tcsh will prevent even this from working. One way
|
|
806 around this is to start another shell before starting rlogin, and
|
|
807 issue the stty command to disable flow control from that shell.
|
|
808
|
|
809 If none of these methods work, the best solution is to type
|
120
|
810 `M-x enable-flow-control' at the beginning of your emacs session, or
|
0
|
811 if you expect the problem to continue, add a line such as the
|
|
812 following to your .emacs (on the host running rlogind):
|
|
813
|
|
814 (enable-flow-control-on "vt200" "vt300" "vt101" "vt131")
|
|
815
|
|
816 See the entry about spontaneous display of I-search (above) for more
|
|
817 info.
|
|
818
|
124
|
819 ** Screen is updated wrong, but only on one kind of terminal.
|
0
|
820
|
120
|
821 This could mean that the termcap entry you are using for that terminal
|
|
822 is wrong, or it could mean that Emacs has a bug handing the
|
|
823 combination of features specified for that terminal.
|
0
|
824
|
|
825 The first step in tracking this down is to record what characters
|
|
826 Emacs is sending to the terminal. Execute the Lisp expression
|
120
|
827 (open-termscript "./emacs-script") to make Emacs write all terminal
|
|
828 output into the file ~/emacs-script as well; then do what makes the
|
|
829 screen update wrong, and look at the file and decode the characters
|
|
830 using the manual for the terminal. There are several possibilities:
|
0
|
831
|
|
832 1) The characters sent are correct, according to the terminal manual.
|
|
833
|
|
834 In this case, there is no obvious bug in Emacs, and most likely you
|
|
835 need more padding, or possibly the terminal manual is wrong.
|
|
836
|
120
|
837 2) The characters sent are incorrect, due to an obscure aspect of the
|
|
838 terminal behavior not described in an obvious way by termcap.
|
0
|
839
|
120
|
840 This case is hard. It will be necessary to think of a way for Emacs
|
|
841 to distinguish between terminals with this kind of behavior and other
|
|
842 terminals that behave subtly differently but are classified the same
|
|
843 by termcap; or else find an algorithm for Emacs to use that avoids the
|
|
844 difference. Such changes must be tested on many kinds of terminals.
|
0
|
845
|
|
846 3) The termcap entry is wrong.
|
|
847
|
120
|
848 See the file etc/TERMS for information on changes that are known to be
|
|
849 needed in commonly used termcap entries for certain terminals.
|
0
|
850
|
120
|
851 4) The characters sent are incorrect, and clearly cannot be right for
|
|
852 any terminal with the termcap entry you were using.
|
0
|
853
|
120
|
854 This is unambiguously an Emacs bug, and can probably be fixed in
|
|
855 termcap.c, tparam.c, term.c, scroll.c, cm.c or dispnew.c.
|
0
|
856
|
124
|
857 ** Output from Control-V is slow.
|
0
|
858
|
|
859 On many bit-map terminals, scrolling operations are fairly slow.
|
|
860 Often the termcap entry for the type of terminal in use fails
|
|
861 to inform Emacs of this. The two lines at the bottom of the screen
|
|
862 before a Control-V command are supposed to appear at the top after
|
|
863 the Control-V command. If Emacs thinks scrolling the lines is fast,
|
|
864 it will scroll them to the top of the screen.
|
|
865
|
|
866 If scrolling is slow but Emacs thinks it is fast, the usual reason is
|
|
867 that the termcap entry for the terminal you are using does not
|
|
868 specify any padding time for the `al' and `dl' strings. Emacs
|
|
869 concludes that these operations take only as much time as it takes to
|
|
870 send the commands at whatever line speed you are using. You must
|
|
871 fix the termcap entry to specify, for the `al' and `dl', as much
|
|
872 time as the operations really take.
|
|
873
|
|
874 Currently Emacs thinks in terms of serial lines which send characters
|
|
875 at a fixed rate, so that any operation which takes time for the
|
|
876 terminal to execute must also be padded. With bit-map terminals
|
|
877 operated across networks, often the network provides some sort of
|
|
878 flow control so that padding is never needed no matter how slow
|
|
879 an operation is. You must still specify a padding time if you want
|
|
880 Emacs to realize that the operation takes a long time. This will
|
|
881 cause padding characters to be sent unnecessarily, but they do
|
|
882 not really cost much. They will be transmitted while the scrolling
|
|
883 is happening and then discarded quickly by the terminal.
|
|
884
|
|
885 Most bit-map terminals provide commands for inserting or deleting
|
|
886 multiple lines at once. Define the `AL' and `DL' strings in the
|
|
887 termcap entry to say how to do these things, and you will have
|
|
888 fast output without wasted padding characters. These strings should
|
|
889 each contain a single %-spec saying how to send the number of lines
|
|
890 to be scrolled. These %-specs are like those in the termcap
|
|
891 `cm' string.
|
|
892
|
|
893 You should also define the `IC' and `DC' strings if your terminal
|
|
894 has a command to insert or delete multiple characters. These
|
|
895 take the number of positions to insert or delete as an argument.
|
|
896
|
|
897 A `cs' string to set the scrolling region will reduce the amount
|
|
898 of motion you see on the screen when part of the screen is scrolled.
|
|
899
|
124
|
900 ** Your Delete key sends a Backspace to the terminal, using an AIXterm.
|
0
|
901
|
|
902 The solution is to include in your .Xdefaults the lines:
|
|
903
|
|
904 *aixterm.Translations: #override <Key>BackSpace: string(0x7f)
|
|
905 aixterm*ttyModes: erase ^?
|
|
906
|
|
907 This makes your Backspace key send DEL (ASCII 127).
|
|
908
|
124
|
909 ** With certain fonts, when the cursor appears on a character, the
|
|
910 character doesn't appear--you get a solid box instead.
|
|
911
|
|
912 One user on a Linux system reported that this problem went away with
|
|
913 installation of a new X server. The failing server was XFree86 3.1.1.
|
|
914 XFree86 3.1.2 works.
|
|
915
|
|
916 ** On SunOS 4.1.3, Emacs unpredictably crashes in _yp_dobind_soft.
|
0
|
917
|
124
|
918 This happens if you configure Emacs specifying just `sparc-sun-sunos4'
|
|
919 on a system that is version 4.1.3. You must specify the precise
|
|
920 version number (or let configure figure out the configuration, which
|
|
921 it can do perfectly well for SunOS).
|
|
922
|
|
923 ** On Irix, I don't see the toolbar icons and I'm getting lots of
|
|
924 entries in the warnings buffer.
|
0
|
925
|
124
|
926 SGI ships a really old Xpm library in /usr/lib which does not work at
|
|
927 all well with XEmacs. The solution is to install your own copy of the
|
|
928 latest version of Xpm somewhere and then use the --site-includes and
|
|
929 --site-libraries flags to tell configure where to find it.
|
|
930
|
|
931 ** On HPUX, you get "poll: Interrupted system call" message in the window
|
|
932 where XEmacs was launched.
|
|
933
|
|
934 Richard Cognot <cognot@ensg.u-nancy.fr> writes:
|
0
|
935
|
124
|
936 I get a very strange problem when linking libc.a
|
|
937 dynamically: every event (mouse, keyboard, expose...) results
|
|
938 in a "poll: Interrupted system call" message in the window
|
|
939 where XEmacs was launched. Forcing a static link of libc.a
|
|
940 alone by adding /usr/lib/libc.a at the end of the link line
|
|
941 solves this. Note that my 9.07 build of 19.14b17 and my (old)
|
|
942 build of 19.13 both exhibit the same behaviour. I've tried
|
|
943 various hpux patches to no avail. If this problem cannot be
|
|
944 solved before the release date, binary kits for HP *must* be
|
|
945 linked statically against libc, otherwise this problem will
|
|
946 show up. (This is directed at whoever will volunteer for this
|
|
947 kit, as I won't be available to do it, unless 19.14 gets
|
|
948 delayed until mid-june ;-). I think this problem will be an FAQ
|
|
949 soon after the release otherwise.
|
0
|
950
|
124
|
951 ** When Emacs tries to ring the bell, you get an error like
|
|
952
|
|
953 audio: sst_open: SETQSIZE" Invalid argument
|
|
954 audio: sst_close: SETREG MMR2, Invalid argument
|
|
955
|
|
956 you have probably compiled using an ANSI C compiler, but with non-ANSI include
|
|
957 files. In particular, on Suns, the file /usr/include/sun/audioio.h uses the
|
|
958 _IOW macro to define the constant AUDIOSETQSIZE. _IOW in turn uses a K&R
|
|
959 preprocessor feature that is now explicitly forbidden in ANSI preprocessors,
|
|
960 namely substitution inside character constants. All ANSI C compilers must
|
|
961 provide a workaround for this problem. Lucid's C compiler is shipped with a
|
|
962 new set of system include files. If you are using GCC, there is a script
|
|
963 called fixincludes that creates new versions of some system include files that
|
|
964 use this obsolete feature.
|
|
965
|
|
966 ** My buffers are full of \000 characters or otherwise corrupt.
|
0
|
967
|
124
|
968 Some compilers have trouble with gmalloc.c and ralloc.c; try recompiling
|
|
969 without optimization. If that doesn't work, try recompiling with
|
|
970 SYSTEM_MALLOC defined, and/or with REL_ALLOC undefined.
|
|
971
|
|
972 ** On AIX 4, some programs fail when run in a Shell buffer
|
|
973 with an error message like No terminfo entry for "unknown".
|
|
974
|
|
975 On AIX, many terminal type definitions are not installed by default.
|
|
976 `unknown' is one of them. Install the "Special Generic Terminal
|
|
977 Definitions" to make them defined.
|
|
978
|
|
979 ** Emacs exits with "X protocol error" when run with an X server for
|
|
980 Windows.
|
0
|
981
|
124
|
982 A certain X server for Windows had a bug which caused this.
|
|
983 Supposedly the newer 32-bit version of this server doesn't have the
|
|
984 problem.
|
|
985
|
|
986 ** A position you specified in .Xdefaults is ignored, using twm.
|
|
987
|
|
988 twm normally ignores "program-specified" positions.
|
|
989 You can tell it to obey them with this command in your `.twmrc' file:
|
0
|
990
|
124
|
991 UsePPosition "on" #allow clents to request a position
|
|
992
|
|
993 ** The right Alt key works wrong on German HP keyboards (and perhaps
|
|
994 other non-English HP keyboards too).
|
|
995
|
|
996 This is because HPUX defines the modifiers wrong in X. Here is a
|
|
997 shell script to fix the problem; be sure that it is run after VUE
|
|
998 configures the X server.
|
0
|
999
|
124
|
1000 xmodmap 2> /dev/null - << EOF
|
|
1001 keysym Alt_L = Meta_L
|
|
1002 keysym Alt_R = Meta_R
|
|
1003 EOF
|
|
1004
|
|
1005 xmodmap - << EOF
|
|
1006 clear mod1
|
|
1007 keysym Mode_switch = NoSymbol
|
|
1008 add mod1 = Meta_L
|
|
1009 keysym Meta_R = Mode_switch
|
|
1010 add mod2 = Mode_switch
|
|
1011 EOF
|
|
1012
|
|
1013 ** Emacs does not notice when you release the mouse.
|
0
|
1014
|
124
|
1015 There are reports that this happened with (some) Microsoft mice and
|
|
1016 that replacing the mouse made it stop.
|
|
1017
|
|
1018 ** Trouble using ptys on IRIX, or running out of ptys.
|
|
1019
|
|
1020 The program mkpts (which may be in `/usr/adm' or `/usr/sbin') needs to
|
|
1021 be set-UID to root, or non-root programs like Emacs will not be able
|
|
1022 to allocate ptys reliably.
|
|
1023
|
126
|
1024 ** Motif dialog boxes lose big time on Irix.
|
|
1025
|
|
1026 Larry Auton <lda@control.att.com> writes:
|
|
1027 Beware of not specifying
|
|
1028
|
|
1029 --with-dialogs=athena
|
|
1030
|
|
1031 if it builds with the motif dialogs [boom!] you're a dead man.
|
|
1032
|
|
1033 ** Beware of the default image & graphics library on Irix
|
|
1034
|
|
1035 Richard Cognot <cognot@ensg.u-nancy.fr> writes:
|
|
1036 You *have* to compile your own jpeg lib. The one delivered with SGI
|
|
1037 systems is a C++ lib, which apparently XEmacs cannot cope with.
|
|
1038
|
138
|
1039 ** XEmacs won't build with the n32 environment on Irix 6.
|
|
1040
|
|
1041 Olivier Galibert <Olivier.Galibert@mines.u-nancy.fr> writes:
|
|
1042 While making the OS and the compiler able to work on 64b
|
|
1043 architectures, SGI designed another mode for using registers
|
|
1044 and passing parameters between functions, activated on the
|
|
1045 compiler by using -64. Since it was much more efficient ar
|
|
1046 using registers even for 32b architectures, they designed
|
|
1047 a version for 32b called n32. And it _is_ really better.
|
|
1048 This mode should always be used when not using gcc (which
|
|
1049 can only do o32 afaik).
|
|
1050
|
|
1051 Too bad xemacs can't do n32 out of the box. So here is what
|
|
1052 I had to do to compile it in this mode:
|
|
1053
|
|
1054 s/irix6-0.h:
|
|
1055 - #define LD_SWITCH_SYSTEM -32
|
|
1056 + #define LD_SWITCH_SYSTEM -n32 -G 0
|
|
1057
|
|
1058 m/iris4d.h:
|
|
1059 - #define LIBS_MACHINE -lmld
|
|
1060 + #define LIBS_MACHINE
|
|
1061
|
|
1062 - #define C_SWITCH_MACHINE -32
|
|
1063 + #define C_SWITCH_MACHINE -n32 -G 0
|
|
1064
|
|
1065 (the mld lib does not exist in n32 mode)
|
|
1066
|
|
1067 I also added a --cflags='-n32 -O2 -G 0 -s' to the configuration
|
|
1068 line but it seems that these flags are ignored for configure test
|
|
1069 and since o32 and n32 libraries are independant I had to revert
|
|
1070 to the CFLAGS env var.
|
|
1071
|
|
1072 Anyway, once done that the compile has gone succesfully, the dump
|
|
1073 was OK and I'm writing this in the resulting xemacs-20.2b1 ;-)
|
|
1074
|
124
|
1075 ** Slow startup on Linux.
|
|
1076
|
|
1077 People using systems based on the Linux kernel sometimes report that
|
|
1078 startup takes 10 to 15 seconds longer than `usual'.
|
|
1079
|
|
1080 This is because Emacs looks up the host name when it starts.
|
|
1081 Normally, this takes negligible time; the extra delay is due to
|
|
1082 improper system configuration. This problem can occur for both
|
|
1083 networked and non-networked machines.
|
0
|
1084
|
124
|
1085 Here is how to fix the configuration. It requires being root.
|
|
1086
|
|
1087 *** Networked Case
|
|
1088
|
|
1089 First, make sure the files `/etc/hosts' and `/etc/host.conf' both
|
|
1090 exist. The first line in the `/etc/hosts' file should look like this
|
|
1091 (replace HOSTNAME with your host name):
|
|
1092
|
|
1093 127.0.0.1 localhost HOSTNAME
|
|
1094
|
|
1095 Also make sure that the `/etc/host.conf' files contains the following
|
|
1096 lines:
|
|
1097
|
|
1098 order hosts, bind
|
|
1099 multi on
|
|
1100
|
|
1101 Any changes, permanent and temporary, to the host name should be
|
|
1102 indicated in the `/etc/hosts' file, since it acts a limited local
|
|
1103 database of addresses and names (e.g., some SLIP connections
|
|
1104 dynamically allocate ip addresses).
|
|
1105
|
|
1106 *** Non-Networked Case
|
|
1107
|
|
1108 The solution described in the networked case applies here as well.
|
|
1109 However, if you never intend to network your machine, you can use a
|
|
1110 simpler solution: create an empty `/etc/host.conf' file. The command
|
|
1111 `touch /etc/host.conf' suffices to create the file. The `/etc/hosts'
|
|
1112 file is not necessary with this approach.
|
|
1113
|
|
1114 ** On Solaris 2.4, Dired hangs and C-g does not work. Or Emacs hangs
|
|
1115 forever waiting for termination of a subprocess that is a zombie.
|
|
1116
|
|
1117 casper@fwi.uva.nl says the problem is in X11R6. Rebuild libX11.so
|
|
1118 after changing the file xc/config/cf/sunLib.tmpl. Change the lines
|
|
1119
|
|
1120 #if ThreadedX
|
|
1121 #define SharedX11Reqs -lthread
|
|
1122 #endif
|
|
1123
|
|
1124 to:
|
|
1125
|
|
1126 #if OSMinorVersion < 4
|
|
1127 #if ThreadedX
|
|
1128 #define SharedX11Reqs -lthread
|
|
1129 #endif
|
|
1130 #endif
|
|
1131
|
|
1132 Be sure also to edit x/config/cf/sun.cf so that OSMinorVersion is 4
|
|
1133 (as it should be for Solaris 2.4). The file has three definitions for
|
|
1134 OSMinorVersion: the first is for x86, the second for SPARC under
|
|
1135 Solaris, and the third for SunOS 4. Make sure to update the
|
|
1136 definition for your type of machine and system.
|
|
1137
|
|
1138 Then do `make Everything' in the top directory of X11R6, to rebuild
|
|
1139 the makefiles and rebuild X. The X built this way work only on
|
|
1140 Solaris 2.4, not on 2.3.
|
|
1141
|
|
1142 For multithreaded X to work it necessary to install patch
|
|
1143 101925-02 to fix problems in header files [2.4]. You need
|
|
1144 to reinstall gcc or re-run just-fixinc after installing that
|
|
1145 patch.
|
0
|
1146
|
124
|
1147 However, Frank Rust <frust@iti.cs.tu-bs.de> used a simpler solution:
|
|
1148 he changed
|
|
1149 #define ThreadedX YES
|
|
1150 to
|
|
1151 #define ThreadedX NO
|
|
1152 in sun.cf and did `make World' to rebuild X11R6. Removing all
|
|
1153 `-DXTHREAD*' flags and `-lthread' entries from lib/X11/Makefile and
|
|
1154 typing 'make install' in that directory also seemed to work.
|
|
1155
|
|
1156 ** With M-x enable-flow-control, you need to type C-\ twice to do
|
|
1157 incremental search--a single C-\ gets no response.
|
0
|
1158
|
124
|
1159 This has been traced to communicating with your machine via kermit,
|
|
1160 with C-\ as the kermit escape character. One solution is to use
|
|
1161 another escape character in kermit. One user did
|
|
1162
|
|
1163 set escape-character 17
|
|
1164
|
|
1165 in his .kermrc file, to make C-q the kermit escape character.
|
0
|
1166
|
124
|
1167 ** The Motif version of Emacs paints the screen a solid color.
|
|
1168
|
|
1169 This has been observed to result from the following X resource:
|
|
1170
|
|
1171 Emacs*default.attributeFont: -*-courier-medium-r-*-*-*-140-*-*-*-*-iso8859-*
|
|
1172
|
|
1173 That the resource has this effect indicates a bug in something, but we
|
|
1174 do not yet know what. If it is an Emacs bug, we hope someone can
|
|
1175 explain what the bug is so we can fix it. In the mean time, removing
|
|
1176 the resource prevents the problem.
|
0
|
1177
|
124
|
1178 ** Regular expressions matching bugs on SCO systems.
|
|
1179
|
|
1180 On SCO, there are problems in regexp matching when Emacs is compiled
|
|
1181 with the system compiler. The compiler version is "Microsoft C
|
|
1182 version 6", SCO 4.2.0h Dev Sys Maintenance Supplement 01/06/93; Quick
|
|
1183 C Compiler Version 1.00.46 (Beta). The solution is to compile with
|
|
1184 GCC.
|
|
1185
|
|
1186 ** In Shell mode, you get a ^M at the end of every line.
|
|
1187
|
|
1188 This happens to people who use tcsh, because it is trying to be too
|
|
1189 smart. It sees that the Shell uses terminal type `unknown' and turns
|
|
1190 on the flag to output ^M at the end of each line. You can fix the
|
|
1191 problem by adding this to your .cshrc file:
|
|
1192
|
|
1193 if ($?EMACS) then
|
|
1194 if ($EMACS == "t") then
|
|
1195 unset edit
|
|
1196 stty -icrnl -onlcr -echo susp ^Z
|
|
1197 endif
|
|
1198 endif
|
|
1199
|
|
1200 ** An error message such as `X protocol error: BadMatch (invalid
|
|
1201 parameter attributes) on protocol request 93'.
|
|
1202
|
|
1203 This comes from having an invalid X resource, such as
|
|
1204 emacs*Cursor: black
|
|
1205 (which is invalid because it specifies a color name for something
|
|
1206 that isn't a color.)
|
|
1207
|
|
1208 The fix is to correct your X resources.
|
|
1209
|
|
1210 ** Mail is lost when sent to local aliases.
|
0
|
1211
|
124
|
1212 Many emacs mail user agents (VM and rmail, for instance) use the
|
|
1213 sendmail.el library. This library can arrange for mail to be
|
|
1214 delivered by passing messages to the /usr/lib/sendmail (usually)
|
|
1215 program . In doing so, it passes the '-t' flag to sendmail, which
|
|
1216 means that the name of the recipient of the message is not on the
|
|
1217 command line and, therefore, that sendmail must parse the message to
|
|
1218 obtain the destination address.
|
|
1219
|
|
1220 There is a bug in the SunOS4.1.1 and SunOS4.1.3 versions of sendmail.
|
|
1221 In short, when given the -t flag, the SunOS sendmail won't recognize
|
|
1222 non-local (i.e. NIS) aliases. It has been reported that the Solaris
|
|
1223 2.x versions of sendmail do not have this bug. For those using SunOS
|
|
1224 4.1, the best fix is to install sendmail V8 or IDA sendmail (which
|
|
1225 have other advantages over the regular sendmail as well). At the time
|
|
1226 of this writing, these official versions are available:
|
|
1227
|
|
1228 Sendmail V8 on ftp.cs.berkeley.edu in /ucb/sendmail:
|
|
1229 sendmail.8.6.9.base.tar.Z (the base system source & documentation)
|
|
1230 sendmail.8.6.9.cf.tar.Z (configuration files)
|
|
1231 sendmail.8.6.9.misc.tar.Z (miscellaneous support programs)
|
|
1232 sendmail.8.6.9.xdoc.tar.Z (extended documentation, with postscript)
|
|
1233
|
|
1234 IDA sendmail on vixen.cso.uiuc.edu in /pub:
|
|
1235 sendmail-5.67b+IDA-1.5.tar.gz
|
|
1236
|
|
1237 ** On AIX, you get this message when running Emacs:
|
0
|
1238
|
124
|
1239 Could not load program emacs
|
|
1240 Symbol smtcheckinit in csh is undefined
|
|
1241 Error was: Exec format error
|
|
1242
|
|
1243 or this one:
|
|
1244
|
|
1245 Could not load program .emacs
|
|
1246 Symbol _system_con in csh is undefined
|
|
1247 Symbol _fp_trapsta in csh is undefined
|
|
1248 Error was: Exec format error
|
|
1249
|
|
1250 These can happen when you try to run on AIX 3.2.5 a program that was
|
|
1251 compiled with 3.2.4. The fix is to recompile.
|
|
1252
|
|
1253 ** After running emacs once, subsequent invocations crash.
|
|
1254
|
|
1255 Some versions of SVR4 have a serious bug in the implementation of the
|
|
1256 mmap () system call in the kernel; this causes emacs to run correctly
|
|
1257 the first time, and then crash when run a second time.
|
|
1258
|
|
1259 Contact your vendor and ask for the mmap bug fix; in the mean time,
|
|
1260 you may be able to work around the problem by adding a line to your
|
|
1261 operating system description file (whose name is reported by the
|
|
1262 configure script) that reads:
|
|
1263 #define SYSTEM_MALLOC
|
|
1264 This makes Emacs use memory less efficiently, but seems to work around
|
|
1265 the kernel bug.
|
|
1266
|
|
1267 ** Inability to send an Alt-modified key, when Emacs is communicating
|
|
1268 directly with an X server.
|
0
|
1269
|
124
|
1270 If you have tried to bind an Alt-modified key as a command, and it
|
|
1271 does not work to type the command, the first thing you should check is
|
|
1272 whether the key is getting through to Emacs. To do this, type C-h c
|
|
1273 followed by the Alt-modified key. C-h c should say what kind of event
|
|
1274 it read. If it says it read an Alt-modified key, then make sure you
|
|
1275 have made the key binding correctly.
|
|
1276
|
|
1277 If C-h c reports an event that doesn't have the Alt modifier, it may
|
|
1278 be because your X server has no key for the Alt modifier. The X
|
|
1279 server that comes from MIT does not set up the Alt modifier by
|
|
1280 default.
|
|
1281
|
|
1282 If your keyboard has keys named Alt, you can enable them as follows:
|
0
|
1283
|
124
|
1284 xmodmap -e 'add mod2 = Alt_L'
|
|
1285 xmodmap -e 'add mod2 = Alt_R'
|
|
1286
|
|
1287 If the keyboard has just one key named Alt, then only one of those
|
|
1288 commands is needed. The modifier `mod2' is a reasonable choice if you
|
|
1289 are using an unmodified MIT version of X. Otherwise, choose any
|
|
1290 modifier bit not otherwise used.
|
0
|
1291
|
124
|
1292 If your keyboard does not have keys named Alt, you can use some other
|
|
1293 keys. Use the keysym command in xmodmap to turn a function key (or
|
|
1294 some other 'spare' key) into Alt_L or into Alt_R, and then use the
|
|
1295 commands show above to make them modifier keys.
|
|
1296
|
|
1297 Note that if you have Alt keys but no Meta keys, Emacs translates Alt
|
|
1298 into Meta. This is because of the great importance of Meta in Emacs.
|
|
1299
|
|
1300 ** `Pid xxx killed due to text modification or page I/O error'
|
0
|
1301
|
124
|
1302 On HP/UX, you can get that error when the Emacs executable is on an NFS
|
|
1303 file system. HP/UX responds this way if it tries to swap in a page and
|
|
1304 does not get a response from the server within a timeout whose default
|
|
1305 value is just ten seconds.
|
|
1306
|
|
1307 If this happens to you, extend the timeout period.
|
|
1308
|
|
1309 ** `expand-file-name' fails to work on any but the machine you dumped Emacs on.
|
|
1310
|
|
1311 On Ultrix, if you use any of the functions which look up information
|
|
1312 in the passwd database before dumping Emacs (say, by using
|
|
1313 expand-file-name in site-init.el), then those functions will not work
|
|
1314 in the dumped Emacs on any host but the one Emacs was dumped on.
|
|
1315
|
|
1316 The solution? Don't use expand-file-name in site-init.el, or in
|
|
1317 anything it loads. Yuck - some solution.
|
0
|
1318
|
124
|
1319 I'm not sure why this happens; if you can find out exactly what is
|
|
1320 going on, and perhaps find a fix or a workaround, please let us know.
|
|
1321 Perhaps the YP functions cache some information, the cache is included
|
|
1322 in the dumped Emacs, and is then inaccurate on any other host.
|
|
1323
|
|
1324 ** Emacs fails to understand most Internet host names, even though
|
|
1325 the names work properly with other programs on the same system.
|
|
1326 ** Emacs won't work with X-windows if the value of DISPLAY is HOSTNAME:0.
|
|
1327 ** Gnus can't make contact with the specified host for nntp.
|
0
|
1328
|
124
|
1329 This typically happens on Suns and other systems that use shared
|
|
1330 libraries. The cause is that the site has installed a version of the
|
|
1331 shared library which uses a name server--but has not installed a
|
|
1332 similar version of the unshared library which Emacs uses.
|
0
|
1333
|
124
|
1334 The result is that most programs, using the shared library, work with
|
|
1335 the nameserver, but Emacs does not.
|
|
1336
|
|
1337 The fix is to install an unshared library that corresponds to what you
|
|
1338 installed in the shared library, and then relink Emacs.
|
0
|
1339
|
124
|
1340 On SunOS 4.1, simply define HAVE_RES_INIT.
|
|
1341
|
|
1342 If you have already installed the name resolver in the file libresolv.a,
|
|
1343 then you need to compile Emacs to use that library. The easiest way to
|
|
1344 do this is to add to config.h a definition of LIBS_SYSTEM, LIBS_MACHINE
|
|
1345 or LIB_STANDARD which uses -lresolv. Watch out! If you redefine a macro
|
|
1346 that is already in use in your configuration to supply some other libraries,
|
|
1347 be careful not to lose the others.
|
|
1348
|
|
1349 Thus, you could start by adding this to config.h:
|
|
1350
|
|
1351 #define LIBS_SYSTEM -lresolv
|
|
1352
|
|
1353 Then if this gives you an error for redefining a macro, and you see that
|
|
1354 the s- file defines LIBS_SYSTEM as -lfoo -lbar, you could change config.h
|
|
1355 again to say this:
|
|
1356
|
|
1357 #define LIBS_SYSTEM -lresolv -lfoo -lbar
|
|
1358
|
|
1359 ** Bus errors on startup when compiled with Sun's "acc" (in the routine
|
|
1360 make_string_internal() called from initialize_environment_alist())
|
|
1361
|
|
1362 The Sun ANSI compiler doesn't place uninitialized static variables in BSS
|
|
1363 space like other compilers do. This breaks emacs. If you want to use acc,
|
|
1364 you need to make the file "lastfile.o" be the *first* file in the link
|
|
1365 command. Better yet, use Lucid C or GCC.
|
|
1366
|
|
1367 ** Trouble using ptys on AIX.
|
0
|
1368
|
124
|
1369 People often install the pty devices on AIX incorrectly.
|
|
1370 Use `smit pty' to reinstall them properly.
|
|
1371
|
|
1372 ** Shell mode on HP/UX gives the message, "`tty`: Ambiguous".
|
|
1373
|
|
1374 christos@theory.tn.cornell.edu says:
|
|
1375
|
|
1376 The problem is that in your .cshrc you have something that tries to
|
|
1377 execute `tty`. If you are not running the shell on a real tty then
|
|
1378 tty will print "not a tty". Csh expects one word in some places,
|
|
1379 but tty is giving it back 3.
|
|
1380
|
|
1381 The solution is to add a pair of quotes around `tty` to make it a single
|
|
1382 word:
|
0
|
1383
|
124
|
1384 if (`tty` == "/dev/console")
|
|
1385
|
|
1386 should be changed to:
|
|
1387
|
|
1388 if ("`tty`" == "/dev/console")
|
|
1389
|
|
1390 Even better, move things that set up terminal sections out of .cshrc
|
|
1391 and into .login.
|
0
|
1392
|
124
|
1393 ** With process-connection-type set to t, each line of subprocess output is
|
|
1394 terminated with a ^M, making ange-ftp and GNUS not work.
|
0
|
1395
|
124
|
1396 On SunOS systems, this problem has been seen to be a result of an incomplete
|
|
1397 installation of gcc 2.2 which allowed some non-ANSI compatible include files
|
|
1398 into the compilation. In particular this affected virtually all ioctl() calls.
|
|
1399
|
|
1400 ** Once you pull down a menu from the menubar, it won't go away.
|
0
|
1401
|
124
|
1402 It has been claimed that this is caused by a bug in certain very old (1990?)
|
|
1403 versions of the twm window manager. It doesn't happen with recent vintages,
|
|
1404 or with other window managers.
|
|
1405
|
|
1406 ** Emacs ignores the "help" key when running OLWM.
|
88
|
1407
|
124
|
1408 OLWM grabs the help key, and retransmits it to the appropriate client using
|
|
1409 XSendEvent. Allowing emacs to react to synthetic events is a security hole,
|
|
1410 so this is turned off by default. You can enable it by setting the variable
|
|
1411 x-allow-sendevents to t. You can also cause fix this by telling OLWM to not
|
|
1412 grab the help key, with the null binding "OpenWindows.KeyboardCommand.Help:".
|
|
1413
|
|
1414 ** Programs running under terminal emulator do not recognize `emacs'
|
|
1415 terminal type.
|
88
|
1416
|
124
|
1417 The cause of this is a shell startup file that sets the TERMCAP
|
|
1418 environment variable. The terminal emulator uses that variable to
|
|
1419 provide the information on the special terminal type that Emacs
|
|
1420 emulates.
|
88
|
1421
|
124
|
1422 Rewrite your shell startup file so that it does not change TERMCAP
|
|
1423 in such a case. You could use the following conditional which sets
|
|
1424 it only if it is undefined.
|
|
1425
|
|
1426 if ( ! ${?TERMCAP} ) setenv TERMCAP ~/my-termcap-file
|
|
1427
|
|
1428 Or you could set TERMCAP only when you set TERM--which should not
|
|
1429 happen in a non-login shell.
|
|
1430
|
|
1431 * Compatibility problems (with Emacs 18, GNU Emacs, or previous XEmacs/lemacs)
|
88
|
1432
|
124
|
1433 ** "Symbol's value as variable is void: unread-command-char".
|
|
1434 ** "Wrong type argument: arrayp, #<keymap 143 entries>"
|
|
1435 ** "Wrong type argument: stringp, [#<keypress-event return>]"
|
88
|
1436
|
124
|
1437 There are a few incompatible changes in XEmacs, and these are the
|
|
1438 symptoms. Some of the emacs-lisp code you are running needs to be
|
|
1439 updated to be compatible with XEmacs.
|
|
1440
|
|
1441 The code should not treat keymaps as arrays (use `define-key', etc.),
|
|
1442 should not use obsolete variables like `unread-command-char' (use
|
|
1443 `unread-command-event'). Many (most) of the new ways of doing things
|
|
1444 are compatible in GNU Emacs and XEmacs.
|
88
|
1445
|
124
|
1446 Modern Emacs packages (Gnus, VM, etc) are written to support GNU Emacs
|
|
1447 and XEmacs. We have provided modified versions of several popular
|
|
1448 emacs packages (dired, etc) which are compatible with this version of
|
|
1449 emacs. Check to make sure you have not set your load-path so that
|
|
1450 your private copies of these packages are being found before the
|
|
1451 versions in the lisp directory.
|
|
1452
|
|
1453 Make sure that your load-path and your $EMACSLOADPATH environment
|
|
1454 variable are not pointing at an Emacs18 lisp directory. This will
|
|
1455 cripple emacs.
|
88
|
1456
|
124
|
1457 ** Some packages that worked before now cause the error
|
|
1458 Wrong type argument: arrayp, #<face ... >
|
|
1459
|
|
1460 Code which uses the `face' accessor functions must be recompiled with xemacs
|
|
1461 19.9 or later. The functions whose callers must be recompiled are: face-font,
|
|
1462 face-foreground, face-background, face-background-pixmap, and face-underline-p.
|
|
1463 The .elc files generated by version 19.9 will work in 19.6 and 19.8, but older
|
|
1464 .elc files which contain calls to these functions will not work in 19.9.
|
|
1465
|
|
1466 ** Signaling: (error "Byte code stack underflow (byte compiler bug), pc 38")
|
88
|
1467
|
120
|
1468 This error is given when XEmacs 20 is compiled without MULE support
|
88
|
1469 but is attempting to load a .elc which requires MULE support. The fix
|
|
1470 is to rebytecompile the offending file.
|
|
1471
|
124
|
1472 ** Signaling: (wrong-type-argument ...) when loading mail-abbrevs
|
88
|
1473
|
|
1474 The is seen when installing the Big Brother Data Base (bbdb) which
|
|
1475 includes an outdated copy of mail-abbrevs.el. Remove the copy that
|
|
1476 comes with bbdb and use the one that comes with XEmacs.
|