*** empty log message ***
[bpt/emacs.git] / etc / PROBLEMS
CommitLineData
a933dad1
DL
1This file describes various problems that have been encountered
2in compiling, installing and running GNU Emacs.
3
b03dc47d
GM
4* Emacs' xterm-mouse-mode doesn't work on the Gnome terminal.
5
6A symptom of this bug is that double-clicks insert a control sequence
7into the buffer. The reason this happens is an apparent
8incompatibility of the Gnome terminal with Xterm, which also affects
9other programs using the Xterm mouse interface. A problem report has
10been filed.
11
38472d44 12* Emacs pauses for several seconds when changing the default font
d9bad487
GM
13
14This has been reported for fvwm 2.2.5 and the window manager of KDE
38472d44
GM
152.1. The reason for the pause is Xt waiting for a ConfigureNotify
16event from the window manager, which the window manager doesn't send.
17Xt stops waiting after a default timeout of usually 5 seconds.
18
19A workaround for this is to add something like
d9bad487
GM
20
21emacs.waitForWM: false
22
84891dd7
EZ
23to your X resources. Alternatively, add `(wait-for-wm . nil)' to a
24frame's parameter list, like this:
25
26 (modify-frame-parameters nil '((wait-for-wm . nil)))
27
28(this should go into your `.emacs' file).
d9bad487 29
f9dbcda4
GM
30* Underlines appear at the wrong position.
31
32This is caused by fonts having a wrong UNDERLINE_POSITION property.
33An example is the font 7x13 on XFree prior to version 4.1. To
34circumvent this problem, set x-use-underline-position-properties to
35nil in your .emacs.
36
168fc7f2
EZ
37* Building Emacs with GCC 2.9x fails in the `src' directory.
38
39This may happen if you use a development version of GNU `cpp' from one
6b22660f
EZ
40of the GCC snapshots between Oct 2000 and Feb 2001, or from a released
41version of GCC newer than 2.95.2 which was prepared around those
42dates. The preprocessor in those versions expands ".." into ". .",
43which breaks relative file names that reference the parent directory.
168fc7f2
EZ
44
45The solution is to make sure the preprocessor is run with the
9ed04369
DL
46`-traditional' option. (The `configure' script does that
47automatically.)
6b22660f 48
d4ffda10 49Note that this problem does not pertain to the MS-Windows port of
38472d44 50Emacs, since it doesn't use the preprocessor to generate Makefiles.
d4ffda10 51
9272ccfc
AI
52* Building the MS-Windows port with Cygwin GCC can fail.
53
54Emacs may not build using recent Cygwin builds of GCC, such as Cygwin
55version 1.1.8, using the default configure settings. It appears to be
56necessary to specify the -mwin32 flag when compiling, and define
57__MSVCRT__, like so:
58
59 configure --with-gcc --cflags -mwin32 --cflags -D__MSVCRT__
60
61* Building the MS-Windows port with Leim fails in the `leim' directory.
7c22dc9d
EZ
62
63The error message might be something like this:
64
65 Converting d:/emacs-21.1/leim/CXTERM-DIC/4Corner.tit to quail-package...
66 Invalid ENCODE: value in TIT dictionary
67 NMAKE : fatal error U1077: '"../src/obj-spd/i386/emacs.exe"' : return code
68 '0xffffffff'
69 Stop.
70
71This can happen if the Leim distribution is unpacked with a program
72which converts the `*.tit' files to DOS-style CR-LF text format. The
73`*.tit' files in the leim/CXTERM-DIC directory require Unix-style line
74endings to compile properly, because Emacs reads them without any code
75or EOL conversions.
76
77The solution is to make sure the program used to unpack Leim does not
78change the files' line endings behind your back. The GNU FTP site has
79in the `/gnu/emacs/windows' directory a program called `djtarnt.exe'
80which can be used to unpack `.tar.gz' and `.zip' archives without
81mangling them.
82
9ed04369
DL
83* JPEG images aren't displayed.
84
85This has been reported when Emacs is built with jpeg-6a library.
86Upgrading to jpeg-6b solves the problem.
87
b87207a0
EZ
88* Building `ctags' for MS-Windows with the MinGW port of GCC fails.
89
90This might happen due to a bug in the MinGW header assert.h, which
91defines the `assert' macro with a trailing semi-colon. The following
92patch to assert.h should solve this:
93
94*** include/assert.h.orig Sun Nov 7 02:41:36 1999
95--- include/assert.h Mon Jan 29 11:49:10 2001
96***************
97*** 41,47 ****
98 /*
99 * If not debugging, assert does nothing.
100 */
101! #define assert(x) ((void)0);
102
103 #else /* debugging enabled */
104
105--- 41,47 ----
106 /*
107 * If not debugging, assert does nothing.
108 */
109! #define assert(x) ((void)0)
110
111 #else /* debugging enabled */
112
113
49172314
GM
114* When using Xaw3d scroll bars without arrows, the very first mouse
115click in a scroll bar might be ignored by the scroll bar widget. This
116is probably a bug in Xaw3d; when Xaw3d is compiled with arrows, the
117problem disappears.
118
6e1a66dc
EZ
119* Clicking C-mouse-2 in the scroll bar doesn't split the window.
120
121This currently doesn't work with scroll-bar widgets (and we don't know
122a good way of implementing it with widgets). If Emacs is configured
123--without-toolkit-scroll-bars, C-mouse-2 on the scroll bar does work.
124
ed85f61d
EZ
125* Colors are not available on a tty or in xterm.
126
9ed04369
DL
127Emacs 21 supports colors on character terminals and terminal
128emulators, but this support relies on the terminfo or termcap database
129entry to specify that the display supports color. Emacs looks at the
130"Co" capability for the terminal to find out how many colors are
131supported; it should be non-zero to activate the color support within
b300fd77
EZ
132Emacs. (Most color terminals support 8 or 16 colors.) If your system
133uses terminfo, the name of the capability equivalent to "Co" is
134"colors".
135
136In addition to the "Co" capability, Emacs needs the "op" (for
137``original pair'') capability, which tells how to switch the terminal
138back to the default foreground and background colors. Emacs will not
139use colors if this capability is not defined. If your terminal entry
140doesn't provide such a capability, try using the ANSI standard escape
141sequence \E[00m (that is, define a new termcap/terminfo entry and make
142it use your current terminal's entry plus \E[00m for the "op"
143capability).
144
145Finally, the "NC" capability (terminfo name: "ncv") tells Emacs which
146attributes cannot be used with colors. Setting this capability
147incorrectly might have the effect of disabling colors; try setting
148this capability to `0' (zero) and see if that helps.
ed85f61d 149
9ed04369
DL
150Emacs uses the database entry for the terminal whose name is the value
151of the environment variable TERM. With `xterm', a common terminal
ed85f61d 152entry that supports color is `xterm-color', so setting TERM's value to
9ed04369
DL
153`xterm-color' might activate the color support on an xterm-compatible
154emulator.
ed85f61d 155
9ed04369
DL
156Some modes do not use colors unless you turn on the Font-lock mode.
157Some people have long ago set their `~/.emacs' files to turn on
158Font-lock on X only, so they won't see colors on a tty. The
159recommended way of turning on Font-lock is by typing "M-x
e085efdb
EZ
160global-font-lock-mode RET" or by customizing the variable
161`global-font-lock-mode'.
ed85f61d 162
339b95d5
EZ
163* Problems in Emacs built with LessTif.
164
165The problems seem to depend on the version of LessTif and the Motif
166emulation for which it is set up.
167
9ed04369
DL
168Only the Motif 1.2 emulation seems to be stable enough in LessTif.
169Lesstif 0.92-17's Motif 1.2 emulation seems to work okay on FreeBSD.
170On GNU/Linux systems, lesstif-0.92.6 configured with "./configure
171--enable-build-12 --enable-default-12" is reported to be the most
172successful. The binary GNU/Linux package
173lesstif-devel-0.92.0-1.i386.rpm was reported to have problems with
174menu placement.
339b95d5
EZ
175
176On some systems, even with Motif 1.2 emulation, Emacs occasionally
9ed04369
DL
177locks up, grabbing all mouse and keyboard events. We still don't know
178what causes these problems; they are not reproducible by Emacs
179developers.
339b95d5 180
b87207a0
EZ
181* Known problems with the MS-Windows port of Emacs 21.1.
182
183Emacs 21.1 built for MS-Windows doesn't support images, the tool bar,
184and tooltips. Support for these will be added in future versions.
185
186There are problems with display if the variable `redisplay-dont-pause'
187is set to nil (w32-win.el sets it to t by default, to avoid these
188problems). The problems include:
189
190 . No redisplay as long as help echo is displayed in the echo area,
191 e.g. if the mouse is on a mouse-sensitive part of the mode line.
192
49e37720 193 . When the mode line is dragged with the mouse, multiple copies of the
b87207a0
EZ
194 mode line are left behind, until the mouse button is released and
195 the next input event occurs.
196
49e37720
DL
197 . Window contents are not updated when text is selected by dragging
198 the mouse, and the mouse is dragged below the bottom line of the
b87207a0
EZ
199 window. When the mouse button is released, the window display is
200 correctly updated.
201
202Again, these problems only occur if `redisplay-dont-pause' is nil.
203
204Emacs can sometimes abort when non-ASCII text, possibly with null
205characters, is copied and pasted into a buffer.
206
207An inactive cursor remains in an active window after the Windows
208Manager driven switch of the focus, until a key is pressed.
209
e085efdb
EZ
210Windows 2000 input methods are not recognized by Emacs (as of v21.1).
211These input methods cause the keyboard to send characters encoded in
212the appropriate coding system (e.g., ISO 8859-1 for Latin-1
213characters, ISO 8859-8 for Hebrew characters, etc.). To make this
214work, set the keyboard coding system to the appropriate value after
215you activate the Windows input method. For example, if you activate
216the Hebrew input method, type "C-x RET k iso-8859-8 RET". (Emacs
217ought to recognize the Windows language-change event and set up the
218appropriate keyboard encoding automatically, but it doesn't do that
219yet.)
220
221Multilingual text put into the Windows 2000 clipboard by Windows
222applications cannot be safely pasted into Emacs (as of v21.1). This
223is because Windows 2000 uses Unicode to represent multilingual text,
224but Emacs does not yet support Unicode well enough to decode it. This
225means that Emacs can only interchange non-ASCII text with other
226Windows 2000 programs if the characters are in the system codepage.
227Reportedly, a partial solution is to install the Mule-UCS package and
228set selection-coding-system to utf-16-le-dos.
229
c8d9b4ee
EZ
230* The `configure' script doesn't find the jpeg library.
231
232This can happen because the linker by default only looks for shared
233libraries, but jpeg distribution by default doesn't build and doesn't
234install a shared version of the library, `libjpeg.so'. One system
49e37720
DL
235where this is known to happen is Compaq OSF/1 (`Tru64'), but it
236probably isn't limited to that system.
c8d9b4ee 237
9ed04369
DL
238You can configure the jpeg library with the `--enable-shared' option
239and then rebuild libjpeg. This produces a shared version of libjpeg,
240which you need to install. Finally, rerun the Emacs configure script,
241which should now find the jpeg library. Alternatively, modify the
242generated src/Makefile to link the .a file explicitly.
c8d9b4ee 243
9ed04369
DL
244(If you need the static version of the jpeg library as well, configure
245libjpeg with both `--enable-static' and `--enable-shared' options.)
c8d9b4ee 246
d9810886
EZ
247* Building Emacs over NFS fails with ``Text file busy''.
248
d67e4586
EZ
249This was reported to happen when building Emacs on a GNU/Linux system
250(RedHat Linux 6.2) using a build directory automounted from Solaris
251(SunOS 5.6) file server, but it might not be limited to that
252configuration alone. Presumably, the NFS server doesn't commit the
253files' data to disk quickly enough, and the Emacs executable file is
254left ``busy'' for several seconds after Emacs has finished dumping
255itself. This causes the subsequent commands which invoke the dumped
256Emacs excutable to fail with the above message.
d9810886 257
d04b2e49
EZ
258In some of these cases, a time skew between the NFS server and the
259machine where Emacs is built is detected and reported by GNU Make
260(it says that some of the files have modification time in the future).
261This might be a symptom of NFS-related problems.
262
d9810886
EZ
263If the NFS server runs on Solaris, apply the Solaris patch 105379-05
264(Sunos 5.6: /kernel/misc/nfssrv patch). If that doesn't work, or if
265you have a different version of the OS or the NFS server, you can
266force the NFS server to use 1KB blocks, which was reported to fix the
267problem albeit at a price of slowing down file I/O. You can force 1KB
268blocks by specifying the "-o rsize=1024,wsize=1024" options to the
269`mount' command, or by adding ",rsize=1024,wsize=1024" to the mount
270options in the appropriate system configuration file, such as
271`/etc/auto.home'.
272
b4da93e1
EZ
273Alternatively, when Make fails due to this problem, you could wait for
274a few seconds and then invoke Make again. In one particular case,
275waiting for 10 or more seconds between the two Make invocations seemed
276to work around the problem.
d9810886 277
aa99760e
EZ
278Similar problems can happen if your machine NFS-mounts a directory
279onto itself. Suppose the Emacs sources live in `/usr/local/src' and
280you are working on the host called `marvin'. Then an entry in the
281`/etc/fstab' file like the following is asking for trouble:
282
283 marvin:/usr/local/src /usr/local/src ...options.omitted...
284
285The solution is to remove this line from `etc/fstab'.
286
9ed04369 287* Accented ISO-8859-1 characters are displayed as | or _.
d6b7de9b
EZ
288
289Try other font set sizes (S-mouse-1). If the problem persists with
290other sizes as well, your text is corrupted, probably through software
291that is not 8-bit clean. If the problem goes away with another font
292size, it's probably because some fonts pretend to be ISO-8859-1 fonts
293when they are really ASCII fonts. In particular the schumacher-clean
294fonts have this bug in some versions of X.
295
296To see what glyphs are included in a font, use `xfd', like this:
297
298 xfd -fn -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-1
299
300If this shows only ASCII glyphs, the font is indeed the source of the
301problem.
302
303The solution is to remove the corresponding lines from the appropriate
304`fonts.alias' file, then run `mkfontdir' in that directory, and then run
305`xset fp rehash'.
306
ec6bd013
DL
307* Large file support is disabled on HP-UX. See the comments in
308src/s/hpux10.h.
309
310* Crashes when displaying uncompressed GIFs with version
311libungif-4.1.0 are resolved by using version libungif-4.1.0b1.
312
b87207a0
EZ
313* Interrupting Cygwin port of Bash from Emacs doesn't work.
314
315Cygwin 1.x builds of the ported Bash cannot be interrupted from the
316MS-Windows version of Emacs. This is due to some change in the Bash
317port or in the Cygwin library which apparently make Bash ignore the
318keyboard interrupt event sent by Emacs to Bash. (Older Cygwin ports
319of Bash, up to b20.1, did receive SIGINT from Emacs.)
320
e0704d3b
EZ
321* The latest released version of the W3 package doesn't run properly
322with Emacs 21 and needs work. However, these problems are already
323fixed in W3's CVS. This patch is reported to make w3-4.0pre.46 work:
a953a8d3
DL
324
325diff -aur --new-file w3-4.0pre.46-orig/lisp/w3-display.el w3-4.0pre.46-new/lisp/w3-display.el
326--- w3-4.0pre.46-orig/lisp/w3-display.el Sun Nov 14 22:00:12 1999
327+++ w3-4.0pre.46-new/lisp/w3-display.el Thu Dec 14 14:59:15 2000
328@@ -181,7 +181,8 @@
329 (dispatch-event (next-command-event)))
330 (error nil))))
331 (t
332- (if (and (not (sit-for 0)) (input-pending-p))
333+ ;; modified for GNU Emacs 21 by bob@rattlesnake.com on 2000 Dec 14
334+ (if (and (not (sit-for 0)) nil)
335 (condition-case ()
336 (progn
337 (setq w3-pause-keystroke
338diff -aur --new-file w3-4.0pre.46-orig/lisp/w3-e21.el w3-4.0pre.46-new/lisp/w3-e21.el
339--- w3-4.0pre.46-orig/lisp/w3-e21.el Thu Jan 1 00:00:00 1970
340+++ w3-4.0pre.46-new/lisp/w3-e21.el Thu Dec 14 14:54:58 2000
341@@ -0,0 +1,5 @@
342+;;; w3-e21.el --- ** required for GNU Emacs 21 **
343+;; Added by bob@rattlesnake.com on 2000 Dec 14
344+
345+(require 'w3-e19)
346+(provide 'w3-e21)
347
eccd9c9b 348
2ebf6139
GM
349* On AIX, if linking fails because libXbsd isn't found, check if you
350are compiling with the system's `cc' and CFLAGS containing `-O5'. If
351so, you have hit a compiler bug. Please make sure to re-configure
352Emacs so that it isn't compiled with `-O5'.
353
e1f9a6b3
DL
354* The PSGML package uses the obsolete variables
355`before-change-function' and `after-change-function', which are no
49e37720 356longer used by Emacs. These changes to PSGML 1.2.2 fix that.
e1f9a6b3 357
49e37720
DL
358--- psgml-edit.el 2001/03/03 00:23:31 1.1
359+++ psgml-edit.el 2001/03/03 00:24:22
360@@ -264,4 +264,4 @@
e1f9a6b3
DL
361 ; inhibit-read-only
362- (before-change-function nil)
363- (after-change-function nil))
364+ (before-change-functions nil)
365+ (after-change-functions nil))
366 (setq selective-display t)
49e37720 367@@ -1544,3 +1544,3 @@
e1f9a6b3
DL
368 (buffer-read-only nil)
369- (before-change-function nil)
370+ (before-change-functions nil)
371 (markup-index ; match-data index in tag regexp
49e37720 372@@ -1596,3 +1596,3 @@
e1f9a6b3
DL
373 (defun sgml-expand-shortref-to-text (name)
374- (let (before-change-function
375+ (let (before-change-functions
376 (entity (sgml-lookup-entity name (sgml-dtd-entities sgml-dtd-info))))
49e37720 377@@ -1613,3 +1613,3 @@
e1f9a6b3
DL
378 (re-found nil)
379- before-change-function)
380+ before-change-functions)
381 (goto-char sgml-markup-start)
49e37720 382@@ -1646,3 +1646,3 @@
e1f9a6b3
DL
383 (goto-char (sgml-element-end element))
384- (let ((before-change-function nil))
385+ (let ((before-change-functions nil))
386 (sgml-normalize-content element only-one)))
49e37720
DL
387--- psgml-other.el 2001/03/03 00:23:42 1.1
388+++ psgml-other.el 2001/03/03 00:30:05
e1f9a6b3
DL
389@@ -32,2 +32,3 @@
390 (require 'easymenu)
391+(eval-when-compile (require 'cl))
392
393@@ -61,4 +62,9 @@
394 (let ((submenu
395- (subseq entries 0 (min (length entries)
396- sgml-max-menu-size))))
397+;;; (subseq entries 0 (min (length entries)
398+;;; sgml-max-menu-size))
399+ (let ((new (copy-sequence entries)))
400+ (setcdr (nthcdr (1- (min (length entries)
401+ sgml-max-menu-size))
402+ new) nil)
403+ new)))
404 (setq entries (nthcdr sgml-max-menu-size entries))
49e37720 405@@ -113,9 +119,10 @@
e1f9a6b3
DL
406 (let ((inhibit-read-only t)
407- (after-change-function nil) ; obsolete variable
408- (before-change-function nil) ; obsolete variable
409 (after-change-functions nil)
410- (before-change-functions nil))
e1f9a6b3
DL
411+ (before-change-functions nil)
412+ (modified (buffer-modified-p))
413+ (buffer-undo-list t)
414+ deactivate-mark)
49e37720
DL
415 (put-text-property start end 'face face)
416- (when (< start end)
417- (put-text-property (1- end) end 'rear-nonsticky '(face)))))
e1f9a6b3 418+ (when (and (not modified) (buffer-modified-p))
49e37720 419+ (set-buffer-modified-p nil))))
e1f9a6b3 420 (t
49e37720
DL
421--- psgml-parse.el 2001/03/03 00:23:57 1.1
422+++ psgml-parse.el 2001/03/03 00:29:56
e1f9a6b3
DL
423@@ -40,2 +40,4 @@
424
425+(eval-when-compile (require 'cl))
426+
427 \f
49e37720 428@@ -2493,8 +2495,8 @@
e1f9a6b3
DL
429 (setq sgml-scratch-buffer nil))
430- (when after-change-function ;***
431- (message "OOPS: after-change-function not NIL in scratch buffer %s: %s"
432+ (when after-change-functions ;***
433+ (message "OOPS: after-change-functions not NIL in scratch buffer %s: %S"
434 (current-buffer)
435- after-change-function)
436- (setq before-change-function nil
437- after-change-function nil))
438+ after-change-functions)
439+ (setq before-change-functions nil
440+ after-change-functions nil))
441 (setq sgml-last-entity-buffer (current-buffer))
49e37720 442@@ -2878,6 +2880,5 @@
e1f9a6b3
DL
443 "Set initial state of parsing"
444- (make-local-variable 'before-change-function)
445- (setq before-change-function 'sgml-note-change-at)
446- (make-local-variable 'after-change-function)
447- (setq after-change-function 'sgml-set-face-after-change)
448+ (set (make-local-variable 'before-change-functions) '(sgml-note-change-at))
449+ (set (make-local-variable 'after-change-functions)
450+ '(sgml-set-face-after-change))
451 (sgml-set-active-dtd-indicator (sgml-dtd-doctype dtd))
49e37720
DL
452@@ -3925,7 +3926,7 @@
453 (sgml-need-dtd)
e1f9a6b3
DL
454- (unless before-change-function
455- (message "WARN: before-change-function has been lost, restoring (%s)"
456+ (unless before-change-functions
457+ (message "WARN: before-change-functions has been lost, restoring (%s)"
458 (current-buffer))
459- (setq before-change-function 'sgml-note-change-at)
49e37720 460- (setq after-change-function 'sgml-set-face-after-change))
e1f9a6b3 461+ (setq before-change-functions '(sgml-note-change-at))
49e37720
DL
462+ (setq after-change-functions '(sgml-set-face-after-change)))
463 (sgml-with-parser-syntax-ro
e1f9a6b3 464
224a0b4d
EZ
465* The Calc package fails to build and signals errors with Emacs 21.
466
467Apply the following patches which reportedly fix several problems:
468
469--- calc-ext.el.~1~ Sun Apr 3 02:26:34 1994
470+++ calc-ext.el Wed Sep 18 17:35:01 1996
471@@ -1354,6 +1354,25 @@
472 (calc-fancy-prefix 'calc-inverse-flag "Inverse..." n)
473 )
474
475+(defconst calc-fancy-prefix-map
476+ (let ((map (make-sparse-keymap)))
477+ (define-key map [t] 'calc-fancy-prefix-other-key)
478+ (define-key map (vector meta-prefix-char t) 'calc-fancy-prefix-other-key)
479+ (define-key map [switch-frame] nil)
480+ (define-key map [?\C-u] 'universal-argument)
481+ (define-key map [?0] 'digit-argument)
482+ (define-key map [?1] 'digit-argument)
483+ (define-key map [?2] 'digit-argument)
484+ (define-key map [?3] 'digit-argument)
485+ (define-key map [?4] 'digit-argument)
486+ (define-key map [?5] 'digit-argument)
487+ (define-key map [?6] 'digit-argument)
488+ (define-key map [?7] 'digit-argument)
489+ (define-key map [?8] 'digit-argument)
490+ (define-key map [?9] 'digit-argument)
491+ map)
492+ "Keymap used while processing calc-fancy-prefix.")
493+
494 (defun calc-fancy-prefix (flag msg n)
495 (let (prefix)
496 (calc-wrapper
497@@ -1364,6 +1383,8 @@
498 (message (if prefix msg "")))
499 (and prefix
500 (not calc-is-keypad-press)
501+ (if (boundp 'overriding-terminal-local-map)
502+ (setq overriding-terminal-local-map calc-fancy-prefix-map)
503 (let ((event (calc-read-key t)))
504 (if (eq (setq last-command-char (car event)) ?\C-u)
505 (universal-argument)
506@@ -1376,9 +1397,18 @@
507 (if (or (not (integerp last-command-char))
508 (eq last-command-char ?-))
509 (calc-unread-command)
510- (digit-argument n))))))
511+ (digit-argument n)))))))
512 )
513 (setq calc-is-keypad-press nil)
514+
515+(defun calc-fancy-prefix-other-key (arg)
516+ (interactive "P")
517+ (if (or (not (integerp last-command-char))
518+ (and (>= last-command-char 0) (< last-command-char ? )
519+ (not (eq last-command-char meta-prefix-char))))
520+ (calc-wrapper)) ; clear flags if not a Calc command.
521+ (calc-unread-command)
522+ (setq overriding-terminal-local-map nil))
523
524 (defun calc-invert-func ()
525 (save-excursion
526
527--- Makefile.~1~ Sun Dec 15 23:50:45 1996
528+++ Makefile Thu Nov 30 15:09:45 2000
529@@ -41,7 +41,7 @@
530
531 # Other macros.
532 EFLAGS = -batch
533-MAINT = -l calc-maint.elc
534+MAINT = -l calc-maint.el
535
536 # Control whether intermediate files are kept.
537 PURGE = -rm -f
538@@ -154,10 +154,7 @@
539
540
541 # All this because "-l calc-maint" doesn't work.
542-maint: calc-maint.elc
543-calc-maint.elc: calc-maint.el
544- cp calc-maint.el calc-maint.elc
545-
546+maint: calc-maint.el
547
548 # Create an Emacs TAGS file
549 tags: TAGS
550
551--- calc-aent.el.~1~ Sun Dec 15 23:50:36 1996
552+++ calc-aent.el Tue Nov 21 18:34:33 2000
553@@ -385,7 +385,7 @@
554 (calc-minibuffer-contains
555 "\\`\\([^\"]*\"[^\"]*\"\\)*[^\"]*\"[^\"]*\\'"))
556 (insert "`")
557- (setq alg-exp (buffer-string))
558+ (setq alg-exp (field-string))
559 (and (> (length alg-exp) 0) (setq calc-previous-alg-entry alg-exp))
560 (exit-minibuffer))
561 )
562@@ -393,14 +393,14 @@
563
564 (defun calcAlg-enter ()
565 (interactive)
566- (let* ((str (buffer-string))
567+ (let* ((str (field-string))
568 (exp (and (> (length str) 0)
569 (save-excursion
570 (set-buffer calc-buffer)
571 (math-read-exprs str)))))
572 (if (eq (car-safe exp) 'error)
573 (progn
574- (goto-char (point-min))
575+ (goto-char (field-beginning))
576 (forward-char (nth 1 exp))
577 (beep)
578 (calc-temp-minibuffer-message
579@@ -455,14 +455,14 @@
580 (interactive)
581 (if (calc-minibuffer-contains ".*[@oh] *[^'m ]+[^'m]*\\'")
582 (calcDigit-key)
583- (setq calc-digit-value (buffer-string))
584+ (setq calc-digit-value (field-string))
585 (exit-minibuffer))
586 )
587
588 (defun calcDigit-edit ()
589 (interactive)
590 (calc-unread-command)
591- (setq calc-digit-value (buffer-string))
592+ (setq calc-digit-value (field-string))
593 (exit-minibuffer)
594 )
595
596--- calc.el.~1~ Sun Dec 15 23:50:47 1996
597+++ calc.el Wed Nov 22 13:08:49 2000
598@@ -2051,11 +2051,11 @@
599 ;; Exercise for the reader: Figure out why this is a good precaution!
600 (or (boundp 'calc-buffer)
601 (use-local-map minibuffer-local-map))
602- (let ((str (buffer-string)))
603+ (let ((str (field-string)))
604 (setq calc-digit-value (save-excursion
605 (set-buffer calc-buffer)
606 (math-read-number str))))
607- (if (and (null calc-digit-value) (> (buffer-size) 0))
608+ (if (and (null calc-digit-value) (> (field-end) (field-beginning)))
609 (progn
610 (beep)
611 (calc-temp-minibuffer-message " [Bad format]"))
612@@ -2071,7 +2071,7 @@
613
614 (defun calc-minibuffer-contains (rex)
615 (save-excursion
616- (goto-char (point-min))
617+ (goto-char (field-end (point-min)))
618 (looking-at rex))
619 )
620
621@@ -2158,10 +2158,8 @@
622 (upcase last-command-char))))
623 (and dig
624 (< dig radix)))))))
625- (save-excursion
626- (goto-char (point-min))
627- (looking-at
628- "[-+]?\\(.*\\+/- *\\|.*mod *\\)?\\([0-9]+\\.?0*[@oh] *\\)?\\([0-9]+\\.?0*['m] *\\)?[0-9]*\\(\\.?[0-9]*\\(e[-+]?[0-3]?[0-9]?[0-9]?[0-9]?[0-9]?[0-9]?[0-9]?\\)?\\|[0-9]:\\([0-9]+:\\)?[0-9]*\\)?[\"s]?\\'")))
629+ (calc-minibuffer-contains
630+ "[-+]?\\(.*\\+/- *\\|.*mod *\\)?\\([0-9]+\\.?0*[@oh] *\\)?\\([0-9]+\\.?0*['m] *\\)?[0-9]*\\(\\.?[0-9]*\\(e[-+]?[0-3]?[0-9]?[0-9]?[0-9]?[0-9]?[0-9]?[0-9]?\\)?\\|[0-9]:\\([0-9]+:\\)?[0-9]*\\)?[\"s]?\\'"))
631 (if (and (memq last-command-char '(?@ ?o ?h ?\' ?m))
632 (string-match " " calc-hms-format))
633 (insert " "))
634@@ -2190,7 +2188,7 @@
635 ((eq last-command 'calcDigit-start)
636 (erase-buffer))
637 (t (backward-delete-char 1)))
638- (if (= (buffer-size) 0)
639+ (if (= (field-beginning) (field-end))
640 (progn
641 (setq last-command-char 13)
642 (calcDigit-nondigit)))
643
644* TeX'ing the Calc manual fails.
645
646The following patches allow to build the Calc manual using texinfo.tex
647from Emacs 19.34 distribution:
648
649*** calc-maint.e~0 Mon Dec 16 07:11:26 1996
650--- calc-maint.el Sun Dec 10 14:32:38 2000
651***************
652*** 308,314 ****
653 (insert "@tex\n"
654 "\\global\\advance\\appendixno2\n"
655 "\\gdef\\xref#1.{See ``#1.''}\n")
656! (setq midpos (point))
657 (insert "@end tex\n")
658 (insert-buffer-substring srcbuf sumpos endpos)
659 (insert "@bye\n")
660--- 308,314 ----
661 (insert "@tex\n"
662 "\\global\\advance\\appendixno2\n"
663 "\\gdef\\xref#1.{See ``#1.''}\n")
664! (setq midpos (point-marker))
665 (insert "@end tex\n")
666 (insert-buffer-substring srcbuf sumpos endpos)
667 (insert "@bye\n")
668*** Makefile.~0 Mon Dec 16 07:11:24 1996
669--- Makefile Sun Dec 10 14:44:00 2000
670***************
671*** 98,106 ****
672 # Format the Calc manual as one printable volume using TeX.
673 tex:
674 $(REMOVE) calc.aux
675! $(TEX) calc.texinfo
676 $(TEXINDEX) calc.[cfkptv]?
677! $(TEX) calc.texinfo
678 $(PURGE) calc.cp calc.fn calc.pg calc.tp calc.vr
679 $(PURGE) calc.cps calc.fns calc.kys calc.pgs calc.tps calc.vrs
680 $(PURGE) calc.toc
681--- 98,106 ----
682 # Format the Calc manual as one printable volume using TeX.
683 tex:
684 $(REMOVE) calc.aux
685! -$(TEX) calc.texinfo
686 $(TEXINDEX) calc.[cfkptv]?
687! -$(TEX) calc.texinfo
688 $(PURGE) calc.cp calc.fn calc.pg calc.tp calc.vr
689 $(PURGE) calc.cps calc.fns calc.kys calc.pgs calc.tps calc.vrs
690 $(PURGE) calc.toc
691*** calc.texinfo.~1~ Thu Oct 10 18:18:56 1996
692--- calc.texinfo Mon Dec 11 08:25:00 2000
693***************
694*** 12,17 ****
695--- 12,19 ----
696 % Because makeinfo.c exists, we can't just define new commands.
697 % So instead, we take over little-used existing commands.
698 %
699+ % Suggested by Karl Berry <karl@@freefriends.org>
700+ \gdef\!{\mskip-\thinmuskip}
701 % Redefine @cite{text} to act like $text$ in regular TeX.
702 % Info will typeset this same as @samp{text}.
703 \gdef\goodtex{\tex \let\rm\goodrm \let\t\ttfont \turnoffactive}
704***************
705*** 23686,23692 ****
706 a vector of the actual parameter values, written as equations:
707 @cite{[a = 3, b = 2]}, in case you'd rather read them in a list
708 than pick them out of the formula. (You can type @kbd{t y}
1c34d4e1 709! to move this vector to the stack; @pxref{Trail Commands}.)
224a0b4d
EZ
710
711 Specifying a different independent variable name will affect the
712 resulting formula: @kbd{a F 1 k RET} produces @kbd{3 + 2 k}.
713--- 23689,23695 ----
714 a vector of the actual parameter values, written as equations:
715 @cite{[a = 3, b = 2]}, in case you'd rather read them in a list
716 than pick them out of the formula. (You can type @kbd{t y}
717! to move this vector to the stack; see @ref{Trail Commands}.)
718
719 Specifying a different independent variable name will affect the
720 resulting formula: @kbd{a F 1 k RET} produces @kbd{3 + 2 k}.
721
3d7a4ec8
EZ
722* Unicode characters are not unified with other Mule charsets.
723
724As of v21.1, Emacs charsets are still not unified. This means that
725characters which belong to charsets such as Latin-2, Greek, Hebrew,
726etc. and the same characters in the `mule-unicode-*' charsets are
727different characters, as far as Emacs is concerned. For example, text
728which includes Unicode characters from the Latin-2 locale cannot be
729encoded by Emacs with ISO 8859-2 coding system; and if you yank Greek
730text from a buffer whose buffer-file-coding-system is greek-iso-8bit
731into a mule-unicode-0100-24ff buffer, Emacs won't be able to save that
732buffer neither as ISO 8859-7 nor as UTF-8.
733
734To work around this, install some add-on package such as Mule-UCS.
735
b098c23c
EZ
736* The `oc-unicode' package doesn't work with Emacs 21.
737
9ed04369
DL
738This package tries to define more private charsets than there are free
739slots now. If the built-in Unicode/UTF-8 support is insufficient,
740e.g. if you need more CJK coverage, use the current Mule-UCS package.
741Any files encoded as emacs-mule using oc-unicode won't be read
742correctly by Emacs 21.
224a0b4d 743
f4f4ee4d
GM
744* On systems with shared libraries you might encounter run-time errors
745from the dynamic linker telling you that it is unable to find some
746shared libraries, for instance those for Xaw3d or image support.
747These errors mean Emacs has been linked with a library whose shared
748library is not in the default search path of the dynamic linker.
749
750On many systems, it is possible to set LD_LIBRARY_PATH in your
751environment to specify additional directories where shared libraries
752can be found.
753
754Other systems allow to set LD_RUN_PATH in a similar way, but before
755Emacs is linked. With LD_RUN_PATH set, the linker will include a
756specified run-time search path in the executable.
757
758Please refer to the documentation of your dynamic linker for details.
759
0c6456ad 760* On Solaris 2.7, building Emacs with WorkShop Compilers 5.0 98/12/15
9b2999d0
DL
761C 5.0 failed, apparently with non-default CFLAGS, most probably due to
762compiler bugs. Using Sun Solaris 2.7 Sun WorkShop 6 update 1 C
763release was reported to work without problems. It worked OK on
764another system with Solaris 8 using apparently the same 5.0 compiler
765and the default CFLAGS.
0c6456ad 766
b1739b51
EZ
767* Compiling syntax.c with the OPENSTEP 4.2 compiler gcc 2.7.2.1 fails.
768
769The compiler was reported to crash while compiling syntax.c with the
770following message:
771
772 cc: Internal compiler error: program cc1obj got fatal signal 11
773
774To work around this, replace the macros UPDATE_SYNTAX_TABLE_FORWARD,
775INC_BOTH, and INC_FROM with functions. To this end, first define 3
776functions, one each for every macro. Here's an example:
777
778 static int update_syntax_table_forward(int from)
779 {
780 return(UPDATE_SYNTAX_TABLE_FORWARD(from));
781 }/*update_syntax_table_forward*/
782
783Then replace all references to UPDATE_SYNTAX_TABLE_FORWARD in syntax.c
784with a call to the function update_syntax_table_forward.
785
f25eb4f7
EZ
786* Emacs 20 and later fails to load Lisp files at startup.
787
788The typical error message might be like this:
789
790 "Cannot open load file: fontset"
791
792This could happen if you compress the file lisp/subdirs.el. That file
793tells Emacs what are the directories where it should look for Lisp
794files. Emacs cannot work with subdirs.el compressed, since the
795Auto-compress mode it needs for this will not be loaded until later,
796when your .emacs file is processed. (The package `fontset.el' is
797required to set up fonts used to display text on window systems, and
798its loaded very early in the startup procedure.)
799
800Similarly, any other .el file for which there's no corresponding .elc
801file could fail to load if it is compressed.
802
803The solution is to uncompress all .el files which don't have a .elc
804file.
805
f3d6f4ee
EZ
806* Attempting to visit remote files via ange-ftp fails.
807
808If the error message is "ange-ftp-file-modtime: Specified time is not
809representable", then this could happen when `lukemftp' is used as the
810ftp client. This was reported to happen on Debian GNU/Linux 2.4.3
811with `lukemftp' 1.5-5, but might happen on other systems as well. To
812avoid this problem, switch to using the standard ftp client. On a
813Debian system, type
814
815 update-alternatives --config ftpd
816
817and then choose /usr/bin/netkit-ftp.
818
f29d1e75
JR
819* On Windows 95/98/ME, subprocesses do not terminate properly.
820
821This is a limitation of the Operating System, and can cause problems
822when shutting down Windows. Ensure that all subprocesses are exited
823cleanly before exiting Emacs. For more details, see the FAQ at
824ftp://ftp.gnu.org/gnu/windows/emacs/doc/index.html
825
787994b7
DL
826* Mail sent through Microsoft Exchange in some encodings appears to be
827mangled and is not seen correctly in Rmail or Gnus. We don't know
828exactly what happens, but it isn't an Emacs problem in cases we've
829seen.
830
119d3665
DL
831* On OSF/Dec Unix/Tru64/<whatever it is this year> under X locally or
832remotely, M-SPC acts as a `compose' key with strange results. See
833keyboard(5).
834
835Changing Alt_L to Meta_L fixes it:
836% xmodmap -e 'keysym Alt_L = Meta_L Alt_L'
837% xmodmap -e 'keysym Alt_R = Meta_R Alt_R'
838
a933dad1
DL
839* Error "conflicting types for `initstate'" compiling with GCC on Irix 6.
840
841Install GCC 2.95 or a newer version, and this problem should go away.
842It is possible that this problem results from upgrading the operating
843system without reinstalling GCC; so you could also try reinstalling
844the same version of GCC, and telling us whether that fixes the problem.
845
846* On Solaris 7, Emacs gets a segmentation fault when starting up using X.
847
848This results from Sun patch 107058-01 (SunOS 5.7: Patch for
3156909f
PE
849assembler) if you use GCC version 2.7 or later.
850To work around it, either install patch 106950-03 or later,
851or uninstall patch 107058-01, or install the GNU Binutils.
a933dad1
DL
852Then recompile Emacs, and it should work.
853
854* With X11R6.4, public-patch-3, Emacs crashes at startup.
855
856Reportedly this patch in X fixes the problem.
857
858 --- xc/lib/X11/imInt.c~ Wed Jun 30 13:31:56 1999
859 +++ xc/lib/X11/imInt.c Thu Jul 1 15:10:27 1999
860 @@ -1,4 +1,4 @@
861 -/* $TOG: imInt.c /main/5 1998/05/30 21:11:16 kaleb $ */
862 +/* $TOG: imInt.c /main/5 1998/05/30 21:11:16 kaleb $ */
863 /******************************************************************
864
865 Copyright 1992, 1993, 1994 by FUJITSU LIMITED
866 @@ -166,8 +166,8 @@
867 _XimMakeImName(lcd)
868 XLCd lcd;
869 {
870 - char* begin;
871 - char* end;
872 + char* begin = NULL;
873 + char* end = NULL;
874 char* ret;
875 int i = 0;
876 char* ximmodifier = XIMMODIFIER;
877 @@ -182,7 +182,11 @@
878 }
879 ret = Xmalloc(end - begin + 2);
880 if (ret != NULL) {
881 - (void)strncpy(ret, begin, end - begin + 1);
882 + if (begin != NULL) {
883 + (void)strncpy(ret, begin, end - begin + 1);
884 + } else {
885 + ret[0] = '\0';
886 + }
887 ret[end - begin + 1] = '\0';
888 }
889 return ret;
890
891
a933dad1
DL
892* Emacs crashes on Irix 6.5 on the SGI R10K, when compiled with GCC.
893
894This seems to be fixed in GCC 2.95.
895
896* Emacs crashes in utmpname on Irix 5.3.
897
898This problem is fixed in Patch 3175 for Irix 5.3.
899It is also fixed in Irix versions 6.2 and up.
900
de121241
EZ
901* The S-C-t key combination doesn't get passed to Emacs on X.
902
903This happens because some X configurations assign the Ctrl-Shift-t
904combination the same meaning as the Multi_key. The offending
905definition is in the file `...lib/X11/locale/iso8859-1/Compose'; there
906might be other similar combinations which are grabbed by X for similar
907purposes.
908
909We think that this can be countermanded with the `xmodmap' utility, if
910you want to be able to bind one of these key sequences within Emacs.
911
a933dad1
DL
912* On Solaris, CTRL-t is ignored by Emacs when you use
913the fr.ISO-8859-15 locale (and maybe other related locales).
914
915You can fix this by editing the file:
916
917 /usr/openwin/lib/locale/iso8859-15/Compose
918
919Near the bottom there is a line that reads:
920
921 Ctrl<t> <quotedbl> <Y> : "\276" threequarters
922
923that should read:
924
925 Ctrl<T> <quotedbl> <Y> : "\276" threequarters
926
927Note the lower case <t>. Changing this line should make C-t work.
928
929* Emacs on Digital Unix 4.0 fails to build, giving error message
930 Invalid dimension for the charset-ID 160
931
932This is due to a bug or an installation problem in GCC 2.8.0.
933Installing a more recent version of GCC fixes the problem.
934
935* Buffers from `with-output-to-temp-buffer' get set up in Help mode.
936
937Changes in Emacs 20.4 to the hooks used by that function cause
938problems for some packages, specifically BBDB. See the function's
939documentation for the hooks involved. BBDB 2.00.06 fixes the problem.
940
941* Under X, C-v and/or other keys don't work.
942
943These may have been intercepted by your window manager. In
944particular, AfterStep 1.6 is reported to steal C-v in its default
945configuration. Various Meta keys are also likely to be taken by the
946configuration of the `feel'. See the WM's documentation for how to
947change this.
948
949* When using Exceed, fonts sometimes appear too tall.
950
951When the display is set to an Exceed X-server and fonts are specified
952(either explicitly with the -fn option or implicitly with X resources)
953then the fonts may appear "too tall". The actual character sizes are
954correct but there is too much vertical spacing between rows, which
955gives the appearance of "double spacing".
956
957To prevent this, turn off the Exceed's "automatic font substitution"
958feature (in the font part of the configuration window).
959
a933dad1
DL
960* Failure in unexec while dumping emacs on Digital Unix 4.0
961
962This problem manifests itself as an error message
963
964 unexec: Bad address, writing data section to ...
965
966The user suspects that this happened because his X libraries
967were built for an older system version,
968
969 ./configure --x-includes=/usr/include --x-libraries=/usr/shlib
970
971made the problem go away.
972
973* No visible display on mips-sgi-irix6.2 when compiling with GCC 2.8.1.
974
975This problem went away after installing the latest IRIX patches
976as of 8 Dec 1998.
977
978The same problem has been reported on Irix 6.3.
979
980* As of version 20.4, Emacs doesn't work properly if configured for
981the Motif toolkit and linked against the free LessTif library. The
982next Emacs release is expected to work with LessTif.
983
984* Emacs gives the error, Couldn't find per display information.
985
986This can result if the X server runs out of memory because Emacs uses
987a large number of fonts. On systems where this happens, C-h h is
988likely to cause it.
989
990We do not know of a way to prevent the problem.
991
992* Emacs makes HPUX 11.0 crash.
993
994This is a bug in HPUX; HPUX patch PHKL_16260 is said to fix it.
995
996* Emacs crashes during dumping on the HPPA machine (HPUX 10.20).
997
998This seems to be due to a GCC bug; it is fixed in GCC 2.8.1.
999
1000* The Hyperbole package causes *Help* buffers not to be displayed in
1001Help mode due to setting `temp-buffer-show-hook' rather than using
1002`add-hook'. Using `(add-hook 'temp-buffer-show-hook
1003'help-mode-maybe)' after loading Hyperbole should fix this.
1004
1005* Versions of the PSGML package earlier than 1.0.3 (stable) or 1.1.2
1006(alpha) fail to parse DTD files correctly in Emacs 20.3 and later.
1007Here is a patch for psgml-parse.el from PSGML 1.0.1 and, probably,
1008earlier versions.
1009
1010--- psgml-parse.el 1998/08/21 19:18:18 1.1
1011+++ psgml-parse.el 1998/08/21 19:20:00
1012@@ -2383,7 +2383,7 @@ (defun sgml-push-to-entity (entity &opti
1013 (setq sgml-buffer-parse-state nil))
1014 (cond
1015 ((stringp entity) ; a file name
1016- (save-excursion (insert-file-contents entity))
1017+ (insert-file-contents entity)
1018 (setq default-directory (file-name-directory entity)))
1019 ((consp (sgml-entity-text entity)) ; external id?
1020 (let* ((extid (sgml-entity-text entity))
1021
d238f982
EZ
1022* Emacs 21 freezes when visiting a TeX file with AUC TeX installed.
1023
1024Emacs 21 needs version 10 or later of AUC TeX; upgrading should solve
1025these problems.
1026
1027* Running TeX from AUC TeX package with Emacs 20.3 gives a Lisp error
a933dad1
DL
1028about a read-only tex output buffer.
1029
1030This problem appeared for AUC TeX version 9.9j and some earlier
1031versions. Here is a patch for the file tex-buf.el in the AUC TeX
1032package.
1033
1034diff -c auctex/tex-buf.el~ auctex/tex-buf.el
1035*** auctex/tex-buf.el~ Wed Jul 29 18:35:32 1998
1036--- auctex/tex-buf.el Sat Sep 5 15:20:38 1998
1037***************
1038*** 545,551 ****
1039 (dir (TeX-master-directory)))
1040 (TeX-process-check file) ; Check that no process is running
1041 (setq TeX-command-buffer (current-buffer))
1042! (with-output-to-temp-buffer buffer)
1043 (set-buffer buffer)
1044 (if dir (cd dir))
1045 (insert "Running `" name "' on `" file "' with ``" command "''\n")
1046- --- 545,552 ----
1047 (dir (TeX-master-directory)))
1048 (TeX-process-check file) ; Check that no process is running
1049 (setq TeX-command-buffer (current-buffer))
1050! (let (temp-buffer-show-function temp-buffer-show-hook)
1051! (with-output-to-temp-buffer buffer))
1052 (set-buffer buffer)
1053 (if dir (cd dir))
1054 (insert "Running `" name "' on `" file "' with ``" command "''\n")
1055
1056* On Irix 6.3, substituting environment variables in file names
1057in the minibuffer gives peculiar error messages such as
1058
1059 Substituting nonexistent environment variable ""
1060
1061This is not an Emacs bug; it is caused by something in SGI patch
1062003082 August 11, 1998.
1063
1064* After a while, Emacs slips into unibyte mode.
1065
1066The VM mail package, which is not part of Emacs, sometimes does
1067 (standard-display-european t)
1068That should be changed to
1069 (standard-display-european 1 t)
1070
1071* Installing Emacs gets an error running `install-info'.
1072
1073You need to install a recent version of Texinfo; that package
1074supplies the `install-info' command.
1075
1076* Emacs does not recognize the AltGr key, on HPUX.
1077
1078To fix this, set up a file ~/.dt/sessions/sessionetc with executable
1079rights, containing this text:
1080
1081--------------------------------
1082xmodmap 2> /dev/null - << EOF
1083keysym Alt_L = Meta_L
1084keysym Alt_R = Meta_R
1085EOF
1086
1087xmodmap - << EOF
1088clear mod1
1089keysym Mode_switch = NoSymbol
1090add mod1 = Meta_L
1091keysym Meta_R = Mode_switch
1092add mod2 = Mode_switch
1093EOF
1094--------------------------------
1095
17a37d87
EZ
1096* Emacs hangs on KDE when a large portion of text is killed.
1097
62c485d2
GM
1098This is caused by a bug in the KDE applet `klipper' which periodically
1099requests the X clipboard contents from applications. Early versions
1100of klipper don't implement the ICCM protocol for large selections,
1101which leads to Emacs being flooded with selection requests. After a
1102while, Emacs will print a message:
17a37d87
EZ
1103
1104 Timed out waiting for property-notify event
1105
62c485d2 1106A workaround is to not use `klipper'.
17a37d87 1107
a933dad1
DL
1108* Emacs compiled with DJGPP for MS-DOS/MS-Windows cannot access files
1109in the directory with the special name `dev' under the root of any
1110drive, e.g. `c:/dev'.
1111
1112This is an unfortunate side-effect of the support for Unix-style
1113device names such as /dev/null in the DJGPP runtime library. A
1114work-around is to rename the problem directory to another name.
1115
1116* M-SPC seems to be ignored as input.
1117
1118See if your X server is set up to use this as a command
1119for character composition.
1120
1121* Emacs startup on GNU/Linux systems (and possibly other systems) is slow.
1122
1123This can happen if the system is misconfigured and Emacs can't get the
1124full qualified domain name, FQDN. You should have your FQDN in the
1125/etc/hosts file, something like this:
1126
1127127.0.0.1 localhost
1128129.187.137.82 nuc04.t30.physik.tu-muenchen.de nuc04
1129
1130The way to set this up may vary on non-GNU systems.
1131
1132* Garbled display on non-X terminals when Emacs runs on Digital Unix 4.0.
1133
1134So far it appears that running `tset' triggers this problem (when TERM
1135is vt100, at least). If you do not run `tset', then Emacs displays
1136properly. If someone can tell us precisely which effect of running
1137`tset' actually causes the problem, we may be able to implement a fix
1138in Emacs.
1139
1140* When you run Ispell from Emacs, it reports a "misalignment" error.
1141
3d00585e
EZ
1142This can happen if you compiled the Ispell program to use ASCII
1143characters only and then try to use it from Emacs with non-ASCII
1144characters, like Latin-1. The solution is to recompile Ispell with
1145support for 8-bit characters.
a933dad1 1146
3d00585e
EZ
1147To see whether your Ispell program supports 8-bit characters, type
1148this at your shell's prompt:
1149
1150 ispell -vv
1151
1152and look in the output for the string "NO8BIT". If Ispell says
1153"!NO8BIT (8BIT)", your speller supports 8-bit characters; otherwise it
1154does not.
1155
1156To rebuild Ispell with 8-bit character support, edit the local.h file
1157in the Ispell distribution and make sure it does _not_ define NO8BIT.
1158Then rebuild the speller.
1159
1160Another possible cause for "misalignment" error messages is that the
1161version of Ispell installed on your machine is old. Upgrade.
1162
1163Yet another possibility is that you are trying to spell-check a word
1164in a language that doesn't fit the dictionary you choose for use by
1165Ispell. (Ispell can only spell-check one language at a time, because
1166it uses a single dictionary.) Make sure that the text you are
1167spelling and the dictionary used by Ispell conform to each other.
a933dad1
DL
1168
1169* On Linux-based GNU systems using libc versions 5.4.19 through
11705.4.22, Emacs crashes at startup with a segmentation fault.
1171
1172This problem happens if libc defines the symbol __malloc_initialized.
1173One known solution is to upgrade to a newer libc version. 5.4.33 is
1174known to work.
1175
1176* On Windows, you cannot use the right-hand ALT key and the left-hand
1177CTRL key together to type a Control-Meta character.
1178
1179This is a consequence of a misfeature beyond Emacs's control.
1180
1181Under Windows, the AltGr key on international keyboards generates key
1182events with the modifiers Right-Alt and Left-Ctrl. Since Emacs cannot
1183distinguish AltGr from an explicit Right-Alt and Left-Ctrl
1184combination, whenever it sees Right-Alt and Left-Ctrl it assumes that
1185AltGr has been pressed.
1186
1187* Under some Windows X-servers, Emacs' display is incorrect
1188
1189The symptoms are that Emacs does not completely erase blank areas of the
1190screen during scrolling or some other screen operations (e.g., selective
1191display or when killing a region). M-x recenter will cause the screen
1192to be completely redisplayed and the "extra" characters will disappear.
1193
1194This is known to occur under Exceed 6, and possibly earlier versions as
1195well. The problem lies in the X-server settings.
1196
1197There are reports that you can solve the problem with Exceed by
1198running `Xconfig' from within NT, choosing "X selection", then
1199un-checking the boxes "auto-copy X selection" and "auto-paste to X
1200selection".
1201
1202Of this does not work, please inform bug-gnu-emacs@gnu.org. Then
1203please call support for your X-server and see if you can get a fix.
1204If you do, please send it to bug-gnu-emacs@gnu.org so we can list it
1205here.
1206
1207* On Solaris 2, Emacs dumps core when built with Motif.
1208
1209The Solaris Motif libraries are buggy, at least up through Solaris 2.5.1.
1210Install the current Motif runtime library patch appropriate for your host.
1211(Make sure the patch is current; some older patch versions still have the bug.)
1212You should install the other patches recommended by Sun for your host, too.
1213You can obtain Sun patches from ftp://sunsolve.sun.com/pub/patches/;
1214look for files with names ending in `.PatchReport' to see which patches
1215are currently recommended for your host.
1216
1217On Solaris 2.6, Emacs is said to work with Motif when Solaris patch
1218105284-12 is installed, but fail when 105284-15 is installed.
1219105284-18 might fix it again.
1220
3156909f
PE
1221* On Solaris 2.6 and 7, the Compose key does not work.
1222
1223This is a bug in Motif in Solaris. Supposedly it has been fixed for
1224the next major release of Solaris. However, if someone with Sun
1225support complains to Sun about the bug, they may release a patch.
1226If you do this, mention Sun bug #4188711.
a933dad1
DL
1227
1228One workaround is to use a locale that allows non-ASCII characters.
1229For example, before invoking emacs, set the LC_ALL environment
1230variable to "en_US" (American English). The directory /usr/lib/locale
1231lists the supported locales; any locale other than "C" or "POSIX"
1232should do.
1233
3156909f
PE
1234pen@lysator.liu.se says (Feb 1998) that the Compose key does work
1235if you link with the MIT X11 libraries instead of the Solaris X11
1236libraries.
a933dad1
DL
1237
1238* Emacs does not know your host's fully-qualified domain name.
1239
1240You need to configure your machine with a fully qualified domain name,
1241either in /etc/hosts, /etc/hostname, the NIS, or wherever your system
1242calls for specifying this.
1243
1244If you cannot fix the configuration, you can set the Lisp variable
1245mail-host-address to the value you want.
1246
1247* Error 12 (virtual memory exceeded) when dumping Emacs, on UnixWare 2.1
1248
1249Paul Abrahams (abrahams@acm.org) reports that with the installed
1250virtual memory settings for UnixWare 2.1.2, an Error 12 occurs during
1251the "make" that builds Emacs, when running temacs to dump emacs. That
1252error indicates that the per-process virtual memory limit has been
1253exceeded. The default limit is probably 32MB. Raising the virtual
1254memory limit to 40MB should make it possible to finish building Emacs.
1255
1256You can do this with the command `ulimit' (sh) or `limit' (csh).
1257But you have to be root to do it.
1258
1259According to Martin Sohnius, you can also retune this in the kernel:
1260
1261 # /etc/conf/bin/idtune SDATLIM 33554432 ## soft data size limit
1262 # /etc/conf/bin/idtune HDATLIM 33554432 ## hard "
1263 # /etc/conf/bin/idtune SVMMSIZE unlimited ## soft process size limit
1264 # /etc/conf/bin/idtune HVMMSIZE unlimited ## hard "
1265 # /etc/conf/bin/idbuild -B
1266
1267(He recommends you not change the stack limit, though.)
1268These changes take effect when you reboot.
1269
1270* Redisplay using X11 is much slower than previous Emacs versions.
1271
1272We've noticed that certain X servers draw the text much slower when
1273scroll bars are on the left. We don't know why this happens. If this
1274happens to you, you can work around it by putting the scroll bars
1275on the right (as they were in Emacs 19).
1276
1277Here's how to do this:
1278
1279 (set-scroll-bar-mode 'right)
1280
1281If you're not sure whether (or how much) this problem affects you,
1282try that and see how much difference it makes. To set things back
1283to normal, do
1284
1285 (set-scroll-bar-mode 'left)
1286
1287* Under X11, some characters appear as hollow boxes.
1288
1289Each X11 font covers just a fraction of the characters that Emacs
1290supports. To display the whole range of Emacs characters requires
1291many different fonts, collected into a fontset.
1292
1293If some of the fonts called for in your fontset do not exist on your X
1294server, then the characters that have no font appear as hollow boxes.
1295You can remedy the problem by installing additional fonts.
1296
1297The intlfonts distribution includes a full spectrum of fonts that can
1298display all the characters Emacs supports.
1299
4c635a29
DL
1300Another cause of this for specific characters is fonts which have a
1301missing glyph and no default character. This is known ot occur for
1302character number 160 (no-break space) in some fonts, such as Lucida
1303but Emacs sets the display table for the unibyte and Latin-1 version
1304of this character to display a space.
1305
a933dad1
DL
1306* Under X11, some characters appear improperly aligned in their lines.
1307
1308You may have bad X11 fonts; try installing the intlfonts distribution.
1309
1310* Certain fonts make each line take one pixel more than it "should".
1311
1312This is because these fonts contain characters a little taller
1313than the font's nominal height. Emacs needs to make sure that
1314lines do not overlap.
1315
1316* You request inverse video, and the first Emacs frame is in inverse
1317video, but later frames are not in inverse video.
1318
1319This can happen if you have an old version of the custom library in
1320your search path for Lisp packages. Use M-x list-load-path-shadows to
1321check whether this is true. If it is, delete the old custom library.
1322
1323* In FreeBSD 2.1.5, useless symbolic links remain in /tmp or other
1324directories that have the +t bit.
1325
1326This is because of a kernel bug in FreeBSD 2.1.5 (fixed in 2.2).
1327Emacs uses symbolic links to implement file locks. In a directory
1328with +t bit, the directory owner becomes the owner of the symbolic
1329link, so that it cannot be removed by anyone else.
1330
1331If you don't like those useless links, you can let Emacs not to using
1332file lock by adding #undef CLASH_DETECTION to config.h.
1333
1334* When using M-x dbx with the SparcWorks debugger, the `up' and `down'
1335commands do not move the arrow in Emacs.
1336
1337You can fix this by adding the following line to `~/.dbxinit':
1338
1339 dbxenv output_short_file_name off
1340
1341* Emacs says it has saved a file, but the file does not actually
1342appear on disk.
1343
1344This can happen on certain systems when you are using NFS, if the
1345remote disk is full. It is due to a bug in NFS (or certain NFS
1346implementations), and there is apparently nothing Emacs can do to
1347detect the problem. Emacs checks the failure codes of all the system
1348calls involved in writing a file, including `close'; but in the case
1349where the problem occurs, none of those system calls fails.
1350
1351* "Compose Character" key does strange things when used as a Meta key.
1352
1353If you define one key to serve as both Meta and Compose Character, you
1354will get strange results. In previous Emacs versions, this "worked"
1355in that the key acted as Meta--that's because the older Emacs versions
1356did not try to support Compose Character. Now Emacs tries to do
1357character composition in the standard X way. This means that you
1358must pick one meaning or the other for any given key.
1359
1360You can use both functions (Meta, and Compose Character) if you assign
1361them to two different keys.
1362
1363* Emacs gets a segmentation fault at startup, on AIX4.2.
1364
1365If you are using IBM's xlc compiler, compile emacs.c
1366without optimization; that should avoid the problem.
1367
1368* movemail compiled with POP support can't connect to the POP server.
1369
1370Make sure that the `pop' entry in /etc/services, or in the services
1371NIS map if your machine uses NIS, has the same port number as the
1372entry on the POP server. A common error is for the POP server to be
1373listening on port 110, the assigned port for the POP3 protocol, while
1374the client is trying to connect on port 109, the assigned port for the
1375old POP protocol.
1376
1377* Emacs crashes in x-popup-dialog.
1378
1379This can happen if the dialog widget cannot find the font it wants to
1380use. You can work around the problem by specifying another font with
1381an X resource--for example, `Emacs.dialog*.font: 9x15' (or any font that
1382happens to exist on your X server).
1383
1384* Emacs crashes when you use Bibtex mode.
1385
1386This happens if your system puts a small limit on stack size. You can
1387prevent the problem by using a suitable shell command (often `ulimit')
1388to raise the stack size limit before you run Emacs.
1389
1390Patches to raise the stack size limit automatically in `main'
1391(src/emacs.c) on various systems would be greatly appreciated.
1392
1393* Emacs crashes with SIGBUS or SIGSEGV on HPUX 9 after you delete a frame.
1394
1395We think this is due to a bug in the X libraries provided by HP. With
1396the alternative X libraries in /usr/contrib/mitX11R5/lib, the problem
1397does not happen.
1398
1399* Emacs crashes with SIGBUS or SIGSEGV on Solaris after you delete a frame.
1400
1401We suspect that this is a similar bug in the X libraries provided by
1402Sun. There is a report that one of these patches fixes the bug and
1403makes the problem stop:
1404
1405105216-01 105393-01 105518-01 105621-01 105665-01 105615-02 105216-02
1406105667-01 105401-08 105615-03 105621-02 105686-02 105736-01 105755-03
1407106033-01 105379-01 105786-01 105181-04 105379-03 105786-04 105845-01
1408105284-05 105669-02 105837-01 105837-02 105558-01 106125-02 105407-01
1409
1410Another person using a newer system (kernel patch level Generic_105181-06)
1411suspects that the bug was fixed by one of these more recent patches:
1412
1413106040-07 SunOS 5.6: X Input & Output Method patch
1414106222-01 OpenWindows 3.6: filemgr (ff.core) fixes
1415105284-12 Motif 1.2.7: sparc Runtime library patch
1416
1417* Problems running Perl under Emacs on Windows NT/95.
1418
1419`perl -de 0' just hangs when executed in an Emacs subshell.
1420The fault lies with Perl (indirectly with Windows NT/95).
1421
1422The problem is that the Perl debugger explicitly opens a connection to
1423"CON", which is the DOS/NT equivalent of "/dev/tty", for interacting
1424with the user.
1425
1426On Unix, this is okay, because Emacs (or the shell?) creates a
1427pseudo-tty so that /dev/tty is really the pipe Emacs is using to
1428communicate with the subprocess.
1429
1430On NT, this fails because CON always refers to the handle for the
1431relevant console (approximately equivalent to a tty), and cannot be
1432redirected to refer to the pipe Emacs assigned to the subprocess as
1433stdin.
1434
1435A workaround is to modify perldb.pl to use STDIN/STDOUT instead of CON.
1436
1437For Perl 4:
1438
1439 *** PERL/LIB/PERLDB.PL.orig Wed May 26 08:24:18 1993
1440 --- PERL/LIB/PERLDB.PL Mon Jul 01 15:28:16 1996
1441 ***************
1442 *** 68,74 ****
1443 $rcfile=".perldb";
1444 }
1445 else {
1446 ! $console = "con";
1447 $rcfile="perldb.ini";
1448 }
1449
1450 --- 68,74 ----
1451 $rcfile=".perldb";
1452 }
1453 else {
1454 ! $console = "";
1455 $rcfile="perldb.ini";
1456 }
1457
1458
1459 For Perl 5:
1460 *** perl/5.001/lib/perl5db.pl.orig Sun Jun 04 21:13:40 1995
1461 --- perl/5.001/lib/perl5db.pl Mon Jul 01 17:00:08 1996
1462 ***************
1463 *** 22,28 ****
1464 $rcfile=".perldb";
1465 }
1466 elsif (-e "con") {
1467 ! $console = "con";
1468 $rcfile="perldb.ini";
1469 }
1470 else {
1471 --- 22,28 ----
1472 $rcfile=".perldb";
1473 }
1474 elsif (-e "con") {
1475 ! $console = "";
1476 $rcfile="perldb.ini";
1477 }
1478 else {
1479
1480* Problems running DOS programs on Windows NT versions earlier than 3.51.
1481
1482Some DOS programs, such as pkzip/pkunzip will not work at all, while
1483others will only work if their stdin is redirected from a file or NUL.
1484
1485When a DOS program does not work, a new process is actually created, but
1486hangs. It cannot be interrupted from Emacs, and might need to be killed
1487by an external program if Emacs is hung waiting for the process to
1488finish. If Emacs is not waiting for it, you should be able to kill the
1489instance of ntvdm that is running the hung process from Emacs, if you
1490can find out the process id.
1491
1492It is safe to run most DOS programs using call-process (eg. M-! and
1493M-|) since stdin is then redirected from a file, but not with
1494start-process since that redirects stdin to a pipe. Also, running DOS
1495programs in a shell buffer prompt without redirecting stdin does not
1496work.
1497
1498* Problems on MS-DOG if DJGPP v2.0 is used to compile Emacs:
1499
1500There are two DJGPP library bugs which cause problems:
1501
1502 * Running `shell-command' (or `compile', or `grep') you get
1503 `Searching for program: permission denied (EACCES), c:/command.com';
1504 * After you shell to DOS, Ctrl-Break kills Emacs.
1505
1506To work around these bugs, you can use two files in the msdos
1507subdirectory: `is_exec.c' and `sigaction.c'. Compile them and link
1508them into the Emacs executable `temacs'; then they will replace the
1509incorrect library functions.
1510
f1e54ce1
EZ
1511* When compiling with DJGPP on Windows NT, "config msdos" fails.
1512
1513If the error message is "VDM has been already loaded", this is because
1514Windows has a program called `redir.exe' that is incompatible with a
1515program by the same name supplied with DJGPP, which is used by
1516config.bat. To resolve this, move the DJGPP's `bin' subdirectory to
1517the front of your PATH environment variable.
1518
a933dad1
DL
1519* When compiling with DJGPP on Windows 95, Make fails for some targets
1520like make-docfile.
1521
1522This can happen if long file name support (the setting of environment
1523variable LFN) when Emacs distribution was unpacked and during
1524compilation are not the same. See the MSDOG section of INSTALL for
1525the explanation of how to avoid this problem.
1526
1527* Emacs compiled for MSDOS cannot find some Lisp files, or other
1528run-time support files, when long filename support is enabled.
a01325b8
EZ
1529
1530Usually, this problem will manifest itself when Emacs exits
a933dad1
DL
1531immediately after flashing the startup screen, because it cannot find
1532the Lisp files it needs to load at startup. Redirect Emacs stdout
a01325b8
EZ
1533and stderr to a file to see the error message printed by Emacs.
1534
1535Another manifestation of this problem is that Emacs is unable to load
1536the support for editing program sources in languages such as C and
1537Lisp.
a933dad1
DL
1538
1539This can happen if the Emacs distribution was unzipped without LFN
1540support, thus causing long filenames to be truncated to the first 6
1541characters and a numeric tail that Windows 95 normally attaches to it.
1542You should unzip the files again with a utility that supports long
1543filenames (such as djtar from DJGPP or InfoZip's UnZip program
1544compiled with DJGPP v2). The MSDOG section of the file INSTALL
1545explains this issue in more detail.
1546
a01325b8
EZ
1547Another possible reason for such failures is that Emacs compiled for
1548MSDOS is used on Windows NT, where long file names are not supported
1549by this version of Emacs, but the distribution was unpacked by an
1550unzip program that preserved the long file names instead of truncating
1551them to DOS 8+3 limits. To be useful on NT, the MSDOS port of Emacs
1552must be unzipped by a DOS utility, so that long file names are
1553properly truncated.
1554
a933dad1
DL
1555* Emacs compiled with DJGPP complains at startup:
1556
1557 "Wrong type of argument: internal-facep, msdos-menu-active-face"
1558
1559This can happen if you define an environment variable `TERM'. Emacs
1560on MSDOS uses an internal terminal emulator which is disabled if the
1561value of `TERM' is anything but the string "internal". Emacs then
1562works as if its terminal were a dumb glass teletype that doesn't
1563support faces. To work around this, arrange for `TERM' to be
1564undefined when Emacs runs. The best way to do that is to add an
1565[emacs] section to the DJGPP.ENV file which defines an empty value for
1566`TERM'; this way, only Emacs gets the empty value, while the rest of
1567your system works as before.
1568
1569* On Windows 95, Alt-f6 does not get through to Emacs.
1570
1571This character seems to be trapped by the kernel in Windows 95.
1572You can enter M-f6 by typing ESC f6.
1573
1574* Typing Alt-Shift has strange effects on Windows 95.
1575
1576This combination of keys is a command to change keyboard layout. If
1577you proceed to type another non-modifier key before you let go of Alt
1578and Shift, the Alt and Shift act as modifiers in the usual way.
1579
1580* `tparam' reported as a multiply-defined symbol when linking with ncurses.
1581
1582This problem results from an incompatible change in ncurses, in
1583version 1.9.9e approximately. This version is unable to provide a
1584definition of tparm without also defining tparam. This is also
1585incompatible with Terminfo; as a result, the Emacs Terminfo support
1586does not work with this version of ncurses.
1587
1588The fix is to install a newer version of ncurses, such as version 4.2.
1589
1590* Strange results from format %d in a few cases, on a Sun.
1591
1592Sun compiler version SC3.0 has been found to miscompile part of
1593editfns.c. The workaround is to compile with some other compiler such
1594as GCC.
1595
1596* Output from subprocess (such as man or diff) is randomly truncated
1597on GNU/Linux systems.
1598
1599This is due to a kernel bug which seems to be fixed in Linux version
16001.3.75.
1601
1602* Error messages `internal facep []' happen on GNU/Linux systems.
1603
1604There is a report that replacing libc.so.5.0.9 with libc.so.5.2.16
1605caused this to start happening. People are not sure why, but the
1606problem seems unlikely to be in Emacs itself. Some suspect that it
1607is actually Xlib which won't work with libc.so.5.2.16.
1608
1609Using the old library version is a workaround.
1610
1611* On Solaris, Emacs crashes if you use (display-time).
1612
1613This can happen if you configure Emacs without specifying the precise
1614version of Solaris that you are using.
1615
1616* Emacs dumps core on startup, on Solaris.
1617
1618Bill Sebok says that the cause of this is Solaris 2.4 vendor patch
1619102303-05, which extends the Solaris linker to deal with the Solaris
1620Common Desktop Environment's linking needs. You can fix the problem
1621by removing this patch and installing patch 102049-02 instead.
1622However, that linker version won't work with CDE.
1623
1624Solaris 2.5 comes with a linker that has this bug. It is reported that if
1625you install all the latest patches (as of June 1996), the bug is fixed.
1626We suspect the crucial patch is one of these, but we don't know
1627for certain.
1628
1629 103093-03: [README] SunOS 5.5: kernel patch (2140557 bytes)
1630 102832-01: [README] OpenWindows 3.5: Xview Jumbo Patch (4181613 bytes)
1631 103242-04: [README] SunOS 5.5: linker patch (595363 bytes)
1632
1633(One user reports that the bug was fixed by those patches together
1634with patches 102980-04, 103279-01, 103300-02, and 103468-01.)
1635
1636If you can determine which patch does fix the bug, please tell
1637bug-gnu-emacs@gnu.org.
1638
1639Meanwhile, the GNU linker links Emacs properly on both Solaris 2.4 and
1640Solaris 2.5.
1641
1642* Emacs dumps core if lisp-complete-symbol is called, on Solaris.
1643
1644If you compile Emacs with the -fast or -xO4 option with version 3.0.2
1645of the Sun C compiler, Emacs dumps core when lisp-complete-symbol is
1646called. The problem does not happen if you compile with GCC.
1647
1648* "Cannot find callback list" messages from dialog boxes on HPUX, in
1649Emacs built with Motif.
1650
1651This problem resulted from a bug in GCC 2.4.5. Newer GCC versions
1652such as 2.7.0 fix the problem.
1653
1654* On Irix 6.0, make tries (and fails) to build a program named unexelfsgi
1655
1656A compiler bug inserts spaces into the string "unexelfsgi . o"
1657in src/Makefile. Edit src/Makefile, after configure is run,
1658find that string, and take out the spaces.
1659
1660Compiler fixes in Irix 6.0.1 should eliminate this problem.
1661
1662* "out of virtual swap space" on Irix 5.3
1663
1664This message occurs when the system runs out of swap space due to too
1665many large programs running. The solution is either to provide more
1666swap space or to reduce the number of large programs being run. You
1667can check the current status of the swap space by executing the
1668command `swap -l'.
1669
1670You can increase swap space by changing the file /etc/fstab. Adding a
1671line like this:
1672
1673/usr/swap/swap.more swap swap pri=3 0 0
1674
1675where /usr/swap/swap.more is a file previously created (for instance
1676by using /etc/mkfile), will increase the swap space by the size of
1677that file. Execute `swap -m' or reboot the machine to activate the
1678new swap area. See the manpages for `swap' and `fstab' for further
1679information.
1680
1681The objectserver daemon can use up lots of memory because it can be
1682swamped with NIS information. It collects information about all users
1683on the network that can log on to the host.
1684
1685If you want to disable the objectserver completely, you can execute
1686the command `chkconfig objectserver off' and reboot. That may disable
1687some of the window system functionality, such as responding CDROM
1688icons.
1689
1690You can also remove NIS support from the objectserver. The SGI `admin'
1691FAQ has a detailed description on how to do that; see question 35
1692("Why isn't the objectserver working?"). The admin FAQ can be found at
1693ftp://viz.tamu.edu/pub/sgi/faq/.
1694
1695* With certain fonts, when the cursor appears on a character, the
1696character doesn't appear--you get a solid box instead.
1697
1698One user on a Linux-based GNU system reported that this problem went
1699away with installation of a new X server. The failing server was
1700XFree86 3.1.1. XFree86 3.1.2 works.
1701
1702* On SunOS 4.1.3, Emacs unpredictably crashes in _yp_dobind_soft.
1703
1704This happens if you configure Emacs specifying just `sparc-sun-sunos4'
1705on a system that is version 4.1.3. You must specify the precise
1706version number (or let configure figure out the configuration, which
1707it can do perfectly well for SunOS).
1708
1709* On SunOS 4, Emacs processes keep going after you kill the X server
1710(or log out, if you logged in using X).
1711
1712Someone reported that recompiling with GCC 2.7.0 fixed this problem.
1713
1714* On AIX 4, some programs fail when run in a Shell buffer
1715with an error message like No terminfo entry for "unknown".
1716
1717On AIX, many terminal type definitions are not installed by default.
1718`unknown' is one of them. Install the "Special Generic Terminal
1719Definitions" to make them defined.
1720
1721* On SunOS, you get linker errors
1722 ld: Undefined symbol
1723 _get_wmShellWidgetClass
1724 _get_applicationShellWidgetClass
1725
1726The fix to this is to install patch 100573 for OpenWindows 3.0
1727or link libXmu statically.
1728
1729* On AIX 4.1.2, linker error messages such as
1730 ld: 0711-212 SEVERE ERROR: Symbol .__quous, found in the global symbol table
1731 of archive /usr/lib/libIM.a, was not defined in archive member shr.o.
1732
1733This is a problem in libIM.a. You can work around it by executing
1734these shell commands in the src subdirectory of the directory where
1735you build Emacs:
1736
1737 cp /usr/lib/libIM.a .
1738 chmod 664 libIM.a
1739 ranlib libIM.a
1740
1741Then change -lIM to ./libIM.a in the command to link temacs (in
1742Makefile).
1743
1744* Unpredictable segmentation faults on Solaris 2.3 and 2.4.
1745
1746A user reported that this happened in 19.29 when it was compiled with
1747the Sun compiler, but not when he recompiled with GCC 2.7.0.
1748
1749We do not know whether something in Emacs is partly to blame for this.
1750
1751* Emacs exits with "X protocol error" when run with an X server for
1752Windows.
1753
1754A certain X server for Windows had a bug which caused this.
1755Supposedly the newer 32-bit version of this server doesn't have the
1756problem.
1757
1758* Emacs crashes at startup on MSDOS.
1759
1760Some users report that Emacs 19.29 requires dpmi memory management,
1761and crashes on startup if the system does not have it. We don't yet
1762know why this happens--perhaps these machines don't have enough real
1763memory, or perhaps something is wrong in Emacs or the compiler.
1764However, arranging to use dpmi support is a workaround.
1765
1766You can find out if you have a dpmi host by running go32 without
1767arguments; it will tell you if it uses dpmi memory. For more
1768information about dpmi memory, consult the djgpp FAQ. (djgpp
1769is the GNU C compiler as packaged for MSDOS.)
1770
1771Compiling Emacs under MSDOS is extremely sensitive for proper memory
1772configuration. If you experience problems during compilation, consider
1773removing some or all memory resident programs (notably disk caches)
1774and make sure that your memory managers are properly configured. See
1775the djgpp faq for configuration hints.
1776
1777* A position you specified in .Xdefaults is ignored, using twm.
1778
1779twm normally ignores "program-specified" positions.
1780You can tell it to obey them with this command in your `.twmrc' file:
1781
1782 UsePPosition "on" #allow clients to request a position
1783
1784* Compiling lib-src says there is no rule to make test-distrib.c.
1785
1786This results from a bug in a VERY old version of GNU Sed. To solve
1787the problem, install the current version of GNU Sed, then rerun
1788Emacs's configure script.
1789
1790* Compiling wakeup, in lib-src, says it can't make wakeup.c.
1791
1792This results from a bug in GNU Sed version 2.03. To solve the
1793problem, install the current version of GNU Sed, then rerun Emacs's
1794configure script.
1795
1796* On Sunos 4.1.1, there are errors compiling sysdep.c.
1797
1798If you get errors such as
1799
1800 "sysdep.c", line 2017: undefined structure or union
1801 "sysdep.c", line 2017: undefined structure or union
1802 "sysdep.c", line 2019: nodename undefined
1803
1804This can result from defining LD_LIBRARY_PATH. It is very tricky
1805to use that environment variable with Emacs. The Emacs configure
1806script links many test programs with the system libraries; you must
1807make sure that the libraries available to configure are the same
1808ones available when you build Emacs.
1809
1810* The right Alt key works wrong on German HP keyboards (and perhaps
1811other non-English HP keyboards too).
1812
1813This is because HPUX defines the modifiers wrong in X. Here is a
1814shell script to fix the problem; be sure that it is run after VUE
1815configures the X server.
1816
1817 xmodmap 2> /dev/null - << EOF
1818 keysym Alt_L = Meta_L
1819 keysym Alt_R = Meta_R
1820 EOF
1821
1822 xmodmap - << EOF
1823 clear mod1
1824 keysym Mode_switch = NoSymbol
1825 add mod1 = Meta_L
1826 keysym Meta_R = Mode_switch
1827 add mod2 = Mode_switch
1828 EOF
1829
1830* The Emacs window disappears when you type M-q.
1831
1832Some versions of the Open Look window manager interpret M-q as a quit
1833command for whatever window you are typing at. If you want to use
1834Emacs with that window manager, you should try to configure the window
1835manager to use some other command. You can disable the
1836shortcut keys entirely by adding this line to ~/.OWdefaults:
1837
1838 OpenWindows.WindowMenuAccelerators: False
1839
1840* Emacs does not notice when you release the mouse.
1841
1842There are reports that this happened with (some) Microsoft mice and
1843that replacing the mouse made it stop.
1844
1845* Trouble using ptys on IRIX, or running out of ptys.
1846
1847The program mkpts (which may be in `/usr/adm' or `/usr/sbin') needs to
1848be set-UID to root, or non-root programs like Emacs will not be able
1849to allocate ptys reliably.
1850
1851* On Irix 5.2, unexelfsgi.c can't find cmplrs/stsupport.h.
1852
1853The file cmplrs/stsupport.h was included in the wrong file set in the
1854Irix 5.2 distribution. You can find it in the optional fileset
1855compiler_dev, or copy it from some other Irix 5.2 system. A kludgy
1856workaround is to change unexelfsgi.c to include sym.h instead of
1857syms.h.
1858
1859* Slow startup on Linux-based GNU systems.
1860
1861People using systems based on the Linux kernel sometimes report that
1862startup takes 10 to 15 seconds longer than `usual'.
1863
1864This is because Emacs looks up the host name when it starts.
1865Normally, this takes negligible time; the extra delay is due to
1866improper system configuration. This problem can occur for both
1867networked and non-networked machines.
1868
1869Here is how to fix the configuration. It requires being root.
1870
1871** Networked Case
1872
1873First, make sure the files `/etc/hosts' and `/etc/host.conf' both
1874exist. The first line in the `/etc/hosts' file should look like this
1875(replace HOSTNAME with your host name):
1876
1877 127.0.0.1 HOSTNAME
1878
1879Also make sure that the `/etc/host.conf' files contains the following
1880lines:
1881
1882 order hosts, bind
1883 multi on
1884
1885Any changes, permanent and temporary, to the host name should be
1886indicated in the `/etc/hosts' file, since it acts a limited local
1887database of addresses and names (e.g., some SLIP connections
1888dynamically allocate ip addresses).
1889
1890** Non-Networked Case
1891
1892The solution described in the networked case applies here as well.
1893However, if you never intend to network your machine, you can use a
1894simpler solution: create an empty `/etc/host.conf' file. The command
1895`touch /etc/host.conf' suffices to create the file. The `/etc/hosts'
1896file is not necessary with this approach.
1897
1898* On Solaris 2.4, Dired hangs and C-g does not work. Or Emacs hangs
1899forever waiting for termination of a subprocess that is a zombie.
1900
1901casper@fwi.uva.nl says the problem is in X11R6. Rebuild libX11.so
1902after changing the file xc/config/cf/sunLib.tmpl. Change the lines
1903
1904 #if ThreadedX
1905 #define SharedX11Reqs -lthread
1906 #endif
1907
1908to:
1909
1910 #if OSMinorVersion < 4
1911 #if ThreadedX
1912 #define SharedX11Reqs -lthread
1913 #endif
1914 #endif
1915
1916Be sure also to edit x/config/cf/sun.cf so that OSMinorVersion is 4
1917(as it should be for Solaris 2.4). The file has three definitions for
1918OSMinorVersion: the first is for x86, the second for SPARC under
1919Solaris, and the third for SunOS 4. Make sure to update the
1920definition for your type of machine and system.
1921
1922Then do `make Everything' in the top directory of X11R6, to rebuild
1923the makefiles and rebuild X. The X built this way work only on
1924Solaris 2.4, not on 2.3.
1925
1926For multithreaded X to work it is necessary to install patch
1927101925-02 to fix problems in header files [2.4]. You need
1928to reinstall gcc or re-run just-fixinc after installing that
1929patch.
1930
1931However, Frank Rust <frust@iti.cs.tu-bs.de> used a simpler solution:
1932he changed
1933 #define ThreadedX YES
1934to
1935 #define ThreadedX NO
1936in sun.cf and did `make World' to rebuild X11R6. Removing all
1937`-DXTHREAD*' flags and `-lthread' entries from lib/X11/Makefile and
1938typing 'make install' in that directory also seemed to work.
1939
1940* With M-x enable-flow-control, you need to type C-\ twice
1941 to do incremental search--a single C-\ gets no response.
1942
1943This has been traced to communicating with your machine via kermit,
1944with C-\ as the kermit escape character. One solution is to use
1945another escape character in kermit. One user did
1946
1947 set escape-character 17
1948
1949in his .kermrc file, to make C-q the kermit escape character.
1950
1951* The Motif version of Emacs paints the screen a solid color.
1952
1953This has been observed to result from the following X resource:
1954
1955 Emacs*default.attributeFont: -*-courier-medium-r-*-*-*-140-*-*-*-*-iso8859-*
1956
1957That the resource has this effect indicates a bug in something, but we
1958do not yet know what. If it is an Emacs bug, we hope someone can
1959explain what the bug is so we can fix it. In the mean time, removing
1960the resource prevents the problem.
1961
1962* Emacs gets hung shortly after startup, on Sunos 4.1.3.
1963
1964We think this is due to a bug in Sunos. The word is that
1965one of these Sunos patches fixes the bug:
1966
1967100075-11 100224-06 100347-03 100482-05 100557-02 100623-03 100804-03 101080-01
1968100103-12 100249-09 100496-02 100564-07 100630-02 100891-10 101134-01
1969100170-09 100296-04 100377-09 100507-04 100567-04 100650-02 101070-01 101145-01
1970100173-10 100305-15 100383-06 100513-04 100570-05 100689-01 101071-03 101200-02
1971100178-09 100338-05 100421-03 100536-02 100584-05 100784-01 101072-01 101207-01
1972
1973We don't know which of these patches really matter. If you find out
1974which ones, please inform bug-gnu-emacs@gnu.org.
1975
1976* Emacs aborts while starting up, only when run without X.
1977
1978This problem often results from compiling Emacs with GCC when GCC was
1979installed incorrectly. The usual error in installing GCC is to
1980specify --includedir=/usr/include. Installation of GCC makes
1981corrected copies of the system header files. GCC is supposed to use
1982the corrected copies in preference to the original system headers.
1983Specifying --includedir=/usr/include causes the original system header
1984files to be used. On some systems, the definition of ioctl in the
1985original system header files is invalid for ANSI C and causes Emacs
1986not to work.
1987
1988The fix is to reinstall GCC, and this time do not specify --includedir
1989when you configure it. Then recompile Emacs. Specifying --includedir
1990is appropriate only in very special cases and it should *never* be the
1991same directory where system header files are kept.
1992
1993* On Solaris 2.x, GCC complains "64 bit integer types not supported"
1994
1995This suggests that GCC is not installed correctly. Most likely you
1996are using GCC 2.7.2.3 (or earlier) on Solaris 2.6 (or later); this
1997does not work without patching. To run GCC 2.7.2.3 on Solaris 2.6 or
1998later, you must patch fixinc.svr4 and reinstall GCC from scratch as
1999described in the Solaris FAQ
2000<http://www.wins.uva.nl/pub/solaris/solaris2.html>. A better fix is
2001to upgrade to GCC 2.8.1 or later.
2002
2003* The Compose key on a DEC keyboard does not work as Meta key.
2004
2005This shell command should fix it:
2006
2007 xmodmap -e 'keycode 0xb1 = Meta_L'
2008
2009* Regular expressions matching bugs on SCO systems.
2010
2011On SCO, there are problems in regexp matching when Emacs is compiled
2012with the system compiler. The compiler version is "Microsoft C
2013version 6", SCO 4.2.0h Dev Sys Maintenance Supplement 01/06/93; Quick
2014C Compiler Version 1.00.46 (Beta). The solution is to compile with
2015GCC.
2016
2017* On Sunos 4, you get the error ld: Undefined symbol __lib_version.
2018
2019This is the result of using cc or gcc with the shared library meant
2020for acc (the Sunpro compiler). Check your LD_LIBRARY_PATH and delete
2021/usr/lang/SC2.0.1 or some similar directory.
2022
2023* You can't select from submenus (in the X toolkit version).
2024
2025On certain systems, mouse-tracking and selection in top-level menus
2026works properly with the X toolkit, but neither of them works when you
2027bring up a submenu (such as Bookmarks or Compare or Apply Patch, in
2028the Files menu).
2029
2030This works on most systems. There is speculation that the failure is
2031due to bugs in old versions of X toolkit libraries, but no one really
2032knows. If someone debugs this and finds the precise cause, perhaps a
2033workaround can be found.
2034
2035* Unusable default font on SCO 3.2v4.
2036
2037The Open Desktop environment comes with default X resource settings
2038that tell Emacs to use a variable-width font. Emacs cannot use such
2039fonts, so it does not work.
2040
2041This is caused by the file /usr/lib/X11/app-defaults/ScoTerm, which is
2042the application-specific resource file for the `scoterm' terminal
2043emulator program. It contains several extremely general X resources
2044that affect other programs besides `scoterm'. In particular, these
2045resources affect Emacs also:
2046
2047 *Font: -*-helvetica-medium-r-*--12-*-p-*
2048 *Background: scoBackground
2049 *Foreground: scoForeground
2050
2051The best solution is to create an application-specific resource file for
2052Emacs, /usr/lib/X11/sco/startup/Emacs, with the following contents:
2053
2054 Emacs*Font: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1
2055 Emacs*Background: white
2056 Emacs*Foreground: black
2057
2058(These settings mimic the Emacs defaults, but you can change them to
2059suit your needs.) This resource file is only read when the X server
2060starts up, so you should restart it by logging out of the Open Desktop
2061environment or by running `scologin stop; scologin start` from the shell
2062as root. Alternatively, you can put these settings in the
2063/usr/lib/X11/app-defaults/Emacs resource file and simply restart Emacs,
2064but then they will not affect remote invocations of Emacs that use the
2065Open Desktop display.
2066
2067These resource files are not normally shared across a network of SCO
2068machines; you must create the file on each machine individually.
2069
2070* rcs2log gives you the awk error message "too many fields".
2071
2072This is due to an arbitrary limit in certain versions of awk.
2073The solution is to use gawk (GNU awk).
2074
2075* Emacs is slow using X11R5 on HP/UX.
2076
2077This happens if you use the MIT versions of the X libraries--it
2078doesn't run as fast as HP's version. People sometimes use the version
2079because they see the HP version doesn't have the libraries libXaw.a,
2080libXmu.a, libXext.a and others. HP/UX normally doesn't come with
2081those libraries installed. To get good performance, you need to
2082install them and rebuild Emacs.
2083
2084* Loading fonts is very slow.
2085
2086You might be getting scalable fonts instead of precomputed bitmaps.
2087Known scalable font directories are "Type1" and "Speedo". A font
2088directory contains scalable fonts if it contains the file
2089"fonts.scale".
2090
2091If this is so, re-order your X windows font path to put the scalable
2092font directories last. See the documentation of `xset' for details.
2093
2094With some X servers, it may be necessary to take the scalable font
2095directories out of your path entirely, at least for Emacs 19.26.
2096Changes in the future may make this unnecessary.
2097
2098* On AIX 3.2.4, releasing Ctrl/Act key has no effect, if Shift is down.
2099
2100Due to a feature of AIX, pressing or releasing the Ctrl/Act key is
2101ignored when the Shift, Alt or AltGr keys are held down. This can
2102lead to the keyboard being "control-locked"--ordinary letters are
2103treated as control characters.
2104
2105You can get out of this "control-locked" state by pressing and
2106releasing Ctrl/Act while not pressing or holding any other keys.
2107
2108* display-time causes kernel problems on ISC systems.
2109
2110Under Interactive Unix versions 3.0.1 and 4.0 (and probably other
2111versions), display-time causes the loss of large numbers of STREVENT
2112cells. Eventually the kernel's supply of these cells is exhausted.
2113This makes emacs and the whole system run slow, and can make other
2114processes die, in particular pcnfsd.
2115
2116Other emacs functions that communicate with remote processes may have
2117the same problem. Display-time seems to be far the worst.
2118
2119The only known fix: Don't run display-time.
2120
2121* On Solaris, C-x doesn't get through to Emacs when you use the console.
2122
2123This is a Solaris feature (at least on Intel x86 cpus). Type C-r
2124C-r C-t, to toggle whether C-x gets through to Emacs.
2125
2126* Error message `Symbol's value as variable is void: x', followed by
2127 segmentation fault and core dump.
2128
2129This has been tracked to a bug in tar! People report that tar erroneously
2130added a line like this at the beginning of files of Lisp code:
2131
2132 x FILENAME, N bytes, B tape blocks
2133
2134If your tar has this problem, install GNU tar--if you can manage to
2135untar it :-).
2136
2137* Link failure when using acc on a Sun.
2138
2139To use acc, you need additional options just before the libraries, such as
2140
2141 /usr/lang/SC2.0.1/values-Xt.o -L/usr/lang/SC2.0.1/cg87 -L/usr/lang/SC2.0.1
2142
2143and you need to add -lansi just before -lc.
2144
2145The precise file names depend on the compiler version, so we
2146cannot easily arrange to supply them.
2147
2148* Link failure on IBM AIX 1.3 ptf 0013.
2149
2150There is a real duplicate definition of the function `_slibc_free' in
2151the library /lib/libc_s.a (just do nm on it to verify). The
2152workaround/fix is:
2153
2154 cd /lib
2155 ar xv libc_s.a NLtmtime.o
2156 ar dv libc_s.a NLtmtime.o
2157
2158* Undefined symbols _dlopen, _dlsym and/or _dlclose on a Sun.
2159
2160If you see undefined symbols _dlopen, _dlsym, or _dlclose when linking
2161with -lX11, compile and link against the file mit/util/misc/dlsym.c in
2162the MIT X11R5 distribution. Alternatively, link temacs using shared
2163libraries with s/sunos4shr.h. (This doesn't work if you use the X
2164toolkit.)
2165
2166If you get the additional error that the linker could not find
2167lib_version.o, try extracting it from X11/usr/lib/X11/libvim.a in
2168X11R4, then use it in the link.
2169
2170* Error messages `Wrong number of arguments: #<subr where-is-internal>, 5'
2171
2172This typically results from having the powerkey library loaded.
2173Powerkey was designed for Emacs 19.22. It is obsolete now because
2174Emacs 19 now has this feature built in; and powerkey also calls
2175where-is-internal in an obsolete way.
2176
2177So the fix is to arrange not to load powerkey.
2178
2179* In Shell mode, you get a ^M at the end of every line.
2180
2181This happens to people who use tcsh, because it is trying to be too
2182smart. It sees that the Shell uses terminal type `unknown' and turns
2183on the flag to output ^M at the end of each line. You can fix the
2184problem by adding this to your .cshrc file:
2185
2186 if ($?EMACS) then
2187 if ($EMACS == "t") then
2188 unset edit
2189 stty -icrnl -onlcr -echo susp ^Z
2190 endif
2191 endif
2192
2193* An error message such as `X protocol error: BadMatch (invalid
2194parameter attributes) on protocol request 93'.
2195
2196This comes from having an invalid X resource, such as
2197 emacs*Cursor: black
2198(which is invalid because it specifies a color name for something
2199that isn't a color.)
2200
2201The fix is to correct your X resources.
2202
2203* Undefined symbols when linking on Sunos 4.1 using --with-x-toolkit.
2204
2205If you get the undefined symbols _atowc _wcslen, _iswprint, _iswspace,
2206_iswcntrl, _wcscpy, and _wcsncpy, then you need to add -lXwchar after
2207-lXaw in the command that links temacs.
2208
2209This problem seems to arise only when the international language
2210extensions to X11R5 are installed.
2211
2212* Typing C-c C-c in Shell mode kills your X server.
2213
2214This happens with Linux kernel 1.0 thru 1.04, approximately. The workaround is
2215to define SIGNALS_VIA_CHARACTERS in config.h and recompile Emacs.
2216Newer Linux kernel versions don't have this problem.
2217
2218* src/Makefile and lib-src/Makefile are truncated--most of the file missing.
2219
2220This can happen if configure uses GNU sed version 2.03. That version
2221had a bug. GNU sed version 2.05 works properly.
2222
2223* Slow startup on X11R6 with X windows.
2224
2225If Emacs takes two minutes to start up on X11R6, see if your X
2226resources specify any Adobe fonts. That causes the type-1 font
2227renderer to start up, even if the font you asked for is not a type-1
2228font.
2229
2230One way to avoid this problem is to eliminate the type-1 fonts from
2231your font path, like this:
2232
2233 xset -fp /usr/X11R6/lib/X11/fonts/Type1/
2234
2235* Pull-down menus appear in the wrong place, in the toolkit version of Emacs.
2236
2237An X resource of this form can cause the problem:
2238
2239 Emacs*geometry: 80x55+0+0
2240
2241This resource is supposed to apply, and does apply, to the menus
2242individually as well as to Emacs frames. If that is not what you
2243want, rewrite the resource.
2244
2245To check thoroughly for such resource specifications, use `xrdb
2246-query' to see what resources the X server records, and also look at
2247the user's ~/.Xdefaults and ~/.Xdefaults-* files.
2248
2249* --with-x-toolkit version crashes when used with shared libraries.
2250
2251On some systems, including Sunos 4 and DGUX 5.4.2 and perhaps others,
2252unexec doesn't work properly with the shared library for the X
2253toolkit. You might be able to work around this by using a nonshared
2254libXt.a library. The real fix is to upgrade the various versions of
2255unexec and/or ralloc. We think this has been fixed on Sunos 4
2256and Solaris in version 19.29.
2257
2258* `make install' fails on install-doc with `Error 141'.
2259
2260This happens on Ultrix 4.2 due to failure of a pipeline of tar
2261commands. We don't know why they fail, but the bug seems not to be in
2262Emacs. The workaround is to run the shell command in install-doc by
2263hand.
2264
2265* --with-x-toolkit option configures wrong on BSD/386.
2266
2267This problem is due to bugs in the shell in version 1.0 of BSD/386.
2268The workaround is to edit the configure file to use some other shell,
2269such as bash.
2270
2271* Subprocesses remain, hanging but not zombies, on Sunos 5.3.
2272
2273A bug in Sunos 5.3 causes Emacs subprocesses to remain after Emacs
2274exits. Sun patch # 101415-02 is part of the fix for this, but it only
2275applies to ptys, and doesn't fix the problem with subprocesses
2276communicating through pipes.
2277
2278* Mail is lost when sent to local aliases.
2279
2280Many emacs mail user agents (VM and rmail, for instance) use the
2281sendmail.el library. This library can arrange for mail to be
2282delivered by passing messages to the /usr/lib/sendmail (usually)
2283program . In doing so, it passes the '-t' flag to sendmail, which
2284means that the name of the recipient of the message is not on the
2285command line and, therefore, that sendmail must parse the message to
2286obtain the destination address.
2287
2288There is a bug in the SunOS4.1.1 and SunOS4.1.3 versions of sendmail.
2289In short, when given the -t flag, the SunOS sendmail won't recognize
2290non-local (i.e. NIS) aliases. It has been reported that the Solaris
22912.x versions of sendmail do not have this bug. For those using SunOS
22924.1, the best fix is to install sendmail V8 or IDA sendmail (which
2293have other advantages over the regular sendmail as well). At the time
2294of this writing, these official versions are available:
2295
2296 Sendmail V8 on ftp.cs.berkeley.edu in /ucb/sendmail:
2297 sendmail.8.6.9.base.tar.Z (the base system source & documentation)
2298 sendmail.8.6.9.cf.tar.Z (configuration files)
2299 sendmail.8.6.9.misc.tar.Z (miscellaneous support programs)
2300 sendmail.8.6.9.xdoc.tar.Z (extended documentation, with postscript)
2301
2302 IDA sendmail on vixen.cso.uiuc.edu in /pub:
2303 sendmail-5.67b+IDA-1.5.tar.gz
2304
2305* On AIX, you get this message when running Emacs:
2306
2307 Could not load program emacs
2308 Symbol smtcheckinit in csh is undefined
2309 Error was: Exec format error
2310
2311or this one:
2312
2313 Could not load program .emacs
2314 Symbol _system_con in csh is undefined
2315 Symbol _fp_trapsta in csh is undefined
2316 Error was: Exec format error
2317
2318These can happen when you try to run on AIX 3.2.5 a program that was
2319compiled with 3.2.4. The fix is to recompile.
2320
2321* On AIX, you get this compiler error message:
2322
2323 Processing include file ./XMenuInt.h
2324 1501-106: (S) Include file X11/Xlib.h not found.
2325
2326This means your system was installed with only the X11 runtime i.d
2327libraries. You have to find your sipo (bootable tape) and install
2328X11Dev... with smit.
2329
2330* You "lose characters" after typing Compose Character key.
2331
2332This is because the Compose Character key is defined as the keysym
2333Multi_key, and Emacs (seeing that) does the proper X11
2334character-composition processing. If you don't want your Compose key
2335to do that, you can redefine it with xmodmap.
2336
2337For example, here's one way to turn it into a Meta key:
2338
2339 xmodmap -e "keysym Multi_key = Meta_L"
2340
2341If all users at your site of a particular keyboard prefer Meta to
2342Compose, you can make the remapping happen automatically by adding the
2343xmodmap command to the xdm setup script for that display.
2344
2345* C-z just refreshes the screen instead of suspending Emacs.
2346
2347You are probably using a shell that doesn't support job control, even
2348though the system itself is capable of it. Either use a different shell,
2349or set the variable `cannot-suspend' to a non-nil value.
2350
2351* Watch out for .emacs files and EMACSLOADPATH environment vars
2352
2353These control the actions of Emacs.
2354~/.emacs is your Emacs init file.
2355EMACSLOADPATH overrides which directories the function
2356"load" will search.
2357
2358If you observe strange problems, check for these and get rid
2359of them, then try again.
2360
2361* After running emacs once, subsequent invocations crash.
2362
2363Some versions of SVR4 have a serious bug in the implementation of the
2364mmap () system call in the kernel; this causes emacs to run correctly
2365the first time, and then crash when run a second time.
2366
2367Contact your vendor and ask for the mmap bug fix; in the mean time,
2368you may be able to work around the problem by adding a line to your
2369operating system description file (whose name is reported by the
2370configure script) that reads:
2371#define SYSTEM_MALLOC
2372This makes Emacs use memory less efficiently, but seems to work around
2373the kernel bug.
2374
2375* Inability to send an Alt-modified key, when Emacs is communicating
2376directly with an X server.
2377
2378If you have tried to bind an Alt-modified key as a command, and it
2379does not work to type the command, the first thing you should check is
2380whether the key is getting through to Emacs. To do this, type C-h c
2381followed by the Alt-modified key. C-h c should say what kind of event
2382it read. If it says it read an Alt-modified key, then make sure you
2383have made the key binding correctly.
2384
2385If C-h c reports an event that doesn't have the Alt modifier, it may
2386be because your X server has no key for the Alt modifier. The X
2387server that comes from MIT does not set up the Alt modifier by
2388default.
2389
2390If your keyboard has keys named Alt, you can enable them as follows:
2391
2392 xmodmap -e 'add mod2 = Alt_L'
2393 xmodmap -e 'add mod2 = Alt_R'
2394
2395If the keyboard has just one key named Alt, then only one of those
2396commands is needed. The modifier `mod2' is a reasonable choice if you
2397are using an unmodified MIT version of X. Otherwise, choose any
2398modifier bit not otherwise used.
2399
2400If your keyboard does not have keys named Alt, you can use some other
2401keys. Use the keysym command in xmodmap to turn a function key (or
2402some other 'spare' key) into Alt_L or into Alt_R, and then use the
2403commands show above to make them modifier keys.
2404
2405Note that if you have Alt keys but no Meta keys, Emacs translates Alt
2406into Meta. This is because of the great importance of Meta in Emacs.
2407
2408* `Pid xxx killed due to text modification or page I/O error'
2409
2410On HP/UX, you can get that error when the Emacs executable is on an NFS
2411file system. HP/UX responds this way if it tries to swap in a page and
2412does not get a response from the server within a timeout whose default
2413value is just ten seconds.
2414
2415If this happens to you, extend the timeout period.
2416
2417* `expand-file-name' fails to work on any but the machine you dumped Emacs on.
2418
2419On Ultrix, if you use any of the functions which look up information
2420in the passwd database before dumping Emacs (say, by using
2421expand-file-name in site-init.el), then those functions will not work
2422in the dumped Emacs on any host but the one Emacs was dumped on.
2423
2424The solution? Don't use expand-file-name in site-init.el, or in
2425anything it loads. Yuck - some solution.
2426
2427I'm not sure why this happens; if you can find out exactly what is
2428going on, and perhaps find a fix or a workaround, please let us know.
2429Perhaps the YP functions cache some information, the cache is included
2430in the dumped Emacs, and is then inaccurate on any other host.
2431
2432* On some variants of SVR4, Emacs does not work at all with X.
2433
2434Try defining BROKEN_FIONREAD in your config.h file. If this solves
2435the problem, please send a bug report to tell us this is needed; be
2436sure to say exactly what type of machine and system you are using.
2437
2438* Linking says that the functions insque and remque are undefined.
2439
2440Change oldXMenu/Makefile by adding insque.o to the variable OBJS.
2441
2442* Emacs fails to understand most Internet host names, even though
2443the names work properly with other programs on the same system.
2444* Emacs won't work with X-windows if the value of DISPLAY is HOSTNAME:0.
2445* GNUs can't make contact with the specified host for nntp.
2446
2447This typically happens on Suns and other systems that use shared
2448libraries. The cause is that the site has installed a version of the
2449shared library which uses a name server--but has not installed a
2450similar version of the unshared library which Emacs uses.
2451
2452The result is that most programs, using the shared library, work with
2453the nameserver, but Emacs does not.
2454
2455The fix is to install an unshared library that corresponds to what you
2456installed in the shared library, and then relink Emacs.
2457
2458On SunOS 4.1, simply define HAVE_RES_INIT.
2459
2460If you have already installed the name resolver in the file libresolv.a,
2461then you need to compile Emacs to use that library. The easiest way to
2462do this is to add to config.h a definition of LIBS_SYSTEM, LIBS_MACHINE
2463or LIB_STANDARD which uses -lresolv. Watch out! If you redefine a macro
2464that is already in use in your configuration to supply some other libraries,
2465be careful not to lose the others.
2466
2467Thus, you could start by adding this to config.h:
2468
2469#define LIBS_SYSTEM -lresolv
2470
2471Then if this gives you an error for redefining a macro, and you see that
2472the s- file defines LIBS_SYSTEM as -lfoo -lbar, you could change config.h
2473again to say this:
2474
2475#define LIBS_SYSTEM -lresolv -lfoo -lbar
2476
2477* On a Sun running SunOS 4.1.1, you get this error message from GNU ld:
2478
2479 /lib/libc.a(_Q_sub.o): Undefined symbol __Q_get_rp_rd referenced from text segment
2480
2481The problem is in the Sun shared C library, not in GNU ld.
2482
2483The solution is to install Patch-ID# 100267-03 from Sun.
2484
2485* Self documentation messages are garbled.
2486
2487This means that the file `etc/DOC-...' doesn't properly correspond
2488with the Emacs executable. Redumping Emacs and then installing the
2489corresponding pair of files should fix the problem.
2490
2491* Trouble using ptys on AIX.
2492
2493People often install the pty devices on AIX incorrectly.
2494Use `smit pty' to reinstall them properly.
2495
2496* Shell mode on HP/UX gives the message, "`tty`: Ambiguous".
2497
2498christos@theory.tn.cornell.edu says:
2499
2500The problem is that in your .cshrc you have something that tries to
2501execute `tty`. If you are not running the shell on a real tty then
2502tty will print "not a tty". Csh expects one word in some places,
2503but tty is giving it back 3.
2504
2505The solution is to add a pair of quotes around `tty` to make it a single
2506word:
2507
2508if (`tty` == "/dev/console")
2509
2510should be changed to:
2511
2512if ("`tty`" == "/dev/console")
2513
2514Even better, move things that set up terminal sections out of .cshrc
2515and into .login.
2516
2517* Using X Windows, control-shift-leftbutton makes Emacs hang.
2518
2519Use the shell command `xset bc' to make the old X Menu package work.
2520
2521* Emacs running under X Windows does not handle mouse clicks.
2522* `emacs -geometry 80x20' finds a file named `80x20'.
2523
2524One cause of such problems is having (setq term-file-prefix nil) in
2525your .emacs file. Another cause is a bad value of EMACSLOADPATH in
2526the environment.
2527
2528* Emacs gets error message from linker on Sun.
2529
2530If the error message says that a symbol such as `f68881_used' or
2531`ffpa_used' or `start_float' is undefined, this probably indicates
2532that you have compiled some libraries, such as the X libraries,
2533with a floating point option other than the default.
2534
2535It's not terribly hard to make this work with small changes in
2536crt0.c together with linking with Fcrt1.o, Wcrt1.o or Mcrt1.o.
2537However, the easiest approach is to build Xlib with the default
2538floating point option: -fsoft.
2539
2540* Emacs fails to get default settings from X Windows server.
2541
2542The X library in X11R4 has a bug; it interchanges the 2nd and 3rd
2543arguments to XGetDefaults. Define the macro XBACKWARDS in config.h to
2544tell Emacs to compensate for this.
2545
2546I don't believe there is any way Emacs can determine for itself
2547whether this problem is present on a given system.
2548
2549* Keyboard input gets confused after a beep when using a DECserver
2550 as a concentrator.
2551
2552This problem seems to be a matter of configuring the DECserver to use
25537 bit characters rather than 8 bit characters.
2554
2555* M-x shell persistently reports "Process shell exited abnormally with code 1".
2556
2557This happened on Suns as a result of what is said to be a bug in Sunos
2558version 4.0.x. The only fix was to reboot the machine.
2559
2560* Programs running under terminal emulator do not recognize `emacs'
2561 terminal type.
2562
2563The cause of this is a shell startup file that sets the TERMCAP
2564environment variable. The terminal emulator uses that variable to
2565provide the information on the special terminal type that Emacs
2566emulates.
2567
2568Rewrite your shell startup file so that it does not change TERMCAP
2569in such a case. You could use the following conditional which sets
2570it only if it is undefined.
2571
2572 if ( ! ${?TERMCAP} ) setenv TERMCAP ~/my-termcap-file
2573
2574Or you could set TERMCAP only when you set TERM--which should not
2575happen in a non-login shell.
2576
2577* X Windows doesn't work if DISPLAY uses a hostname.
2578
2579People have reported kernel bugs in certain systems that cause Emacs
2580not to work with X Windows if DISPLAY is set using a host name. But
2581the problem does not occur if DISPLAY is set to `unix:0.0'. I think
2582the bug has to do with SIGIO or FIONREAD.
2583
2584You may be able to compensate for the bug by doing (set-input-mode nil nil).
2585However, that has the disadvantage of turning off interrupts, so that
2586you are unable to quit out of a Lisp program by typing C-g.
2587
2588The easy way to do this is to put
2589
2590 (setq x-sigio-bug t)
2591
2592in your site-init.el file.
2593
2594* Problem with remote X server on Suns.
2595
2596On a Sun, running Emacs on one machine with the X server on another
2597may not work if you have used the unshared system libraries. This
2598is because the unshared libraries fail to use YP for host name lookup.
2599As a result, the host name you specify may not be recognized.
2600
2601* Shell mode ignores interrupts on Apollo Domain
2602
2603You may find that M-x shell prints the following message:
2604
2605 Warning: no access to tty; thus no job control in this shell...
2606
2607This can happen if there are not enough ptys on your system.
2608Here is how to make more of them.
2609
2610 % cd /dev
2611 % ls pty*
2612 # shows how many pty's you have. I had 8, named pty0 to pty7)
2613 % /etc/crpty 8
2614 # creates eight new pty's
2615
2616* Fatal signal in the command temacs -l loadup inc dump
2617
2618This command is the final stage of building Emacs. It is run by the
2619Makefile in the src subdirectory, or by build.com on VMS.
2620
2621It has been known to get fatal errors due to insufficient swapping
2622space available on the machine.
2623
2624On 68000's, it has also happened because of bugs in the
2625subroutine `alloca'. Verify that `alloca' works right, even
2626for large blocks (many pages).
2627
2628* test-distrib says that the distribution has been clobbered
2629* or, temacs prints "Command key out of range 0-127"
2630* or, temacs runs and dumps emacs, but emacs totally fails to work.
2631* or, temacs gets errors dumping emacs
2632
2633This can be because the .elc files have been garbled. Do not be
2634fooled by the fact that most of a .elc file is text: these are
2635binary files and can contain all 256 byte values.
2636
2637In particular `shar' cannot be used for transmitting GNU Emacs.
2638It typically truncates "lines". What appear to be "lines" in
2639a binary file can of course be of any length. Even once `shar'
2640itself is made to work correctly, `sh' discards null characters
2641when unpacking the shell archive.
2642
2643I have also seen character \177 changed into \377. I do not know
2644what transfer means caused this problem. Various network
2645file transfer programs are suspected of clobbering the high bit.
2646
2647If you have a copy of Emacs that has been damaged in its
2648nonprinting characters, you can fix them:
2649
2650 1) Record the names of all the .elc files.
2651 2) Delete all the .elc files.
2652 3) Recompile alloc.c with a value of PURESIZE twice as large.
2653 (See puresize.h.) You might as well save the old alloc.o.
2654 4) Remake emacs. It should work now.
2655 5) Running emacs, do Meta-x byte-compile-file repeatedly
2656 to recreate all the .elc files that used to exist.
2657 You may need to increase the value of the variable
2658 max-lisp-eval-depth to succeed in running the compiler interpreted
2659 on certain .el files. 400 was sufficient as of last report.
2660 6) Reinstall the old alloc.o (undoing changes to alloc.c if any)
2661 and remake temacs.
2662 7) Remake emacs. It should work now, with valid .elc files.
2663
2664* temacs prints "Pure Lisp storage exhausted"
2665
2666This means that the Lisp code loaded from the .elc and .el
2667files during temacs -l loadup inc dump took up more
2668space than was allocated.
2669
2670This could be caused by
2671 1) adding code to the preloaded Lisp files
2672 2) adding more preloaded files in loadup.el
2673 3) having a site-init.el or site-load.el which loads files.
2674 Note that ANY site-init.el or site-load.el is nonstandard;
2675 if you have received Emacs from some other site
2676 and it contains a site-init.el or site-load.el file, consider
2677 deleting that file.
2678 4) getting the wrong .el or .elc files
2679 (not from the directory you expected).
2680 5) deleting some .elc files that are supposed to exist.
2681 This would cause the source files (.el files) to be
2682 loaded instead. They take up more room, so you lose.
2683 6) a bug in the Emacs distribution which underestimates
2684 the space required.
2685
2686If the need for more space is legitimate, change the definition
2687of PURESIZE in puresize.h.
2688
2689But in some of the cases listed above, this problem is a consequence
2690of something else that is wrong. Be sure to check and fix the real
2691problem.
2692
2693* Changes made to .el files do not take effect.
2694
2695You may have forgotten to recompile them into .elc files.
2696Then the old .elc files will be loaded, and your changes
2697will not be seen. To fix this, do M-x byte-recompile-directory
2698and specify the directory that contains the Lisp files.
2699
2700Emacs should print a warning when loading a .elc file which is older
2701than the corresponding .el file.
2702
2703* The dumped Emacs crashes when run, trying to write pure data.
2704
2705Two causes have been seen for such problems.
2706
27071) On a system where getpagesize is not a system call, it is defined
2708as a macro. If the definition (in both unexec.c and malloc.c) is wrong,
2709it can cause problems like this. You might be able to find the correct
2710value in the man page for a.out (5).
2711
27122) Some systems allocate variables declared static among the
2713initialized variables. Emacs makes all initialized variables in most
2714of its files pure after dumping, but the variables declared static and
2715not initialized are not supposed to be pure. On these systems you
2716may need to add "#define static" to the m- or the s- file.
2717
2718* Compilation errors on VMS.
2719
2720You will get warnings when compiling on VMS because there are
2721variable names longer than 32 (or whatever it is) characters.
2722This is not an error. Ignore it.
2723
2724VAX C does not support #if defined(foo). Uses of this construct
2725were removed, but some may have crept back in. They must be rewritten.
2726
2727There is a bug in the C compiler which fails to sign extend characters
2728in conditional expressions. The bug is:
2729 char c = -1, d = 1;
2730 int i;
2731
2732 i = d ? c : d;
2733The result is i == 255; the fix is to typecast the char in the
2734conditional expression as an (int). Known occurrences of such
2735constructs in Emacs have been fixed.
2736
2737* rmail gets error getting new mail
2738
2739rmail gets new mail from /usr/spool/mail/$USER using a program
2740called `movemail'. This program interlocks with /bin/mail using
2741the protocol defined by /bin/mail.
2742
2743There are two different protocols in general use. One of them uses
2744the `flock' system call. The other involves creating a lock file;
2745`movemail' must be able to write in /usr/spool/mail in order to do
2746this. You control which one is used by defining, or not defining,
2747the macro MAIL_USE_FLOCK in config.h or the m- or s- file it includes.
2748IF YOU DON'T USE THE FORM OF INTERLOCKING THAT IS NORMAL ON YOUR
2749SYSTEM, YOU CAN LOSE MAIL!
2750
2751If your system uses the lock file protocol, and fascist restrictions
2752prevent ordinary users from writing the lock files in /usr/spool/mail,
2753you may need to make `movemail' setgid to a suitable group such as
2754`mail'. You can use these commands (as root):
2755
2756 chgrp mail movemail
2757 chmod 2755 movemail
2758
2759If your system uses the lock file protocol, and fascist restrictions
2760prevent ordinary users from writing the lock files in /usr/spool/mail,
2761you may need to make `movemail' setgid to a suitable group such as
2762`mail'. To do this, use the following commands (as root) after doing the
2763make install.
2764
2765 chgrp mail movemail
2766 chmod 2755 movemail
2767
2768Installation normally copies movemail from the build directory to an
2769installation directory which is usually under /usr/local/lib. The
2770installed copy of movemail is usually in the directory
2771/usr/local/lib/emacs/VERSION/TARGET. You must change the group and
2772mode of the installed copy; changing the group and mode of the build
2773directory copy is ineffective.
2774
2775* Emacs spontaneously displays "I-search: " at the bottom of the screen.
2776
2777This means that Control-S/Control-Q (XON/XOFF) "flow control" is being
2778used. C-s/C-q flow control is bad for Emacs editors because it takes
2779away C-s and C-q as user commands. Since editors do not output long
2780streams of text without user commands, there is no need for a
2781user-issuable "stop output" command in an editor; therefore, a
2782properly designed flow control mechanism would transmit all possible
2783input characters without interference. Designing such a mechanism is
2784easy, for a person with at least half a brain.
2785
2786There are three possible reasons why flow control could be taking place:
2787
2788 1) Terminal has not been told to disable flow control
2789 2) Insufficient padding for the terminal in use
2790 3) Some sort of terminal concentrator or line switch is responsible
2791
2792First of all, many terminals have a set-up mode which controls whether
2793they generate XON/XOFF flow control characters. This must be set to
2794"no XON/XOFF" in order for Emacs to work. Sometimes there is an
2795escape sequence that the computer can send to turn flow control off
2796and on. If so, perhaps the termcap `ti' string should turn flow
2797control off, and the `te' string should turn it on.
2798
2799Once the terminal has been told "no flow control", you may find it
2800needs more padding. The amount of padding Emacs sends is controlled
2801by the termcap entry for the terminal in use, and by the output baud
2802rate as known by the kernel. The shell command `stty' will print
2803your output baud rate; `stty' with suitable arguments will set it if
2804it is wrong. Setting to a higher speed causes increased padding. If
2805the results are wrong for the correct speed, there is probably a
2806problem in the termcap entry. You must speak to a local Unix wizard
2807to fix this. Perhaps you are just using the wrong terminal type.
2808
2809For terminals that lack a "no flow control" mode, sometimes just
2810giving lots of padding will prevent actual generation of flow control
2811codes. You might as well try it.
2812
2813If you are really unlucky, your terminal is connected to the computer
2814through a concentrator which sends XON/XOFF flow control to the
2815computer, or it insists on sending flow control itself no matter how
2816much padding you give it. Unless you can figure out how to turn flow
2817control off on this concentrator (again, refer to your local wizard),
2818you are screwed! You should have the terminal or concentrator
2819replaced with a properly designed one. In the mean time, some drastic
2820measures can make Emacs semi-work.
2821
2822You can make Emacs ignore C-s and C-q and let the operating system
2823handle them. To do this on a per-session basis, just type M-x
2824enable-flow-control RET. You will see a message that C-\ and C-^ are
2825now translated to C-s and C-q. (Use the same command M-x
2826enable-flow-control to turn *off* this special mode. It toggles flow
2827control handling.)
2828
2829If C-\ and C-^ are inconvenient for you (for example, if one of them
2830is the escape character of your terminal concentrator), you can choose
2831other characters by setting the variables flow-control-c-s-replacement
2832and flow-control-c-q-replacement. But choose carefully, since all
2833other control characters are already used by emacs.
2834
2835IMPORTANT: if you type C-s by accident while flow control is enabled,
2836Emacs output will freeze, and you will have to remember to type C-q in
2837order to continue.
2838
2839If you work in an environment where a majority of terminals of a
2840certain type are flow control hobbled, you can use the function
2841`enable-flow-control-on' to turn on this flow control avoidance scheme
2842automatically. Here is an example:
2843
2844(enable-flow-control-on "vt200" "vt300" "vt101" "vt131")
2845
2846If this isn't quite correct (e.g. you have a mixture of flow-control hobbled
2847and good vt200 terminals), you can still run enable-flow-control
2848manually.
2849
2850I have no intention of ever redesigning the Emacs command set for the
2851assumption that terminals use C-s/C-q flow control. XON/XOFF flow
2852control technique is a bad design, and terminals that need it are bad
2853merchandise and should not be purchased. Now that X is becoming
2854widespread, XON/XOFF seems to be on the way out. If you can get some
2855use out of GNU Emacs on inferior terminals, more power to you, but I
2856will not make Emacs worse for properly designed systems for the sake
2857of inferior systems.
2858
2859* Control-S and Control-Q commands are ignored completely.
2860
2861For some reason, your system is using brain-damaged C-s/C-q flow
2862control despite Emacs's attempts to turn it off. Perhaps your
2863terminal is connected to the computer through a concentrator
2864that wants to use flow control.
2865
2866You should first try to tell the concentrator not to use flow control.
2867If you succeed in this, try making the terminal work without
2868flow control, as described in the preceding section.
2869
2870If that line of approach is not successful, map some other characters
2871into C-s and C-q using keyboard-translate-table. The example above
2872shows how to do this with C-^ and C-\.
2873
2874* Control-S and Control-Q commands are ignored completely on a net connection.
2875
2876Some versions of rlogin (and possibly telnet) do not pass flow
2877control characters to the remote system to which they connect.
2878On such systems, emacs on the remote system cannot disable flow
2879control on the local system.
2880
2881One way to cure this is to disable flow control on the local host
2882(the one running rlogin, not the one running rlogind) using the
2883stty command, before starting the rlogin process. On many systems,
2884"stty start u stop u" will do this.
2885
2886Some versions of tcsh will prevent even this from working. One way
2887around this is to start another shell before starting rlogin, and
2888issue the stty command to disable flow control from that shell.
2889
2890If none of these methods work, the best solution is to type
2891M-x enable-flow-control at the beginning of your emacs session, or
2892if you expect the problem to continue, add a line such as the
2893following to your .emacs (on the host running rlogind):
2894
2895(enable-flow-control-on "vt200" "vt300" "vt101" "vt131")
2896
2897See the entry about spontaneous display of I-search (above) for more
2898info.
2899
2900* Screen is updated wrong, but only on one kind of terminal.
2901
2902This could mean that the termcap entry you are using for that
2903terminal is wrong, or it could mean that Emacs has a bug handing
2904the combination of features specified for that terminal.
2905
2906The first step in tracking this down is to record what characters
2907Emacs is sending to the terminal. Execute the Lisp expression
2908(open-termscript "./emacs-script") to make Emacs write all
2909terminal output into the file ~/emacs-script as well; then do
2910what makes the screen update wrong, and look at the file
2911and decode the characters using the manual for the terminal.
2912There are several possibilities:
2913
29141) The characters sent are correct, according to the terminal manual.
2915
2916In this case, there is no obvious bug in Emacs, and most likely you
2917need more padding, or possibly the terminal manual is wrong.
2918
29192) The characters sent are incorrect, due to an obscure aspect
2920 of the terminal behavior not described in an obvious way
2921 by termcap.
2922
2923This case is hard. It will be necessary to think of a way for
2924Emacs to distinguish between terminals with this kind of behavior
2925and other terminals that behave subtly differently but are
2926classified the same by termcap; or else find an algorithm for
2927Emacs to use that avoids the difference. Such changes must be
2928tested on many kinds of terminals.
2929
29303) The termcap entry is wrong.
2931
2932See the file etc/TERMS for information on changes
2933that are known to be needed in commonly used termcap entries
2934for certain terminals.
2935
29364) The characters sent are incorrect, and clearly cannot be
2937 right for any terminal with the termcap entry you were using.
2938
2939This is unambiguously an Emacs bug, and can probably be fixed
2940in termcap.c, tparam.c, term.c, scroll.c, cm.c or dispnew.c.
2941
2942* Output from Control-V is slow.
2943
2944On many bit-map terminals, scrolling operations are fairly slow.
2945Often the termcap entry for the type of terminal in use fails
2946to inform Emacs of this. The two lines at the bottom of the screen
2947before a Control-V command are supposed to appear at the top after
2948the Control-V command. If Emacs thinks scrolling the lines is fast,
2949it will scroll them to the top of the screen.
2950
2951If scrolling is slow but Emacs thinks it is fast, the usual reason is
2952that the termcap entry for the terminal you are using does not
2953specify any padding time for the `al' and `dl' strings. Emacs
2954concludes that these operations take only as much time as it takes to
2955send the commands at whatever line speed you are using. You must
2956fix the termcap entry to specify, for the `al' and `dl', as much
2957time as the operations really take.
2958
2959Currently Emacs thinks in terms of serial lines which send characters
2960at a fixed rate, so that any operation which takes time for the
2961terminal to execute must also be padded. With bit-map terminals
2962operated across networks, often the network provides some sort of
2963flow control so that padding is never needed no matter how slow
2964an operation is. You must still specify a padding time if you want
2965Emacs to realize that the operation takes a long time. This will
2966cause padding characters to be sent unnecessarily, but they do
2967not really cost much. They will be transmitted while the scrolling
2968is happening and then discarded quickly by the terminal.
2969
2970Most bit-map terminals provide commands for inserting or deleting
2971multiple lines at once. Define the `AL' and `DL' strings in the
2972termcap entry to say how to do these things, and you will have
2973fast output without wasted padding characters. These strings should
2974each contain a single %-spec saying how to send the number of lines
2975to be scrolled. These %-specs are like those in the termcap
2976`cm' string.
2977
2978You should also define the `IC' and `DC' strings if your terminal
2979has a command to insert or delete multiple characters. These
2980take the number of positions to insert or delete as an argument.
2981
2982A `cs' string to set the scrolling region will reduce the amount
2983of motion you see on the screen when part of the screen is scrolled.
2984
2985* Your Delete key sends a Backspace to the terminal, using an AIXterm.
2986
2987The solution is to include in your .Xdefaults the lines:
2988
2989 *aixterm.Translations: #override <Key>BackSpace: string(0x7f)
2990 aixterm*ttyModes: erase ^?
2991
2992This makes your Backspace key send DEL (ASCII 127).
2993
2994* You type Control-H (Backspace) expecting to delete characters.
2995
2996Put `stty dec' in your .login file and your problems will disappear
2997after a day or two.
2998
2999The choice of Backspace for erasure was based on confusion, caused by
3000the fact that backspacing causes erasure (later, when you type another
3001character) on most display terminals. But it is a mistake. Deletion
3002of text is not the same thing as backspacing followed by failure to
3003overprint. I do not wish to propagate this confusion by conforming
3004to it.
3005
3006For this reason, I believe `stty dec' is the right mode to use,
3007and I have designed Emacs to go with that. If there were a thousand
3008other control characters, I would define Control-h to delete as well;
3009but there are not very many other control characters, and I think
3010that providing the most mnemonic possible Help character is more
3011important than adapting to people who don't use `stty dec'.
3012
3013If you are obstinate about confusing buggy overprinting with deletion,
3014you can redefine Backspace in your .emacs file:
3015 (global-set-key "\b" 'delete-backward-char)
3016You can probably access help-command via f1.
3017
3018* Editing files through RFS gives spurious "file has changed" warnings.
3019It is possible that a change in Emacs 18.37 gets around this problem,
3020but in case not, here is a description of how to fix the RFS bug that
3021causes it.
3022
3023 There was a serious pair of bugs in the handling of the fsync() system
3024 call in the RFS server.
3025
3026 The first is that the fsync() call is handled as another name for the
3027 close() system call (!!). It appears that fsync() is not used by very
3028 many programs; Emacs version 18 does an fsync() before closing files
3029 to make sure that the bits are on the disk.
3030
3031 This is fixed by the enclosed patch to the RFS server.
3032
3033 The second, more serious problem, is that fsync() is treated as a
3034 non-blocking system call (i.e., it's implemented as a message that
3035 gets sent to the remote system without waiting for a reply). Fsync is
3036 a useful tool for building atomic file transactions. Implementing it
3037 as a non-blocking RPC call (when the local call blocks until the sync
3038 is done) is a bad idea; unfortunately, changing it will break the RFS
3039 protocol. No fix was supplied for this problem.
3040
3041 (as always, your line numbers may vary)
3042
3043 % rcsdiff -c -r1.2 serversyscall.c
3044 RCS file: RCS/serversyscall.c,v
3045 retrieving revision 1.2
3046 diff -c -r1.2 serversyscall.c
3047 *** /tmp/,RCSt1003677 Wed Jan 28 15:15:02 1987
3048 --- serversyscall.c Wed Jan 28 15:14:48 1987
3049 ***************
3050 *** 163,169 ****
3051 /*
3052 * No return sent for close or fsync!
3053 */
3054 ! if (syscall == RSYS_close || syscall == RSYS_fsync)
3055 proc->p_returnval = deallocate_fd(proc, msg->m_args[0]);
3056 else
3057 {
3058 --- 166,172 ----
3059 /*
3060 * No return sent for close or fsync!
3061 */
3062 ! if (syscall == RSYS_close)
3063 proc->p_returnval = deallocate_fd(proc, msg->m_args[0]);
3064 else
3065 {
3066
3067* Vax C compiler bugs affecting Emacs.
3068
3069You may get one of these problems compiling Emacs:
3070
3071 foo.c line nnn: compiler error: no table entry for op STASG
3072 foo.c: fatal error in /lib/ccom
3073
3074These are due to bugs in the C compiler; the code is valid C.
3075Unfortunately, the bugs are unpredictable: the same construct
3076may compile properly or trigger one of these bugs, depending
3077on what else is in the source file being compiled. Even changes
3078in header files that should not affect the file being compiled
3079can affect whether the bug happens. In addition, sometimes files
3080that compile correctly on one machine get this bug on another machine.
3081
3082As a result, it is hard for me to make sure this bug will not affect
3083you. I have attempted to find and alter these constructs, but more
3084can always appear. However, I can tell you how to deal with it if it
3085should happen. The bug comes from having an indexed reference to an
3086array of Lisp_Objects, as an argument in a function call:
3087 Lisp_Object *args;
3088 ...
3089 ... foo (5, args[i], ...)...
3090putting the argument into a temporary variable first, as in
3091 Lisp_Object *args;
3092 Lisp_Object tem;
3093 ...
3094 tem = args[i];
3095 ... foo (r, tem, ...)...
3096causes the problem to go away.
3097The `contents' field of a Lisp vector is an array of Lisp_Objects,
3098so you may see the problem happening with indexed references to that.
3099
3100* 68000 C compiler problems
3101
3102Various 68000 compilers have different problems.
3103These are some that have been observed.
3104
3105** Using value of assignment expression on union type loses.
3106This means that x = y = z; or foo (x = z); does not work
3107if x is of type Lisp_Object.
3108
3109** "cannot reclaim" error.
3110
3111This means that an expression is too complicated. You get the correct
3112line number in the error message. The code must be rewritten with
3113simpler expressions.
3114
3115** XCONS, XSTRING, etc macros produce incorrect code.
3116
3117If temacs fails to run at all, this may be the cause.
3118Compile this test program and look at the assembler code:
3119
3120struct foo { char x; unsigned int y : 24; };
3121
3122lose (arg)
3123 struct foo arg;
3124{
3125 test ((int *) arg.y);
3126}
3127
3128If the code is incorrect, your compiler has this problem.
3129In the XCONS, etc., macros in lisp.h you must replace (a).u.val with
3130((a).u.val + coercedummy) where coercedummy is declared as int.
3131
3132This problem will not happen if the m-...h file for your type
3133of machine defines NO_UNION_TYPE. That is the recommended setting now.
3134
3135* C compilers lose on returning unions
3136
3137I hear that some C compilers cannot handle returning a union type.
3138Most of the functions in GNU Emacs return type Lisp_Object, which is
3139defined as a union on some rare architectures.
3140
3141This problem will not happen if the m-...h file for your type
3142of machine defines NO_UNION_TYPE.
3143