Build Fix -- compatibility issue with newer autoconf
[sxemacs] / info / sxemacs-faq.texi
1 \input texinfo.tex      @c -*- mode: texinfo; coding: utf-8 -*-
2 @c %**start of header
3 @documentencoding UTF-8
4 @setfilename sxemacs-faq.info
5 @settitle Frequently asked questions about SXEmacs
6 @setchapternewpage off
7 @c %**end of header
8 @finalout
9 @titlepage
10 @title SXEmacs FAQ
11 @subtitle Frequently Asked Questions about SXEmacs @inlineraw{tex,\hfill Edition 22.1.15}
12 @sp 1
13 @author Sebastian Freundt <hroptatyr@@sxemacs.org
14 @author Tony Rossini <rossini@@u.washington.edu>
15 @author Ben Wing <ben@@xemacs.org>
16 @author Chuck Thompson <cthomp@@xemacs.org>
17 @author Steve Baur <steve@@xemacs.org>
18 @author Andreas Kaempf <andreas@@sccon.com>
19 @author Christian Nybø <chr@@mediascience.no>
20 @author Sandra Wambold <wambold@@xemacs.org>
21 @page
22 @end titlepage
23
24 @ifinfo
25 @dircategory SXEmacs Editor
26 @direntry
27 * FAQ: (sxemacs-faq).            SXEmacs FAQ.
28 @end direntry
29 @end ifinfo
30
31 @node Top, Introduction, (dir), (dir)
32 @top SXEmacs FAQ
33
34 This is the guide to the SXEmacs Frequently Asked Questions list---a
35 compendium of questions and answers pertaining to one of the finest
36 programs ever written.  SXEmacs is much more than just a Text Editor.
37
38 SXEmacs Note:  Currently, this is the FAQ from XEmacs.  It will be
39 overhauled and updated in the very near future.  If you are reading this
40 note, @emph{please} remind us to do so.
41
42 This FAQ is freely redistributable.  This FAQ is distributed in the hope
43 that it will be useful, but WITHOUT ANY WARRANTY; without even the
44 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
45
46 In the near future this assortment of questions will be automatically
47 generated from a database.  We are currently evaluating the design
48 specifications, a general classification and technical necessities.
49
50 @c If you have a Web browser, the official hypertext version is at
51 @c @iftex
52 @c @*
53 @c @end iftex
54 @c @uref{http://www.xemacs.org/FAQ/xemacs-faq.html}
55
56 @c @ifset CANONICAL
57 @c @html
58 @c This document is available in several different formats:
59 @c @itemize @bullet
60 @c @item
61 @c @uref{xemacs-faq.txt, As a single ASCII file}, produced by
62 @c @code{makeinfo --no-headers}
63 @c @item
64 @c @uref{xemacs-faq.dvi, As a .dvi file}, as used with
65 @c @uref{http://www.tug.org, TeX.}
66 @c @item
67 @c As a PostScript file @uref{xemacs-faq-a4.ps, in A4 format},
68 @c as well as in @uref{xemacs-faq-letter.ps, letter format}
69 @c @item
70 @c In html format, @uref{xemacs-faq_1.html, split by chapter}, or in
71 @c @uref{xemacs-faq.html, one monolithic} document.
72 @c @item
73 @c The canonical version of the FAQ is the texinfo document
74 @c @uref{xemacs-faq.texi, man/xemacs-faq.texi}.
75 @c @item
76 @c If you do not have makeinfo installed, you may @uref{xemacs-faq.info,
77 @c download the faq} in info format, and install it in @file{<XEmacs
78 @c library directory>/info/}. For example in
79 @c @file{/usr/local/lib/xemacs-21.4/info/}.
80 @c
81 @c @end itemize
82 @c
83 @c @end html
84 @c
85 @c @end ifset
86 @c
87 @c end ifset points to CANONICAL
88
89 @menu
90 * Introduction::        Introduction, Policy, Credits.
91 * Installation::        Installation and Trouble Shooting.
92 * Customisation::       Customisation and Options.
93 * Subsystems::          Major Subsystems.
94 * Miscellaneous::       The Miscellaneous Stuff.
95 * MS Windows::          SXEmacs on Microsoft Windows.
96 * Current Events::      What the Future Holds.
97
98 @detailmenu
99
100  --- The Detailed Node Listing ---
101
102 Introduction, Policy, Credits
103
104 * Q1.0.1::      What is SXEmacs?
105 * Q1.0.2::      What is the current version of SXEmacs?
106 * Q1.0.3::      Where can I find it?
107 * Q1.0.4::      Why another version of Emacs?
108 * Q1.0.5::      Why haven't XEmacs/SXEmacs and GNU Emacs merged?
109 * Q1.0.6::      Where can I get help?
110 * Q1.0.7::      Where are the mailing lists archived?
111 * Q1.0.8::      How do you pronounce SXEmacs?
112 * Q1.0.9::      What does SXEmacs look like?
113 * Q1.0.10::     Is there a port of SXEmacs to Microsoft ('95 or NT)?
114 * Q1.0.11::     Is there a port of SXEmacs to the Macintosh?
115 * Q1.0.12::     Is there a port of SXEmacs to NextStep?
116 * Q1.0.13::     Is there a port of SXEmacs to OS/2?
117 * Q1.0.14::     Where can I get a printed copy of the SXEmacs users manual?
118
119 Policies:
120 * Q1.1.1::      What is the FAQ editorial policy?
121 * Q1.1.2::      How do I become a beta tester?
122 * Q1.1.3::      How do I contribute to SXEmacs itself?
123
124 Credits:
125 * Q1.2.1::      Who wrote XEmacs? Who wrote SXEmacs?
126 * Q1.2.2::      Who contributed to this version of the FAQ?
127 * Q1.2.3::      Who contributed to the FAQ in the past?
128
129 Internationalisation:
130 * Q1.3.1::      What is the status of internationalisation support aka MULE (including Asian language support?
131 * Q1.3.2::      How can I help with internationalisation?
132 * Q1.3.3::      How do I type non-ASCII characters?
133 * Q1.3.4::      Can SXEmacs messages come out in a different language?
134 * Q1.3.5::      Please explain the various input methods in MULE/SXEmacs
135 * Q1.3.6::      How do I portably code for MULE/XEmacs/SXEmacs?
136 * Q1.3.7::      How about Cyrillic Modes?
137 * Q1.3.8::      Does SXEmacs support Unicode?
138 * Q1.3.9::      How does SXEmacs display Unicode?
139
140 Getting Started:
141 * Q1.4.1::      What is an @file{init.el} or @file{.emacs} and is there a sample one?
142 * Q1.4.2::      Can I use the same @file{init.el}/@file{.emacs} with other Emacsen?
143 * Q1.4.3::      Any good SXEmacs tutorials around?
144 * Q1.4.4::      May I see an example of a useful SXEmacs Lisp function?
145 * Q1.4.5::      And how do I bind it to a key?
146 * Q1.4.6::      What's the difference between a macro and a function?
147
148 Installation and Trouble Shooting
149
150 * Q2.0.1::      Running SXEmacs without installing.
151 * Q2.0.2::      SXEmacs is too big.
152 * Q2.0.3::      Compiling SXEmacs with Netaudio. @c what?!
153 * Q2.0.4::      Problems with Linux and ncurses.
154 * Q2.0.5::      Do I need X11 to run SXEmacs?
155 * Q2.0.6::      I'm having strange crashes.  What do I do?
156 * Q2.0.7::      Libraries in non-standard locations.
157 * Q2.0.8::      can't resolve symbol _h_errno
158 * Q2.0.9::      Where do I find external libraries?
159 * Q2.0.10::     After I run configure I find a coredump, is something wrong?
160 * Q2.0.11::     SXEmacs can't resolve host names.
161 * Q2.0.12::     Why can't I strip SXEmacs?
162 * Q2.0.13::     I don't need no steenkin' packages.  Do I?
163 * Q2.0.14::     How do I figure out which packages to install?
164 * Q2.0.15::     EFS fails with "500 AUTH not understood" (NEW)
165
166 Trouble Shooting:
167 * Q2.1.1::      SXEmacs just crashed on me!
168 * Q2.1.2::      Cryptic Minibuffer messages.
169 * Q2.1.3::      Translation Table Syntax messages at Startup.
170 * Q2.1.4::      Startup warnings about deducing proper fonts?
171 * Q2.1.5::      SXEmacs cannot connect to my X Terminal.
172 * Q2.1.6::      SXEmacs just locked up my Linux X server.
173 * Q2.1.7::      HP Alt key as Meta.
174 * Q2.1.8::      got (wrong-type-argument color-instance-p nil)!
175 * Q2.1.9::      SXEmacs causes my OpenWindows 3.0 server to crash.
176 * Q2.1.10::     Warnings from incorrect key modifiers.
177 * Q2.1.11::     Can't instantiate image error... in toolbar
178 * Q2.1.12::     Regular Expression Problems on DEC OSF1.
179 * Q2.1.13::     HP/UX 10.10 and @code{create_process} failure
180 * Q2.1.14::     @kbd{C-g} doesn't work for me.  Is it broken?
181 * Q2.1.15::     How to debug a SXEmacs problem with a debugger.
182 * Q2.1.16::     SXEmacs crashes in @code{strcat} on HP/UX 10.
183 * Q2.1.17::     @samp{Marker does not point anywhere}.
184 * Q2.1.18::     SXEmacs is outputting lots of X errors.
185 * Q2.1.19::     SXEmacs does not follow the local timezone.
186 * Q2.1.20::     @samp{Symbol's function definition is void: hkey-help-show.}
187 * Q2.1.21::     [This question intentionally left blank]
188 * Q2.1.22::     SXEmacs seems to take a really long time to do some things.
189 * Q2.1.23::     Movemail on Linux does not work for SXEmacs.
190 * Q2.1.24::     SXEmacs won't start without network.
191 * Q2.1.25::     After upgrading, SXEmacs won't do `foo' any more!
192
193 Customisation and Options
194
195 * Q3.0.1::      What version of Emacs am I running?
196 * Q3.0.2::      How do I evaluate Elisp expressions?
197 * Q3.0.3::      @code{(setq tab-width 6)} behaves oddly.
198 * Q3.0.4::      How can I add directories to the @code{load-path}?
199 * Q3.0.5::      How to check if a lisp function is defined?
200 * Q3.0.6::      Can I force the output of @code{(face-list)} to a buffer?
201 * Q3.0.7::      Font selections don't get saved after @code{Save Options}.
202 * Q3.0.8::      How do I make a single minibuffer frame?
203 * Q3.0.9::      What is @code{Customize}?
204
205 X Window System & Resources:
206 * Q3.1.1::      Where is a list of X resources?
207 * Q3.1.2::      How can I detect a color display?
208 * Q3.1.3::      [This question intentionally left blank]
209 * Q3.1.4::      [This question intentionally left blank]
210 * Q3.1.5::      How can I get the icon to just say @samp{SXEmacs}?
211 * Q3.1.6::      How can I have the window title area display the full path?
212 * Q3.1.7::      @samp{sxemacs -name junk} doesn't work?
213 * Q3.1.8::      @samp{-iconic} doesn't work.
214
215 Textual Fonts & Colors:
216 * Q3.2.1::      How can I set color options from @file{init.el}?
217 * Q3.2.2::      How do I set the text, menu and modeline fonts?
218 * Q3.2.3::      How can I set the colors when highlighting a region?
219 * Q3.2.4::      How can I limit color map usage?
220 * Q3.2.5::      My tty supports color, but SXEmacs doesn't use them.
221 * Q3.2.6::      Can I have pixmap backgrounds in SXEmacs?
222 * Q3.2.7::      How do I display non-ASCII characters?
223
224 The Modeline:
225 * Q3.3.1::      How can I make the modeline go away?
226 * Q3.3.2::      How do you have SXEmacs display the line number in the modeline?
227 * Q3.3.3::      How do I get SXEmacs to put the time of day on the modeline?
228 * Q3.3.4::      How do I turn off current chapter from AUC TeX modeline?
229 * Q3.3.5::      How can one change the modeline color based on the mode used?
230
231 Multiple Device Support:
232 * Q3.4.1::      How do I open a frame on another screen of my multi-headed display?
233 * Q3.4.2::      Can I really connect to a running SXEmacs after calling up over a modem?  How?
234
235 The Keyboard:
236 * Q3.5.1::      How can I bind complex functions (or macros) to keys?
237 * Q3.5.2::      How can I stop down-arrow from adding empty lines to the bottom of my buffers?
238 * Q3.5.3::      How do I bind C-. and C-; to scroll one line up and down?
239 * Q3.5.4::      Globally binding @kbd{Delete}?
240 * Q3.5.5::      Scrolling one line at a time.
241 * Q3.5.6::      How to map @kbd{Help} key alone on Sun type4 keyboard?
242 * Q3.5.7::      How can you type in special characters in SXEmacs?
243 * Q3.5.8::      [This question intentionally left blank]
244 * Q3.5.9::      How do I make the Delete key delete forward?
245 * Q3.5.10::     Can I turn on @dfn{sticky} modifier keys?
246 * Q3.5.11::     How do I map the arrow keys?
247
248 The Cursor:
249 * Q3.6.1::      Is there a way to make the bar cursor thicker?
250 * Q3.6.2::      Is there a way to get back the old block cursor where the cursor covers the character in front of the point?
251 * Q3.6.3::      Can I make the cursor blink?
252
253 The Mouse and Highlighting:
254 * Q3.7.1::      How can I turn off Mouse pasting?
255 * Q3.7.2::      How do I set control/meta/etc modifiers on mouse buttons?
256 * Q3.7.3::      Clicking the left button does not do anything in buffer list.
257 * Q3.7.4::      How can I get a list of buffers when I hit mouse button 3?
258 * Q3.7.5::      Why does cut-and-paste not work between SXEmacs and a cmdtool?
259 * Q3.7.6::      How I can set SXEmacs up so that it pastes where the text cursor is?
260 * Q3.7.7::      How do I select a rectangular region?
261 * Q3.7.8::      Why does @kbd{M-w} take so long?
262
263 The Menubar and Toolbar:
264 * Q3.8.1::      How do I get rid of the menu (or menubar)?
265 * Q3.8.2::      Can I customise the basic menubar?
266 * Q3.8.3::      How do I control how many buffers are listed in the menu @code{Buffers} list?
267 * Q3.8.4::      Resources like @code{Emacs*menubar*font} are not working?
268 * Q3.8.5::      How can I bind a key to a function to toggle the toolbar?
269
270 Scrollbars:
271 * Q3.9.1::      How can I disable the scrollbar?
272 * Q3.9.2::      How can one use resources to change scrollbar colors?
273 * Q3.9.3::      Moving the scrollbar can move the point; can I disable this?
274 * Q3.9.4::      How can I turn off automatic horizontal scrolling in specific modes?
275
276 Text Selections:
277 * Q3.10.1::     How can I turn off or change highlighted selections?
278 * Q3.10.2::     How do I get that typing on an active region removes it?
279 * Q3.10.3::     Can I turn off the highlight during isearch?
280 * Q3.10.4::     How do I turn off highlighting after @kbd{C-x C-p} (mark-page)?
281 * Q3.10.5::     The region disappears when I hit the end of buffer while scrolling.
282 * Q3.10.6::     Why is killing so slow?
283
284 Major Subsystems
285
286 * Q4.0.1::      How do I set up VM to retrieve remote mail using POP?
287 * Q4.0.2::      How do I get VM to filter mail for me?
288 * Q4.0.3::      How can I get VM to automatically check for new mail?
289 * Q4.0.4::      [This question intentionally left blank]
290 * Q4.0.5::      How do I get my outgoing mail archived?
291 * Q4.0.6::      I have various addresses at which I receive mail.  How can I
292                   tell VM to ignore them when doing a "reply-all"?
293 * Q4.0.7::      Is there a mailing list or FAQ for VM?
294 * Q4.0.8::      Remote mail reading with VM.
295 * Q4.0.9::      rmail or VM gets an error incorporating new mail.
296 * Q4.0.10::     How do I make VM stay in a single frame?
297 * Q4.0.11::     How do I make VM or mh-e display graphical smilies?
298 * Q4.0.12::     Customisation of VM not covered in the manual or here.
299
300 Web browsing with W3:
301 * Q4.1.1::      What is W3?
302 * Q4.1.2::      How do I run W3 from behind a firewall?
303 * Q4.1.3::      Is it true that W3 supports style sheets and tables?
304
305 Reading Netnews and Mail with Gnus:
306 * Q4.2.1::      GNUS, (ding) Gnus, Gnus 5, September Gnus, Red Gnus,
307                   Quassia Gnus, Pterodactyl Gnus, Oort Gnus, argh!
308 * Q4.2.2::      [This question intentionally left blank]
309 * Q4.2.3::      How do I make Gnus stay within a single frame?
310 * Q4.2.4::      How do I customize the From: line?
311
312 Other Mail & News:
313 * Q4.3.1::      How can I read and/or compose MIME messages?
314 * Q4.3.2::      What is TM and where do I get it?
315 * Q4.3.3::      Why isn't this @code{movemail} program working?
316 * Q4.3.4::      Movemail is also distributed by Netscape?  Can that cause problems?
317 * Q4.3.5::      Where do I find pstogif (required by tm)?
318
319 Sparcworks, EOS, and WorkShop:
320 * Q4.4.1::      What is SPARCworks, EOS, and WorkShop
321
322 Energize:
323 * Q4.5.1::      What is/was Energize?
324
325 Infodock:
326 * Q4.6.1::      What is Infodock?
327
328 Other Unbundled Packages:
329 * Q4.7.1::      What is AUC TeX?  Where do you get it?
330 * Q4.7.2::      Are there any Emacs Lisp Spreadsheets?
331 * Q4.7.3::      [This question intentionally left blank]
332 * Q4.7.4::      Problems installing AUC TeX
333 * Q4.7.5::      Is there a reason for an Emacs package not to be included in SXEmacs?
334 * Q4.7.6::      Is there a MatLab mode?
335 * Q4.7.7::      Can I edit files on other hosts?
336
337 The Miscellaneous Stuff
338
339 * Q5.0.1::      How can I do source code highlighting using font-lock?
340 * Q5.0.2::      I do not like cc-mode.  How do I use the old c-mode?
341 * Q5.0.3::      How do I get @samp{More} Syntax Highlighting on by default?
342 * Q5.0.4::      How can I enable auto-indent and/or Filladapt?
343 * Q5.0.5::      How can I get SXEmacs to come up in text/auto-fill mode by default?
344 * Q5.0.6::      How do I start up a second shell buffer?
345 * Q5.0.7::      Telnet from shell filters too much.
346 * Q5.0.8::      Why does edt emulation not work?
347 * Q5.0.9::      How can I emulate VI and use it as my default mode?
348 * Q5.0.10::     [This question intentionally left blank]
349 * Q5.0.11::     [This question intentionally left blank]
350 * Q5.0.12::     How do I disable gnuserv from opening a new frame?
351 * Q5.0.13::     How do I start gnuserv so that each subsequent SXEmacs is a client?
352 * Q5.0.14::     Strange things are happening in Shell Mode.
353 * Q5.0.15::     Where do I get the latest CC Mode?
354 * Q5.0.16::     I find auto-show-mode disconcerting.  How do I turn it off?
355 * Q5.0.17::     How can I get two instances of info?
356 * Q5.0.18::     [This question intentionally left blank]
357 * Q5.0.19::     Is there something better than LaTeX mode?
358 * Q5.0.20::     Is there a way to start a new SXEmacs if there's no
359                   gnuserv running, and otherwise use gnuclient?
360
361 Emacs Lisp Programming Techniques:
362 * Q5.1.1::      The difference in key sequences between XEmacs/SXEmacs and GNU Emacs?
363 * Q5.1.2::      Can I generate "fake" keyboard events?
364 * Q5.1.3::      Could you explain @code{read-kbd-macro} in more detail?
365 * Q5.1.4::      What is the performance hit of @code{let}?
366 * Q5.1.5::      What is the recommended use of @code{setq}?
367 * Q5.1.6::      What is the typical misuse of @code{setq} ?
368 * Q5.1.7::      I like the @code{do} form of cl, does it slow things down?
369 * Q5.1.8::      I like recursion, does it slow things down?
370 * Q5.1.9::      How do I put a glyph as annotation in a buffer?
371 * Q5.1.10::     @code{map-extents} won't traverse all of my extents!
372 * Q5.1.11::     My elisp program is horribly slow.  Is there an easy way to
373                   find out where it spends time?
374
375 Sound:
376 * Q5.2.1::      How do I turn off the sound?
377 * Q5.2.2::      How do I get funky sounds instead of a boring beep?
378 * Q5.2.3::      What's NAS, how do I get it?
379 * Q5.2.4::      Sunsite sounds don't play.
380 @c extend me
381
382 Miscellaneous:
383 * Q5.3.1::      How do you make SXEmacs indent CL if-clauses correctly?
384 * Q5.3.2::      [This question intentionally left blank]
385 * Q5.3.3::      How can I print WYSIWYG a font-locked buffer?
386 * Q5.3.4::      Getting @kbd{M-x lpr} to work with postscript printer.
387 * Q5.3.5::      How do I specify the paths that SXEmacs uses for finding files?
388 * Q5.3.6::      [This question intentionally left blank]
389 * Q5.3.7::      Can I have the end of the buffer delimited in some way?
390 * Q5.3.8::      How do I insert today's date into a buffer?
391 * Q5.3.9::      Are only certain syntactic character classes available for abbrevs?
392 * Q5.3.10::     How can I get those oh-so-neat X-Face lines?
393 * Q5.3.11::     How do I add new Info directories?
394 * Q5.3.12::     What do I need to change to make printing work?
395
396 SXEmacs on MS Windows
397
398 General Info:
399 * Q6.0.1::      Why did SXEmacs cut all support for Windows?
400
401 What the Future Holds
402
403 * Q7.0.1::      What new features will be in SXEmacs soon?
404 * Q7.0.2::      What's new in SXEmacs 22.1.0?
405 * Q7.0.3::      What's new in SXEmacs 22.1.1?
406 * Q7.0.4::      What's new in SXEmacs 22.1.2?
407 * Q7.0.5::      What's new in SXEmacs 22.1.3?
408 * Q7.0.6::      What's new in SXEmacs 22.1.4?
409
410 @end detailmenu
411 @end menu
412
413 @c missing FAQs:
414 @c - Where is the RedHat/Fedora/Slackware/Debian/SuSE/Mandrake/foobar
415 @c   package?
416 @c - What is this tla thingy?
417
418
419 @node Introduction, Installation, Top, Top
420 @unnumbered 1 Introduction, Policy, Credits
421
422 Learning SXEmacs is a lifelong activity.  Even people who have used Emacs
423 for years keep discovering new features.  Therefore this document cannot
424 be complete.  Instead it is aimed at the person who is either
425 considering SXEmacs for their own use, or has just obtained it and is
426 wondering what to do next.  It is also useful as a reference to
427 available resources.
428
429 The origin of this FAQ is well beyond SXEmacs-times and stems from the
430 XEmacs crew.  The initiator was @email{rossini@@biostat.washington.edu,
431 Anthony Rossini}.  The tale goes he got tired of hearing JWZ complain
432 about repeatedly having to answer questions.  @email{ben@@xemacs.org,
433 Ben Wing} and @email{cthomp@@xemacs.org, Chuck Thompson}, the principal
434 authors of XEmacs, then took over and Ben did a massive update
435 reorganising the whole thing.
436
437 The previous version was converted to hypertext format, and edited by
438 @email{steve@@xemacs.org, Steven L. Baur}.  It was converted back to
439 texinfo by @email{hniksic@@xemacs.org, Hrvoje Niksic}.  The FAQ was then
440 maintained by @email{andreas@@sccon.com, Andreas Kaempf}, who passed it
441 on to Christian Nybø.
442
443 If you notice any errors or items which should be added or amended to
444 this FAQ please send email to @email{sxemacs-devel@@sxemacs.org}.
445 Include @samp{SXEmacs FAQ} on the Subject: line.
446
447 @menu
448 Introduction:
449 * Q1.0.1::      What is SXEmacs?
450 * Q1.0.2::      What is the current version of SXEmacs?
451 * Q1.0.3::      Where can I find it?
452 * Q1.0.4::      Why another version of Emacs?
453 * Q1.0.5::      Why haven't XEmacs/SXEmacs and GNU Emacs merged?
454 * Q1.0.6::      Where can I get help?
455 * Q1.0.7::      Where are the mailing lists archived?
456 * Q1.0.8::      How do you pronounce SXEmacs?
457 * Q1.0.9::      What does SXEmacs look like?
458 * Q1.0.10::     Is there a port of SXEmacs to Microsoft ('95 or NT)?
459 * Q1.0.11::     Is there a port of SXEmacs to the Macintosh?
460 * Q1.0.12::     Is there a port of SXEmacs to NextStep?
461 * Q1.0.13::     Is there a port of SXEmacs to OS/2?
462 * Q1.0.14::     Where can I get a printed copy of the SXEmacs users manual?
463
464 Policies:
465 * Q1.1.1::      What is the FAQ editorial policy?
466 * Q1.1.2::      How do I become a beta tester?
467 * Q1.1.3::      How do I contribute to SXEmacs itself?
468
469 Credits:
470 * Q1.2.1::      Who wrote XEmacs? Who wrote SXEmacs?
471 * Q1.2.2::      Who contributed to this version of the FAQ?
472 * Q1.2.3::      Who contributed to the FAQ in the past?
473
474 Internationalisation:
475 * Q1.3.1::      What is the status of internationalisation support aka MULE (including Asian language support?
476 * Q1.3.2::      How can I help with internationalisation?
477 * Q1.3.3::      How do I type non-ASCII characters?
478 * Q1.3.4::      Can SXEmacs messages come out in a different language?
479 * Q1.3.5::      Please explain the various input methods in MULE/SXEmacs
480 * Q1.3.6::      How do I portably code for MULE/XEmacs/SXEmacs?
481 * Q1.3.7::      How about Cyrillic Modes?
482 * Q1.3.8::      Does SXEmacs support Unicode?
483 * Q1.3.9::      How does SXEmacs display Unicode?
484
485 Getting Started:
486 * Q1.4.1::      What is an @file{init.el} or @file{.emacs} and is there a sample one?
487 * Q1.4.2::      Can I use the same @file{init.el}/@file{.emacs} with other Emacsen?
488 * Q1.4.3::      Any good SXEmacs tutorials around?
489 * Q1.4.4::      May I see an example of a useful SXEmacs Lisp function?
490 * Q1.4.5::      And how do I bind it to a key?
491 * Q1.4.6::      What's the difference between a macro and a function?
492 @end menu
493
494 @unnumberedsec 1.0: Introduction
495
496 @node Q1.0.1, Q1.0.2, Introduction, Introduction
497 @unnumberedsec Q1.0.1: What is SXEmacs?
498
499 SXEmacs is a powerful, highly customisable open source text editor and
500 application development system, with full GUI support.  It is protected
501 under the GNU Public License and related to other versions of Emacs, in
502 particular XEmacs and GNU Emacs.  Its emphasis is on modern graphical
503 user interface support and an open software development model, similar
504 to Linux.
505
506 SXEmacs is a recent fork of the popular XEmacs and runs on nearly all
507 versions of Unix in existence.
508
509
510 @node Q1.0.2, Q1.0.3, Q1.0.1, Introduction
511 @unnumberedsec Q1.0.2: What is the current version of SXEmacs?
512
513 SXEmacs 22.1.15 is the latest released version.
514 The current development line will become 22.1.16.
515
516
517 @node Q1.0.3, Q1.0.4, Q1.0.2, Introduction
518 @unnumberedsec Q1.0.3: Where can I find it?
519
520 The canonical source can be found on the web at:
521
522 @example
523 @uref{https://downloads.sxemacs.org/}
524 @end example
525
526 Occasionally there are also snapshots of the current development line
527 available.  These can be found at:
528
529 @example
530 @uref{https://downloads.sxemacs.org/snapshots/}
531 @end example
532
533
534 @node Q1.0.4, Q1.0.5, Q1.0.3, Introduction
535 @unnumberedsec Q1.0.4: Why another version of Emacs?
536
537 First of all, the situation got a little complicated.  With SXEmacs
538 regarded as a featurised, cleaned-up XEmacs, there are only two major
539 Emacs flavours.  Disregarding that, we have three.  Thus let us compare
540 GNU Emacs to SXEmacs/XEmacs in the first place, and afterwards do the
541 comparison SXEmacs vs. XEmacs.
542
543
544 @unnumberedsubsec Q1.0.4.1 GNU Emacs vs. SXEmacs/XEmacs
545
546 Here is a list of some of the reasons why we think you might
547 consider using it:
548
549 @itemize @bullet
550 @item
551 It looks nicer.
552
553 @item
554 The XEmacs and SXEmacs maintainers, especially the SXEmacs
555 maintainers, are generally more receptive to suggestions than the GNU
556 Emacs maintainers.
557
558 @item
559 Many, many more bundled packages than GNU Emacs.
560
561 @item
562 Packages at all.
563
564 @c @c does not apply anymore
565 @c @item
566 @c Face support on TTY's.
567
568 @c @c does not apply anymore
569 @c @item
570 @c A built-in toolbar.
571
572 @c @c does not apply anymore
573 @c @item
574 @c Some internationalisation support (including full MULE support, if
575 @c compiled with it).
576
577 @c @c does not apply anymore
578 @c @item
579 @c Variable-width fonts.
580
581 @c @c does not apply anymore
582 @c @item
583 @c Variable-height lines.
584
585 @item
586 Marginal annotations.
587
588 @item
589 XEmacs can be used as an Xt widget, and can be embedded within another
590 application.
591
592 @c @c does not apply anymore
593 @c @item
594 @c Horizontal and vertical scrollbars (using real toolkit scrollbars).
595
596 @item
597 Better APIs (and performance) for attaching fonts, colors, and other
598 properties to text.
599
600 @c @c does not apply anymore
601 @c @item
602 @c The ability to embed arbitrary graphics in a buffer.
603
604 @item
605 Completely compatible (at the C level) with the Xt-based toolkits.
606
607 @item
608 Native support for PostgreSQL databases, LDAP servers and Berkeley DB.
609
610 @item
611 Support for GMP numbers (multi-precision integers, quotients and
612 floats).
613
614 @item
615 Support for multiple tty connections.
616
617 @c the FSF guys' implementation is a disease!
618 @item
619 Sound support.
620
621 @end itemize
622
623
624 @unnumberedsubsec Q1.0.4.2 SXEmacs vs. XEmacs
625
626 SXEmacs' strengths are clearly its feature list and its performance.
627 Also, these were the main reasons to fork.  XEmacs maintainers became
628 more and more uninterested in useful additions, reductions and
629 optimisations on the C-level.
630
631 @itemize
632 @item
633 Foreign Function Interface (FFI).
634
635 @item
636 PostgreSQL notify support.
637
638 @item
639 Native OpenSSL support.
640
641 @item
642 Support for mpfr floats, Gaussian and complex numbers, quaternions and
643 residue class rings.
644
645 @item
646 Support for raw strings.
647
648 @item
649 Much faster hashing functions.
650
651 @item
652 Support for internal URL access via cURL.
653
654 @item
655 Support for various image formats: Any format that ImageMagick is able
656 to handle.
657
658 @item
659 Support for modern sound libraries and sound servers: ESD, Polyp,
660 Jack, ALSA, and ao
661
662 @item
663 Support for various media formats (provided by external libraries):
664 Any format that FFmpeg, sndfile, SoX, MAD and gstreamer can handle.
665
666 @item
667 Support for the implementation network services through the use of
668 network server stream.
669
670 @end itemize
671
672
673
674 @node Q1.0.5, Q1.0.6, Q1.0.4, Introduction
675 @unnumberedsec Q1.0.5: Why haven't XEmacs/SXEmacs and GNU Emacs Merged?
676
677 There are currently irreconcilable differences in the views about
678 technical, programming, design and organisational matters between RMS
679 and the SXEmacs/XEmacs development team which provide little hope for a
680 merge to take place in the short-term future.
681
682
683 @node Q1.0.6, Q1.0.7, Q1.0.5, Introduction
684 @unnumberedsec Q1.0.6: Where can I get help?
685
686 Probably the easiest way, if everything is installed, is to use Info, by
687 pressing @kbd{C-h i}, or looking for an Info item on the
688 Help Menu.  @kbd{M-x apropos} can be used to look for particular commands.
689
690 For items not found in the manual, try reading this FAQ and reading the
691 Usenet group comp.emacs.xemacs.
692
693 If you choose to post to a newsgroup, @strong{please use
694 comp.emacs.xemacs}.  Please do not post SXEmacs/XEmacs related questions
695 to gnu.emacs.help.
696
697 SXEmacs is an official group at the Freenode IRC network (formerly
698 OPN).  Join us at @uref{irc://irc.freenode.net/sxemacs}.
699
700 If you cannot post, nor read Usenet news, nor want to join us at IRC,
701 there is a mailing at @email{sxemacs-devel@@sxemacs.org} for general
702 and developing issues.
703
704
705 @node Q1.0.7, Q1.0.8, Q1.0.6, Introduction
706 @unnumberedsec Q1.0.7: Where are the mailing lists archived?
707
708 The archives can be found at
709 @uref{https://www.sxemacs.org/list-archives/html/sxemacs-devel/}.
710
711 Subscription can be done via
712 @uref{https://www.sxemacs.org/mailman/listinfo}
713
714
715 @node Q1.0.8, Q1.0.9, Q1.0.7, Introduction
716 @unnumberedsec Q1.0.8: How do you pronounce SXEmacs?
717
718 The most common pronounciation is @samp{sexy macs}.
719
720
721 @node Q1.0.9, Q1.0.10, Q1.0.8, Introduction
722 @unnumberedsec Q1.0.9: What does SXEmacs look like?
723
724 Look at the screenshot section at @uref{https://www.sxemacs.org}.
725
726
727 @node Q1.0.10, Q1.0.11, Q1.0.9, Introduction
728 @unnumberedsec Q1.0.10: Is there a port of SXEmacs to Microsoft ('95 or NT)?
729
730 Of course not!  The SXEmacs developers have so much fun stripping all of
731 the erroneous code and workaround-hacks related to Microsoft Windows.
732
733
734 @node Q1.0.11, Q1.0.12, Q1.0.10, Introduction
735 @unnumberedsec Q1.0.11: Is there a port of SXEmacs to the Macintosh?
736
737 Good question. Is there?
738
739
740 @node Q1.0.12, Q1.0.13, Q1.0.11, Introduction
741 @unnumberedsec Q1.0.12: Is there a port of SXEmacs to NextStep?
742
743 @c Carl Edman, apparently no longer at @email{cedman@@princeton.edu}, did
744 @c the port of GNU Emacs to NeXTstep and expressed interest in doing the
745 @c XEmacs port, but never went any farther.
746
747 A what?
748
749
750 @node Q1.0.13, Q1.0.14, Q1.0.12, Introduction
751 @unnumberedsec Q1.0.13: Is there a port of SXEmacs to OS/2?
752
753 @c No, but Alexander Nikolaev <avn_1251@@mail.ru> is working on it.
754
755 Aaaaargh. You could have also asked: Is there a port of SXEmacs to my
756 hamster.
757
758
759 @node Q1.0.14, Q1.1.1, Q1.0.13, Introduction
760 @unnumberedsec Q1.0.14: Where can I obtain a printed copy of the SXEmacs User's Manual?
761
762 Pre-printed manuals are not available.  If you are familiar with
763 TeX, you can generate your own manual from the SXEmacs sources.
764
765 HTML and Postscript versions of SXEmacs manuals are available from the
766 SXEmacs web site at @uref{https://www.sxemacs.org}.
767 @c are they?
768 @c HTML are, but they may be a little out of date. --SY
769
770 @node Q1.1.1, Q1.1.2, Q1.0.14, Introduction
771 @unnumberedsec 1.1: Policies
772 @unnumberedsec Q1.1.1: What is the FAQ editorial policy?
773
774 The FAQ is actively maintained and modified regularly.  All links should
775 be up to date.
776
777 If you think you have a better way of answering a question, or think a
778 question should be included, we'd like to hear about it.
779 Please make sure that @samp{SXEmacs FAQ} appears on the Subject: line
780 if you prefer to send us a mail.  If you would like to use IRC
781 instead, please make sure that someone actively responds to your
782 request.  We usually stay in the channel while we are asleep, but
783 if you join, post the request and leave again, we have no means to
784 get into contact with you again.
785
786 Questions and answers included into the FAQ will be edited for
787 spelling and grammar and will be attributed.
788
789
790 @node Q1.1.2, Q1.1.3, Q1.1.1, Introduction
791 @unnumberedsec Q1.1.2: How do I become a beta tester?
792
793 We have no formal way.  Also there are no presumptions.  Just
794 subscribe to the mailing list @email{sxemacs-devel@@sxemacs.org} and
795 say hello or join us at IRC.
796
797 Be prepared to get your hands dirty, as beta testers are expected to
798 identify problems as best they can.
799
800
801 @node Q1.1.3, Q1.2.1, Q1.1.2, Introduction
802 @unnumberedsec Q1.1.3: How do I contribute to SXEmacs itself?
803
804 Quoting a famous developer:
805
806 I know the answer exactly.
807 Gotta run.
808
809
810 @node Q1.2.1, Q1.2.2, Q1.1.3, Introduction
811 @unnumberedsec 1.2: Credits
812 @unnumberedsec Q1.2.1: Who wrote SXEmacs?
813
814 SXEmacs is the result of the time and effort of many people.  The
815 developers responsible for recent releases can be viewed by
816 @kbd{M-x about-sxemacs} or the @samp{About SXEmacs} item in the Help
817 menu.
818
819 @c @itemize @bullet
820 @c @item @email{martin@@xemacs.org, Martin Buchholz}
821 @c @html
822 @c <br><img src="mrb.jpeg" alt="Portrait of Martin Buchholz"><br>
823 @c @end html
824 @c
825 @c
826 @c @item @email{stephen@@xemacs.org, Stephen Turnbull}
827 @c
828 @c
829 @c @item @email{ben@@xemacs.org, Ben Wing}
830 @c @html
831 @c <br><img src="wing.gif" alt="Portrait of Ben Wing"><br>
832 @c @end html
833 @c
834 @c
835 @c @item @email{hniksic@@xemacs.org, Hrvoje Niksic}
836 @c
837 @c @html
838 @c <br><img src="hniksic.jpeg" alt="Portrait of Hrvoje Niksic"><br>
839 @c @end html
840 @c
841 @c @end itemize
842 @c
843 @c The developers responsible for older releases were:
844 @c
845 @c @itemize @bullet
846 @c @item @email{steve@@xemacs.org, Steve Baur}
847 @c
848 @c @html
849 @c <br><img src="steve.gif" alt="Portrait of Steve Baur"><br>
850 @c @end html
851 @c
852 @c @item @email{cthomp@@xemacs.org, Chuck Thompson}
853 @c @html
854 @c <br><img src="cthomp.jpeg" alt="Portrait of Chuck Thompson"><br>
855 @c @end html
856 @c
857 @c @item @email{jwz@@jwz.org, Jamie Zawinski}
858 @c @html
859 @c <br><img src="jwz.gif" alt="Portrait of Jamie Zawinski"><br>
860 @c @end html
861 @c
862 @c @item @email{mly@@adoc.xerox.com, Richard Mlynarik}
863 @c
864 @c Steve Baur was the primary maintainer for 19.15 through 21.0.
865 @c
866 @c Chuck Thompson and Ben Wing were the maintainers for 19.11 through 19.14
867 @c and heavy code contributors for 19.8 through 19.10.
868 @c
869 @c Jamie Zawinski was the maintainer for 19.0 through 19.10 (the entire
870 @c history of Lucid Emacs).  Richard Mlynarik was a heavy code contributor
871 @c to 19.6 through 19.8.
872 @c
873 @c @end itemize
874 @c
875 @c Along with many other contributors, partially enumerated in the
876 @c @samp{About XEmacs} option in the Help menu.
877
878
879 @node Q1.2.2, Q1.2.3, Q1.2.1, Introduction
880 @unnumberedsec Q1.2.2: Who contributed to this version of the FAQ?
881
882 The following people contributed valuable suggestions to building this
883 version of the FAQ (listed in alphabetical order):
884
885 @itemize @bullet
886 @item @email{steve@@xemacs.org, SL Baur}
887
888 @item @email{hroptatyr@@sxemacs.org, Sebastian Freundt}
889
890 @item @email{hniksic@@xemacs.org, Hrvoje Niksic}
891
892 @item @email{Aki.Vehtari@@hut.fi, Aki Vehtari}
893
894 @end itemize
895
896
897 @node Q1.2.3, Q1.3.1, Q1.2.2, Introduction
898 @unnumberedsec Q1.2.3: Who contributed to the FAQ in the past?
899
900 This is only a partial list, as many names were lost in a hard disk
901 crash some time ago.
902
903 @itemize @bullet
904 @item @email{binge@@aloft.att.com, Curtis.N.Bingham}
905
906 @item @email{bruncott@@dormeur.inria.fr, Georges Brun-Cottan}
907
908 @item @email{rjc@@cogsci.ed.ac.uk, Richard Caley}
909
910 @item @email{cognot@@ensg.u-nancy.fr, Richard Cognot}
911
912 @item @email{daku@@nortel.ca, Mark Daku}
913
914 @item @email{wgd@@martigny.ai.mit.edu, William G. Dubuque}
915
916 @item @email{eeide@@cs.utah.edu, Eric Eide}
917
918 @item @email{af@@biomath.jussieu.fr, Alain Fauconnet}
919
920 @item @email{cflatter@@nrao.edu, Chris Flatters}
921
922 @item @email{ginsparg@@adra.com, Evelyn Ginsparg}
923
924 @item @email{hall@@aplcenmp.apl.jhu.edu, Marty Hall}
925
926 @item @email{dkindred@@cmu.edu, Darrell Kindred}
927
928 @item @email{dmoore@@ucsd.edu, David Moore}
929
930 @item @email{arup+@@cmu.edu, Arup Mukherjee}
931
932 @item @email{nickel@@prz.tu-berlin.de, Juergen Nickelsen}
933
934 @item @email{powell@@csl.ncsa.uiuc.edu, Kevin R. Powell}
935
936 @item @email{dworkin@@ccs.neu.edu, Justin Sheehy}
937
938 @item @email{stig@@hackvan.com, Stig}
939
940 @item @email{Aki.Vehtari@@hut.fi, Aki Vehtari}
941 @end itemize
942
943
944 @node Q1.3.1, Q1.3.2, Q1.2.3, Introduction
945 @unnumberedsec 1.3: Internationalisation
946 @unnumberedsec Q1.3.1: What is the status of internationalisation support aka MULE (including Asian language support?
947
948 Both the stable and development versions of SXEmacs include
949 internationalisation support (aka MULE).  MULE currently works on
950 Unix and Linux systems.  Binaries compiled without MULE support run
951 faster than MULE capable SXEmacsen.
952
953
954 @node Q1.3.2, Q1.3.3, Q1.3.1, Introduction
955 @unnumberedsec Q1.3.2: How can I help with internationalisation?
956
957 If you would like to help, you can use the usual ways to get into
958 contact with us, that is join the mailing list
959 @email{sxemacs-devel@@sxemacs.org} or join us at
960 @uref{irc://irc.freenode.net/sxemacs}.
961
962 Especially needed are people who speak/write languages other than
963 English, who are willing to use SXEmacs/MULE regularly, and have some
964 experience with Elisp.
965
966 Translations of the TUTORIAL and man page are welcome, and SXEmacs
967 does support multilingual menus, but we have few current translations.
968
969 @xref{Q1.1.2}.
970
971
972 @node Q1.3.3, Q1.3.4, Q1.3.2, Introduction
973 @unnumberedsec Q1.3.3: How do I type non-ASCII characters?
974
975 See question 3.5.7 (@pxref{Q3.5.7}) in part 3 of this FAQ for some
976 simple methods that also work in non-MULE builds of SXEmacs (but only for
977 one-octet coded character sets, and mostly for ISO 8859/1).  Many of the
978 methods available for Cyrillic (@pxref{Q1.3.7}) work without MULE.
979 MULE has more general capabilities.  @xref{Q1.3.5}.
980
981 @xref{Q3.2.7}, which covers display of non-ASCII characters.
982
983 @node Q1.3.4, Q1.3.5, Q1.3.3, Introduction
984 @unnumberedsec Q1.3.4: Can SXEmacs messages come out in a different language?
985
986 The message-catalog support was written but is badly bit-rotted.
987 SXEmacs 22.2 may do so, but it is not of high priority currently.
988 Again, if you are willing to help, contact us.
989
990 However, menubar localisation @emph{does} work.  To enable it, add to
991 your @file{Emacs} file entries like this:
992
993 @example
994 Emacs*XlwMenu.resourceLabels:                   True
995 Emacs*XlwMenu.file.labelString:                 Fichier
996 Emacs*XlwMenu.openInOtherWindow.labelString:    In anderem Fenster oeffnen
997 @end example
998
999 The name of the resource is derived from the non-localised entry by
1000 removing punctuation and capitalizing as above.
1001
1002
1003 @node Q1.3.5, Q1.3.6, Q1.3.4, Introduction
1004 @unnumberedsec Q1.3.5: Please explain the various input methods in MULE/SXEmacs
1005
1006 Mule supports a wide variety of input methods.  There are three basic
1007 classes: Lisp implementations, generic platform support, and library
1008 interfaces.
1009
1010 @emph{Lisp implementations} include Quail, which provides table-driven
1011 input methods for almost all the character sets that Mule supports
1012 (including all of the ISO 8859 family, the Indic languages, Thai, and
1013 so on), and SKK, for Japanese.  (SKK also supports an interface to an
1014 external "dictionary server" process.)  Quail supports both typical
1015 "dead-key" methods (eg, in the "latin-1-prefix" method, @kbd{" a}
1016 produces ä, LATIN SMALL LETTER A WITH DIAERESIS), and the complex
1017 dictionary-based phonetic methods used for Asian ideographic languages
1018 like Chinese.
1019
1020 Lisp implementations can be less powerful (but they are not perceptibly
1021 inefficient), and of course are not portable to non-Emacs applications.
1022 The incompatibility can be very annoying.  On the other hand, they
1023 require no special platform support or external libraries, so if you can
1024 display the characters, Mule can input them for you and you can edit,
1025 anywhere.
1026
1027 @emph{Generic platform support} is currently limited to the X Input
1028 Method (XIM) framework, but IIIMF (Sun's Internet-Intranet Input
1029 Method Framework) support is extremely desirable.  XIM is enabled at
1030 build time by use of the @samp{--with-xim} flag to @code{configure}.
1031 For use of XIM, see your platform documentation.  However, normally
1032 the input method you use is specified via the @samp{LANG} and
1033 @samp{XMODIFIERS} environment variables.
1034
1035 Of course, input skills are portable across most applications.  However,
1036 especially in modern GUI systems the habit of using bucky bits has
1037 fallen into sad disuse, and many XIM systems are poorly configured for
1038 use with Emacs.  For example, the kinput2 input manager (a separate
1039 process providing an interface between Japanese dictionary servers such
1040 as Canna and Wnn, and the application) tends to gobble up keystrokes
1041 generating Meta characters.  This means that to edit while using an XIM
1042 input method, you must toggle the input method off every time you want
1043 to use @kbd{M-f}.  Your mileage may vary.
1044
1045 @emph{Library interfaces} are most common for Japanese, although Wnn
1046 supports Chinese (traditional and simplified) and Korean.  There are
1047 Chinese and Korean input servers available, but we do not know of any
1048 patches for SXEmacs to use them directly.  You can use them via
1049 IM-enabled terminals, by manipulating the terminal coding systems.  We
1050 describe only the Japanese-oriented systems here.  The advantage of
1051 these systems is that they are very powerful, and on platforms where
1052 they are available there is typically a wide range of applications that
1053 support them.  Thus your input skills are portable across applications.
1054
1055 Mule provides built-in interfaces to the following input methods: Wnn4,
1056 Wnn6, Canna, and SJ3.  These can be configured at build time.  There are
1057 patches available (no URL, sorry) to support the SKK server, as well.
1058 Wnn and SJ3 use the @code{egg} user interface.  The interface for Canna
1059 is specialized to Canna.
1060
1061 Wnn supports Japanese, Chinese and Korean. It is made by OMRON and Kyôto
1062 University. It is a powerful and complex system.  Wnn4 is free and Wnn6
1063 is not.  Wnn uses grammatical hints and probability of word association,
1064 so in principle Wnn can be cleverer than other methods.
1065
1066 Canna, made by NEC, supports only Japanese.  It is a simple and powerful
1067 system. Canna uses only grammar, but its grammar and dictionary are
1068 quite sophisticated.  So for standard modern Japanese, Canna seems
1069 cleverer than Wnn4. In addition, the UNIX version of Canna is free.
1070
1071 SJ3, by Sony, supports only Japanese.
1072
1073 Egg consists of following parts:
1074
1075 @enumerate
1076 @item
1077 Input character Translation System (ITS) layer.
1078 It translates ASCII inputs to Kana/PinYin/Hangul characters.
1079
1080 @item
1081 Kana/PinYin/Hangul to Kanji transfer layer.
1082 The interface layer to network Kana-Kanji server (Wnn and Sj3).
1083 @end enumerate
1084
1085 These input methods are modal.  They have a raw (alphabet) mode, a
1086 phonetic input mode, and Kana-Kanji transfer mode.  However there are
1087 mode-less input methods for Egg and Canna.  @samp{boiled-egg} is a
1088 mode-less input method running on Egg.  For Canna, @samp{canna.el} has a
1089 tiny boiled-egg-like command, @code{(canna-boil)}, and there are some
1090 boiled-egg-like utilities.
1091
1092 Much of this information was provided by @email{morioka@@jaist.ac.jp,
1093 MORIOKA Tomohiko}.
1094
1095 @node Q1.3.6, Q1.3.7, Q1.3.5, Introduction
1096 @unnumberedsec Q1.3.6: How do I portably code for MULE/SXEmacs?
1097
1098 MULE has evolved rapidly over the last few years, and the original third
1099 party patch (for GNU Emacs 19), GNU Emacs 20+, and XEmacs 20+ have quite
1100 different implementations.  The APIs also vary although recent versions
1101 of XEmacs have tended to converge to the GNU Emacs standard.
1102
1103 MULE implementations are going to continue to evolve.  Both GNU Emacs
1104 and XEmacs are working hard on Unicode support, which will involve new
1105 APIs and probably variations on old ones.  For XEmacs 22, the old ISO
1106 2022-based system for recognizing encodings will be replaced by a much
1107 more flexible system, which should improve accuracy of automatic coding
1108 detections, but will also involve new APIs.
1109
1110 @email{morioka@@jaist.ac.jp, MORIOKA Tomohiko} writes:
1111
1112 @quotation
1113 The application implementor must write separate code for these mule
1114 variants.  [Please don't hesitate to report these variants to us; they
1115 are not, strictly speaking, bugs, but they give third-party developers
1116 the same kind of creepy-crawly feeling.  We'll do what we can. -- Ed.]
1117
1118 MULE and the next version of Emacs are similar but the symbols are very
1119 different---requiring separate code as well.
1120
1121 Namely we must support 3 kinds of mule variants and 4 or 5 or 6 kinds of
1122 emacs variants... (;_;) I'm shocked, so I wrote a wrapper package called
1123 @code{emu} to provide a common interface.  [There is an XEmacs package
1124 of APEL which provides much more comprehensive coverage.  Be careful,
1125 however; APEL has problems of its own. -- Ed.]
1126
1127 I have the following suggestions about dealing with mule variants:
1128
1129 @itemize @bullet
1130 @item
1131 @code{(featurep 'mule)} @code{t} on all mule variants
1132
1133 @item
1134 @code{(boundp 'MULE)} is @code{t} on only MULE.  Maybe the next version
1135 of Emacs will not have this symbol.
1136
1137 @item
1138 MULE has a variable @code{mule-version}.  Perhaps the next version of
1139 Emacs will have this variable as well.
1140 @end itemize
1141
1142 Following is a sample to distinguish mule variants:
1143
1144 @lisp
1145 (if (featurep 'mule)
1146     (cond ((boundp 'MULE)
1147            ;; for original Mule
1148            )
1149           ((string-match "XEmacs" emacs-version)
1150            ;; for XEmacs with Mule
1151            )
1152           (t
1153            ;; for next version of Emacs
1154            ))
1155   ;; for old emacs variants
1156   )
1157 @end lisp
1158 @end quotation
1159
1160
1161 @node Q1.3.7, Q1.3.8, Q1.3.6, Introduction
1162 @unnumberedsec Q1.3.7: How about Cyrillic Modes?
1163
1164 @email{ilya@@math.ohio-state.edu, Ilya Zakharevich} writes:
1165
1166 @quotation
1167 There is a cyrillic mode in the file @file{mysetup.zip} in
1168 @iftex
1169 @*
1170 @end iftex
1171 @uref{ftp://ftp.math.ohio-state.edu/pub/users/ilya/emacs/}.  This is a
1172 modification to @email{ava@@math.jhu.ed, Valery Alexeev's} @file{russian.el}
1173 which can be obtained from
1174 @end quotation
1175
1176 @uref{http://www.math.uga.edu/~valery/russian.el}.
1177
1178 @email{d.barsky@@ee.surrey.ac.uk, Dima Barsky} writes:
1179
1180 @quotation
1181 There is another cyrillic mode for both GNU Emacs and XEmacs by
1182 @email{manin@@camelot.mssm.edu, Dmitrii
1183 (Mitya) Manin} at
1184 @iftex
1185
1186 @end iftex
1187 @uref{http://kulichki-lat.rambler.ru/centrolit/manin/cyr.el}.
1188 @c Link above, <URL:http://camelot.mssm.edu/~manin/cyr.el> was dead.
1189 @c Changed to russian host instead
1190 @end quotation
1191
1192 @email{rebecca.ore@@op.net, Rebecca Ore} writes:
1193
1194 @quotation
1195 The fullest resource I found on Russian language use (in and out of
1196 SXEmacs) is @uref{http://www.ibiblio.org/sergei/Software/Software.html}
1197 @end quotation
1198
1199
1200 @node Q1.3.8, Q1.3.9, Q1.3.7, Introduction
1201 @unnumberedsec Q1.3.8: Does SXEmacs support Unicode?
1202
1203 Partially, as an external encoding for files, processes, and terminals.
1204 It does not yet support Unicode fonts, see @ref{Q1.3.9}.
1205
1206 To get Unicode support, you need a Mule-enabled SXEmacs.  Install
1207 Mule-UCS from packages in the usual way.  Put
1208
1209 @example
1210 (require 'un-define)
1211 (set-coding-priority-list '(utf-8))
1212 (set-coding-category-system 'utf-8 'utf-8)
1213 @end example
1214
1215 in your init file to enable the UTF-8 coding system.  You may wish to
1216 view the documentation of @code{set-coding-priority-list} if you find
1217 that files that are not UTF-8 are being mis-recognised as UTF-8.
1218
1219 Install standard national fonts (not Unicode fonts) for all
1220 character sets you use.  See @ref{Q1.3.9}.
1221
1222 Mule-UCS also supports 16-bit forms of Unicode (UTF-16).  It does not
1223 support 31-bit forms of Unicode (UTF-32 or UCS-4).
1224
1225
1226 @node Q1.3.9, Q1.4.1, Q1.3.8, Introduction
1227 @unnumberedsec Q1.3.9: How does SXEmacs display Unicode?
1228
1229 Mule doesn't have a Unicode charset internally, so there's nothing to
1230 bind a Unicode registry to.  It would not be straightforward to create,
1231 either, because Unicode is not ISO 2022-compatible.  You'd have to
1232 translate it to multiple 96x96 pages.
1233
1234 This means that Mule-UCS uses ordinary national fonts for display.  This
1235 is not really a problem, except for those languages that use the Unified
1236 Han characters.  The problem here is that Mule-UCS maps from Unicode
1237 code points to national character sets in a deterministic way.  By
1238 default, this means that Japanese fonts are tried first, then Chinese,
1239 then Korean.  To change the priority ordering, use the command
1240 `un-define-change-charset-order'.
1241
1242 It also means you can't use Unicode fonts directly, at least not without
1243 extreme hackery.  You can run -nw with (set-terminal-coding-system
1244 'utf-8) if you really want a Unicode font for some reason.
1245
1246 Real Unicode support will be introduced in SXEmacs 22.2.
1247 @c will it?
1248
1249
1250 @node Q1.4.1, Q1.4.2, Q1.3.9, Introduction
1251 @unnumberedsec 1.4: Getting Started, Backing up & Recovery
1252 @unnumberedsec Q1.4.1: What is an @file{init.el} or @file{.emacs} and is there a sample one?
1253
1254 The @file{init.el} file is used to customise SXEmacs to your tastes.
1255 The preferred location for the init file is
1256 @file{$XDG_CONFIG_HOME/sxemacs/init.el} (@pxref{Init File,,,lispref,SXEmacs
1257 Lisp Reference Manual}).
1258
1259 No two init files are alike, nor are they expected to be alike, but
1260 that's the point.  The SXEmacs distribution contains an excellent
1261 starter example in the @file{etc/} directory called
1262 @file{sample.init.el}.  Copy this file from there to
1263 @file{$XDG_CONFIG_HOME/sxemacs/init.el}, then edit it to suit.
1264
1265 You may bring the @file{sample.init.el} file into a SXEmacs buffer
1266 from the menubar.  The menu entry is always under the @samp{Samples}
1267 submenu in the @samp{Help} menu.  To determine the location of the
1268 @file{etc/} directory type the command @kbd{C-h v data-directory
1269 @key{RET}}.
1270
1271
1272 @node Q1.4.2, Q1.4.3, Q1.4.1, Introduction
1273 @unnumberedsec Q1.4.2: Can I use the same @file{init.el}/@file{.emacs} with XEmacs or GNU Emacs?
1274
1275 Yes.  The sample @file{init.el} included in the SXEmacs
1276 distribution will show you how to handle different versions and flavours
1277 of Emacs.
1278
1279
1280 @node Q1.4.3, Q1.4.4, Q1.4.2, Introduction
1281 @unnumberedsec Q1.4.3: Any good tutorials around?
1282
1283 There's the SXEmacs tutorial available from the Help Menu under
1284 @samp{Basics->Tutorials}, or by typing @kbd{C-h t}. To check whether
1285 it's available in a non-english language, type @kbd{C-u C-h t TAB}, type
1286 the first letters of your preferred language, then type @key{RET}.
1287
1288
1289 @node Q1.4.4, Q1.4.5, Q1.4.3, Introduction
1290 @unnumberedsec Q1.4.4: May I see an example of a useful SXEmacs Lisp function?
1291
1292 The following function does a little bit of everything useful.  It does
1293 something with the prefix argument, it examines the text around the
1294 cursor, and it's interactive so it may be bound to a key.  It inserts
1295 copies of the current word the cursor is sitting on at the cursor.  If
1296 you give it a prefix argument: @kbd{C-u 3 M-x double-word} then it will
1297 insert 3 copies.
1298
1299 @lisp
1300 (defun double-word (count)
1301   "Insert a copy of the current word underneath the cursor"
1302   (interactive "*p")
1303   (let (here there string)
1304     (save-excursion
1305       (forward-word -1)
1306       (setq here (point))
1307       (forward-word 1)
1308       (setq there (point))
1309       (setq string (buffer-substring here there)))
1310     (while (>= count 1)
1311       (insert string)
1312       (decf count))))
1313 @end lisp
1314
1315 The best way to see what is going on here is to let SXEmacs tell you.
1316 Put the code into an SXEmacs buffer, and do a @kbd{C-h f} with the cursor
1317 sitting just to the right of the function you want explained.  Eg.  move
1318 the cursor to the SPACE between @code{interactive} and @samp{"*p"} and
1319 hit @kbd{C-h f} to see what the function @code{interactive} does.  Doing
1320 this will tell you that the @code{*} requires a writable buffer, and
1321 @code{p} converts the prefix argument to a number, and
1322 @code{interactive} allows you to execute the command with @kbd{M-x}.
1323
1324
1325 @node Q1.4.5, Q1.4.6, Q1.4.4, Introduction
1326 @unnumberedsec Q1.4.5: And how do I bind it to a key?
1327
1328 To bind to a key do:
1329
1330 @lisp
1331 (global-set-key "\C-cd" 'double-word)
1332 @end lisp
1333
1334 Or interactively, @kbd{M-x global-set-key} and follow the prompts.
1335
1336
1337 @node Q1.4.6,  , Q1.4.5, Introduction
1338 @unnumberedsec Q1.4.6: What's the difference between a macro and a function?
1339
1340 Quoting from the Lisp Reference (a.k.a @dfn{Lispref}) Manual:
1341
1342 @dfn{Macros} enable you to define new control constructs and other
1343 language features.  A macro is defined much like a function, but instead
1344 of telling how to compute a value, it tells how to compute another Lisp
1345 expression which will in turn compute the value.  We call this
1346 expression the @dfn{expansion} of the macro.
1347
1348 Macros can do this because they operate on the unevaluated expressions
1349 for the arguments, not on the argument values as functions do.  They can
1350 therefore construct an expansion containing these argument expressions
1351 or parts of them.
1352
1353 Do not confuse the two terms with @dfn{keyboard macros}, which are
1354 another matter, entirely.  A keyboard macro is a key bound to several
1355 other keys.  Refer to manual for details.
1356
1357
1358
1359 @node Installation, Customisation, Introduction, Top
1360 @unnumbered 2 Installation and Trouble Shooting
1361
1362 This is part 2 of the SXEmacs Frequently Asked Questions list.  This
1363 section is devoted to Installation, Maintenance and Trouble Shooting.
1364
1365 @menu
1366 Installation:
1367 * Q2.0.1::      Running SXEmacs without installing.
1368 * Q2.0.2::      SXEmacs is too big.
1369 * Q2.0.3::      Compiling SXEmacs with Netaudio. @c what?!
1370 * Q2.0.4::      Problems with Linux and ncurses.
1371 * Q2.0.5::      Do I need X11 to run SXEmacs?
1372 * Q2.0.6::      I'm having strange crashes.  What do I do?
1373 * Q2.0.7::      Libraries in non-standard locations.
1374 * Q2.0.8::      can't resolve symbol _h_errno
1375 * Q2.0.9::      Where do I find external libraries?
1376 * Q2.0.10::     After I run configure I find a coredump, is something wrong?
1377 * Q2.0.11::     SXEmacs can't resolve host names.
1378 * Q2.0.12::     Why can't I strip SXEmacs?
1379 * Q2.0.13::     I don't need no steenkin' packages.  Do I?
1380 * Q2.0.14::     How do I figure out which packages to install?
1381 * Q2.0.15::     EFS fails with "500 AUTH not understood" (NEW)
1382
1383 Trouble Shooting:
1384 * Q2.1.1::      SXEmacs just crashed on me!
1385 * Q2.1.2::      Cryptic Minibuffer messages.
1386 * Q2.1.3::      Translation Table Syntax messages at Startup.
1387 * Q2.1.4::      Startup warnings about deducing proper fonts?
1388 * Q2.1.5::      SXEmacs cannot connect to my X Terminal.
1389 * Q2.1.6::      SXEmacs just locked up my Linux X server.
1390 * Q2.1.7::      HP Alt key as Meta.
1391 * Q2.1.8::      got (wrong-type-argument color-instance-p nil)!
1392 * Q2.1.9::      SXEmacs causes my OpenWindows 3.0 server to crash.
1393 * Q2.1.10::     Warnings from incorrect key modifiers.
1394 * Q2.1.11::     Can't instantiate image error... in toolbar
1395 * Q2.1.12::     Regular Expression Problems on DEC OSF1.
1396 * Q2.1.13::     HP/UX 10.10 and @code{create_process} failure
1397 * Q2.1.14::     @kbd{C-g} doesn't work for me.  Is it broken?
1398 * Q2.1.15::     How to debug a SXEmacs problem with a debugger.
1399 * Q2.1.16::     SXEmacs crashes in @code{strcat} on HP/UX 10.
1400 * Q2.1.17::     @samp{Marker does not point anywhere}.
1401 * Q2.1.18::     SXEmacs is outputting lots of X errors.
1402 * Q2.1.19::     SXEmacs does not follow the local timezone.
1403 * Q2.1.20::     @samp{Symbol's function definition is void: hkey-help-show.}
1404 * Q2.1.21::     [This question intentionally left blank]
1405 * Q2.1.22::     SXEmacs seems to take a really long time to do some things.
1406 * Q2.1.23::     Movemail on Linux does not work for SXEmacs.
1407 * Q2.1.24::     SXEmacs won't start without network.
1408 * Q2.1.25::     After upgrading, SXEmacs won't do `foo' any more!
1409 @end menu
1410
1411
1412 @node Q2.0.1, Q2.0.2, Installation, Installation
1413 @unnumberedsec 2.0: Installation
1414 @unnumberedsec Q2.0.1: Running SXEmacs without installing
1415
1416 How can I just try SXEmacs without installing it?
1417
1418 SXEmacs will run in place without requiring installation and copying of
1419 the Lisp directories, and without having to specify a special build-time
1420 flag.  It's the copying of the Lisp directories that requires so much
1421 space.  SXEmacs is largely written in Lisp.
1422
1423
1424 @node Q2.0.2, Q2.0.3, Q2.0.1, Installation
1425 @unnumberedsec Q2.0.2: SXEmacs is too big
1426
1427 The space required by the installation directories can be
1428 reduced dramatically if desired.  Gzip all the .el files.  Remove all
1429 the packages you'll never want to use.  Remove the TexInfo manuals.
1430 Remove the Info (and use just hardcopy versions of the manual).  Remove
1431 most of the stuff in etc.  Remove or gzip all the source code.  Gzip or
1432 remove the C source code.  Configure it so that copies are not made of
1433 the support lisp.
1434
1435 These are all Emacs Lisp source code and bytecompiled object code.
1436 You may safely gzip everything named *.el here.  You may remove any
1437 package you don't use.  @emph{Nothing bad will happen if you delete a
1438 package that you do not use}.  You must be sure you do not use it
1439 though, so be conservative at first.
1440
1441 Any package with the possible exceptions of xemacs-base, and EFS are
1442 candidates for removal.  Ask yourself, @emph{Do I ever want to use this
1443 package?}  If the answer is no, then it is a candidate for removal.
1444
1445 First, gzip all the .el files.  Then go about package by package and
1446 start gzipping the .elc files.  Then run SXEmacs and do whatever it is
1447 you normally do.  If nothing bad happens, then remove the package.
1448 You can remove a package via the PUI interface (@kbd{M-x
1449 pui-list-packages}, then press @kbd{d} to mark the packages you wish
1450 to delete, and then @kbd{x} to delete them.
1451
1452 Another method is to do @kbd{M-x package-get-delete-package}.
1453
1454 @node Q2.0.3, Q2.0.4, Q2.0.2, Installation
1455 @unnumberedsec Q2.0.3: Compiling SXEmacs with Netaudio.
1456
1457 What is the best way to compile SXEmacs with the netaudio system,
1458 since I have got the netaudio system compiled but installed at a weird
1459 place, I am not root.  Also in the READMEs it does not say anything
1460 about compiling with the audioserver?
1461
1462 You should only need to add some stuff to the configure command line.
1463 @c To tell it to compile in netaudio support: @samp{--with-sound=both}, or
1464 @c @samp{--with-sound=nas} if you don't want native sound support for some
1465 @c reason.) To tell it where to find the netaudio includes and libraries:
1466
1467 @example
1468 --site-libraries=WHATEVER
1469 --site-includes=WHATEVER
1470 @end example
1471
1472 Then (fingers crossed) it should compile and it will use netaudio if
1473 you have a server running corresponding to the X server. The netaudio
1474 server has to be there when SXEmacs starts. If the netaudio server
1475 goes away and another is run, SXEmacs should cope (fingers crossed,
1476 error handling in netaudio isn't perfect).
1477
1478 BTW, netaudio has been renamed as it has a name clash with something
1479 else, so if you see references to NAS or Network Audio System, it's the
1480 same thing.  It also might be found at
1481 @uref{ftp://ftp.x.org/contrib/audio/nas/}.
1482
1483
1484 @node Q2.0.4, Q2.0.5, Q2.0.3, Installation
1485 @unnumberedsec Q2.0.4: Problems with Linux and ncurses.
1486
1487 @c On Linux 1.3.98 with termcap 2.0.8 and the ncurses that came with libc
1488 @c 5.2.18, XEmacs 20.0b20 is unable to open a tty device:
1489 @c @c oh great
1490 @c
1491 @c @example
1492 @c src/xemacs -nw -q
1493 @c Initialisation error:
1494 @c @iftex
1495 @c @*
1496 @c @end iftex
1497 @c Terminal type `xterm' undefined (or can't access database?)
1498 @c @end example
1499 @c
1500 @c @email{ben@@xemacs.org, Ben Wing} writes:
1501 @c
1502 @c @quotation
1503 @c Your ncurses configuration is messed up.  Your /usr/lib/terminfo is a
1504 @c bad pointer, perhaps to a CD-ROM that is not inserted.
1505 @c @end quotation
1506
1507 There are none!
1508
1509
1510 @node Q2.0.5, Q2.0.6, Q2.0.4, Installation
1511 @unnumberedsec Q2.0.5: Do I need X11 to run SXEmacs?
1512
1513 No.
1514
1515
1516 @node Q2.0.6, Q2.0.7, Q2.0.5, Installation
1517 @unnumberedsec Q2.0.6: I'm having strange crashes.  What do I do?
1518
1519 There have been a variety of reports of crashes due to compilers with
1520 buggy optimisers.  Please see the @file{PROBLEMS} file that comes with
1521 SXEmacs to read what it says about your platform.
1522
1523
1524 @node Q2.0.7, Q2.0.8, Q2.0.6, Installation
1525 @unnumberedsec Q2.0.7: Libraries in non-standard locations
1526
1527 I have x-faces, jpeg, xpm etc. all in different places.  I've tried
1528 space-separated, comma-separated, several --site-libraries, all to no
1529 avail.
1530
1531 @example
1532 --with-site-prefixes=/path/to/site1::/path/to/site2::/path/to/site3
1533 @end example
1534
1535
1536 @node Q2.0.8, Q2.0.9, Q2.0.7, Installation
1537 @unnumberedsec Q2.0.8: can't resolve symbol _h_errno
1538
1539 Does not apply anymore.
1540
1541
1542 @node Q2.0.9, Q2.0.10, Q2.0.8, Installation
1543 @unnumberedsec Q2.0.9: Where do I find external libraries?
1544
1545 Oh well ... we support far too many external libraries to list them
1546 here.  Have a glance at INSTALL to check if there are special
1547 instructions for some of the libraries you intend to use.
1548
1549
1550 @node Q2.0.10, Q2.0.11, Q2.0.9, Installation
1551 @unnumberedsec Q2.0.10: After I run configure I find a core dump, is something wrong?
1552
1553 @c @c WHOOOOOOOAT?!?!
1554 @c Not necessarily.  If you have GNU sed 3.0 you should downgrade it to
1555 @c 2.05.  From the @file{README} at prep.ai.mit.edu:
1556 @c
1557 @c @quotation
1558 @c sed 3.0 has been withdrawn from distribution.  It has major revisions,
1559 @c which mostly seem to be improvements; but it turns out to have bugs too
1560 @c which cause trouble in some common cases.
1561 @c
1562 @c Tom Lord won't be able to work fixing the bugs until May.  So in the
1563 @c mean time, we've decided to withdraw sed 3.0 from distribution and make
1564 @c version 2.05 once again the recommended version.
1565 @c @end quotation
1566 @c
1567 @c It has also been observed that the vfork test on Solaris will leave a
1568 @c core dump.
1569
1570 Send a build report.
1571
1572
1573 @node Q2.0.11, Q2.0.12, Q2.0.10, Installation
1574 @unnumberedsec Q2.0.11: SXEmacs doesn't resolve hostnames.
1575
1576 This is the result of a long-standing problem with SunOS and the fact
1577 that stock SunOS systems do not ship with DNS resolver code in libc.
1578
1579 @email{ckd@@loiosh.kei.com, Christopher Davis} writes:
1580
1581 @quotation
1582 That's correct [The SunOS 4.1.3 precompiled binaries don't do name
1583 lookup].  Since Sun figured that everyone used NIS to do name lookups
1584 (that DNS thing was apparently only a passing fad, right?), the stock
1585 SunOS 4.x systems don't have DNS-based name lookups in libc.
1586
1587 This is also why Netscape ships two binaries for SunOS 4.1.x.
1588
1589 The best solution is to compile it yourself; the configure script will
1590 check to see if you've put DNS in the shared libc and will then proceed
1591 to link against the DNS resolver library code.
1592 @end quotation
1593
1594
1595 @node Q2.0.12, Q2.0.13, Q2.0.11, Installation
1596 @unnumberedsec Q2.0.12: Why can't I strip SXEmacs?
1597
1598 @email{cognot@@fronsac.ensg.u-nancy.fr, Richard Cognot} writes:
1599
1600 @quotation
1601 Because of the way SXEmacs (and every other Emacsen, AFAIK) is
1602 built. The link gives you a bare-boned emacs (called temacs). temacs
1603 is then run, preloading some of the lisp files. The result is then
1604 dumped into a new executable, named xemacs, which will contain all of
1605 the preloaded lisp functions and data.
1606
1607 Now, during the dump itself, the executable (code+data+symbols) is
1608 written on disk using a special unexec() function. This function is
1609 obviously heavily system dependent. And on some systems, it leads to an
1610 executable which, although valid, cannot be stripped without damage. If
1611 memory serves, this is especially the case for AIX binaries. On other
1612 architectures it might work OK.
1613
1614 The Right Way to strip the emacs binary is to strip temacs prior to
1615 dumping xemacs. This will always work, although you can do that only if
1616 you install from sources (as temacs is @file{not} part of the binary
1617 kits).
1618 @end quotation
1619
1620 @email{nat@@nataa.fr.eu.org, Nat Makarevitch} writes:
1621
1622 @quotation
1623 Here is the trick:
1624
1625 @enumerate
1626 @item
1627 [ ./configure; make ]
1628
1629 @item
1630 rm src/sxemacs
1631
1632 @item
1633 strip src/temacs
1634
1635 @item
1636 make
1637
1638 @item
1639 cp src/sxemacs /usr/local/bin/sxemacs
1640
1641 @end enumerate
1642 @end quotation
1643
1644
1645 @node Q2.0.13, Q2.0.14, Q2.0.12, Installation
1646 @unnumberedsec Q2.0.13: I don't need no steenkin' packages.  Do I?
1647
1648 Strictly speaking, no.  SXEmacs will build and install just fine
1649 without any packages installed.  However, only the most basic editing
1650 functions will be available with no packages installed, so installing
1651 packages is an essential part of making your installed SXEmacs
1652 _useful_.
1653
1654
1655 @node Q2.0.14, Q2.0.15, Q2.0.13, Installation
1656 @unnumberedsec Q2.0.14: How do I figure out which packages to install?
1657
1658 Many people really liked the old way that packages were bundled and do
1659 not want to mess with packages at all.  You can grab all the packages at
1660 once like you used to with old SXEmacs versions.  Download the file
1661
1662 @file{xemacs-sumo.tar.gz}
1663
1664 For a SXEmacs compiled with Mule you also need
1665
1666 @file{xemacs-mule-sumo.tar.gz}
1667
1668 from the @file{packages} directory on your XEmacs mirror archive.
1669 N.B. They are called 'Sumo Tarballs' for good reason. They are
1670 currently about 15MB and 2.3MB (gzipped) respectively.
1671 @c mwhahahahaha, that'd load within a second here I think :P
1672
1673 Install them by
1674
1675 @code{cd $prefix/lib/sxemacs ; gunzip -c <tarballname> | tar xf -}
1676
1677 See README.packages for more detailed installation instructions.
1678
1679 As the Sumo tarballs are not regenerated as often as the individual
1680 packages, it is recommended that you use the automatic package tools
1681 afterwards to pick up any recent updates.
1682
1683
1684 @node Q2.0.15, Q2.1.1, Q2.0.14, Installation
1685 @unnumberedsec Q2.0.15: EFS fails with "500 AUTH not understood"
1686
1687 A typical error: FTP Error: USER request failed; 500 AUTH not understood.
1688
1689 Thanks to giacomo boffi @email{giacomo.boffi@@polimi.it} who recommends
1690 on comp.emacs.xemacs:
1691
1692    tell your ftp client to not attempt AUTH authentication (or do not
1693    use FTP servers that don't understand AUTH)
1694
1695 and notes that you need to add an element (often "-u") to
1696 @code{efs-ftp-program-args}.  Use @kbd{M-x customize-variable}, and
1697 verify the needed flag with @code{man ftp} or other local
1698 documentation.
1699
1700
1701 @node Q2.1.1, Q2.1.2, Q2.0.15, Installation
1702 @unnumberedsec 2.1: Trouble Shooting
1703 @unnumberedsec Q2.1.1: Help!  SXEmacs just crashed on me!
1704
1705 First of all, don't panic.  Whenever SXEmacs crashes, it tries
1706 extremely hard to auto-save all of your files before dying.  The main
1707 time that this will not happen is if the machine physically lost power
1708 or if you killed the SXEmacs process using @code{kill -9}.  The next
1709 time you try to edit those files, you will be informed that a more
1710 recent auto-save file exists.  You can use @kbd{M-x recover-file} to
1711 retrieve the auto-saved version of the file.
1712
1713 You can use the command @kbd{M-x recover-session} after a crash to pick
1714 up where you left off.
1715
1716 Now, SXEmacs is not perfect, and there may occasionally be times, or
1717 particular sequences of actions, that cause it to crash.  If you can
1718 come up with a reproducible way of doing this (or even if you have a
1719 pretty good memory of exactly what you were doing at the time), the
1720 maintainers would be very interested in knowing about it.  The best
1721 way to report a bug is using @kbd{M-x report-sxemacs-bug} (or by
1722 selecting @samp{Send Bug Report...} from the Help menu).  If that
1723 won't work (e.g. you can't get SXEmacs working at all), send ordinary
1724 mail to @email{sxemacs-devel@@sxemacs.org}. @emph{MAKE SURE} to
1725 include the output from the crash, especially including the Lisp
1726 backtrace, as well as the SXEmacs configuration from @kbd{M-x
1727 describe-installation} (or equivalently, the file @file{Installation}
1728 in the top of the build tree).
1729
1730 If at all possible, include a C stack backtrace of the core dump that
1731 was produced.  This shows where exactly things went wrong, and makes it
1732 much easier to diagnose problems.  To do this under Unix, you need to
1733 locate the core file (it's called @file{core}, and is usually sitting in
1734 the directory that you started SXEmacs from, or your home directory if
1735 that other directory was not writable).  Then, go to that directory and
1736 execute a command like:
1737
1738 @example
1739 gdb `which sxemacs` core
1740 @end example
1741
1742 and then issue the command @samp{where} to get the stack backtrace.  You
1743 might have to use @code{dbx} or some similar debugger in place of
1744 @code{gdb}.  If you don't have any such debugger available, complain to
1745 your system administrator.
1746
1747 It's possible that a core file didn't get produced, in which case you're
1748 out of luck.  Go complain to your system administrator and tell him not
1749 to disable core files by default.  Also see @ref{Q2.1.15}, for tips and
1750 techniques for dealing with a debugger.
1751
1752 When making a problem report make sure that:
1753
1754 @enumerate
1755 @item
1756 Report @strong{all} of the information output by SXEmacs during the
1757 crash.
1758
1759 @item
1760 You mention what OS & Hardware you are running SXEmacs on.
1761
1762 @item
1763 What version of SXEmacs you are running.  Equivalently, if you are
1764 using your own tla-branch of SXEmacs either tell where it is
1765 available or include to which degree your version resembles the
1766 mainline.
1767
1768 @item
1769 What build options you are using.
1770
1771 @item
1772 What are the versions of your libc and external libraries you use.
1773
1774 @item
1775 If the problem is related to graphics and you are running Unix, we will
1776 also need to know what version of the X Window System you are running,
1777 and what window manager you are using.
1778
1779 @item
1780 If the problem happened on a TTY, please include the terminal type.
1781 @end enumerate
1782
1783 Much of the information above is automatically generated by @kbd{M-x
1784 report-sxemacs-bug}.  Even more, and often useful, information can be
1785 generated by redirecting the output of @code{make} and @code{make check}
1786 to a file (@file{,,make-all.out} and @file{,,make-check.out} are the
1787 default used by @code{build-report}), and executing @kbd{M-x
1788 build-rpt}.
1789
1790
1791 @node Q2.1.2, Q2.1.3, Q2.1.1, Installation
1792 @unnumberedsec Q2.1.2: Cryptic Minibuffer messages.
1793
1794 When I try to use some particular option of some particular package, I
1795 get a cryptic error in the minibuffer.
1796
1797 If you can't figure out what's going on, select Options/General
1798 Options/Debug on Error from the Menubar and then try and make the error
1799 happen again.  This will give you a backtrace that may be enlightening.
1800 If not, try reading through this FAQ; if that fails, you could try
1801 posting to comp.emacs.xemacs (making sure to include the backtrace) and
1802 someone may be able to help.  If you can identify which Emacs lisp
1803 source file the error is coming from you can get a more detailed stack
1804 backtrace by doing the following:
1805
1806 @enumerate
1807 @item
1808 Visit the .el file in a SXEmacs buffer.
1809
1810 @item
1811 Issue the command @kbd{M-x eval-current-buffer}.
1812
1813 @item
1814 Reproduce the error.
1815 @end enumerate
1816
1817 Depending on the version of SXEmacs, you may either select View->Show
1818 Message Log (recent versions)from the menubar to see the most recent
1819 messages.  This command is bound to @kbd{C-h l} by default.
1820
1821
1822 @node Q2.1.3, Q2.1.4, Q2.1.2, Installation
1823 @unnumberedsec Q2.1.3: Translation Table Syntax messages at Startup
1824
1825 I get tons of translation table syntax error messages during startup.
1826 How do I get rid of them?
1827
1828 There are two causes of this problem.  The first usually only strikes
1829 people using the prebuilt binaries.  The culprit in both cases is the
1830 file @file{XKeysymDB}.
1831
1832 @itemize @bullet
1833 @item
1834 The binary cannot find the @file{XKeysymDB} file.  The location is
1835 hardcoded at compile time so if the system the binary was built on
1836 another machin and puts it a different place than your system does,
1837 you have problems.  To fix, set the environment variable
1838 @code{XKEYSYMDB} to the location of the @file{XKeysymDB} file on your
1839 system or to the location of the one included with SXEmacs which
1840 should be at
1841 @iftex
1842 @*
1843 @end iftex
1844 @file{<sxemacs_prefix>/lib/sxemacs-22.1.<x>/etc/XKeysymDB}.
1845
1846 @item
1847 The binary is finding the XKeysymDB but it is out-of-date on your
1848 system and does not contain the necessary lines.  Either ask your
1849 system administrator to replace it with the one which comes with
1850 SXEmacs (which is the stock R6 version and is backwards compatible) or
1851 set your @code{XKEYSYMDB} variable to the location of SXEmacs's
1852 described above.
1853 @end itemize
1854
1855
1856 @node Q2.1.4, Q2.1.5, Q2.1.3, Installation
1857 @unnumberedsec Q2.1.4: Startup warnings about deducing proper fonts?
1858
1859 How can I avoid the startup warnings about deducing proper fonts?
1860
1861 This is highly dependent on your installation, but try with the
1862 following font as your base font for SXEmacs and see what it does:
1863
1864 @format
1865 -adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1
1866 @end format
1867
1868 More precisely, do the following in your resource file:
1869
1870 @format
1871 Emacs.default.attributeFont: \
1872 -adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1
1873 @end format
1874
1875 If you just don't want to see the @samp{*Warnings*} buffer at startup
1876 time, you can set this:
1877
1878 @lisp
1879 (setq display-warning-minimum-level 'error)
1880 @end lisp
1881
1882 The buffer still exists; it just isn't in your face.
1883
1884
1885 @node Q2.1.5, Q2.1.6, Q2.1.4, Installation
1886 @unnumberedsec Q2.1.5: SXEmacs cannot connect to my X Terminal!
1887
1888 Help!  I can not get SXEmacs to display on my Envizex X-terminal!
1889
1890 Try setting the @code{DISPLAY} variable using the numeric IP address of
1891 the host you are running SXEmacs from.
1892
1893
1894 @node Q2.1.6, Q2.1.7, Q2.1.5, Installation
1895 @unnumberedsec Q2.1.6: SXEmacs just locked up my Linux X server!
1896
1897 There have been several reports of the X server locking up under
1898 Linux.  In all reported cases removing speedo and scaled fonts from
1899 the font path corrected the problem.  This can be done with the
1900 command @code{xset}.
1901
1902 It is possible that using a font server may also solve the problem.
1903
1904
1905 @node Q2.1.7, Q2.1.8, Q2.1.6, Installation
1906 @unnumberedsec Q2.1.7: HP Alt key as Meta.
1907
1908 How can I make SXEmacs recognize the Alt key of my HP workstation as a
1909 Meta key?
1910
1911 Put the following line into a file and load it with xmodmap(1) before
1912 starting SXEmacs:
1913
1914 @example
1915 remove Mod1 = Mode_switch
1916 @end example
1917
1918
1919 @node Q2.1.8, Q2.1.9, Q2.1.7, Installation
1920 @unnumberedsec Q2.1.8: got (wrong-type-argument color-instance-p nil)
1921
1922 @email{nataliek@@rd.scitec.com.au, Natalie Kershaw} writes:
1923
1924 @quotation
1925 I am trying to run xemacs 19.13 under X11R4. Whenever I move the mouse I
1926 get the following error. Has anyone seen anything like this? This
1927 doesn't occur on X11R5.
1928
1929 @lisp
1930 Signalling:
1931 (error "got (wrong-type-argument color-instance-p nil)
1932 and I don't know why!")
1933 @end lisp
1934 @end quotation
1935
1936 @email{map01kd@@gold.ac.uk, dinos} writes:
1937
1938 @quotation
1939 I think this is due to undefined resources; You need to define color
1940 backgrounds and foregrounds into your @file{.../app-defaults/Emacs}
1941 like:
1942
1943 @example
1944 *Foreground:    Black   ;everything will be of black on grey95,
1945 *Background:    Grey95  ;unless otherwise specified.
1946 *cursorColor:   Red3    ;red3 cursor with grey95 border.
1947 *pointerColor:  Red3    ;red3 pointer with grey95 border.
1948 @end example
1949 @end quotation
1950
1951 Natalie Kershaw adds:
1952
1953 @quotation
1954 What fixed the problem was adding some more colors to the X color
1955 database (copying the X11R5 colors over), and also defining the
1956 following resources:
1957
1958 @example
1959 xemacs*cursorColor:    black
1960 xemacs*pointerColor:   black
1961 @end example
1962
1963 With the new colors installed the problem still occurs if the above
1964 resources are not defined.
1965
1966 If the new colors are not present then an additional error occurs on
1967 SXEmacs startup, which says @samp{Color Red3} not defined.
1968 @end quotation
1969
1970
1971 @node Q2.1.9, Q2.1.10, Q2.1.8, Installation
1972 @unnumberedsec Q2.1.9: SXEmacs causes my OpenWindows 3.0 server to crash.
1973
1974 The OpenWindows 3.0 server is incredibly buggy.  Your best bet is to
1975 replace it with one from the generic MIT X11 release.  You might also
1976 try disabling parts of your @file{init.el}, like those that enable
1977 background pixmaps.
1978
1979
1980 @node Q2.1.10, Q2.1.11, Q2.1.9, Installation
1981 @unnumberedsec Q2.1.10: Warnings from incorrect key modifiers.
1982
1983 The following information comes from the @file{PROBLEMS} file that comes
1984 with SXEmacs.
1985
1986 If you're having troubles with HP/UX it is because HP/UX defines the
1987 modifiers wrong in X.  Here is a shell script to fix the problem; be
1988 sure that it is run after VUE configures the X server.
1989
1990 @example
1991 #! /bin/sh
1992 xmodmap 2> /dev/null - << EOF
1993 keysym Alt_L = Meta_L
1994 keysym Alt_R = Meta_R
1995 EOF
1996
1997 xmodmap - << EOF
1998 clear mod1
1999 keysym Mode_switch = NoSymbol
2000 add mod1 = Meta_L
2001 keysym Meta_R = Mode_switch
2002 add mod2 = Mode_switch
2003 EOF
2004 @end example
2005
2006
2007 @node Q2.1.11, Q2.1.12, Q2.1.10, Installation
2008 @unnumberedsec Q2.1.11: @samp{Can't instantiate image error...} in toolbar
2009 @c New
2010
2011 @email{expt@@alanine.ram.org, Dr. Ram Samudrala} writes:
2012
2013 I just installed the XEmacs (20.4-2) RPMS that I downloaded from
2014 @uref{http://www.xemacs.org/}.  Everything works fine, except that when
2015 I place my mouse over the toolbar, it beeps and gives me this message:
2016
2017 @example
2018  Can't instantiate image (probably cached):
2019  [xbm :mask-file "/usr/include/X11/bitmaps/leftptrmsk :mask-data
2020  (16 16 <strange control characters> ...
2021 @end example
2022
2023 @email{kyle_jones@@wonderworks.com, Kyle Jones} writes:
2024 @quotation
2025 This is problem specific to some Chips and Technologies video
2026 chips, when running XFree86.  Putting
2027
2028 @code{Option "sw_cursor"}
2029
2030 in @file{XF86Config} gets rid of the problem.
2031 @end quotation
2032
2033
2034 @node Q2.1.12, Q2.1.13, Q2.1.11, Installation
2035 @unnumberedsec Q2.1.12: Problems with Regular Expressions on DEC OSF1.
2036
2037 @c I have xemacs 19.13 running on an alpha running OSF1 V3.2 148 and ispell
2038 @c would not run because it claimed the version number was incorrect
2039 @c although it was indeed OK. I traced the problem to the regular
2040 @c expression handler.
2041 @c
2042 @c @email{douglask@@dstc.edu.au, Douglas Kosovic} writes:
2043 @c
2044 @c @quotation
2045 @c Actually it's a DEC cc optimisation bug that screws up the regexp
2046 @c handling in XEmacs.
2047 @c
2048 @c Rebuilding using the @samp{-migrate} switch for DEC cc (which uses a
2049 @c different sort of optimisation) works fine.
2050 @c @end quotation
2051 @c
2052 @c See @file{xemacs-19_13-dunix-3_2c.patch} at the following URL on how to
2053 @c build with the @samp{-migrate} flag:
2054 @c
2055 @c @example
2056 @c @uref{http://www-digital.cern.ch/carney/emacs/emacs.html}
2057 @c @c Link above, <URL:http://www-digital.cern.ch/carney/emacs/emacs.html> is
2058 @c @c dead. And the directory `carney' is empty.
2059 @c
2060 @c
2061 @c
2062 @c @end example
2063 @c
2064 @c NOTE: There have been a variety of other problems reported that are
2065 @c fixed in this fashion.
2066
2067 Does not apply anymore.
2068
2069
2070 @node Q2.1.13, Q2.1.14, Q2.1.12, Installation
2071 @unnumberedsec Q2.1.13: HP/UX 10.10 and @code{create_process} failure.
2072
2073 @c @email{Dave.Carrigan@@ipl.ca, Dave Carrigan} writes:
2074 @c
2075 @c @quotation
2076 @c With XEmacs 19.13 and HP/UX 10.10, anything that relies on the
2077 @c @code{create_process} function fails. This breaks a lot of things
2078 @c (shell-mode, compile, ange-ftp, to name a few).
2079 @c @end quotation
2080 @c
2081 @c @email{johnson@@dtc.hp.com, Phil Johnson} writes:
2082 @c
2083 @c @quotation
2084 @c This is a problem specific to HP-UX 10.10.  It only occurs when XEmacs
2085 @c is compiled for shared libraries (the default), so you can work around
2086 @c it by compiling a statically-linked binary (run configure with
2087 @c @samp{--dynamic=no}).
2088 @c
2089 @c I'm not sure whether the problem is with a particular shared library or
2090 @c if it's a kernel problem which crept into 10.10.
2091 @c @end quotation
2092 @c
2093 @c @email{cognot@@ensg.u-nancy.fr, Richard Cognot} writes:
2094 @c
2095 @c @quotation
2096 @c I had a few problems with 10.10. Apparently, some of them were solved by
2097 @c forcing a static link of libc (manually).
2098 @c @end quotation
2099
2100 Does not apply anymore.
2101
2102
2103 @node Q2.1.14, Q2.1.15, Q2.1.13, Installation
2104 @unnumberedsec Q2.1.14: @kbd{C-g} doesn't work for me.  Is it broken?
2105
2106 @email{ben@@xemacs.org, Ben Wing} writes:
2107
2108 @quotation
2109 @kbd{C-g} does work for most people in most circumstances.  If it
2110 doesn't, there are only two explanations:
2111
2112 @enumerate
2113 @item
2114 The code is wrapped with a binding of @code{inhibit-quit} to
2115 @code{t}.  @kbd{Ctrl-Shift-G} should still work, I think.
2116
2117 @item
2118 SIGIO is broken on your system, but BROKEN_SIGIO isn't defined.
2119 @end enumerate
2120
2121 To test #2, try executing @code{(while t)} from the @samp{*scratch*}
2122 buffer.  If @kbd{C-g} doesn't interrupt, then you're seeing #2.
2123 @end quotation
2124
2125 @email{terra@@diku.dk, Morten Welinder} writes:
2126
2127 @quotation
2128 On some (but @emph{not} all) machines a hung SXEmacsen can be revived
2129 by @code{kill -FPE <pid>}.  This is a hack, of course, not a solution.
2130 This technique works on a Sun4 running 4.1.3_U1.  To see if it works
2131 for you, start another SXEmacs and test with that first.  If you get a
2132 core dump the method doesn't work and if you get @samp{Arithmetic
2133 error} then it does.
2134 @end quotation
2135
2136
2137 @node Q2.1.15, Q2.1.16, Q2.1.14, Installation
2138 @unnumberedsec Q2.1.15: How to debug a SXEmacs problem with a debugger
2139
2140 If SXEmacs does crash on you, one of the most productive things you
2141 can do to help get the bug fixed is to poke around a bit with the
2142 debugger.  Here are some hints:
2143
2144 @itemize @bullet
2145 @item
2146 First of all, if the crash is at all reproducible, consider very
2147 strongly recompiling your SXEmacs with debugging symbols and with no
2148 optimisation (e.g. with GCC use the compiler flags @samp{-g -O0} --
2149 that's an "oh" followed by a zero), and with the configure options
2150 @samp{--debug=yes} and @samp{--error-checking=all}.  This will make
2151 your SXEmacs run somewhat slower, but you are a lot more likely to
2152 catch the problem earlier (closer to its source).  It makes it a lot
2153 easier to determine what's going on with a debugger.
2154
2155 @item
2156 If it's not a true crash (@emph{i.e.}, SXEmacs is hung, or a zombie
2157 process), or it's inconvenient to run SXEmacs again because SXEmacs is
2158 already running or is running in batch mode as part of a bunch of
2159 scripts, you may be able to attach to the existing process with your
2160 debugger.  Most debuggers let you do this by substituting the process ID
2161 for the core file when you invoke the debugger from the command line, or
2162 by using the @code{attach} command or something similar.
2163
2164 @item
2165 If you're able to run SXEmacs under a debugger and reproduce the crash,
2166 here are some things you can do:
2167
2168 @item
2169 If SXEmacs is hitting an assertion failure, put a breakpoint on
2170 @code{assert_failed()}.
2171
2172 @item
2173 If SXEmacs is hitting some weird Lisp error that's causing it to crash
2174 (e.g. during startup), put a breakpoint on @code{signal_1()}---this is
2175 declared static in eval.c.
2176
2177 @item
2178 If SXEmacs is outputting lots of X errors, put a breakpoint on
2179 @code{x_error_handler()}; that will tell you which call is causing them.
2180
2181 @item
2182 Internally, you will probably see lots of variables that hold objects of
2183 type @code{Lisp_Object}.  These are references to Lisp objects.
2184 Printing them out with the debugger probably won't be too
2185 useful---you'll likely just see a number.  To decode them, do this:
2186
2187 @example
2188 call dp (OBJECT)
2189 @end example
2190
2191 where @var{OBJECT} is whatever you want to decode (it can be a variable,
2192 a function call, etc.).  This uses the Lisp printing routines to out a
2193 readable representation on the TTY from which the sxemacs process was
2194 invoked.
2195
2196 @item
2197 If you want to get a Lisp backtrace showing the Lisp call
2198 stack, do this:
2199
2200 @example
2201 call db ()
2202 @end example
2203
2204 @item
2205 Using @code{dp} and @code{db} has two disadvantages - they can only be
2206 used with a running (including hung or zombie) sxemacs process, and they
2207 do not display the internal C structure of a Lisp Object.  Even if all
2208 you've got is a core dump, all is not lost.
2209
2210 If you're using GDB, there are some macros in the file
2211 @file{src/.gdbinit} in the SXEmacs source distribution that should
2212 make it easier for you to decode Lisp objects.  This file is
2213 automatically read by gdb if gdb is run in the directory where sxemacs
2214 was built, and contains these useful macros to inspect the state of
2215 sxemacs:
2216
2217 @table @code
2218 @item pobj
2219 Usage: pobj lisp_object @*
2220 Print the internal C representation of a lisp object.
2221
2222 @item xtype
2223 Usage: xtype lisp_object @*
2224 Print the Lisp type of a lisp object.
2225
2226 @item lbt
2227 Usage: lbt @*
2228 Print the current Lisp stack trace.
2229 Requires a running sxemacs process.  (It works by calling the db
2230 routine described above.)
2231
2232 @item ldp
2233 Usage: ldp lisp_object @*
2234 Print a Lisp Object value using the Lisp printer.
2235 Requires a running sxemacs process.  (It works by calling the dp
2236 routine described above.)
2237
2238 @item run-temacs
2239 Usage: run-temacs @*
2240 Run temacs interactively, like sxemacs.
2241 Use this with debugging tools (like purify) that cannot deal with
2242 dumping, or when temacs builds successfully, but sxemacs does not.
2243
2244 @item dump-temacs
2245 Usage: dump-temacs @*
2246 Run the dumping part of the build procedure.
2247 Use when debugging temacs, not sxemacs!
2248 Use this when temacs builds successfully, but sxemacs does not.
2249
2250 @item check-sxemacs
2251 Usage: check-sxemacs @*
2252 Run the test suite.  Equivalent to 'make check'.
2253
2254 @item check-temacs
2255 Usage: check-temacs @*
2256 Run the test suite on temacs.  Equivalent to 'make check-temacs'.
2257 Use this with debugging tools (like purify) that cannot deal with dumping,
2258 or when temacs builds successfully, but sxemacs does not.
2259 @end table
2260
2261 If you are using Sun's @file{dbx} debugger, there is an equivalent file
2262 @file{src/.dbxrc}, which defines the same commands for dbx.
2263
2264 @item
2265 If you're using a debugger to get a C stack backtrace and you're seeing
2266 stack traces with some of the innermost frames mangled, it may be due to
2267 dynamic linking. (This happens especially under Linux.) Consider
2268 reconfiguring with @samp{--dynamic=no}.  Also, sometimes (again under
2269 Linux), stack backtraces of core dumps will have the frame where the
2270 fatal signal occurred mangled; if you can obtain a stack trace while
2271 running the SXEmacs process under a debugger, the stack trace should
2272 be clean.
2273
2274 @c @email{1CMC3466@@ibm.mtsac.edu, Curtiss} suggests upgrading to ld.so
2275 @c version 1.8 if dynamic linking and debugging is a problem on Linux.
2276
2277 @item
2278 If you're using a debugger to get a C stack backtrace and you're
2279 getting a completely mangled and bogus stack trace, it's probably due to
2280 one of the following:
2281
2282 @enumerate a
2283 @item
2284 Your executable has been stripped.  Bad news.  Tell your sysadmin not to
2285 do this---it doesn't accomplish anything except to save a bit of disk
2286 space, and makes debugging much much harder.
2287
2288 @item
2289 Your stack is getting trashed.  Debugging this is hard; you have to do a
2290 binary-search type of narrowing down where the crash occurs, until you
2291 figure out exactly which line is causing the problem.  Of course, this
2292 only works if the bug is highly reproducible.  Also, in many cases if
2293 you run SXEmacs from the debugger, the debugger can protect the stack
2294 somewhat.  However, if the stack is being smashed, it is typically the
2295 case that there is a wild pointer somewhere in the program, often
2296 quite far from where the crash occurs.
2297
2298 @item
2299 If your stack trace has exactly one frame in it, with address 0x0, this
2300 could simply mean that SXEmacs attempted to execute code at that
2301 address, e.g. through jumping to a null function pointer.
2302 Unfortunately, under those circumstances, GDB under Linux doesn't know
2303 how to get a stack trace.
2304 Yes, this is the fourth Linux-related problem I've mentioned.  I
2305 have no idea why GDB under Linux is so bogus.  Complain to the GDB
2306 authors, or to comp.os.linux.development.system.  Again, you'll have
2307 to use the narrowing-down process described above.
2308
2309 @item
2310 You will get a Lisp backtrace output when SXEmacs crashes, so you'll have
2311 something useful.
2312
2313 @end enumerate
2314 @end itemize
2315
2316
2317 @node Q2.1.16, Q2.1.17, Q2.1.15, Installation
2318 @unnumberedsec Q2.1.16: SXEmacs crashes in @code{strcat} on HP/UX 10
2319
2320 From the problems database (through
2321 the former address http://support.mayfield.hp.com/):
2322
2323 @example
2324 Problem Report: 5003302299
2325 Status:         Open
2326
2327 System/Model:   9000/700
2328 Product Name:   HPUX S800 10.0X
2329 Product Vers:   9245XB.10.00
2330
2331 Description: strcat(3C) may read beyond
2332 end of source string, can cause SIGSEGV
2333
2334
2335 *** PROBLEM TEXT ***
2336 strcat(3C) may read beyond the source string onto an unmapped page,
2337 causing a segmentation violation.
2338 @end example
2339
2340
2341 @node Q2.1.17, Q2.1.18, Q2.1.16, Installation
2342 @unnumberedsec Q2.1.17: @samp{Marker does not point anywhere}
2343
2344 As with other errors, set @code{debug-on-error} to @code{t} to get the
2345 backtrace when the error occurs.
2346
2347
2348 @node Q2.1.18, Q2.1.19, Q2.1.17, Installation
2349 @unnumberedsec Q2.1.18: SXEmacs is outputting lots of X errors.
2350
2351 If this is happening, we would very much like to know what's causing
2352 them.  To find this out, see @ref{Q2.1.15}.  Try to get both a C and Lisp
2353 backtrace, and send them to @email{sxemacs-devel@@sxemacs.org}.
2354
2355
2356 @node Q2.1.19, Q2.1.20, Q2.1.18, Installation
2357 @unnumberedsec Q2.1.19: SXEmacs does not follow the local timezone.
2358
2359 When using one of the prebuilt binaries many users have observed that
2360 SXEmacs uses the timezone under which it was built, but not the
2361 timezone under which it is running.  The solution is to add:
2362
2363 @lisp
2364 (set-time-zone-rule "MET")
2365 @end lisp
2366
2367 to your @file{init.el} or the @file{site-start.el} file if you can.
2368 Replace @code{MET} with your local timezone.
2369
2370
2371 @node Q2.1.20, Q2.1.21, Q2.1.19, Installation
2372 @unnumberedsec Q2.1.20: @samp{Symbol's function definition is void: hkey-help-show.}
2373
2374 This is a problem with a partially loaded hyperbole.  Try adding:
2375
2376 @lisp
2377 (require 'hmouse-drv)
2378 @end lisp
2379
2380 where you load hyperbole and the problem should go away.
2381
2382
2383 @node Q2.1.21, Q2.1.22, Q2.1.20, Installation
2384 @unnumberedsec Q2.1.21: [This question intentionally left blank]
2385
2386
2387 @node Q2.1.22, Q2.1.23, Q2.1.21, Installation
2388 @unnumberedsec Q2.1.22: SXEmacs seems to take a really long time to do some things
2389
2390 @email{dmoore@@ucsd.edu, David Moore} writes:
2391
2392 @quotation
2393 Two things you can do:
2394
2395 1) C level:
2396
2397 When you see it going mad like this, you might want to use gdb from an
2398 'xterm' to attach to the running process and get a stack trace.  To do
2399 this just run:
2400
2401 @example
2402 gdb /path/to/sxemacs/sxemacs ####
2403 @end example
2404
2405 Where @code{####} is the process id of your sxemacs, instead of
2406 specifying the core.  When gdb attaches, the sxemacs will stop [1] and
2407 you can type `where' in gdb to get a stack trace as usual.  To get
2408 things moving again, you can just type `quit' in gdb.  It'll tell you
2409 the program is running and ask if you want to quit anyways.  Say 'y' and
2410 it'll quit and have your emacs continue from where it was at.
2411
2412 2) Lisp level:
2413
2414 Turn on debug-on-quit early on.  When you think things are going slow
2415 hit C-g and it may pop you in the debugger so you can see what routine
2416 is running.  Press `c' to get going again.
2417
2418 debug-on-quit doesn't work if something's turned on inhibit-quit or in
2419 some other strange cases.
2420 @end quotation
2421
2422
2423 @node Q2.1.23, Q2.1.24, Q2.1.22, Installation
2424 @unnumberedsec Q2.1.23:  Movemail on Linux does not work for SXEmacs
2425
2426 @email{steve@@xemacs.org, SL Baur} writes:
2427
2428 @quotation
2429 Movemail on Linux used to default to using flock file locking.  It now
2430 defaults to using @code{.lock} file locking.  If this is not
2431 appropriate for your system, edit src/s/linux.h and uncomment the line
2432 that reads:
2433
2434 @example
2435 #define MAIL_USE_FLOCK
2436 @end example
2437 @end quotation
2438
2439
2440 @node Q2.1.24, Q2.1.25, Q2.1.23, Installation
2441 @unnumberedsec Q2.1.24:  SXEmacs won't start without network.
2442
2443 If SXEmacs starts when you're on the network, but fails when you're not
2444 on the network, you may be missing a "localhost" entry in your
2445 @file{/etc/hosts} file.  The file should contain an entry like:
2446
2447 @example
2448 127.0.0.1        localhost
2449 @end example
2450
2451 Add that line, and SXEmacs will be happy.
2452
2453
2454 @node Q2.1.25,  , Q2.1.24, Installation
2455 @unnumberedsec Q2.1.25::  After upgrading, SXEmacs won't do `foo' any more!
2456
2457 You have been used to doing `foo', but now when you invoke it (or click
2458 the toolbar button or select the menu item), nothing (or an error)
2459 happens.  The simplest explanation is that you are missing a package
2460 that is essential to you.  You can either track it down and install it
2461 (there is a list of packages and brief descriptions of their contents in
2462 @file{etc/PACKAGES}), or install the `Sumo Tarball' (@pxref{Q2.0.14}).
2463
2464 @c #### should xref to XEmacs manual here
2465
2466
2467 @node Customisation, Subsystems, Installation, Top
2468 @unnumbered 3 Customisation and Options
2469
2470 This is part 3 of the SXEmacs Frequently Asked Questions list.  This
2471 section is devoted to Customisation and screen settings.
2472
2473 @menu
2474 Customisation---Emacs Lisp and @file{init.el}/@file{.emacs}:
2475 * Q3.0.1::      What version of Emacs am I running?
2476 * Q3.0.2::      How do I evaluate Elisp expressions?
2477 * Q3.0.3::      @code{(setq tab-width 6)} behaves oddly.
2478 * Q3.0.4::      How can I add directories to the @code{load-path}?
2479 * Q3.0.5::      How to check if a lisp function is defined?
2480 * Q3.0.6::      Can I force the output of @code{(face-list)} to a buffer?
2481 * Q3.0.7::      Font selections don't get saved after @code{Save Options}.
2482 * Q3.0.8::      How do I make a single minibuffer frame?
2483 * Q3.0.9::      What is @code{Customize}?
2484
2485 X Window System & Resources:
2486 * Q3.1.1::      Where is a list of X resources?
2487 * Q3.1.2::      How can I detect a color display?
2488 * Q3.1.3::      [This question intentionally left blank]
2489 * Q3.1.4::      [This question intentionally left blank]
2490 * Q3.1.5::      How can I get the icon to just say @samp{SXEmacs}?
2491 * Q3.1.6::      How can I have the window title area display the full path?
2492 * Q3.1.7::      @samp{sxemacs -name junk} doesn't work?
2493 * Q3.1.8::      @samp{-iconic} doesn't work.
2494
2495 Textual Fonts & Colors:
2496 * Q3.2.1::      How can I set color options from @file{init.el}?
2497 * Q3.2.2::      How do I set the text, menu and modeline fonts?
2498 * Q3.2.3::      How can I set the colors when highlighting a region?
2499 * Q3.2.4::      How can I limit color map usage?
2500 * Q3.2.5::      My tty supports color, but SXEmacs doesn't use them.
2501 * Q3.2.6::      Can I have pixmap backgrounds in SXEmacs?
2502 * Q3.2.7::      How do I display non-ASCII characters?
2503
2504 The Modeline:
2505 * Q3.3.1::      How can I make the modeline go away?
2506 * Q3.3.2::      How do you have SXEmacs display the line number in the modeline?
2507 * Q3.3.3::      How do I get SXEmacs to put the time of day on the modeline?
2508 * Q3.3.4::      How do I turn off current chapter from AUC TeX modeline?
2509 * Q3.3.5::      How can one change the modeline color based on the mode used?
2510
2511 Multiple Device Support:
2512 * Q3.4.1::      How do I open a frame on another screen of my multi-headed display?
2513 * Q3.4.2::      Can I really connect to a running SXEmacs after calling up over a modem?  How?
2514
2515 The Keyboard:
2516 * Q3.5.1::      How can I bind complex functions (or macros) to keys?
2517 * Q3.5.2::      How can I stop down-arrow from adding empty lines to the bottom of my buffers?
2518 * Q3.5.3::      How do I bind C-. and C-; to scroll one line up and down?
2519 * Q3.5.4::      Globally binding @kbd{Delete}?
2520 * Q3.5.5::      Scrolling one line at a time.
2521 * Q3.5.6::      How to map @kbd{Help} key alone on Sun type4 keyboard?
2522 * Q3.5.7::      How can you type in special characters in SXEmacs?
2523 * Q3.5.8::      [This question intentionally left blank]
2524 * Q3.5.9::      How do I make the Delete key delete forward?
2525 * Q3.5.10::     Can I turn on @dfn{sticky} modifier keys?
2526 * Q3.5.11::     How do I map the arrow keys?
2527
2528 The Cursor:
2529 * Q3.6.1::      Is there a way to make the bar cursor thicker?
2530 * Q3.6.2::      Is there a way to get back the old block cursor where the cursor covers the character in front of the point?
2531 * Q3.6.3::      Can I make the cursor blink?
2532
2533 The Mouse and Highlighting:
2534 * Q3.7.1::      How can I turn off Mouse pasting?
2535 * Q3.7.2::      How do I set control/meta/etc modifiers on mouse buttons?
2536 * Q3.7.3::      Clicking the left button does not do anything in buffer list.
2537 * Q3.7.4::      How can I get a list of buffers when I hit mouse button 3?
2538 * Q3.7.5::      Why does cut-and-paste not work between SXEmacs and a cmdtool?
2539 * Q3.7.6::      How I can set SXEmacs up so that it pastes where the text cursor is?
2540 * Q3.7.7::      How do I select a rectangular region?
2541 * Q3.7.8::      Why does @kbd{M-w} take so long?
2542
2543 The Menubar and Toolbar:
2544 * Q3.8.1::      How do I get rid of the menu (or menubar)?
2545 * Q3.8.2::      Can I customise the basic menubar?
2546 * Q3.8.3::      How do I control how many buffers are listed in the menu @code{Buffers} list?
2547 * Q3.8.4::      Resources like @code{Emacs*menubar*font} are not working?
2548 * Q3.8.5::      How can I bind a key to a function to toggle the toolbar?
2549
2550 Scrollbars:
2551 * Q3.9.1::      How can I disable the scrollbar?
2552 * Q3.9.2::      How can one use resources to change scrollbar colors?
2553 * Q3.9.3::      Moving the scrollbar can move the point; can I disable this?
2554 * Q3.9.4::      How can I turn off automatic horizontal scrolling in specific modes?
2555
2556 Text Selections:
2557 * Q3.10.1::     How can I turn off or change highlighted selections?
2558 * Q3.10.2::     How do I get that typing on an active region removes it?
2559 * Q3.10.3::     Can I turn off the highlight during isearch?
2560 * Q3.10.4::     How do I turn off highlighting after @kbd{C-x C-p} (mark-page)?
2561 * Q3.10.5::     The region disappears when I hit the end of buffer while scrolling.
2562 * Q3.10.6::     Why is killing so slow?
2563 @end menu
2564
2565 @node Q3.0.1, Q3.0.2, Customisation, Customisation
2566 @unnumberedsec 3.0: Customisation -- Emacs Lisp and @file{init.el}
2567 @unnumberedsec Q3.0.1: What version of Emacs am I running?
2568
2569 How can @file{init.el} determine which of the family of
2570 Emacsen I am using?
2571
2572 To determine if you are currently running GNU Emacs 18, GNU Emacs 19,
2573 XEmacs 19, XEmacs 20, or Epoch, and use appropriate code, check out the
2574 example given in @file{etc/sample.init.el}.  There are other nifty
2575 things in there as well!
2576
2577 For all new code, you can use the variables @code{running-xemacs} and
2578 @code{running-sxemacs} or something like
2579
2580 @lisp
2581 (when (featurep 'sxemacs)
2582   ...)
2583 (when (featurep 'xemacs)
2584   ...)
2585 @end lisp
2586 @noindent
2587 as well.
2588
2589 Please note, that you should double check these values, if you intend
2590 to use xemacs-exclusive features.  Both, the variable
2591 @code{running-xemacs} and the form @code{(featurep 'xemacs)} evaluate
2592 to @code{t} within SXEmacs.  This is due to compatibility reasons.
2593
2594
2595 @node Q3.0.2, Q3.0.3, Q3.0.1, Customisation
2596 @unnumberedsec Q3.0.2: How can I evaluate Emacs-Lisp expressions?
2597
2598 I know I can evaluate Elisp expressions from @code{*scratch*} buffer
2599 with @kbd{C-j} after the expression.  How do I do it from another
2600 buffer?
2601
2602 Press @kbd{M-:} (the default binding of @code{eval-expression}), and
2603 enter the expression to the minibuffer.
2604
2605
2606 @node Q3.0.3, Q3.0.4, Q3.0.2, Customisation
2607 @unnumberedsec Q3.0.3: @code{(setq tab-width 6)} behaves oddly.
2608
2609 If you put @code{(setq tab-width 6)} in your @file{init.el} file it
2610 does not work!  Is there a reason for this?  If you do it at the EVAL
2611 prompt it works fine!! How strange.
2612
2613 Use @code{setq-default} instead, since @code{tab-width} is
2614 all-buffer-local.
2615
2616
2617 @node Q3.0.4, Q3.0.5, Q3.0.3, Customisation
2618 @unnumberedsec Q3.0.4: How can I add directories to the @code{load-path}?
2619
2620 Here are two ways to do that, one that puts your directories at the
2621 front of the load-path, the other at the end:
2622
2623 @lisp
2624 ;;; Add things at the beginning of the load-path, do not add
2625 ;;; duplicate directories:
2626 (pushnew "bar" load-path :test 'equal)
2627
2628 (pushnew "foo" load-path :test 'equal)
2629
2630 ;;; Add things at the end, unconditionally
2631 (setq load-path (nconc load-path '("foo" "bar")))
2632 @end lisp
2633
2634 @email{keithh@@nortel.ca, keith (k.p.) hanlan} writes:
2635
2636 @quotation
2637 To add directories using Unix shell metacharacters use
2638 @file{expand-file-name} like this:
2639
2640 @lisp
2641 (push (expand-file-name "~keithh/.emacsdir") load-path)
2642 @end lisp
2643 @end quotation
2644
2645
2646 @node Q3.0.5, Q3.0.6, Q3.0.4, Customisation
2647 @unnumberedsec Q3.0.5: How to check if a lisp function is defined?
2648
2649 Use the following elisp:
2650
2651 @lisp
2652 (fboundp 'foo)
2653 @end lisp
2654
2655 It's almost always a mistake to test @code{emacs-version} or any similar
2656 variables.
2657
2658 Instead, use feature-tests, such as @code{featurep}, @code{boundp},
2659 @code{fboundp}, or even simple behavioral tests, eg.:
2660
2661 @lisp
2662 (defvar foo-old-losing-code-p
2663   (condition-case nil (progn (losing-code t) nil)
2664     (wrong-number-of-arguments t)))
2665 @end lisp
2666
2667 There is an incredible amount of broken code out there which could work
2668 much better more often in more places if it did the above instead of
2669 trying to divine its environment from the value of one variable.
2670
2671
2672 @node Q3.0.6, Q3.0.7, Q3.0.5, Customisation
2673 @unnumberedsec Q3.0.6: Can I force the output of @code{(face-list)} to a buffer?
2674
2675 It would be good having it in a buffer, as the output of
2676 @code{(face-list)} is too wide to fit to a minibuffer.
2677
2678 Evaluate the expression in the @samp{*scratch*} buffer with point after
2679 the rightmost paren and typing @kbd{C-j}.
2680
2681 If the minibuffer smallness is the only problem you encounter, you can
2682 simply press @kbd{C-h l} to get the former minibuffer contents in a
2683 buffer.
2684
2685
2686 @node Q3.0.7, Q3.0.8, Q3.0.6, Customisation
2687 @unnumberedsec Q3.0.7: Font selections in don't get saved after @code{Save Options}.
2688
2689 @email{mannj@@ll.mit.edu, John Mann} writes:
2690
2691 @quotation
2692 You have to go to Options->Frame Appearance and unselect
2693 @samp{Frame-Local Font Menu}.  If this option is selected, font changes
2694 are only applied to the @emph{current} frame and do @emph{not} get saved
2695 when you save options.
2696 @end quotation
2697
2698 Also, set the following in your @file{init.el}:
2699
2700 @lisp
2701 (setq options-save-faces t)
2702 @end lisp
2703
2704
2705 @node Q3.0.8, Q3.0.9, Q3.0.7, Customisation
2706 @unnumberedsec Q3.0.8: How do I get a single minibuffer frame?
2707
2708 @email{acs@@acm.org, Vin Shelton} writes:
2709
2710 @lisp
2711 (setq initial-frame-plist '(minibuffer nil))
2712 (setq default-frame-plist '(minibuffer nil))
2713 (setq default-minibuffer-frame
2714       (make-frame
2715        '(minibuffer only
2716                     width 86
2717                     height 1
2718                     menubar-visible-p nil
2719                     default-toolbar-visible-p nil
2720                     name "minibuffer"
2721                     top -2
2722                     left -2
2723                     has-modeline-p nil)))
2724 (frame-notice-user-settings)
2725 @end lisp
2726
2727 @strong{Please note:} The single minibuffer frame may not be to everyone's
2728 taste, and there any number of other SXEmacs options settings that may
2729 make it difficult or inconvenient to use.
2730
2731
2732 @node Q3.0.9, Q3.1.1, Q3.0.8, Customisation
2733 @unnumberedsec Q3.0.9: What is @code{Customize}?
2734
2735 Starting with XEmacs 20.2 there is new system 'Customize' for customising
2736 SXEmacs options.
2737
2738 You can access @code{Customize} from the @code{Options} menu
2739 or invoking one of customize commands by typing eg.
2740 @kbd{M-x customize}, @kbd{M-x customize-face},
2741 @kbd{M-x customize-variable} or @kbd{M-x customize-apropos}.
2742
2743 Also try out with @kbd{M-x customize-browse}
2744
2745
2746 @node Q3.1.1, Q3.1.2, Q3.0.9, Customisation
2747 @unnumberedsec 3.1: X Window System & Resources
2748 @unnumberedsec Q3.1.1: Where is a list of X resources?
2749
2750 Search through the @file{NEWS} file for @samp{X Resources}.  A fairly
2751 comprehensive list is given after it.
2752
2753 In addition, an @file{app-defaults} file @file{etc/Emacs.ad} is
2754 supplied, listing the defaults.  The file @file{etc/sample.Xresources}
2755 gives a different set of defaults that you might consider for
2756 installation in your @file{~/.Xresources} file.  It is nearly the same
2757 as @file{etc/Emacs.ad}, but a few entries are altered.  Be careful about
2758 installing the contents of this file into your @file{.Xresources} (or
2759 legacy @file{.Xdefaults}) file if you use GNU Emacs under X11 as well.
2760
2761
2762 @node Q3.1.2, Q3.1.3, Q3.1.1, Customisation
2763 @unnumberedsec Q3.1.2: How can I detect a color display?
2764
2765 You can test the return value of the function @code{(device-class)}, as
2766 in:
2767
2768 @lisp
2769 (when (eq (device-class) 'color)
2770   (set-face-foreground  'font-lock-comment-face "Grey")
2771   (set-face-foreground  'font-lock-string-face  "Red")
2772   ....
2773   )
2774 @end lisp
2775
2776
2777 @node Q3.1.3, Q3.1.4, Q3.1.2, Customisation
2778 @unnumberedsec Q3.1.3: [This question intentionally left blank]
2779
2780 @node Q3.1.4, Q3.1.5, Q3.1.3, Customisation
2781 @unnumberedsec Q3.1.4: [This question intentionally left blank]
2782
2783
2784 @node Q3.1.5, Q3.1.6, Q3.1.4, Customisation
2785 @unnumberedsec Q3.1.5: How can I get the icon to just say @samp{SXEmacs}?
2786
2787 I'd like the icon to just say @samp{SXEmacs}, and not include the name of
2788 the current file in it.
2789
2790 Add the following line to your @file{init.el}:
2791
2792 @lisp
2793 (setq frame-icon-title-format "SXEmacs")
2794 @end lisp
2795
2796
2797 @node Q3.1.6, Q3.1.7, Q3.1.5, Customisation
2798 @unnumberedsec Q3.1.6: How can I have the window title area display the full path?
2799
2800 I'd like to have the window title area display the full directory/name
2801 of the current buffer file and not just the name.
2802
2803 Add the following line to your @file{init.el}:
2804
2805 @lisp
2806 (setq frame-title-format "%S: %f")
2807 @end lisp
2808
2809 A more sophisticated title might be:
2810
2811 @lisp
2812 (setq frame-title-format
2813       '("%S: " (buffer-file-name "%f"
2814                                  (dired-directory dired-directory "%b"))))
2815 @end lisp
2816
2817 That is, use the file name, or the dired-directory, or the buffer name.
2818
2819
2820 @node Q3.1.7, Q3.1.8, Q3.1.6, Customisation
2821 @unnumberedsec Q3.1.7: @samp{sxemacs -name junk} doesn't work?
2822
2823 When I run @samp{xterm -name junk}, I get an xterm whose class name
2824 according to xprop, is @samp{junk}.  This is the way it's supposed to
2825 work, I think.  When I run @samp{sxemacs -name junk} the class name is
2826 not set to @samp{junk}.  It's still @samp{emacs}.  What does
2827 @samp{sxemacs -name} really do?  The reason I ask is that my window
2828 manager (fvwm) will make a window sticky and I use SXEmacs to read my
2829 mail.  I want that SXEmacs window to be sticky, without having to use the
2830 window manager's function to set the window sticky.  What gives?
2831
2832 @samp{sxemacs -name} sets the application name for the program (that is,
2833 the thing which normally comes from @samp{argv[0]}).  Using @samp{-name}
2834 is the same as making a copy of the executable with that new name.  The
2835 @code{WM_CLASS} property on each frame is set to the frame-name, and the
2836 application-class.  So, if you did @samp{sxemacs -name FOO} and then
2837 created a frame named @var{BAR}, you'd get an X window with WM_CLASS =
2838 @code{( "BAR", "Emacs")}.  However, the resource hierarchy for this
2839 widget would be:
2840
2841 @example
2842 Name:    FOO   .shell             .container   .BAR
2843 Class:   Emacs .TopLevelEmacsShell.EmacsManager.EmacsFrame
2844 @end example
2845
2846 instead of the default
2847
2848 @example
2849 Name:    sxemacs.shell            .container   .emacs
2850 Class:   Emacs .TopLevelEmacsShell.EmacsManager.EmacsFrame
2851 @end example
2852
2853
2854 It is arguable that the first element of WM_CLASS should be set to the
2855 application-name instead of the frame-name, but I think that's less
2856 flexible, since it does not give you the ability to have multiple frames
2857 with different WM_CLASS properties.  Another possibility would be for
2858 the default frame name to come from the application name instead of
2859 simply being @samp{emacs}.  However, at this point, making that change
2860 would be troublesome: it would mean that many users would have to make
2861 yet another change to their resource files (since the default frame name
2862 would suddenly change from @samp{emacs} to @samp{sxemacs}, or whatever
2863 the executable happened to be named), so we'd rather avoid it.
2864
2865 To make a frame with a particular name use:
2866
2867 @lisp
2868 (make-frame '((name . "the-name")))
2869 @end lisp
2870
2871
2872 @node Q3.1.8, Q3.2.1, Q3.1.7, Customisation
2873 @unnumberedsec Q3.1.8: @samp{-iconic} doesn't work.
2874
2875 When I start up SXEmacs using @samp{-iconic} it doesn't work right.
2876 Using @samp{-unmapped} on the command line, and setting the
2877 @code{initiallyUnmapped} X Resource don't seem to help much either...
2878
2879 @email{ben@@xemacs.org, Ben Wing} writes:
2880
2881 @quotation
2882 Ugh, this stuff is such an incredible mess that I've about given up
2883 getting it to work.  The principal problem is numerous window-manager
2884 bugs...
2885 @end quotation
2886
2887
2888 @node Q3.2.1, Q3.2.2, Q3.1.8, Customisation
2889 @unnumberedsec 3.2: Textual Fonts & Colors
2890 @unnumberedsec Q3.2.1: How can I set color options from @file{init.el}?
2891
2892 How can I set the most commonly used color options from my
2893 @file{init.el} instead of from my @file{.Xresources}?
2894
2895 Like this:
2896