0
|
1 \input texinfo.tex @c -*-texinfo-*-
|
|
2 @c %**start of header
|
116
|
3 @setfilename xemacs-faq.info
|
0
|
4 @settitle Frequently asked questions about XEmacs
|
|
5 @setchapternewpage off
|
|
6 @c %**end of header
|
|
7
|
|
8 @titlepage
|
|
9 @title XEmacs FAQ
|
|
10 @subtitle Frequently asked questions about XEmacs
|
213
|
11 @subtitle Last Modified: 1997-11-10
|
0
|
12 @sp 1
|
98
|
13 @author Tony Rossini <arossini@@stat.sc.edu>
|
169
|
14 @author Ben Wing <wing@@666.com>
|
0
|
15 @author Chuck Thompson <cthomp@@cs.uiuc.edu>
|
82
|
16 @author Steve Baur <steve@@miranova.com>
|
126
|
17 @author Andreas Kaempf <andreas@@sccon.com>
|
0
|
18 @page
|
|
19 @end titlepage
|
|
20
|
82
|
21 @node Top, Introduction, (dir), (dir)
|
|
22 @top XEmacs FAQ
|
|
23
|
|
24 This is the guide to the XEmacs Frequently Asked Questions list---a
|
|
25 compendium of questions and answers pertaining to one of the finest
|
|
26 programs ever written. It is much more than just a Text Editor.
|
|
27
|
|
28 This FAQ is freely redistributable. I take no liability for the
|
|
29 correctness and safety of any procedures or advice given here. This
|
|
30 FAQ is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
31 WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
32 FITNESS FOR A PARTICULAR PURPOSE.
|
|
33
|
|
34 If you have a Web browser, the official hypertext version is at
|
163
|
35 <URL:http://www.sccon.com/~andreas/xemacs-faq.html> and also at
|
82
|
36 <URL:http://www.xemacs.org/faq/xemacs-faq.html>. This version is much
|
|
37 nicer than the unofficial hypertext versions that are archived at
|
|
38 Utrecht, Oxford, Smart Pages, and other FAQ archives.
|
0
|
39
|
|
40 @menu
|
82
|
41 * Introduction:: Introduction, Policy, Credits.
|
|
42 * Installation:: Installation and Trouble Shooting.
|
|
43 * Customization:: Customization and Options.
|
|
44 * Subsystems:: Major Subsystems.
|
|
45 * Miscellaneous:: The Miscellaneous Stuff.
|
|
46 * Current Events:: What the Future Holds.
|
207
|
47
|
|
48 @detailmenu
|
|
49
|
|
50 --- The Detailed Node Listing ---
|
|
51
|
|
52 Introduction, Policy, Credits
|
|
53
|
|
54 * Q1.0.1:: What is XEmacs?
|
|
55 * Q1.0.2:: What is the current version of XEmacs?
|
|
56 * Q1.0.3:: Where can I find it?
|
|
57 * Q1.0.4:: Why Another Version of Emacs?
|
|
58 * Q1.0.5:: Why Haven't XEmacs and GNU Emacs Merged?
|
|
59 * Q1.0.6:: Where can I get help?
|
|
60 * Q1.0.7:: Where is the mailing list archived?
|
|
61 * Q1.0.8:: How do you pronounce XEmacs?
|
|
62 * Q1.0.9:: What does XEmacs look like?
|
|
63 * Q1.0.10:: Is there a port of XEmacs to Microsoft ('95 or NT)?
|
|
64 * Q1.0.11:: Is there a port of XEmacs to the Macintosh?
|
|
65 * Q1.0.12:: Is there a port of XEmacs to NextStep?
|
|
66 * Q1.0.13:: Is there a port of XEmacs to OS/2?
|
|
67 * Q1.0.14:: Where can I get a printed copy of the XEmacs users manual?
|
|
68
|
|
69 Policies:
|
|
70 * Q1.1.1:: What is the FAQ editorial policy?
|
|
71 * Q1.1.2:: How do I become a Beta Tester?
|
|
72 * Q1.1.3:: How do I contribute to XEmacs itself?
|
|
73
|
|
74 Credits:
|
|
75 * Q1.2.1:: Who wrote XEmacs?
|
|
76 * Q1.2.2:: Who contributed to this version of the FAQ?
|
|
77 * Q1.2.3:: Who contributed to the FAQ in the past?
|
|
78
|
|
79 Internationalization:
|
|
80 * Q1.3.1:: What is the status of XEmacs v20?
|
|
81 * Q1.3.2:: What is the status of Asian-language support, aka @var{mule}?
|
|
82 * Q1.3.3:: How do I type non-ASCII characters?
|
|
83 * Q1.3.4:: Can XEmacs messages come out in a different language?
|
|
84 * Q1.3.5:: Please explain the various input methods in MULE/XEmacs 20.0
|
|
85 * Q1.3.6:: How do I portably code for MULE/XEmacs 20.0?
|
|
86 * Q1.3.7:: How about Cyrillic Modes?
|
|
87
|
|
88 Getting Started:
|
|
89 * Q1.4.1:: What is a @file{.emacs} and is there a sample one?
|
|
90 * Q1.4.2:: Can I use the same @file{.emacs} with the other Emacs?
|
|
91 * Q1.4.3:: Any good XEmacs tutorials around?
|
|
92 * Q1.4.4:: May I see an example of a useful XEmacs Lisp function?
|
|
93 * Q1.4.5:: And how do I bind it to a key?
|
|
94 * Q1.4.6:: What's the difference between a macro and a function?
|
|
95 * Q1.4.7:: Why options saved with 19.13 don't work with 19.14 or later?
|
|
96
|
|
97 Installation and Trouble Shooting
|
|
98
|
|
99 * Q2.0.1:: Running XEmacs without installing.
|
|
100 * Q2.0.2:: XEmacs is too big.
|
|
101 * Q2.0.3:: Compiling XEmacs with Netaudio.
|
|
102 * Q2.0.4:: Problems with Linux and ncurses.
|
|
103 * Q2.0.5:: Do I need X11 to run XEmacs?
|
|
104 * Q2.0.6:: I'm having strange crashes. What do I do?
|
|
105 * Q2.0.7:: Libraries in non-standard locations.
|
|
106 * Q2.0.8:: can't resolve symbol _h_errno
|
|
107 * Q2.0.9:: Where do I find external libraries?
|
|
108 * Q2.0.10:: After I run configure I find a coredump, is something wrong?
|
|
109 * Q2.0.11:: XEmacs can't resolve host names.
|
|
110 * Q2.0.12:: Why can't I strip XEmacs?
|
|
111 * Q2.0.13:: Can't link XEmacs on Solaris with Gcc.
|
|
112 * Q2.0.14:: Make on HP/UX 9 fails after linking temacs
|
|
113
|
|
114 Trouble Shooting:
|
|
115 * Q2.1.1:: XEmacs just crashed on me!
|
|
116 * Q2.1.2:: Cryptic Minibuffer messages.
|
|
117 * Q2.1.3:: Translation Table Syntax messages at Startup.
|
|
118 * Q2.1.4:: Startup warnings about deducing proper fonts?
|
|
119 * Q2.1.5:: XEmacs cannot connect to my X Terminal.
|
|
120 * Q2.1.6:: XEmacs just locked up my Linux X server.
|
|
121 * Q2.1.7:: HP Alt key as Meta.
|
|
122 * Q2.1.8:: got (wrong-type-argument color-instance-p nil)!
|
|
123 * Q2.1.9:: XEmacs causes my OpenWindows 3.0 server to crash.
|
|
124 * Q2.1.10:: Warnings from incorrect key modifiers.
|
|
125 * Q2.1.11:: [This question intentionally left blank]
|
|
126 * Q2.1.12:: Regular Expression Problems on DEC OSF1.
|
|
127 * Q2.1.13:: HP/UX 10.10 and @code{create_process} failure
|
|
128 * Q2.1.14:: @kbd{C-g} doesn't work for me. Is it broken?
|
|
129 * Q2.1.15:: How to debug an XEmacs problem with a debugger.
|
|
130 * Q2.1.16:: XEmacs crashes in @code{strcat} on HP/UX 10.
|
|
131 * Q2.1.17:: @samp{Marker does not point anywhere}.
|
|
132 * Q2.1.18:: 19.14 hangs on HP/UX 10.10.
|
|
133 * Q2.1.19:: XEmacs does not follow the local timezone.
|
|
134 * Q2.1.20:: @samp{Symbol's function definition is void: hkey-help-show.}
|
|
135 * Q2.1.21:: Every so often the XEmacs frame freezes.
|
|
136 * Q2.1.22:: XEmacs seems to take a really long time to do some things.
|
|
137 * Q2.1.23:: Movemail on Linux does not work for XEmacs 19.15 and later.
|
|
138
|
|
139 Customization and Options
|
|
140
|
|
141 * Q3.0.1:: What version of Emacs am I running?
|
|
142 * Q3.0.2:: How do I evaluate Elisp expressions?
|
|
143 * Q3.0.3:: @code{(setq tab-width 6)} behaves oddly.
|
|
144 * Q3.0.4:: How can I add directories to the @code{load-path}?
|
|
145 * Q3.0.5:: How to check if a lisp function is defined?
|
|
146 * Q3.0.6:: Can I force the output of @code{(face-list)} to a buffer?
|
|
147 * Q3.0.7:: Font selections don't get saved after @code{Save Options}.
|
|
148 * Q3.0.8:: How do I make a single minibuffer frame?
|
|
149
|
|
150 X Window System & Resources:
|
|
151 * Q3.1.1:: Where is a list of X resources?
|
|
152 * Q3.1.2:: How can I detect a color display?
|
|
153 * Q3.1.3:: @code{(set-screen-width)} worked in 19.6, but not in 19.13?
|
|
154 * Q3.1.4:: Specifiying @code{Emacs*EmacsScreen.geometry} in @file{.emacs} does not work in 19.15?
|
|
155 * Q3.1.5:: How can I get the icon to just say @samp{XEmacs}?
|
|
156 * Q3.1.6:: How can I have the window title area display the full path?
|
|
157 * Q3.1.7:: @samp{xemacs -name junk} doesn't work?
|
|
158 * Q3.1.8:: @samp{-iconic} it doesn't work.
|
|
159
|
|
160 Textual Fonts & Colors:
|
|
161 * Q3.2.1:: How can I set color options from @file{.emacs}?
|
|
162 * Q3.2.2:: How do I set the text, menu and modeline fonts?
|
|
163 * Q3.2.3:: How can I set the colors when highlighting a region?
|
|
164 * Q3.2.4:: How can I limit color map usage?
|
|
165 * Q3.2.5:: My tty supports color, but XEmacs doesn't use them.
|
|
166
|
|
167 The Modeline:
|
|
168 * Q3.3.1:: How can I make the modeline go away?
|
|
169 * Q3.3.2:: How do you have XEmacs display the line number in the modeline?
|
|
170 * Q3.3.3:: How do I get XEmacs to put the time of day on the modeline?
|
|
171 * Q3.3.4:: How do I turn off current chapter from AUC TeX modeline?
|
|
172 * Q3.3.5:: How can one change the modeline color based on the mode used?
|
|
173
|
|
174 3.4 Multiple Device Support:
|
|
175 * Q3.4.1:: How do I open a frame on another screen of my multi-headed display?
|
|
176 * Q3.4.2:: Can I really connect to a running XEmacs after calling up over a modem? How?
|
|
177
|
|
178 3.5 The Keyboard:
|
|
179 * Q3.5.1:: How can I bind complex functions (or macros) to keys?
|
|
180 * Q3.5.2:: How can I stop down-arrow from adding empty lines to the bottom of my buffers?
|
|
181 * Q3.5.3:: How do I bind C-. and C-; to scroll one line up and down?
|
|
182 * Q3.5.4:: Globally binding @kbd{Delete}?
|
|
183 * Q3.5.5:: Scrolling one line at a time.
|
|
184 * Q3.5.6:: How to map @kbd{Help} key alone on Sun type4 keyboard?
|
|
185 * Q3.5.7:: How can you type in special characters in XEmacs?
|
|
186 * Q3.5.8:: Why does @code{(global-set-key [delete-forward] 'delete-char)} complain?
|
|
187 * Q3.5.9:: How do I make the Delete key delete forward?
|
|
188 * Q3.5.10:: Can I turn on @dfn{sticky} modifier keys?
|
|
189
|
|
190 The Cursor:
|
|
191 * Q3.6.1:: Is there a way to make the bar cursor thicker?
|
|
192 * 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?
|
|
193 * Q3.6.3:: Can I make the cursor blink?
|
|
194
|
|
195 The Mouse and Highlighting:
|
|
196 * Q3.7.1:: How can I turn off Mouse pasting?
|
|
197 * Q3.7.2:: How do I set control/meta/etc modifiers on mouse buttons?
|
|
198 * Q3.7.3:: Clicking the left button does not do anything in buffer list.
|
|
199 * Q3.7.4:: How can I get a list of buffers when I hit mouse button 3?
|
|
200 * Q3.7.5:: Why does cut-and-paste not work between XEmacs and a cmdtool?
|
|
201 * Q3.7.6:: How I can set XEmacs up so that it pastes where the text cursor is?
|
|
202 * Q3.7.7:: How do I select a rectangular region?
|
|
203 * Q3.7.8:: Why does @kbd{M-w} take so long?
|
|
204
|
|
205 The Menubar and Toolbar:
|
|
206 * Q3.8.1:: How do I get rid of the menu (or menubar)?
|
|
207 * Q3.8.2:: Can I customize the basic menubar?
|
|
208 * Q3.8.3:: How do I control how many buffers are listed in the menu @code{Buffers} list?
|
|
209 * Q3.8.4:: Resources like @code{Emacs*menubar*font} are not working?
|
|
210 * Q3.8.5:: How can I bind a key to a function to toggle the toolbar?
|
|
211
|
|
212 Scrollbars:
|
|
213 * Q3.9.1:: How can I disable the scrollbar?
|
|
214 * Q3.9.2:: How can one use resources to change scrollbar colors?
|
|
215 * Q3.9.3:: Moving the scrollbar can move the point; can I disable this?
|
|
216 * Q3.9.4:: How can I get automatic horizontal scrolling?
|
|
217
|
|
218 Text Selections:
|
|
219 * Q3.10.1:: How can I turn off or change highlighted selections?
|
|
220 * Q3.10.2:: How do I get that typing on an active region removes it?
|
|
221 * Q3.10.3:: Can I turn off the highlight during isearch?
|
|
222 * Q3.10.4:: How do I turn off highlighting after @kbd{C-x C-p} (mark-page)?
|
|
223 * Q3.10.5:: The region disappears when I hit the end of buffer while scrolling.
|
|
224
|
|
225 Major Subsystems
|
|
226
|
|
227 * Q4.0.1:: How do I set up VM to retrieve remote mail using POP?
|
|
228 * Q4.0.2:: How do I get VM to filter mail for me?
|
|
229 * Q4.0.3:: How can I get VM to automatically check for new mail?
|
|
230 * Q4.0.4:: [This question intentionally left blank]
|
|
231 * Q4.0.5:: How do I get my outgoing mail archived?
|
|
232 * Q4.0.6:: I have various addresses at which I receive mail. How can I tell VM to ignore them when doing a "reply-all"?
|
|
233 * Q4.0.7:: Is there a mailing list or FAQ for VM?
|
|
234 * Q4.0.8:: Remote Mailreading with VM.
|
|
235 * Q4.0.9:: rmail or VM gets an error incorporating new mail.
|
|
236 * Q4.0.10:: How do I make VM stay in a single frame?
|
|
237 * Q4.0.11:: How do I make VM or mh-e display graphical smilies?
|
|
238 * Q4.0.12:: Customization of VM not covered in the manual or here.
|
|
239
|
|
240 Web browsing with W3:
|
|
241 * Q4.1.1:: What is W3?
|
|
242 * Q4.1.2:: How do I run W3 from behind a firewall?
|
|
243 * Q4.1.3:: Is it true that W3 supports style sheets and tables?
|
|
244
|
|
245 Reading Netnews and Mail with Gnus:
|
|
246 * Q4.2.1:: GNUS, (ding) Gnus, Gnus 5, September Gnus, Red Gnus,argh!
|
|
247 * Q4.2.2:: [This question intentionally left blank]
|
|
248 * Q4.2.3:: How do I make Gnus stay within a single frame?
|
|
249 * Q4.2.4:: How do I customize the From: line?
|
|
250
|
|
251 Other Mail & News:
|
|
252 * Q4.3.1:: How can I read and/or compose MIME messages?
|
|
253 * Q4.3.2:: What is TM and where do I get it?
|
|
254 * Q4.3.3:: Why isn't this @code{movemail} program working?
|
|
255 * Q4.3.4:: Movemail is also distributed by Netscape? Can that cause problems?
|
|
256 * Q4.3.5:: Where do I find pstogif (required by tm)?
|
|
257
|
|
258 Sparcworks, EOS, and WorkShop:
|
|
259 * Q4.4.1:: What is SPARCworks, EOS, and WorkShop
|
|
260
|
|
261 Energize:
|
|
262 * Q4.5.1:: What is/was Energize?
|
|
263
|
|
264 Infodock:
|
|
265 * Q4.6.1:: What is Infodock?
|
|
266
|
|
267 Other Unbundled Packages:
|
|
268 * Q4.7.1:: What is AUC TeX? Where do you get it?
|
|
269 * Q4.7.2:: Are there any Emacs Lisp Spreadsheets?
|
|
270 * Q4.7.3:: Byte compiling AUC TeX on XEmacs 19.14
|
|
271 * Q4.7.4:: Problems installing AUC TeX
|
|
272 * Q4.7.5:: Is there a reason for an Emacs package not to be included in XEmacs?
|
|
273
|
|
274 The Miscellaneous Stuff
|
|
275
|
|
276 * Q5.0.1:: How can I do source code highlighting using font-lock?
|
|
277 * Q5.0.2:: I do not like cc-mode. How do I use the old c-mode?
|
|
278 * Q5.0.3:: How do I get @samp{More} Syntax Highlighting on by default?
|
|
279 * Q5.0.4:: How can I enable auto-indent?
|
|
280 * Q5.0.5:: How can I get XEmacs to come up in text/auto-fill mode by default?
|
|
281 * Q5.0.6:: How do I start up a second shell buffer?
|
|
282 * Q5.0.7:: Telnet from shell filters too much.
|
|
283 * Q5.0.8:: Why does edt emulation not work?
|
|
284 * Q5.0.9:: How can I emulate VI and use it as my default mode?
|
|
285 * Q5.0.10:: [This question intentionally left blank]
|
|
286 * Q5.0.11:: Filladapt doesn't work in 19.15?
|
|
287 * Q5.0.12:: How do I disable gnuserv from opening a new frame?
|
|
288 * Q5.0.13:: How do I start gnuserv so that each subsequent XEmacs is a client?
|
|
289 * Q5.0.14:: Strange things are happening in Shell Mode.
|
|
290 * Q5.0.15:: Where do I get the latest CC Mode?
|
|
291 * Q5.0.16:: I find auto-show-mode disconcerting. How do I turn it off?
|
|
292 * Q5.0.17:: How can I get two instances of info?
|
|
293 * Q5.0.18:: I upgraded to XEmacs 19.14 and gnuserv stopped working
|
|
294 * Q5.0.19:: Is there something better than LaTeX mode?
|
|
295
|
|
296 Emacs Lisp Programming Techniques:
|
|
297 * Q5.1.1:: The difference in key sequences between XEmacs and GNU Emacs?
|
|
298 * Q5.1.2:: Can I generate "fake" keyboard events?
|
|
299 * Q5.1.3:: Could you explain @code{read-kbd-macro} in more detail?
|
|
300 * Q5.1.4:: What is the performance hit of @code{let}?
|
|
301 * Q5.1.5:: What is the recommended use of @code{setq}?
|
|
302 * Q5.1.6:: What is the typical misuse of @code{setq} ?
|
|
303 * Q5.1.7:: I like the the @code{do} form of cl, does it slow things down?
|
|
304 * Q5.1.8:: I like recursion, does it slow things down?
|
|
305 * Q5.1.9:: How do I put a glyph as annotation in a buffer?
|
|
306
|
|
307 Sound:
|
|
308 * Q5.2.1:: How do I turn off the sound?
|
|
309 * Q5.2.2:: How do I get funky sounds instead of a boring beep?
|
|
310 * Q5.2.3:: What's NAS, how do I get it?
|
|
311 * Q5.2.4:: Sunsite sounds don't play.
|
|
312
|
|
313 Miscellaneous:
|
|
314 * Q5.3.1:: How do you make XEmacs indent CL if-clauses correctly?
|
|
315 * Q5.3.2:: Fontifying hangs when editing a postscript file.
|
|
316 * Q5.3.3:: How can I print WYSIWYG a font-locked buffer?
|
|
317 * Q5.3.4:: Getting @kbd{M-x lpr} to work with postscript printer.
|
|
318 * Q5.3.5:: How do I specify the paths that XEmacs uses for finding files?
|
|
319 * Q5.3.6:: [This question intentionally left blank]
|
|
320 * Q5.3.7:: Can I have the end of the buffer delimited in some way?
|
|
321 * Q5.3.8:: How do I insert today's date into a buffer?
|
|
322 * Q5.3.9:: Are only certain syntactic character classes available for abbrevs?
|
|
323 * Q5.3.10:: How can I get those oh-so-neat X-Face lines?
|
|
324 * Q5.3.11:: How do I add new Info directories?
|
|
325 * Q5.3.12:: What do I need to change to make printing work?
|
|
326
|
|
327 What the Future Holds
|
|
328
|
|
329 * Q6.0.1:: What is new in 20.2?
|
|
330 * Q6.0.2:: What is new in 20.3?
|
|
331 * Q6.0.3:: Procedural changes in XEmacs development.
|
|
332 @end detailmenu
|
70
|
333 @end menu
|
|
334
|
82
|
335 @node Introduction, Installation, Top, Top
|
|
336 @chapter Introduction, Policy, Credits
|
|
337
|
|
338 Learning XEmacs is a lifelong activity. I've been using Emacs for
|
|
339 over a decade now, and I'm still discovering new features. Therefore
|
|
340 this document cannot be complete. Instead it is aimed at the person
|
|
341 who is either considering XEmacs for their own use, or has just
|
|
342 obtained it and is wondering what to do next. It is also useful as a
|
|
343 reference to available resources.
|
|
344
|
|
345 The previous maintainer of the FAQ was Anthony Rossini
|
|
346 <rossini@@stat.sc.edu>, who started it, after getting tired of hearing
|
|
347 JWZ complain about repeatedly having to answer questions. Ben Wing
|
|
348 <ben@@666.com> and Chuck Thompson <cthomp@@xemacs.org>, the principal
|
|
349 authors of XEmacs, then took over and Ben did a massive update
|
|
350 reorganizing the whole thing. At which point Anthony took back over,
|
|
351 but then had to give it up again. Some of the other contributors to
|
|
352 this FAQ are listed later in this document.
|
|
353
|
116
|
354 The previous version was converted to hypertext format, and edited by
|
|
355 Steven L. Baur <steve@@altair.xemacs.org>. It was converted back to
|
|
356 texinfo by Hrvoje Niksic <hniksic@@srce.hr>.
|
|
357
|
126
|
358 Since Steve Baur is so busy putting out multiple versions of XEmacs I
|
|
359 have taken on the task of maintaining the FAQ. I use XEmacs on a daily
|
|
360 basis and I wanted to give something back to the community that has made
|
|
361 XEmacs possible. If you notice any errors or items which should be
|
|
362 added or amended to this FAQ please send email to Andreas Kaempf
|
|
363 <andreas@@sccon.com>. Include @samp{XEmacs FAQ} on the Subject: line.
|
70
|
364
|
|
365 @menu
|
82
|
366 Introduction:
|
|
367 * Q1.0.1:: What is XEmacs?
|
|
368 * Q1.0.2:: What is the current version of XEmacs?
|
|
369 * Q1.0.3:: Where can I find it?
|
|
370 * Q1.0.4:: Why Another Version of Emacs?
|
|
371 * Q1.0.5:: Why Haven't XEmacs and GNU Emacs Merged?
|
163
|
372 * Q1.0.6:: Where can I get help?
|
82
|
373 * Q1.0.7:: Where is the mailing list archived?
|
|
374 * Q1.0.8:: How do you pronounce XEmacs?
|
163
|
375 * Q1.0.9:: What does XEmacs look like?
|
82
|
376 * Q1.0.10:: Is there a port of XEmacs to Microsoft ('95 or NT)?
|
|
377 * Q1.0.11:: Is there a port of XEmacs to the Macintosh?
|
|
378 * Q1.0.12:: Is there a port of XEmacs to NextStep?
|
|
379 * Q1.0.13:: Is there a port of XEmacs to OS/2?
|
86
|
380 * Q1.0.14:: Where can I get a printed copy of the XEmacs users manual?
|
82
|
381
|
|
382 Policies:
|
|
383 * Q1.1.1:: What is the FAQ editorial policy?
|
|
384 * Q1.1.2:: How do I become a Beta Tester?
|
|
385 * Q1.1.3:: How do I contribute to XEmacs itself?
|
|
386
|
|
387 Credits:
|
|
388 * Q1.2.1:: Who wrote XEmacs?
|
163
|
389 * Q1.2.2:: Who contributed to this version of the FAQ?
|
|
390 * Q1.2.3:: Who contributed to the FAQ in the past?
|
82
|
391
|
|
392 Internationalization:
|
163
|
393 * Q1.3.1:: What is the status of XEmacs v20?
|
82
|
394 * Q1.3.2:: What is the status of Asian-language support, aka @var{mule}?
|
|
395 * Q1.3.3:: How do I type non-ASCII characters?
|
|
396 * Q1.3.4:: Can XEmacs messages come out in a different language?
|
|
397 * Q1.3.5:: Please explain the various input methods in MULE/XEmacs 20.0
|
|
398 * Q1.3.6:: How do I portably code for MULE/XEmacs 20.0?
|
163
|
399 * Q1.3.7:: How about Cyrillic Modes?
|
82
|
400
|
|
401 Getting Started:
|
|
402 * Q1.4.1:: What is a @file{.emacs} and is there a sample one?
|
163
|
403 * Q1.4.2:: Can I use the same @file{.emacs} with the other Emacs?
|
82
|
404 * Q1.4.3:: Any good XEmacs tutorials around?
|
|
405 * Q1.4.4:: May I see an example of a useful XEmacs Lisp function?
|
|
406 * Q1.4.5:: And how do I bind it to a key?
|
|
407 * Q1.4.6:: What's the difference between a macro and a function?
|
126
|
408 * Q1.4.7:: Why options saved with 19.13 don't work with 19.14 or later?
|
0
|
409 @end menu
|
|
410
|
82
|
411 @node Q1.0.1, Q1.0.2, Introduction, Introduction
|
|
412 @section What is XEmacs?
|
0
|
413
|
|
414 An alternative to GNU Emacs, originally based on an early alpha version
|
82
|
415 of FSF's version 19, and has diverged quite a bit since then. XEmacs
|
|
416 was known as Lucid Emacs through version 19.10. Almost all features of
|
|
417 GNU Emacs are supported in XEmacs The maintainers of XEmacs actively
|
|
418 track changes to GNU Emacs while also working to add new features.
|
|
419
|
|
420 @node Q1.0.2, Q1.0.3, Q1.0.1, Introduction
|
|
421 @section What is the current version of XEmacs?
|
|
422
|
213
|
423 There are currently two released versions of XEmacs:
|
|
424
|
|
425 The current stable International version of XEmacs is 20.2, released in
|
|
426 May, 1997. The next feature release will XEmacs 20.3.
|
|
427
|
|
428 The current version of XEmacs without international language support is
|
|
429 XEmacs 19.16 and is the last release of v19. This version was released
|
|
430 in November, 1997.
|
|
431
|
|
432 We also run a patch-page with official bugfixes for 19.15 at:
|
163
|
433
|
|
434 @example
|
|
435 <URL:http://www.xemacs.org/xemacs-19.15-patches/patch-page.html>
|
|
436 @end example
|
|
437
|
213
|
438 The page is maintained by Vinnie Shelton @code{<acs@@acm.org>}.
|
82
|
439
|
|
440 @node Q1.0.3, Q1.0.4, Q1.0.2, Introduction
|
|
441 @section Where can I find it?
|
|
442
|
|
443 The canonical source and binaries is found via anonymous FTP at:
|
|
444
|
|
445 @example
|
|
446 <URL:ftp.xemacs.org:/pub/xemacs/>
|
|
447 @end example
|
|
448
|
|
449 @node Q1.0.4, Q1.0.5, Q1.0.3, Introduction
|
|
450 @section Why Another Version of Emacs?
|
|
451
|
0
|
452 For a detailed description of the differences between GNU Emacs and
|
|
453 XEmacs and a detailed history of XEmacs, check out the
|
82
|
454 @example
|
|
455 <URL:http://www.xemacs.org/NEWS.html>
|
|
456 @end example
|
|
457
|
|
458 However, here is a list of some of the reasons why we think you might
|
|
459 consider using it:
|
0
|
460
|
|
461 @itemize @bullet
|
|
462 @item
|
82
|
463 It looks nicer.
|
|
464
|
0
|
465 @item
|
|
466 The XEmacs maintainers are generally more receptive to suggestions than
|
82
|
467 the GNU Emacs maintainers.
|
|
468
|
0
|
469 @item
|
82
|
470 Many more bundled packages than GNU Emacs
|
|
471
|
0
|
472 @item
|
82
|
473 Binaries are available for many common operating systems.
|
|
474
|
0
|
475 @item
|
82
|
476 Face support on TTY's.
|
|
477
|
0
|
478 @item
|
82
|
479 A built-in toolbar.
|
|
480
|
0
|
481 @item
|
82
|
482 Better Motif compliance.
|
|
483
|
0
|
484 @item
|
163
|
485 Some internationalization support (including full MULE support, if
|
|
486 compiled with it.)
|
82
|
487
|
|
488 @item
|
|
489 Variable-width fonts.
|
|
490
|
16
|
491 @item
|
82
|
492 Variable-height lines.
|
|
493
|
0
|
494 @item
|
82
|
495 Marginal annotations.
|
|
496
|
0
|
497 @item
|
82
|
498 ToolTalk support.
|
|
499
|
0
|
500 @item
|
|
501 XEmacs can be used as an Xt widget, and can be embedded within another
|
82
|
502 application.
|
|
503
|
0
|
504 @item
|
82
|
505 Horizontal and vertical scrollbars (using real toolkit scrollbars).
|
|
506
|
0
|
507 @item
|
|
508 Better APIs (and performance) for attaching fonts, colors, and other
|
82
|
509 properties to text.
|
|
510
|
0
|
511 @item
|
82
|
512 The ability to embed arbitrary graphics in a buffer.
|
|
513
|
0
|
514 @item
|
82
|
515 Completely compatible (at the C level) with the Xt-based toolkits.
|
|
516
|
|
517 @item
|
|
518 First production Web Browser supporting Style Sheets.
|
0
|
519 @end itemize
|
|
520
|
82
|
521 @node Q1.0.5, Q1.0.6, Q1.0.4, Introduction
|
|
522 @section Why Haven't XEmacs and GNU Emacs Merged?
|
|
523
|
|
524 There are currently irreconcilable differences in the views about
|
|
525 technical, programming, design and organizational matters between RMS
|
|
526 and the XEmacs development team which provide little hope for a merge to
|
|
527 take place in the short-term future.
|
|
528
|
207
|
529 If you have a comment to add regarding the merge, it is a good idea to
|
|
530 avoid posting to the newsgroups, because of the very heated flamewars
|
|
531 that often result. Mail your questions to <xemacs-beta@@xemacs.org> and
|
|
532 <bug-gnu-emacs@@prep.ai.mit.edu>.
|
|
533
|
82
|
534 @node Q1.0.6, Q1.0.7, Q1.0.5, Introduction
|
|
535 @section Where can I get help?
|
0
|
536
|
|
537 Probably the easiest way, if everything is installed, is to use info, by
|
82
|
538 pressing @kbd{C-h i}, or selecting @code{Emacs Info} from the Help Menu.
|
|
539
|
0
|
540 Also, @kbd{M-x apropos} will look for commands for you.
|
|
541
|
|
542 Try reading this FAQ, examining the regular GNU Emacs FAQ (which can be
|
|
543 found with the Emacs 19 distribution) as well as at
|
175
|
544 <URL:http://www.eecs.nwu.edu/emacs/faq/> and reading the Usenet group
|
|
545 comp.emacs.xemacs.
|
82
|
546
|
|
547 If that does not help, try posting your question to comp.emacs.xemacs.
|
|
548 Please @strong{do not} post XEmacs related questions to gnu.emacs.help.
|
|
549
|
|
550 If you cannot post or read Usenet news, there is a corresponding mailing
|
|
551 list which is available. It can be subscribed to by sending a message
|
175
|
552 with a subject of @samp{subscribe} to <xemacs-request@@xemacs.org>
|
|
553 for subscription information and <xemacs@@xemacs.org> to send messages
|
|
554 to the list.
|
82
|
555
|
|
556 To cancel a subscription, you @strong{must} use the xemacs-request
|
|
557 address. Send a message with a subject of @samp{unsubscribe} to be
|
|
558 removed.
|
|
559
|
|
560 @node Q1.0.7, Q1.0.8, Q1.0.6, Introduction
|
|
561 @section Where is the mailing list archived?
|
|
562
|
207
|
563 The mailing list was archived in the directory
|
82
|
564 @example
|
|
565 <URL:ftp://ftp.xemacs.org:/pub/mlists/>.
|
|
566 @end example
|
|
567
|
207
|
568 However, this archive is out of date. The current mailing list server
|
|
569 supports an @code{archive} feature, which may be utilized.
|
|
570
|
82
|
571 @node Q1.0.8, Q1.0.9, Q1.0.7, Introduction
|
|
572 @section How do you pronounce XEmacs?
|
|
573
|
|
574 I pronounce it @samp{Eks eemax}.
|
|
575
|
|
576 @node Q1.0.9, Q1.0.10, Q1.0.8, Introduction
|
|
577 @section What does XEmacs look like?
|
|
578
|
|
579 Screen snapshots are available in the WWW version of the FAQ.
|
126
|
580 @example
|
|
581 <URL:http://www.xemacs.org/faq/xemacs-faq.html>
|
|
582 @end example
|
82
|
583
|
|
584 @node Q1.0.10, Q1.0.11, Q1.0.9, Introduction
|
|
585 @section Is there a port of XEmacs to Microsoft ('95 or NT)?
|
|
586
|
163
|
587 Altrasoft is actively seeking corporate and government sponsors to help
|
|
588 fund a fully native port of XEmacs to Windows 95 and NT using full-time,
|
|
589 senior-level staff working under a professionally managed project
|
|
590 structure. See <URL:http://www.altrasoft.com/> for more details or
|
|
591 contact Altrasoft directly at 1-888-ALTSOFT.
|
|
592
|
175
|
593 A private effort is being put forth by David Hobley
|
|
594 <URL:http://www.angelfire.com/wa/hobley>.
|
|
595
|
|
596 He can be reached at the following email addresses:
|
|
597 @example
|
|
598 <davidh@@wr.com.au> (home)
|
|
599 @end example
|
|
600
|
|
601 @example
|
|
602 <david_hobley@@optusvision.com.au> (work)
|
|
603 @end example
|
|
604
|
82
|
605 The closest is @dfn{Win-Emacs}, which is based on Lucid Emacs 19.6.
|
116
|
606 Available from <URL:http://www.pearlsoft.com/>.
|
|
607
|
82
|
608 There's a port of GNU Emacs (not XEmacs) at
|
|
609 @example
|
|
610 <URL:http://www.cs.washington.edu/homes/voelker/ntemacs.html>.
|
|
611 @end example
|
|
612
|
|
613 @node Q1.0.11, Q1.0.12, Q1.0.10, Introduction
|
|
614 @section Is there a port of XEmacs to the Macintosh?
|
|
615
|
|
616 There has been a port to the MachTen environment of XEmacs 19.13, but no
|
|
617 patches have been submitted to the maintainers to get this in the
|
|
618 mainstream distribution.
|
|
619
|
|
620 @node Q1.0.12, Q1.0.13, Q1.0.11, Introduction
|
|
621 @section Is there a port of XEmacs to NextStep?
|
|
622
|
|
623 Carl Edman, apparently no longer at <cedman@@princeton.edu>, did the
|
|
624 port of GNU Emacs to NeXTstep and expressed interest in doing the XEmacs
|
|
625 port, but never went any farther.
|
|
626
|
86
|
627 @node Q1.0.13, Q1.0.14, Q1.0.12, Introduction
|
82
|
628 @section Is there a port of XEmacs to OS/2?
|
|
629
|
|
630 No, and there is no news of anyone working on it.
|
|
631
|
86
|
632 @node Q1.0.14, Q1.1.1, Q1.0.13, Introduction
|
|
633 @section Where can I obtain a printed copy of the XEmacs users manual?
|
|
634
|
213
|
635 Altrasoft Associates, a firm specializing in Emacs-related support and
|
86
|
636 development, will be maintaining the XEmacs user manual. The firm plans
|
207
|
637 to begin publishing printed copies of the manual soon.
|
|
638 @c This used to say `March 1997'!
|
86
|
639
|
|
640 @example
|
|
641 Web: http://www.xemacs.com
|
88
|
642 E-mail: <info@@xemacs.com>
|
86
|
643 Tel: +1 408 243 3300
|
|
644 @end example
|
|
645
|
88
|
646 @node Q1.1.1, Q1.1.2, Q1.0.14, Introduction
|
82
|
647 @section What is the FAQ editorial policy?
|
|
648
|
|
649 The FAQ is actively maintained and modified regularly. All links should
|
|
650 be up to date.
|
|
651
|
|
652 Changes are displayed on a monthly basis. @dfn{Months}, for this
|
|
653 purpose are defined as the 5th of the month through the 5th of the
|
|
654 month. Preexisting questions that have been changed are marked as such.
|
|
655 Brand new questions are tagged.
|
|
656
|
163
|
657 All submissions are welcome. E-mail submissions to Andreas Kaempf
|
116
|
658 <andreas@@sccon.com>.
|
82
|
659
|
|
660 Please make sure that @samp{XEmacs FAQ} appears on the Subject: line.
|
|
661 If you think you have a better way of answering a question, or think a
|
|
662 question should be included, I'd like to hear about it. Questions and
|
|
663 answers included into the FAQ will be edited for spelling and grammar,
|
|
664 and will be attributed. Answers appearing without attribution are
|
|
665 either from versions of the FAQ dated before May 1996, or are from one
|
|
666 of the four people listed at the top of this document. Answers quoted
|
|
667 from Usenet news articles will always be attributed, regardless of the
|
|
668 author.
|
|
669
|
|
670 @node Q1.1.2, Q1.1.3, Q1.1.1, Introduction
|
|
671 @section How do I become a Beta Tester?
|
|
672
|
|
673 Send an email message to <xemacs-beta-request@@xemacs.org> with a
|
213
|
674 subject line of @samp{subscribe}.
|
82
|
675
|
|
676 Be prepared to get your hands dirty, as beta testers are expected to
|
|
677 identify problems as best they can.
|
|
678
|
|
679 @node Q1.1.3, Q1.2.1, Q1.1.2, Introduction
|
|
680 @section How do I contribute to XEmacs itself?
|
|
681
|
|
682 Ben Wing <ben@@666.com> writes:
|
|
683
|
|
684 @quotation
|
|
685 BTW if you have a wish list of things that you want added, you have to
|
|
686 speak up about it! More specifically, you can do the following if you
|
|
687 want a feature added (in increasing order of usefulness):
|
|
688
|
|
689 @itemize @bullet
|
|
690 @item
|
|
691 Make a posting about a feature you want added.
|
|
692
|
|
693 @item
|
|
694 Become a beta tester and make more postings about those same features.
|
|
695
|
|
696 @item
|
|
697 Convince us that you're going to use the features in some cool and
|
|
698 useful way.
|
|
699
|
|
700 @item
|
|
701 Come up with a clear and well-thought-out API concerning the features.
|
|
702
|
|
703 @item
|
|
704 Write the code to implement a feature and send us a patch.
|
|
705 @end itemize
|
|
706
|
|
707 (not that we're necessarily requiring you to write the code, but we can
|
|
708 always hope :)
|
|
709 @end quotation
|
|
710
|
|
711 @node Q1.2.1, Q1.2.2, Q1.1.3, Introduction
|
|
712 @section Who wrote XEmacs?
|
|
713
|
|
714 XEmacs is the result of the time and effort of many people. The
|
213
|
715 developers responsible for the 19.16/20.x releases are:
|
82
|
716
|
|
717 @itemize @bullet
|
|
718 @item Martin Buchholz <mrb@@eng.sun.com>
|
|
719
|
|
720 @item Steve Baur <steve@@altair.xemacs.org>
|
213
|
721
|
|
722 @item Hrvoje Niksic <hniksic@@srce.hr>
|
82
|
723 @end itemize
|
|
724
|
|
725 The developers responsible for the 19.14 release are:
|
|
726
|
|
727 @itemize @bullet
|
|
728 @item Chuck Thompson <cthomp@@xemacs.org>
|
|
729
|
|
730 Chuck was Mr. XEmacs from 19.11 through 19.14, and is responsible
|
|
731 for XEmacs becoming a widely distributed program over the Internet.
|
|
732
|
|
733 @item Ben Wing <ben@@666.com>
|
|
734 @end itemize
|
|
735
|
|
736 Jamie Zawinski was Mr. Lucid Emacs from 19.0 through 19.10, the last
|
|
737 release actually named Lucid Emacs. Richard Mlynarik was crucial to
|
|
738 most of those releases.
|
|
739
|
|
740 @itemize @bullet
|
|
741 @item Jamie Zawinski <jwz@@netscape.com>
|
|
742
|
|
743 @item Richard Mlynarik <mly@@adoc.xerox.com>
|
|
744 @end itemize
|
|
745
|
|
746 Along with many other contributors, partially enumerated in the
|
|
747 @samp{About XEmacs} option in the Help menu.
|
|
748
|
|
749 @node Q1.2.2, Q1.2.3, Q1.2.1, Introduction
|
|
750 @section Who contributed to this version of the FAQ?
|
|
751
|
|
752 The following people contributed valuable suggestions to building this
|
|
753 version of the FAQ (listed in alphabetical order):
|
|
754
|
|
755 @itemize @bullet
|
116
|
756 @item Steven L Baur <steve@@miranova.com>
|
|
757
|
126
|
758 @item Hrvoje Niksic <hniksic@@srce.hr>
|
|
759
|
82
|
760 @end itemize
|
|
761
|
|
762 @node Q1.2.3, Q1.3.1, Q1.2.2, Introduction
|
|
763 @section Who contributed to the FAQ in the past?
|
|
764
|
|
765 This is only a partial list, as many names were lost in a hard disk
|
|
766 crash some time ago.
|
|
767
|
|
768 @itemize @bullet
|
|
769 @item Curtis.N.Bingham <binge@@aloft.att.com>
|
|
770
|
|
771 @item Richard Caley <rjc@@cogsci.ed.ac.uk>
|
|
772
|
163
|
773 @item Richard Cognot <cognot@@ensg.u-nancy.fr>
|
|
774
|
82
|
775 @item William G. Dubuque <wgd@@martigny.ai.mit.edu>
|
|
776
|
|
777 @item Eric Eide <eeide@@cs.utah.edu>
|
|
778
|
|
779 @item Chris Flatters <cflatter@@nrao.edu>
|
|
780
|
|
781 @item Evelyn Ginsparg <ginsparg@@adra.com>
|
|
782
|
|
783 @item Marty Hall <hall@@aplcenmp.apl.jhu.edu>
|
|
784
|
126
|
785 @item Darrell Kindred <dkindred@@cmu.edu>
|
|
786
|
163
|
787 @item David Moore <dmoore@@ucsd.edu>
|
126
|
788
|
82
|
789 @item Arup Mukherjee <arup+@@cmu.edu>
|
|
790
|
|
791 @item Juergen Nickelsen <nickel@@prz.tu-berlin.de>
|
|
792
|
|
793 @item Kevin R. Powell <powell@@csl.ncsa.uiuc.edu>
|
|
794
|
126
|
795 @item Justin Sheehy <dworkin@@ccs.neu.edu>
|
|
796
|
82
|
797 @item Stig <stig@@hackvan.com>
|
163
|
798
|
|
799 @item Aki Vehtari <Aki.Vehtari@@hut.fi>
|
82
|
800 @end itemize
|
|
801
|
|
802 @node Q1.3.1, Q1.3.2, Q1.2.3, Introduction
|
|
803 @section What is the status of XEmacs v20?
|
|
804
|
|
805 XEmacs v20 is the version of XEmacs that includes MULE (Asian-language)
|
163
|
806 support. XEmacs 20.0 was released in February 1997, followed by XEmacs
|
|
807 20.2 in May. When compiled without MULE support 20.2 is currently very
|
213
|
808 similar to 19.16 (except for some changes to the byte-code format, some
|
163
|
809 new primitive types including @code{char}, @code{char-table}, and
|
|
810 @code{range-table}) and equally stable.
|
82
|
811
|
|
812 @node Q1.3.2, Q1.3.3, Q1.3.1, Introduction
|
|
813 @section What is the status of Asian-language support, aka MULE?
|
|
814
|
|
815 The MULE support works OK but still needs a fair amount of work before
|
|
816 it's really solid. We could definitely use some help here, esp. people
|
|
817 who speak Japanese and will use XEmacs/MULE to work with Japanese and
|
207
|
818 have some experience with E-Lisp.
|
|
819
|
|
820 As the fundings on Mule have stopped, Mule part of XEmacs is currently
|
|
821 looking for a full-time maintainer. If you can provide help here, or
|
|
822 are willing to fund the work, please mail to <xemacs-beta@@xemacs.org>.
|
|
823
|
|
824 @xref{Q1.1.2}.
|
82
|
825
|
|
826 @node Q1.3.3, Q1.3.4, Q1.3.2, Introduction
|
|
827 @section How do I type non-ASCII characters?
|
|
828
|
|
829 See question 3.5.7 (@xref{Q3.5.7}) in part 3 of this FAQ.
|
|
830
|
|
831 @node Q1.3.4, Q1.3.5, Q1.3.3, Introduction
|
|
832 @section Can XEmacs messages come out in a different language?
|
|
833
|
|
834 The message-catalog support has mostly been written but doesn't
|
|
835 currently work. The first release of XEmacs 20 will @emph{not} support
|
|
836 it. However, menubar localization @emph{does} work, even in 19.14. To
|
|
837 enable it, add to your @file{Emacs} file entries like this:
|
|
838
|
|
839 @example
|
|
840 Emacs*XlwMenu.resourceLabels: True
|
|
841 Emacs*XlwMenu.file.labelString: Fichier
|
|
842 Emacs*XlwMenu.openInOtherWindow.labelString: In anderem Fenster offnen
|
|
843 @end example
|
|
844
|
|
845 The name of the resource is derived from the non-localized entry by
|
|
846 removing punctuation and capitalizing as above. Martin Buchholz
|
|
847 <Martin.Buchholz@@sun.com> is working on adding support for Asian
|
|
848 language menubar localization to XEmacs 20.
|
|
849
|
|
850 @node Q1.3.5, Q1.3.6, Q1.3.4, Introduction
|
|
851 @section Please explain the various input methods in MULE/XEmacs 20.0
|
|
852
|
|
853 MORIOKA Tomohiko <morioka@@jaist.ac.jp> writes:
|
|
854
|
|
855 @quotation
|
|
856 Original Mule supports following input methods: Wnn4, Wnn6, Canna, SJ3
|
|
857 and XIM. Interfaces for Wnn and SJ3 uses the @code{egg} user
|
|
858 interface. Interface for Canna does not use @samp{egg}. I don't know
|
|
859 about XIM. It is to support ATOK, of course, it may work for another
|
|
860 servers.
|
|
861
|
|
862 Wnn supports Japanese, Chinese and Korean. It is made by OMRON and Kyôto
|
|
863 university. It is a powerful and complex system. Wnn4 is free and Wnn6
|
|
864 is not free.
|
|
865
|
|
866 Canna supports only Japanese. It is made by NEC. It is a simple and
|
|
867 powerful system. Canna uses only grammar (Wnn uses grammar and
|
|
868 probability between words), so I think Wnn is cleverer than Canna,
|
|
869 however Canna users made a good grammar and dictionary. So for standard
|
|
870 modern Japanese, Canna seems cleverer than Wnn4. In addition, the UNIX
|
|
871 version of Canna is free (now there is a Microsoft Windows version).
|
|
872
|
|
873 SJ3 supports only Japanese. It is made by Sony. XIM supports was made
|
|
874 to use ATOK (a major input method in personal computer world). XIM is
|
|
875 the standard for accessing input methods bundled in Japanese versions of
|
|
876 Solaris. (XEmacs 20 will support XIM input).
|
|
877
|
|
878 Egg consists of following parts:
|
|
879
|
|
880 @enumerate
|
|
881 @item Input character Translation System (ITS) layer.
|
|
882 It translates ASCII inputs to Kana/PinYin/Hangul characters.
|
|
883
|
|
884 @item Kana/PinYin/Hangul to Kanji transfer layer.
|
126
|
885 It is interface layer for network Kana-Kanji server (Wnn and Sj3).
|
82
|
886 @end enumerate
|
|
887
|
|
888 These input methods are modal, namely there are mode, alphabet mode and
|
|
889 Kana-Kanji transfer mode. However there are mode-less input methods for
|
|
890 Egg and Canna. @samp{Boiled-egg} is a mode-less input method running on
|
|
891 Egg. For Canna, @samp{canna.el} has a tiny boiled-egg like command,
|
|
892 @code{(canna-boil)}, and there are some boiled-egg like utilities. In
|
|
893 addition, it was planned to make an abstraction for all transfer type
|
|
894 input methods. However authors of input methods are busy, so maybe this
|
|
895 plan is stopped. Perhaps after Mule merged GNU Emacs will be released,
|
|
896 it will be continued.
|
|
897 @end quotation
|
|
898
|
|
899 @node Q1.3.6, Q1.3.7, Q1.3.5, Introduction
|
163
|
900 @section How do I portably code for MULE/XEmacs 20?
|
82
|
901
|
|
902 MORIOKA Tomohiko <morioka@@jaist.ac.jp> writes:
|
|
903
|
|
904 @quotation
|
|
905 MULE and XEmacs are quite different. So the application
|
|
906 implementor must write separate code for these mule variants.
|
|
907
|
|
908 MULE and the next version of Emacs are similar but the symbols are very
|
|
909 different---requiring separate code as well.
|
|
910
|
|
911 Namely we must support 3 kinds of mule variants and 4 or 5 or 6 kinds of
|
|
912 emacs variants... (;_;) I'm shocked, so I wrote a wrapper package called
|
|
913 @code{emu} to provide a common interface.
|
|
914
|
|
915 I have the following suggestions about dealing with mule variants:
|
|
916
|
|
917 @itemize @bullet
|
|
918 @item
|
|
919 @code{(featurep 'mule)} @code{t} on all mule variants
|
|
920
|
|
921 @item
|
|
922 @code{(boundp 'MULE)} is @code{t} on only MULE. Maybe the next version
|
|
923 of Emacs will not have this symbol.
|
|
924
|
|
925 @item
|
|
926 MULE has a variable @code{mule-version}. Perhaps the next version of
|
|
927 Emacs will have this variable as well.
|
|
928 @end itemize
|
|
929
|
|
930 Following is a sample to distinguish mule variants:
|
|
931
|
|
932 @lisp
|
|
933 (if (featurep 'mule)
|
|
934 (cond ((boundp 'MULE)
|
|
935 ;; for original Mule
|
|
936 )
|
|
937 ((string-match "XEmacs" emacs-version)
|
|
938 ;; for XEmacs with Mule
|
|
939 )
|
|
940 (t
|
|
941 ;; for next version of Emacs
|
|
942 ))
|
|
943 ;; for old emacs variants
|
|
944 )
|
|
945 @end lisp
|
|
946 @end quotation
|
|
947
|
|
948 @node Q1.3.7, Q1.4.1, Q1.3.6, Introduction
|
|
949 @section How about Cyrillic Modes?
|
|
950
|
|
951 Ilya Zakharevich <ilya@@math.ohio-state.edu> writes:
|
|
952
|
|
953 @quotation
|
|
954 There is a cyrillic mode in the file @file{mysetup.zip} in
|
|
955 <URL:ftp://ftp.math.ohio-state.edu/pub/users/ilya/emacs/>. This is a
|
|
956 modification to Valery Alexeev's <ava@@math.jhu.ed> @file{russian.el}
|
213
|
957 which can be obtained from <URL:ftp://ftp.cis.ohio-state.edu/pub/gnu/emacs/elisp-archive/packages/russian.el.Z>.
|
82
|
958 @end quotation
|
|
959
|
|
960 Dima Barsky <d.barsky@@ee.surrey.ac.uk> writes:
|
|
961
|
|
962 @quotation
|
|
963 There is another cyrillic mode for both GNU Emacs and XEmacs by Dmitrii
|
|
964 (Mitya) Manin <manin@@camelot.mssm.edu> at
|
|
965 <URL:http://camelot.mssm.edu/~manin/cyr.el>.
|
|
966 @end quotation
|
|
967
|
203
|
968 Rebecca Ore <rebecca.ore@@op.net> writes:
|
|
969
|
|
970 @quotation
|
|
971 The fullest resource I found on Russian language use (in and out of
|
|
972 XEmacs) is <URL:http://sunsite.oit.unc.edu/sergei/Software/Software.html>
|
|
973 @end quotation
|
|
974
|
82
|
975 @node Q1.4.1, Q1.4.2, Q1.3.7, Introduction
|
|
976 @section What is a @file{.emacs} and is there a sample one?
|
|
977
|
|
978 The @file{.emacs} file is used to customize XEmacs to your tastes. No
|
|
979 two are alike, nor are they expected to be alike, but that's the point.
|
|
980 The XEmacs distribution contains an excellent starter example in the etc
|
|
981 directory called @file{sample.emacs}. Copy this file from there to your
|
|
982 home directory and rename it @file{.emacs}. Then edit it to suit.
|
|
983
|
|
984 Starting with 19.14, you may bring the @file{sample.emacs} into an
|
|
985 XEmacs buffer by selecting @samp{Help->Sample .emacs} from the menubar.
|
|
986 To determine the location of the @file{etc} directory type the command
|
|
987 @kbd{C-h v data-directory RET}.
|
|
988
|
|
989 @node Q1.4.2, Q1.4.3, Q1.4.1, Introduction
|
|
990 @section Can I use the same @file{.emacs} with the other Emacs?
|
|
991
|
|
992 Yes. The sample @file{.emacs} included in the XEmacs distribution will
|
|
993 show you how to handle different versions and flavors of Emacs.
|
|
994
|
|
995 @node Q1.4.3, Q1.4.4, Q1.4.2, Introduction
|
|
996 @section Any good tutorials around?
|
|
997
|
|
998 There's the XEmacs tutorial available from the Help Menu, or by typing
|
|
999 @kbd{C-h t}.
|
|
1000
|
|
1001 There's an Emacs Lisp tutorial at
|
|
1002
|
|
1003 @example
|
|
1004 <URL:ftp://prep.ai.mit.edu/pub/gnu/emacs-lisp-intro-1.04.tar.gz>.
|
|
1005 @end example
|
|
1006
|
|
1007 Erik Sundermann <erik@@petaxp.rug.ac.be> has made a tutorial web page at
|
|
1008 <URL:http://petaxp.rug.ac.be/~erik/xemacs/>.
|
|
1009
|
|
1010 @node Q1.4.4, Q1.4.5, Q1.4.3, Introduction
|
|
1011 @section May I see an example of a useful XEmacs Lisp function?
|
|
1012
|
|
1013 The following function does a little bit of everything useful. It does
|
|
1014 something with the prefix argument, it examines the text around the
|
|
1015 cursor, and it's interactive so it may be bound to a key. It inserts
|
|
1016 copies of the current word the cursor is sitting on at the cursor. If
|
|
1017 you give it a prefix argument: @kbd{C-u 3 M-x double-word} then it will
|
|
1018 insert 3 copies.
|
|
1019
|
|
1020 @lisp
|
|
1021 (defun double-word (count)
|
|
1022 "Insert a copy of the current word underneath the cursor"
|
|
1023 (interactive "*p")
|
|
1024 (let (here there string)
|
|
1025 (save-excursion
|
|
1026 (forward-word -1)
|
|
1027 (setq here (point))
|
|
1028 (forward-word 1)
|
|
1029 (setq there (point))
|
|
1030 (setq string (buffer-substring here there)))
|
|
1031 (while (>= count 1)
|
163
|
1032 (insert string)
|
|
1033 (decf count))))
|
82
|
1034 @end lisp
|
|
1035
|
|
1036 The best way to see what is going on here is to let XEmacs tell you.
|
|
1037 Put the code into an XEmacs buffer, and do a @kbd{C-h f} with the cursor
|
|
1038 sitting just to the right of the function you want explained. Eg. move
|
|
1039 the cursor to the SPACE between @code{interactive} and @samp{"*p"} and
|
|
1040 hit @kbd{C-h f} to see what the function @code{interactive} does. Doing
|
|
1041 this will tell you that the @code{*} requires a writable buffer, and
|
|
1042 @code{p} converts the prefix argument to a number, and
|
|
1043 @code{interactive} allows you to execute the command with @kbd{M-x}.
|
|
1044
|
|
1045 @node Q1.4.5, Q1.4.6, Q1.4.4, Introduction
|
|
1046 @section And how do I bind it to a key?
|
|
1047
|
|
1048 To bind to a key do:
|
|
1049
|
|
1050 @lisp
|
|
1051 (global-set-key "\C-cd" 'double-word)
|
|
1052 @end lisp
|
|
1053
|
|
1054 Or interactively, @kbd{M-x global-set-key} and follow the prompts.
|
|
1055
|
|
1056 @node Q1.4.6, Q1.4.7, Q1.4.5, Introduction
|
|
1057 @section What's the difference between a macro and a function?
|
|
1058
|
163
|
1059 Quoting from the Lisp Reference (a.k.a @dfn{Lispref}) Manual:
|
82
|
1060
|
|
1061 @dfn{Macros} enable you to define new control constructs and other
|
|
1062 language features. A macro is defined much like a function, but instead
|
|
1063 of telling how to compute a value, it tells how to compute another Lisp
|
|
1064 expression which will in turn compute the value. We call this
|
|
1065 expression the @dfn{expansion} of the macro.
|
|
1066
|
|
1067 Macros can do this because they operate on the unevaluated expressions
|
|
1068 for the arguments, not on the argument values as functions do. They can
|
|
1069 therefore construct an expansion containing these argument expressions
|
|
1070 or parts of them.
|
|
1071
|
163
|
1072 Do not confuse the two terms with @dfn{keyboard macros}, which are
|
|
1073 another matter, entirely. A keyboard macro is a key bound to several
|
|
1074 other keys. Refer to manual for details.
|
|
1075
|
213
|
1076 @node Q1.4.7, , Q1.4.6, Introduction
|
126
|
1077 @section How come options saved with 19.13 don't work with 19.14 or later?
|
82
|
1078
|
|
1079 There's a problem with options of the form:
|
|
1080
|
|
1081 @lisp
|
|
1082 (add-spec-list-to-specifier (face-property 'searchm-field 'font)
|
|
1083 '((global (nil))))
|
|
1084 @end lisp
|
|
1085
|
|
1086 saved by a 19.13 XEmacs that causes a 19.14 XEmacs grief. You must
|
126
|
1087 delete these options. XEmacs 19.14 and later no longer write the
|
|
1088 options directly to @file{.emacs} which should allow us to deal with
|
|
1089 version incompatibilities better in the future.
|
82
|
1090
|
|
1091 Options saved under XEmacs 19.13 are protected by code that specifically
|
|
1092 requires a version 19 XEmacs. This won't be a problem unless you're
|
|
1093 testing XEmacs v20. You should consider changing the code to read:
|
|
1094
|
|
1095 @lisp
|
|
1096 (cond
|
|
1097 ((and (string-match "XEmacs" emacs-version)
|
|
1098 (boundp 'emacs-major-version)
|
|
1099 (or (and (= emacs-major-version 19)
|
|
1100 (>= emacs-minor-version 12))
|
|
1101 (>= emacs-major-version 20)))
|
|
1102 ...
|
163
|
1103 ))
|
82
|
1104 @end lisp
|
|
1105
|
|
1106 @node Installation, Customization, Introduction, Top
|
|
1107 @chapter Installation and Trouble Shooting
|
|
1108
|
|
1109 This is part 2 of the XEmacs Frequently Asked Questions list. This
|
|
1110 section is devoted to Installation, Maintenance and Trouble Shooting.
|
|
1111
|
|
1112 @menu
|
|
1113 Installation:
|
163
|
1114 * Q2.0.1:: Running XEmacs without installing.
|
|
1115 * Q2.0.2:: XEmacs is too big.
|
82
|
1116 * Q2.0.3:: Compiling XEmacs with Netaudio.
|
163
|
1117 * Q2.0.4:: Problems with Linux and ncurses.
|
82
|
1118 * Q2.0.5:: Do I need X11 to run XEmacs?
|
|
1119 * Q2.0.6:: I'm having strange crashes. What do I do?
|
|
1120 * Q2.0.7:: Libraries in non-standard locations.
|
|
1121 * Q2.0.8:: can't resolve symbol _h_errno
|
163
|
1122 * Q2.0.9:: Where do I find external libraries?
|
82
|
1123 * Q2.0.10:: After I run configure I find a coredump, is something wrong?
|
|
1124 * Q2.0.11:: XEmacs can't resolve host names.
|
163
|
1125 * Q2.0.12:: Why can't I strip XEmacs?
|
82
|
1126 * Q2.0.13:: Can't link XEmacs on Solaris with Gcc.
|
163
|
1127 * Q2.0.14:: Make on HP/UX 9 fails after linking temacs
|
82
|
1128
|
|
1129 Trouble Shooting:
|
|
1130 * Q2.1.1:: XEmacs just crashed on me!
|
|
1131 * Q2.1.2:: Cryptic Minibuffer messages.
|
163
|
1132 * Q2.1.3:: Translation Table Syntax messages at Startup.
|
82
|
1133 * Q2.1.4:: Startup warnings about deducing proper fonts?
|
|
1134 * Q2.1.5:: XEmacs cannot connect to my X Terminal.
|
|
1135 * Q2.1.6:: XEmacs just locked up my Linux X server.
|
|
1136 * Q2.1.7:: HP Alt key as Meta.
|
|
1137 * Q2.1.8:: got (wrong-type-argument color-instance-p nil)!
|
|
1138 * Q2.1.9:: XEmacs causes my OpenWindows 3.0 server to crash.
|
|
1139 * Q2.1.10:: Warnings from incorrect key modifiers.
|
163
|
1140 * Q2.1.11:: [This question intentionally left blank]
|
82
|
1141 * Q2.1.12:: Regular Expression Problems on DEC OSF1.
|
|
1142 * Q2.1.13:: HP/UX 10.10 and @code{create_process} failure
|
|
1143 * Q2.1.14:: @kbd{C-g} doesn't work for me. Is it broken?
|
|
1144 * Q2.1.15:: How to debug an XEmacs problem with a debugger.
|
|
1145 * Q2.1.16:: XEmacs crashes in @code{strcat} on HP/UX 10.
|
|
1146 * Q2.1.17:: @samp{Marker does not point anywhere}.
|
|
1147 * Q2.1.18:: 19.14 hangs on HP/UX 10.10.
|
|
1148 * Q2.1.19:: XEmacs does not follow the local timezone.
|
|
1149 * Q2.1.20:: @samp{Symbol's function definition is void: hkey-help-show.}
|
|
1150 * Q2.1.21:: Every so often the XEmacs frame freezes.
|
116
|
1151 * Q2.1.22:: XEmacs seems to take a really long time to do some things.
|
163
|
1152 * Q2.1.23:: Movemail on Linux does not work for XEmacs 19.15 and later.
|
82
|
1153 @end menu
|
|
1154
|
|
1155 @node Q2.0.1, Q2.0.2, Installation, Installation
|
|
1156 @section Running XEmacs without installing
|
|
1157
|
|
1158 The @file{INSTALL} file says that up to 108 MB of space is needed
|
|
1159 temporarily during installation! How can I just try it out?
|
|
1160
|
|
1161 XEmacs will run in place without requiring installation and copying of
|
|
1162 the Lisp directories, and without having to specify a special build-time
|
|
1163 flag. It's the copying of the Lisp directories that requires so much
|
|
1164 space. XEmacs is largely written in Lisp.
|
|
1165
|
|
1166 A good method is to make a shell alias for xemacs:
|
|
1167
|
|
1168 @example
|
163
|
1169 alias xemacs=/i/xemacs-20.2/src/xemacs
|
82
|
1170 @end example
|
|
1171
|
|
1172 (You will obviously use whatever directory you downloaded the source
|
163
|
1173 tree to instead of @file{/i/xemacs-20.2}).
|
82
|
1174
|
|
1175 This will let you run XEmacs without massive copying.
|
|
1176
|
|
1177 @node Q2.0.2, Q2.0.3, Q2.0.1, Installation
|
|
1178 @section XEmacs is too big
|
|
1179
|
207
|
1180 Although this entry has been written for XEmacs 19.13, most of it still
|
|
1181 stands true.
|
|
1182
|
82
|
1183 Steve Baur <steve@@altair.xemacs.org> writes:
|
|
1184
|
|
1185 @quotation
|
175
|
1186 The 45MB of space required by the installation directories can be
|
|
1187 reduced dramatically if desired. Gzip all the .el files. Remove all
|
|
1188 the packages you'll never want to use (or even ones you do like the two
|
|
1189 obsolete mailcrypts and Gnus 4 in 19.13). Remove the TexInfo manuals.
|
|
1190 Remove the Info (and use just hardcopy versions of the manual). Remove
|
|
1191 most of the stuff in etc. Remove or gzip all the source code. Gzip or
|
|
1192 remove the C source code. Configure it so that copies are not made of
|
|
1193 the support lisp. I'm not advocating any of these things, just pointing
|
|
1194 out ways to reduce the disk requirements if desired.
|
|
1195
|
|
1196 Now examine the space used by directory:
|
|
1197
|
|
1198 @example
|
|
1199 0 /usr/local/bin/xemacs
|
|
1200 2048 /usr/local/bin/xemacs-19.13
|
|
1201
|
|
1202 1546 /usr/local/lib/xemacs-19.13/i486-miranova-sco3.2v4.2
|
|
1203 1158 /usr/local/lib/xemacs-19.13/i486-unknown-linux1.2.13
|
|
1204 @end example
|
|
1205
|
|
1206 You need to keep these. XEmacs isn't stripped by default in
|
|
1207 installation, you should consider stripping. That will save you about
|
|
1208 5MB right there.
|
|
1209
|
|
1210 @example
|
|
1211 207 /usr/local/lib/xemacs-19.13/etc/w3
|
|
1212 122 /usr/local/lib/xemacs-19.13/etc/sounds
|
|
1213 18 /usr/local/lib/xemacs-19.13/etc/sparcworks
|
|
1214 159 /usr/local/lib/xemacs-19.13/etc/vm
|
|
1215 6 /usr/local/lib/xemacs-19.13/etc/e
|
|
1216 21 /usr/local/lib/xemacs-19.13/etc/eos
|
|
1217 172 /usr/local/lib/xemacs-19.13/etc/toolbar
|
|
1218 61 /usr/local/lib/xemacs-19.13/etc/ns
|
|
1219 43 /usr/local/lib/xemacs-19.13/etc/gnus
|
|
1220 @end example
|
|
1221
|
|
1222 These are support directories for various packages. In general they
|
|
1223 match a directory under ./xemacs-19.13/lib/xemacs-19.13/lisp/. If you
|
|
1224 do not require the package, you may delete or gzip the support too.
|
|
1225
|
|
1226 @example
|
|
1227 1959 /usr/local/lib/xemacs-19.13/etc
|
|
1228 175 /usr/local/lib/xemacs-19.13/lisp/bytecomp
|
|
1229 340 /usr/local/lib/xemacs-19.13/lisp/calendar
|
|
1230 342 /usr/local/lib/xemacs-19.13/lisp/comint
|
|
1231 517 /usr/local/lib/xemacs-19.13/lisp/dired
|
|
1232 42 /usr/local/lib/xemacs-19.13/lisp/electric
|
|
1233 212 /usr/local/lib/xemacs-19.13/lisp/emulators
|
|
1234 238 /usr/local/lib/xemacs-19.13/lisp/energize
|
|
1235 289 /usr/local/lib/xemacs-19.13/lisp/gnus
|
|
1236 457 /usr/local/lib/xemacs-19.13/lisp/ilisp
|
|
1237 1439 /usr/local/lib/xemacs-19.13/lisp/modes
|
|
1238 2276 /usr/local/lib/xemacs-19.13/lisp/packages
|
|
1239 1040 /usr/local/lib/xemacs-19.13/lisp/prim
|
|
1240 176 /usr/local/lib/xemacs-19.13/lisp/pcl-cvs
|
|
1241 154 /usr/local/lib/xemacs-19.13/lisp/rmail
|
|
1242 3 /usr/local/lib/xemacs-19.13/lisp/epoch
|
|
1243 45 /usr/local/lib/xemacs-19.13/lisp/term
|
|
1244 860 /usr/local/lib/xemacs-19.13/lisp/utils
|
|
1245 851 /usr/local/lib/xemacs-19.13/lisp/vm
|
|
1246 13 /usr/local/lib/xemacs-19.13/lisp/vms
|
|
1247 157 /usr/local/lib/xemacs-19.13/lisp/x11
|
|
1248 19 /usr/local/lib/xemacs-19.13/lisp/tooltalk
|
|
1249 14 /usr/local/lib/xemacs-19.13/lisp/sunpro
|
|
1250 291 /usr/local/lib/xemacs-19.13/lisp/games
|
|
1251 198 /usr/local/lib/xemacs-19.13/lisp/edebug
|
|
1252 619 /usr/local/lib/xemacs-19.13/lisp/w3
|
|
1253 229 /usr/local/lib/xemacs-19.13/lisp/eos
|
|
1254 55 /usr/local/lib/xemacs-19.13/lisp/iso
|
|
1255 59 /usr/local/lib/xemacs-19.13/lisp/mailcrypt
|
|
1256 187 /usr/local/lib/xemacs-19.13/lisp/eterm
|
|
1257 356 /usr/local/lib/xemacs-19.13/lisp/ediff
|
|
1258 408 /usr/local/lib/xemacs-19.13/lisp/hyperbole/kotl
|
|
1259 1262 /usr/local/lib/xemacs-19.13/lisp/hyperbole
|
|
1260 247 /usr/local/lib/xemacs-19.13/lisp/hm--html-menus
|
|
1261 161 /usr/local/lib/xemacs-19.13/lisp/mh-e
|
|
1262 299 /usr/local/lib/xemacs-19.13/lisp/viper
|
|
1263 53 /usr/local/lib/xemacs-19.13/lisp/oobr/tree-x
|
|
1264 4 /usr/local/lib/xemacs-19.13/lisp/oobr/tree-nx/English.lproj/DocWindow.nib
|
|
1265 3 /usr/local/lib/xemacs-19.13/lisp/oobr/tree-nx/English.lproj/InfoPanel.nib
|
|
1266 3 /usr/local/lib/xemacs-19.13/lisp/oobr/tree-nx/English.lproj/TreeView.nib
|
|
1267 11 /usr/local/lib/xemacs-19.13/lisp/oobr/tree-nx/English.lproj
|
|
1268 53 /usr/local/lib/xemacs-19.13/lisp/oobr/tree-nx
|
|
1269 466 /usr/local/lib/xemacs-19.13/lisp/oobr
|
|
1270 14142 /usr/local/lib/xemacs-19.13/lisp
|
|
1271 @end example
|
|
1272
|
|
1273 These are all Emacs Lisp source code and bytecompiled object code. You
|
|
1274 may safely gzip everything named *.el here. You may remove any package
|
|
1275 you don't use. @emph{Nothing bad will happen if you delete a package
|
|
1276 that you do not use}. You must be sure you do not use it though, so be
|
|
1277 conservative at first.
|
|
1278
|
|
1279 Possible candidates for deletion include w3 (newer versions exist, or
|
|
1280 you may just use Lynx or Netscape for web browsing), games, hyperbole,
|
|
1281 mh-e, hm--html-menus (better packages exist), vm, viper, oobr, gnus (new
|
|
1282 versions exist), etc. Ask yourself, @emph{Do I ever want to use this
|
|
1283 package?} If the answer is no, then it is a candidate for removal.
|
|
1284
|
|
1285 First, gzip all the .el files. Then go about package by package and
|
|
1286 start gzipping the .elc files. Then run XEmacs and do whatever it is
|
|
1287 you normally do. If nothing bad happens, then delete the directory. Be
|
|
1288 conservative about deleting directories, and it would be handy to have a
|
|
1289 backup tape around in case you get too zealous.
|
|
1290
|
|
1291 @file{prim}, @file{modes}, @file{packages}, and @file{utils} are four
|
|
1292 directories you definitely do @strong{not} want to delete, although
|
|
1293 certain packages can be removed from them if you do not use them.
|
|
1294
|
|
1295 @example
|
|
1296 1972 /usr/local/lib/xemacs-19.13/info
|
|
1297 @end example
|
|
1298
|
|
1299 These are online texinfo sources. You may either gzip them or remove
|
|
1300 them. In either case, @kbd{C-h i} (info mode) will no longer work.
|
|
1301
|
|
1302 @example
|
|
1303 20778 /usr/local/lib/xemacs-19.13
|
|
1304 @end example
|
|
1305
|
|
1306 The 20MB achieved is less than half of what the full distribution takes up,
|
|
1307 @strong{and} can be achieved without deleting a single file.
|
|
1308 @end quotation
|
|
1309
|
|
1310 giacomo boffi <boffi@@hp735.stru.polimi.it> provides this procedure:
|
|
1311
|
|
1312 @quotation
|
|
1313 Substitute @file{/usr/local/lib/} with the path where the xemacs tree is
|
|
1314 rooted, then use this script:
|
|
1315
|
|
1316 @example
|
|
1317 #!/bin/sh
|
|
1318
|
|
1319 r=/usr/local/lib/xemacs-19.13/lisp
|
|
1320
|
|
1321 cd $r ; rm -f cmpr ; touch cmpr
|
|
1322
|
|
1323 du -s .
|
|
1324
|
|
1325 for d in * ; do
|
|
1326 if test -d $d ; then
|
|
1327 cd $d
|
|
1328 for f in *.el ; do
|
|
1329 # compress (remove) only (ONLY) the sources that have a
|
|
1330 # corresponding compiled file --- do not (DO NOT) touch other
|
|
1331 # sources
|
|
1332 if test -f $@{f@}c ; then gzip -v9 $f >> $r/cmpr ; fi
|
|
1333 done
|
|
1334 cd ..
|
|
1335 fi
|
|
1336 done
|
|
1337
|
|
1338 du -s .
|
|
1339 @end example
|
|
1340
|
|
1341 A step beyond would be substituting @samp{rm -f} for @samp{gzip -v9},
|
|
1342 but you have to be desperate for removing the sources (remember that
|
|
1343 emacs can access compressed files transparently).
|
|
1344
|
|
1345 Also, a good megabyte could easily be trimmed from the $r/../etc
|
|
1346 directory, e.g., the termcap files, some O+NEWS, others that I don't
|
|
1347 remember as well.
|
|
1348 @end quotation
|
|
1349
|
|
1350 @quotation
|
163
|
1351 XEmacs 20.3 will unbundle the lisp hierarchy and allow the installer
|
126
|
1352 to choose exactly how much support code gets installed.
|
82
|
1353 @end quotation
|
|
1354
|
|
1355 @node Q2.0.3, Q2.0.4, Q2.0.2, Installation
|
|
1356 @section Compiling XEmacs with Netaudio.
|
|
1357
|
|
1358 What is the best way to compile XEmacs with the netaudio system, since I
|
|
1359 have got the netaudio system compiled but installed at a weird place, I
|
|
1360 am not root. Also in the READMEs it does not say anything about
|
|
1361 compiling with the audioserver?
|
|
1362
|
|
1363 You should only need to add some stuff to the configure command line.
|
|
1364 To tell it to compile in netaudio support: @samp{--with-sound=both}, or
|
|
1365 @samp{--with-sound=nas} if you don't want native sound support for some
|
|
1366 reason.) To tell it where to find the netaudio includes and libraries:
|
16
|
1367
|
|
1368 @example
|
82
|
1369 --site-libraries=WHATEVER
|
|
1370 --site-includes=WHATEVER
|
|
1371 @end example
|
|
1372
|
|
1373 Then (fingers crossed) it should compile and it will use netaudio if you
|
|
1374 have a server running corresponding to the X server. The netaudio server
|
|
1375 has to be there when XEmacs starts. If the netaudio server goes away and
|
|
1376 another is run, XEmacs should cope (fingers crossed, error handling in
|
|
1377 netaudio isn't perfect).
|
|
1378
|
|
1379 BTW, netaudio has been renamed as it has a name clash with something
|
|
1380 else, so if you see references to NAS or Network Audio System, it's the
|
|
1381 same thing. It also might be found at
|
|
1382 <URL:ftp.x.org:/contrib/audio/nas/>.
|
|
1383
|
|
1384 @node Q2.0.4, Q2.0.5, Q2.0.3, Installation
|
|
1385 @section Problems with Linux and ncurses.
|
|
1386
|
|
1387 On Linux 1.3.98 with termcap 2.0.8 and the ncurses that came with libc
|
126
|
1388 5.2.18, XEmacs 20.0b20 is unable to open a tty device:
|
82
|
1389
|
|
1390 @example
|
|
1391 src/xemacs -nw -q
|
|
1392 Initialization error: Terminal type `xterm' undefined (or can't access database?)
|
|
1393 @end example
|
|
1394
|
175
|
1395 Ben Wing <ben@@666.com> writes:
|
82
|
1396
|
|
1397 @quotation
|
|
1398 Your ncurses configuration is messed up. Your /usr/lib/terminfo is a
|
|
1399 bad pointer, perhaps to a CD-ROM that is not inserted.
|
|
1400 @end quotation
|
|
1401
|
|
1402 @node Q2.0.5, Q2.0.6, Q2.0.4, Installation
|
|
1403 @section Do I need X11 to run XEmacs?
|
|
1404
|
|
1405 No. The name @dfn{XEmacs} is unfortunate in the sense that it is
|
|
1406 @strong{not} an X Window System-only version of Emacs. Starting with
|
|
1407 19.14 XEmacs has full color support on a color capable character
|
|
1408 terminal.
|
|
1409
|
|
1410 @node Q2.0.6, Q2.0.7, Q2.0.5, Installation
|
|
1411 @section I'm having strange crashes. What do I do?
|
|
1412
|
|
1413 There have been a variety of reports of crashes due to compilers with
|
|
1414 buggy optimizers. Please see the @file{PROBLEMS} file that comes with
|
|
1415 XEmacs to read what it says about your platform.
|
|
1416
|
|
1417 @node Q2.0.7, Q2.0.8, Q2.0.6, Installation
|
|
1418 @section Libraries in non-standard locations
|
|
1419
|
|
1420 I have x-faces, jpeg, xpm etc. all in different places. I've tried
|
|
1421 space-separated, comma-separated, several --site-libraries, all to no
|
|
1422 avail.
|
|
1423
|
|
1424 @example
|
|
1425 --site-libraries='/path/one /path/two /path/etc'
|
|
1426 @end example
|
|
1427
|
|
1428 @node Q2.0.8, Q2.0.9, Q2.0.7, Installation
|
|
1429 @section can't resolve symbol _h_errno
|
|
1430
|
|
1431 You are using the Linux/ELF distribution of XEmacs 19.14, and your ELF
|
|
1432 libraries are out of date. You have the following options:
|
|
1433
|
|
1434 @enumerate
|
|
1435 @item
|
|
1436 Upgrade your libc to at least 5.2.16 (better is 5.2.18, 5.3.12, or
|
|
1437 5.4.10).
|
|
1438
|
|
1439 @item
|
|
1440 Patch the XEmacs binary by replacing all occurrences of
|
|
1441 @samp{_h_errno^@@} with @samp{h_errno^@@^@@}. Any version of Emacs will
|
|
1442 suffice. If you don't understand how to do this, don't do it.
|
|
1443
|
|
1444 @item
|
|
1445 Rebuild XEmacs yourself -- any working ELF version of libc should be
|
|
1446 O.K.
|
|
1447 @end enumerate
|
|
1448
|
|
1449 Hrvoje Niksic <hniksic@@srce.hr> writes:
|
|
1450
|
|
1451 @quotation
|
|
1452 Why not use a Perl one-liner for No. 2?
|
|
1453
|
|
1454 @example
|
|
1455 perl -pi -e 's/_h_errno\0/h_errno\0\0/g' /usr/local/bin/xemacs-19.14
|
|
1456 @end example
|
|
1457
|
|
1458 NB: You @emph{must} patch @file{/usr/local/bin/xemacs-19.14}, and not
|
|
1459 @file{xemacs} because @file{xemacs} is a link to @file{xemacs-19.14};
|
|
1460 the Perl @samp{-i} option will cause unwanted side-effects if applied to
|
|
1461 a symbolic link.
|
|
1462 @end quotation
|
|
1463
|
116
|
1464 Steve L. Baur <steve@@miranova.com> writes:
|
|
1465
|
|
1466 @quotation
|
|
1467 If you build against a recent libc-5.4 (late enough to have caused
|
|
1468 problems earlier in the beta cycle) and then run with an earlier version
|
|
1469 of libc, you get a
|
|
1470
|
|
1471 @example
|
|
1472 $ xemacs
|
|
1473 xemacs: can't resolve symbol '__malloc_hook'
|
|
1474 zsh: 7942 segmentation fault (core dumped) xemacs
|
|
1475 @end example
|
|
1476
|
|
1477 (Example binary compiled against libc-5.4.23 and run with libc-5.4.16).
|
|
1478
|
|
1479 The solution is to upgrade to at least libc-5.4.23. Sigh. Drat.
|
|
1480 @end quotation
|
|
1481
|
82
|
1482 @node Q2.0.9, Q2.0.10, Q2.0.8, Installation
|
|
1483 @section Where do I find external libraries?
|
|
1484
|
|
1485 All external libraries used by XEmacs can be found at the XEmacs FTP
|
|
1486 site <URL:ftp://ftp.xemacs.org/pub/aux/>.
|
|
1487
|
207
|
1488 @c This list is a pain in the you-know-what to keep in synch with the
|
|
1489 @c world.
|
163
|
1490 The canonical locations (at the time of this writing) are as follows:
|
82
|
1491
|
|
1492 @table @asis
|
|
1493 @item JPEG
|
|
1494 <URL:ftp://ftp.uu.net/graphics/jpeg/>. Version 6a is current.
|
|
1495
|
|
1496 @item XPM
|
|
1497 <URL:ftp://ftp.x.org/contrib/libraries/>. Version 3.4j is current.
|
|
1498 Older versions of this package are known to cause XEmacs crashes.
|
|
1499
|
|
1500 @item TIFF
|
|
1501 <URL:ftp://ftp.sgi.com/graphics/tiff/>. v3.4 is current. The latest
|
|
1502 beta is v3.4b035. There is a HOWTO here.
|
|
1503
|
|
1504 @item PNG
|
|
1505 <URL:ftp://ftp.uu.net/graphics/png/>. 0.89c is current. XEmacs
|
|
1506 requires a fairly recent version to avoid using temporary files.
|
|
1507
|
|
1508 <URL:ftp://swrinde.nde.swri.edu/pub/png/src/>
|
|
1509
|
|
1510 @item Compface
|
|
1511 <URL:ftp://ftp.cs.indiana.edu/pub/faces/compface/>. This library has
|
|
1512 been frozen for about 6 years, and is distributed without version
|
|
1513 numbers. @emph{It should be compiled with the same options that X11 was
|
|
1514 compiled with on your system}. The version of this library at
|
|
1515 XEmacs.org includes the @file{xbm2xface.pl} script, written by
|
|
1516 stig@@hackvan.com, which may be useful when generating your own xface.
|
|
1517
|
|
1518 @item NAS
|
|
1519 <URL:ftp://ftp.x.org/contrib/audio/nas/>.
|
|
1520 Version 1.2p5 is current. There is a FAQ here.
|
|
1521 @end table
|
|
1522
|
|
1523 @node Q2.0.10, Q2.0.11, Q2.0.9, Installation
|
126
|
1524 @section After I run configure I find a core dump, is something wrong?
|
82
|
1525
|
|
1526 Not necessarily. If you have GNU sed 3.0 you should downgrade it to
|
|
1527 2.05. From the @file{README} at prep.ai.mit.edu:
|
|
1528
|
|
1529 @quotation
|
|
1530 sed 3.0 has been withdrawn from distribution. It has major revisions,
|
|
1531 which mostly seem to be improvements; but it turns out to have bugs too
|
|
1532 which cause trouble in some common cases.
|
|
1533
|
|
1534 Tom Lord won't be able to work fixing the bugs until May. So in the
|
|
1535 mean time, we've decided to withdraw sed 3.0 from distribution and make
|
|
1536 version 2.05 once again the recommended version.
|
|
1537 @end quotation
|
|
1538
|
|
1539 It has also been observed that the vfork test on Solaris will leave a
|
126
|
1540 core dump.
|
82
|
1541
|
|
1542 @node Q2.0.11, Q2.0.12, Q2.0.10, Installation
|
|
1543 @section XEmacs doesn't resolve hostnames.
|
|
1544
|
|
1545 This is the result of a long-standing problem with SunOS and the fact
|
|
1546 that stock SunOS systems do not ship with DNS resolver code in libc.
|
|
1547
|
|
1548 Christopher Davis <ckd@@loiosh.kei.com> writes:
|
|
1549
|
|
1550 @quotation
|
|
1551 That's correct [The SunOS 4.1.3 precompiled binaries don't do name
|
|
1552 lookup]. Since Sun figured that everyone used NIS to do name lookups
|
|
1553 (that DNS thing was apparently only a passing fad, right?), the stock
|
|
1554 SunOS 4.x systems don't have DNS-based name lookups in libc.
|
|
1555
|
|
1556 This is also why Netscape ships two binaries for SunOS 4.1.x.
|
|
1557
|
|
1558 The best solution is to compile it yourself; the configure script will
|
|
1559 check to see if you've put DNS in the shared libc and will then proceed
|
|
1560 to link against the DNS resolver library code.
|
|
1561 @end quotation
|
|
1562
|
|
1563 @node Q2.0.12, Q2.0.13, Q2.0.11, Installation
|
|
1564 @section Why can't I strip XEmacs?
|
|
1565
|
|
1566 Richard Cognot <cognot@@fronsac.ensg.u-nancy.fr> writes:
|
|
1567
|
|
1568 @quotation
|
|
1569 Because of the way XEmacs (and every other Emacsen, AFAIK) is built. The
|
|
1570 link gives you a bare-boned emacs (called temacs). temacs is then run,
|
|
1571 preloading some of the lisp files. The result is then dumped into a new
|
|
1572 executable, named xemacs, which will contain all of the preloaded lisp
|
|
1573 functions and data.
|
|
1574
|
|
1575 Now, during the dump itself, the executable (code+data+symbols) is
|
|
1576 written on disk using a special unexec() function. This function is
|
|
1577 obviously heavily system dependent. And on some systems, it leads to an
|
|
1578 executable which, although valid, cannot be stripped without damage. If
|
|
1579 memory serves, this is especially the case for AIX binaries. On other
|
|
1580 architecture it might work OK.
|
|
1581
|
|
1582 The Right Way to strip the emacs binary is to strip temacs prior to
|
|
1583 dumping xemacs. This will always work, although you can do that only if
|
|
1584 you install from sources (as temacs is @file{not} part of the binary
|
|
1585 kits).
|
|
1586 @end quotation
|
|
1587
|
|
1588 Nat Makarevitch <nat@@nataa.fr.eu.org> writes:
|
|
1589
|
|
1590 @quotation
|
|
1591 Here is the trick:
|
|
1592
|
|
1593 @enumerate
|
|
1594 @item
|
163
|
1595 [ ./configure; make ]
|
82
|
1596
|
|
1597 @item
|
163
|
1598 rm src/xemacs
|
82
|
1599
|
|
1600 @item
|
163
|
1601 strip src/temacs
|
82
|
1602
|
|
1603 @item
|
|
1604 make
|
|
1605
|
|
1606 @item
|
|
1607 cp src/xemacs /usr/local/bin/xemacs
|
|
1608
|
|
1609 @item
|
213
|
1610 cp lib-src/DOC-19.16-XEmacs /usr/local/lib/xemacs-19.16/i586-unknown-linuxaout
|
82
|
1611 @end enumerate
|
|
1612 @end quotation
|
|
1613
|
126
|
1614 @node Q2.0.13, Q2.0.14, Q2.0.12, Installation
|
82
|
1615 @section Problems linking with Gcc on Solaris
|
|
1616
|
|
1617 There are known difficulties linking with Gnu ld on Solaris. A typical
|
|
1618 error message might look like:
|
|
1619
|
|
1620 @example
|
|
1621 unexec(): dlopen(../dynodump/dynodump.so): ld.so.1: ./temacs:
|
|
1622 fatal: relocation error:
|
|
1623 symbol not found: main: referenced in ../dynodump/dynodump.so
|
|
1624 @end example
|
|
1625
|
|
1626 Martin Buchholz <mrb@@eng.sun.com> writes:
|
|
1627
|
|
1628 @quotation
|
|
1629 You need to specify @samp{-fno-gnu-linker} as part of your flags to pass
|
|
1630 to ld. Future releases of XEmacs will try to do this automatically.
|
|
1631 @end quotation
|
|
1632
|
126
|
1633 @node Q2.0.14, Q2.1.1, Q2.0.13, Installation
|
|
1634 @section Make on HP/UX 9 fails after linking temacs
|
|
1635
|
213
|
1636 Problem when building xemacs-19.16 on hpux 9:
|
126
|
1637
|
|
1638 Richard Cognot <cognot@@ensg.u-nancy.fr> writes:
|
|
1639
|
|
1640 @quotation
|
|
1641 make on hpux fails after linking temacs with a message:
|
|
1642
|
|
1643 @example
|
|
1644 "make: don't know how to make .y."
|
|
1645 @end example
|
|
1646
|
|
1647 Solution: This is a problem with HP make revision 70.X. Either use GNU
|
|
1648 make, or install PHCO_6552, which will bring make to revision
|
|
1649 72.24.1.17.
|
|
1650 @end quotation
|
|
1651
|
|
1652
|
|
1653 @node Q2.1.1, Q2.1.2, Q2.0.14, Installation
|
82
|
1654 @section Help! XEmacs just crashed on me!
|
|
1655
|
|
1656 First of all, don't panic. Whenever XEmacs crashes, it tries extremely
|
163
|
1657 hard to auto-save all of your files before dying. (The main time that
|
82
|
1658 this will not happen is if the machine physically lost power or if you
|
163
|
1659 killed the XEmacs process using @code{kill -9}). The next time you try
|
82
|
1660 to edit those files, you will be informed that a more recent auto-save
|
|
1661 file exists. You can use @kbd{M-x recover-file} to retrieve the
|
|
1662 auto-saved version of the file.
|
|
1663
|
|
1664 Starting with 19.14, you may use the command @kbd{M-x recover-session}
|
|
1665 after a crash to pick up where you left off.
|
|
1666
|
|
1667 Now, XEmacs is not perfect, and there may occasionally be times, or
|
|
1668 particular sequences of actions, that cause it to crash. If you can
|
|
1669 come up with a reproducible way of doing this (or even if you have a
|
|
1670 pretty good memory of exactly what you were doing at the time), the
|
|
1671 maintainers would be very interested in knowing about it. Post a
|
|
1672 message to comp.emacs.xemacs or send mail to <crashes@@xemacs.org>.
|
|
1673 Please note that the @samp{crashes} address is exclusively for crash
|
|
1674 reports.
|
|
1675
|
|
1676 If at all possible, include a stack backtrace of the core dump that was
|
|
1677 produced. This shows where exactly things went wrong, and makes it much
|
|
1678 easier to diagnose problems. To do this, you need to locate the core
|
|
1679 file (it's called @file{core}, and is usually sitting in the directory
|
|
1680 that you started XEmacs from, or your home directory if that other
|
|
1681 directory was not writable). Then, go to that directory and execute a
|
|
1682 command like:
|
|
1683
|
|
1684 @example
|
|
1685 gdb `which xemacs` core
|
|
1686 @end example
|
|
1687
|
|
1688 and then issue the command @samp{where} to get the stack backtrace. You
|
|
1689 might have to use @code{dbx} or some similar debugger in place of
|
|
1690 @code{gdb}. If you don't have any such debugger available, complain to
|
|
1691 your system administrator.
|
|
1692
|
|
1693 It's possible that a core file didn't get produced, in which case you're
|
|
1694 out of luck. Go complain to your system administrator and tell him not
|
|
1695 to disable core files by default. Also @xref{Q2.1.15} for tips and
|
|
1696 techniques for dealing with a debugger.
|
|
1697
|
|
1698 When making a problem report make sure that:
|
|
1699
|
|
1700 @enumerate
|
|
1701 @item
|
|
1702 Report @strong{all} of the information output by XEmacs during the
|
|
1703 crash.
|
|
1704
|
|
1705 @item
|
|
1706 You mention what O/S & Hardware you are running XEmacs on.
|
|
1707
|
|
1708 @item
|
|
1709 What version of XEmacs you are running.
|
|
1710
|
|
1711 @item
|
|
1712 What build options you are using.
|
|
1713
|
|
1714 @item
|
|
1715 If the problem is related to graphics, we will also need to know what
|
|
1716 version of the X Window System you are running, and what window manager
|
|
1717 you are using.
|
|
1718
|
|
1719 @item
|
|
1720 If the problem happened on a tty, please include the terminal type.
|
|
1721 @end enumerate
|
|
1722
|
|
1723 @node Q2.1.2, Q2.1.3, Q2.1.1, Installation
|
|
1724 @section Cryptic Minibuffer messages.
|
|
1725
|
|
1726 When I try to use some particular option of some particular package, I
|
|
1727 get a cryptic error in the minibuffer.
|
|
1728
|
|
1729 If you can't figure out what's going on, select Options/General
|
|
1730 Options/Debug on Error from the Menubar and then try and make the error
|
|
1731 happen again. This will give you a backtrace that may be enlightening.
|
|
1732 If not, try reading through this FAQ; if that fails, you could try
|
|
1733 posting to comp.emacs.xemacs (making sure to include the backtrace) and
|
|
1734 someone may be able to help. If you can identify which Emacs lisp
|
|
1735 source file the error is coming from you can get a more detailed stack
|
|
1736 backtrace by doing the following:
|
|
1737
|
|
1738 @enumerate
|
|
1739 @item
|
|
1740 Visit the .el file in an XEmacs buffer.
|
|
1741
|
|
1742 @item
|
|
1743 Issue the command @kbd{M-x eval-current-buffer}.
|
|
1744
|
|
1745 @item
|
|
1746 Reproduce the error.
|
|
1747 @end enumerate
|
|
1748
|
|
1749 Depending on the version of XEmacs, you may either select Edit->Show
|
|
1750 Messages (19.13 and earlier) or Help->Recent Keystrokes/Messages (19.14
|
|
1751 and later) from the menubar to see the most recent messages. This
|
|
1752 command is bound to @kbd{C-h l} by default.
|
|
1753
|
|
1754 @node Q2.1.3, Q2.1.4, Q2.1.2, Installation
|
|
1755 @section Translation Table Syntax messages at Startup
|
|
1756
|
|
1757 I get tons of translation table syntax error messages during startup.
|
|
1758 How do I get rid of them?
|
|
1759
|
|
1760 There are two causes of this problem. The first usually only strikes
|
|
1761 people using the prebuilt binaries. The culprit in both cases is the
|
|
1762 file @file{XKeysymDB}.
|
|
1763
|
|
1764 @itemize @bullet
|
|
1765 @item
|
|
1766 The binary cannot find the @file{XKeysymDB} file. The location is
|
|
1767 hardcoded at compile time so if the system the binary was built on puts
|
|
1768 it a different place than your system does, you have problems. To fix,
|
|
1769 set the environment variable @var{XKEYSYMDB} to the location of the
|
|
1770 @file{XKeysymDB} file on your system or to the location of the one
|
|
1771 included with XEmacs which should be at
|
213
|
1772 @file{<xemacs_root_directory>/lib/xemacs-19.16/etc/XKeysymDB}.
|
82
|
1773
|
|
1774 @item
|
|
1775 The binary is finding the XKeysymDB but it is out-of-date on your system
|
|
1776 and does not contain the necessary lines. Either ask your system
|
|
1777 administrator to replace it with the one which comes with XEmacs (which
|
|
1778 is the stock R6 version and is backwards compatible) or set your
|
|
1779 @var{XKEYSYMDB} variable to the location of XEmacs's described above.
|
|
1780 @end itemize
|
|
1781
|
|
1782 @node Q2.1.4, Q2.1.5, Q2.1.3, Installation
|
|
1783 @section Startup warnings about deducing proper fonts?
|
|
1784
|
|
1785 How can I avoid the startup warnings about deducing proper fonts?
|
|
1786
|
|
1787 This is highly dependent on your installation, but try with the
|
|
1788 following font as your base font for XEmacs and see what it does:
|
|
1789
|
|
1790 @example
|
|
1791 -adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1
|
|
1792 @end example
|
|
1793
|
|
1794 More precisely, do the following in your resource file:
|
|
1795
|
|
1796 @example
|
|
1797 Emacs.default.attributeFont: -adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1
|
16
|
1798 @end example
|
|
1799
|
82
|
1800 If you just don't want to see the @samp{*Warnings*} buffer at startup
|
|
1801 time, you can set this:
|
|
1802
|
|
1803 @lisp
|
|
1804 (setq display-warning-minimum-level 'error)
|
|
1805 @end lisp
|
|
1806
|
|
1807 The buffer still exists; it just isn't in your face.
|
|
1808
|
|
1809 @node Q2.1.5, Q2.1.6, Q2.1.4, Installation
|
|
1810 @section XEmacs cannot connect to my X Terminal!
|
|
1811
|
|
1812 Help! I can not get XEmacs to display on my Envizex X-terminal!
|
|
1813
|
|
1814 Try setting the @var{DISPLAY} variable using the numeric IP address of
|
|
1815 the host you are running XEmacs from.
|
|
1816
|
|
1817 @node Q2.1.6, Q2.1.7, Q2.1.5, Installation
|
|
1818 @section XEmacs just locked up my Linux X server!
|
|
1819
|
|
1820 There have been several reports of the X server locking up under Linux.
|
|
1821 In all reported cases removing speedo and scaled fonts from the font
|
|
1822 path corrected the problem. This can be done with the command
|
163
|
1823 @code{xset}.
|
82
|
1824
|
|
1825 It is possible that using a font server may also solve the problem.
|
|
1826
|
|
1827 @node Q2.1.7, Q2.1.8, Q2.1.6, Installation
|
|
1828 @section HP Alt key as Meta.
|
|
1829
|
|
1830 How can I make XEmacs recognize the Alt key of my HP workstation as a
|
|
1831 Meta key?
|
|
1832
|
|
1833 Put the following line into a file and load it with xmodmap(1) before
|
|
1834 starting XEmacs:
|
|
1835
|
|
1836 @example
|
|
1837 remove Mod1 = Mode_switch
|
|
1838 @end example
|
|
1839
|
|
1840 @node Q2.1.8, Q2.1.9, Q2.1.7, Installation
|
|
1841 @section got (wrong-type-argument color-instance-p nil)
|
|
1842
|
|
1843 Natalie Kershaw <nataliek@@rd.scitec.com.au> writes:
|
|
1844
|
|
1845 @quotation
|
|
1846 I am trying to run xemacs 19.13 under X11R4. Whenever I move the mouse I
|
|
1847 get the following error. Has anyone seen anything like this? This
|
|
1848 doesn't occur on X11R5.
|
|
1849
|
|
1850 @lisp
|
|
1851 Signalling: (error "got (wrong-type-argument color-instance-p nil) and I don't know why!")
|
|
1852 @end lisp
|
|
1853 @end quotation
|
|
1854
|
|
1855 dinos <map01kd@@gold.ac.uk> writes:
|
|
1856
|
|
1857 @quotation
|
|
1858 I think this is due to undefined resources; You need to define color
|
|
1859 backgrounds and foregrounds into your @file{.../app-defaults/Emacs}
|
|
1860 like:
|
|
1861
|
|
1862 @example
|
|
1863 *Foreground: Black ;everything will be of black on grey95,
|
|
1864 *Background: Grey95 ;unless otherwise specified.
|
|
1865 *cursorColor: Red3 ;red3 cursor with grey95 border.
|
|
1866 *pointerColor: Red3 ;red3 pointer with grey95 border.
|
|
1867 @end example
|
|
1868 @end quotation
|
|
1869
|
|
1870 Natalie Kershaw adds:
|
|
1871
|
|
1872 @quotation
|
|
1873 What fixed the problem was adding some more colors to the X color
|
|
1874 database (copying the X11R5 colors over), and also defining the
|
|
1875 following resources:
|
|
1876
|
|
1877 @example
|
|
1878 xemacs*cursorColor: black
|
|
1879 xemacs*pointerColor: black
|
|
1880 @end example
|
|
1881
|
|
1882 With the new colours installed the problem still occurs if the above
|
|
1883 resources are not defined.
|
|
1884
|
|
1885 If the new colours are not present then an additional error occurs on
|
|
1886 XEmacs startup, which says @samp{Color Red3} not defined.
|
|
1887 @end quotation
|
|
1888
|
|
1889 @node Q2.1.9, Q2.1.10, Q2.1.8, Installation
|
|
1890 @section XEmacs causes my OpenWindows 3.0 server to crash.
|
|
1891
|
|
1892 The OpenWindows 3.0 server is incredibly buggy. Your best bet is to
|
|
1893 replace it with one from the generic MIT X11 release. You might also
|
|
1894 try disabling parts of your @file{.emacs}, like enabling background
|
|
1895 pixmaps.
|
|
1896
|
|
1897 @node Q2.1.10, Q2.1.11, Q2.1.9, Installation
|
|
1898 @section Warnings from incorrect key modifiers.
|
|
1899
|
|
1900 The following information comes from the @file{PROBLEMS} file that comes
|
|
1901 with XEmacs.
|
|
1902
|
|
1903 If you're having troubles with HP/UX it is because HP/UX defines the
|
|
1904 modifiers wrong in X. Here is a shell script to fix the problem; be
|
|
1905 sure that it is run after VUE configures the X server.
|
|
1906
|
|
1907 @example
|
|
1908 #! /bin/sh
|
|
1909 xmodmap 2> /dev/null - << EOF
|
|
1910 keysym Alt_L = Meta_L
|
|
1911 keysym Alt_R = Meta_R
|
|
1912 EOF
|
|
1913
|
|
1914 xmodmap - << EOF
|
|
1915 clear mod1
|
|
1916 keysym Mode_switch = NoSymbol
|
|
1917 add mod1 = Meta_L
|
|
1918 keysym Meta_R = Mode_switch
|
|
1919 add mod2 = Mode_switch
|
|
1920 EOF
|
|
1921 @end example
|
|
1922
|
|
1923 @node Q2.1.11, Q2.1.12, Q2.1.10, Installation
|
126
|
1924 @section [This question intentionally left blank]
|
|
1925
|
|
1926 Obsolete question, left blank to avoid renumbering.
|
82
|
1927
|
|
1928 @node Q2.1.12, Q2.1.13, Q2.1.11, Installation
|
|
1929 @section Problems with Regular Expressions on DEC OSF1.
|
|
1930
|
|
1931 I have xemacs 19.13 running on an alpha running OSF1 V3.2 148 and ispell
|
|
1932 would not run because it claimed the version number was incorrect
|
|
1933 although it was indeed OK. I traced the problem to the regular
|
|
1934 expression handler.
|
|
1935
|
|
1936 Douglas Kosovic <douglask@@dstc.edu.au> writes:
|
|
1937
|
|
1938 @quotation
|
|
1939 Actually it's a DEC cc optimisation bug that screws up the regexp
|
|
1940 handling in XEmacs.
|
|
1941
|
|
1942 Rebuilding using the @samp{-migrate} switch for DEC cc (which uses a
|
|
1943 different sort of optimisation) works fine.
|
|
1944 @end quotation
|
|
1945
|
|
1946 See @file{xemacs-19_13-dunix-3_2c.patch} at the following URL on how to
|
|
1947 build with the @samp{-migrate} flag:
|
|
1948
|
|
1949 @example
|
|
1950 <URL:http://www-digital.cern.ch/carney/emacs/emacs.html>
|
|
1951 @end example
|
|
1952
|
|
1953 NOTE: There have been a variety of other problems reported that are
|
|
1954 fixed in this fashion.
|
|
1955
|
|
1956 @node Q2.1.13, Q2.1.14, Q2.1.12, Installation
|
|
1957 @section HP/UX 10.10 and @code{create_process} failure.
|
|
1958
|
|
1959 Dave Carrigan <Dave.Carrigan@@ipl.ca> writes:
|
|
1960
|
|
1961 @quotation
|
|
1962 With XEmacs 19.13 and HP/UX 10.10, anything that relies on the
|
|
1963 @code{create_process} function fails. This breaks a lot of things
|
|
1964 (shell-mode, compile, ange-ftp, to name a few).
|
|
1965 @end quotation
|
|
1966
|
|
1967 Phil Johnson <johnson@@dtc.hp.com> writes:
|
|
1968
|
|
1969 @quotation
|
|
1970 This is a problem specific to HP-UX 10.10. It only occurs when XEmacs
|
|
1971 is compiled for shared libraries (the default), so you can work around
|
|
1972 it by compiling a statically-linked binary (run configure with
|
|
1973 @samp{--dynamic=no}).
|
|
1974
|
|
1975 I'm not sure whether the problem is with a particular shared library or
|
|
1976 if it's a kernel problem which crept into 10.10.
|
|
1977 @end quotation
|
|
1978
|
|
1979 Richard Cognot <cognot@@ensg.u-nancy.fr> writes:
|
|
1980
|
|
1981 @quotation
|
|
1982 I had a few problems with 10.10. Apparently, some of them were solved by
|
|
1983 forcing a static link of libc (manually).
|
|
1984 @end quotation
|
|
1985
|
|
1986 @node Q2.1.14, Q2.1.15, Q2.1.13, Installation
|
|
1987 @section @kbd{C-g} doesn't work for me. Is it broken?
|
|
1988
|
|
1989 Ben Wing <ben@@666.com> writes:
|
|
1990
|
|
1991 @quotation
|
|
1992 @kbd{C-g} does work for most people in most circumstances. If it
|
|
1993 doesn't, there are only two explanations:
|
|
1994
|
|
1995 @enumerate
|
|
1996 @item
|
|
1997 The code is wrapped with a binding of @code{inhibit-quit} to
|
|
1998 @code{t}. @kbd{Ctrl-Shift-G} should still work, I think.
|
|
1999
|
|
2000 @item
|
|
2001 SIGIO is broken on your system, but BROKEN_SIGIO isn't defined.
|
|
2002 @end enumerate
|
|
2003
|
|
2004 To test #2, try executing @code{(while t)} from the @samp{*scratch*}
|
|
2005 buffer. If @kbd{C-g} doesn't interrupt, then you're seeing #2.
|
|
2006 @end quotation
|
|
2007
|
|
2008 Morten Welinder <terra@@diku.dk> writes:
|
|
2009
|
|
2010 @quotation
|
|
2011 On some (but @emph{not} all) machines a hung XEmacs can be revived by
|
|
2012 @code{kill -FPE <pid>}. This is a hack, of course, not a solution.
|
|
2013 This technique works on a Sun4 running 4.1.3_U1. To see if it works for
|
|
2014 you, start another XEmacs and test with that first. If you get a core
|
|
2015 dump the method doesn't work and if you get @samp{Arithmetic error} then
|
|
2016 it does.
|
|
2017 @end quotation
|
|
2018
|
|
2019 @node Q2.1.15, Q2.1.16, Q2.1.14, Installation
|
|
2020 @section How to Debug an XEmacs problem with a debugger
|
|
2021
|
|
2022 Ben Wing <ben@@666.com> writes:
|
|
2023
|
|
2024 @quotation
|
|
2025 If XEmacs does crash on you, one of the most productive things you can
|
|
2026 do to help get the bug fixed is to poke around a bit with the debugger.
|
|
2027 Here are some hints:
|
|
2028
|
|
2029 @itemize @bullet
|
|
2030 @item
|
|
2031 First of all, if the crash is at all reproducible, consider very
|
|
2032 strongly recompiling your XEmacs with debugging symbols, with no
|
|
2033 optimization, and with the configure options @samp{--debug=yes},
|
|
2034 @samp{--error-checking=all}, and @samp{--dynamic=no}. This will make
|
|
2035 your XEmacs run somewhat slower but make it a lot more likely to catch
|
|
2036 the problem earlier (closer to its source), and a lot easier to
|
|
2037 determine what's going on with a debugger.
|
|
2038
|
|
2039 @item
|
|
2040 If you're able to run XEmacs under a debugger and reproduce the crash
|
|
2041 (if it's inconvenient to do this because XEmacs is already running or is
|
|
2042 running in batch mode as part of a bunch of scripts, consider attaching
|
|
2043 to the existing process with your debugger; most debuggers let you do
|
|
2044 this by substituting the process ID for the core file when you invoke
|
|
2045 the debugger from the command line, or by using the @code{attach}
|
|
2046 command or something similar), here are some things you can do:
|
|
2047
|
|
2048 @item
|
|
2049 If XEmacs is hitting an assertion failure, put a breakpoint on
|
|
2050 @code{assert_failed()}.
|
|
2051
|
|
2052 @item
|
|
2053 If XEmacs is hitting some weird Lisp error that's causing it to crash
|
|
2054 (e.g. during startup), put a breakpoint on @code{signal_1()}---this is
|
|
2055 declared static in eval.c.
|
|
2056
|
|
2057 @item
|
|
2058 Internally, you will probably see lots of variables that hold objects of
|
|
2059 type @code{Lisp_Object}. These are exactly what they appear to be,
|
|
2060 i.e. references to Lisp objects. Printing them out with the debugger
|
|
2061 probably won't be too useful---you'll just see a number. To decode
|
|
2062 them, do this:
|
|
2063
|
|
2064 @example
|
|
2065 call debug_print (OBJECT)
|
|
2066 @end example
|
|
2067
|
|
2068 where @var{OBJECT} is whatever you want to decode (it can be a variable,
|
|
2069 a function call, etc.). This will print out a readable representation
|
|
2070 on the TTY from which the xemacs process was invoked.
|
|
2071
|
|
2072 @item
|
|
2073 If you want to get a Lisp backtrace showing the Lisp call
|
|
2074 stack, do this:
|
|
2075
|
|
2076 @example
|
|
2077 call debug_backtrace ()
|
|
2078 @end example
|
|
2079
|
|
2080 @item
|
|
2081 If all you've got is a core dump, all is not lost. You can still poke
|
|
2082 around somewhat, and if you're using GDB, there are some macros in the
|
|
2083 file @file{gdbinit} in the @file{src} directory of the XEmacs
|
|
2084 distribution that should make it easier for you to decode Lisp objects.
|
|
2085
|
|
2086 If you're using DBX, you may be able to get further help from Martin
|
|
2087 Buchholz, the engineer at Sun who works on XEmacs. Write to him at
|
|
2088 <Martin.Buchholz@@sun.com>.
|
|
2089
|
|
2090 @item
|
|
2091 If you're using a debugger to get a C stack backtrace and you're seeing
|
|
2092 stack traces with some of the innermost frames mangled, it may be due to
|
|
2093 dynamic linking. (This happens especially under Linux.) Consider
|
|
2094 reconfiguring with @samp{--dynamic=no}. Also, sometimes (again under
|
|
2095 Linux), stack backtraces of core dumps will have the frame where the
|
|
2096 fatal signal occurred mangled; if you can obtain a stack trace while
|
|
2097 running the XEmacs process under a debugger, the stack trace should be
|
|
2098 clean.
|
|
2099
|
|
2100 Curtiss <1CMC3466@@ibm.mtsac.edu> suggests upgrading to ld.so version 1.8
|
|
2101 if dynamic linking and debugging is a problem on Linux.
|
|
2102
|
|
2103 @item
|
|
2104 If you're using a debugger to get a C stack backtrace and you're
|
|
2105 getting a completely mangled and bogus stack trace, it's probably due to
|
|
2106 one of the following:
|
|
2107
|
|
2108 @enumerate a
|
|
2109 @item
|
|
2110 Your executable has been stripped. Bad news. Tell your sysadmin not to
|
|
2111 do this---it doesn't accomplish anything except to save a bit of disk
|
|
2112 space, and makes debugging much much harder.
|
|
2113
|
|
2114 @item
|
|
2115 Your stack is getting trashed. Debugging this is hard; you have to do a
|
|
2116 binary-search-type of narrowing down where the crash occurs, until you
|
|
2117 figure out exactly which line is causing the problem. Of course, this
|
|
2118 only works if the bug is highly reproducible.
|
|
2119
|
|
2120 @item
|
|
2121 If your stack trace has exactly one frame in it, with address 0x0, this
|
|
2122 could simply mean that XEmacs attempted to execute code at that address,
|
|
2123 e.g. through jumping to a null function pointer. Unfortunately, under
|
|
2124 those circumstances, GDB under Linux doesn't know how to get a stack
|
|
2125 trace. (Yes, this is the third Linux-related problem I've mentioned. I
|
|
2126 have no idea why GDB under Linux is so bogus. Complain to the GDB
|
|
2127 authors, or to comp.os.linux.development.system). Again, you'll have to
|
|
2128 use the narrowing-down process described above.
|
|
2129
|
|
2130 @item
|
163
|
2131 If you compiled 19.14 with @samp{--debug} (or by default in later
|
|
2132 versions), you will get a Lisp backtrace output when XEmacs crashes, so
|
|
2133 you'll have something useful. If you're in 19.13, you could try doing
|
|
2134 @code{call debug_backtrace()}---sometimes this works even after a fatal
|
|
2135 signal has been received.
|
82
|
2136 @end enumerate
|
|
2137 @end itemize
|
|
2138 @end quotation
|
|
2139
|
|
2140 Here's some more info about using gdbinit:
|
|
2141
|
|
2142 Different version of @code{gdbinit} are provided for different
|
|
2143 platforms. One of these should be installed as @file{.gdbinit} in your
|
|
2144 home directory. If you're using XEmacs 19.14 or better, you should
|
|
2145 install the default @code{gdbinit} in the @file{src/} directory if you
|
|
2146 have GDB 4.14 or better. With GDB 4.13 or earlier, install
|
|
2147 @file{gdbinit.pre-4.14}; however, this is noticeably harder to use. If
|
|
2148 you're on a machine that uses a union type for Lisp_Objects (only the
|
|
2149 DEC Alpha, I think), you'll have to use @code{gdbinit.union}, which is
|
|
2150 of the pre-4.14 variety but should be easily upgradable.
|
|
2151
|
|
2152 With XEmacs 19.13 and earlier, only one @code{gdbinit} is provided (I
|
|
2153 think); it's of the pre-4.14 variety and of the union-type
|
|
2154 variety. (Many more machines used the union type under 19.13).
|
|
2155
|
|
2156 With the GDB 4.14+ gdbinit, you can print out a Lisp_Object using
|
|
2157 @code{p1 OBJECT} (which calls @code{debug_print()}, and hence only works
|
|
2158 if you have a running process) or @code{frob OBJECT} (which works even
|
|
2159 on core dumps, and does its own decoding of the object, but its output
|
|
2160 isn't always so convenient).
|
|
2161
|
|
2162 With the pre-GDB 4.14 gdbinit, you have to do these steps:
|
|
2163
|
|
2164 @example
|
|
2165 print OBJECT
|
|
2166 xtype
|
|
2167 <then type "xcons" or "xstring" or whatever, depending on the type>
|
|
2168 @end example
|
|
2169
|
|
2170 If the object is a record type, you'll probably have to the following
|
|
2171 steps:
|
|
2172
|
|
2173 @example
|
|
2174 print OBJECT
|
|
2175 xtype
|
|
2176 xrecord
|
|
2177 <remember what type is printed>
|
|
2178 print OBJECT
|
|
2179 <then type "xbuffer" or "xsymbol" or whatever>
|
|
2180 @end example
|
|
2181
|
|
2182 Of course, if you know in advance what type the object is of, you can
|
|
2183 omit all but the last two steps.
|
|
2184
|
|
2185 @node Q2.1.16, Q2.1.17, Q2.1.15, Installation
|
|
2186 @section XEmacs crashes in @code{strcat} on HP/UX 10
|
|
2187
|
|
2188 >From the problems database (through
|
|
2189 <URL:http://support.mayfield.hp.com/>):
|
54
|
2190
|
|
2191 @example
|
82
|
2192 Problem Report: 5003302299
|
|
2193 Status: Open
|
|
2194
|
|
2195 System/Model: 9000/700
|
|
2196 Product Name: HPUX S800 10.0X
|
|
2197 Product Vers: 9245XB.10.00
|
|
2198
|
|
2199 Description: strcat(3C) may read beyond end of source string, can cause
|
|
2200 SIGSEGV
|
|
2201
|
|
2202
|
|
2203 *** PROBLEM TEXT ***
|
|
2204 strcat(3C) may read beyond the source string onto an unmapped page,
|
|
2205 causing a segmentation violation.
|
|
2206 @end example
|
|
2207
|
|
2208 @node Q2.1.17, Q2.1.18, Q2.1.16, Installation
|
|
2209 @section @samp{Marker does not point anywhere}
|
|
2210
|
163
|
2211 As with other errors, set @code{debug-on-error} to @code{t} to get the
|
|
2212 backtrace when the error occurs. Specifically, two problems have been
|
|
2213 reported (and fixed).
|
|
2214
|
|
2215 @enumerate
|
|
2216 @item
|
|
2217 A problem with line-number-mode in XEmacs 19.14 affected a large number
|
|
2218 of other packages. If you see this error message, turn off
|
82
|
2219 line-number-mode.
|
|
2220
|
163
|
2221 @item
|
|
2222 A problem with some early versions of Gnus 5.4 caused this error.
|
|
2223 Upgrade your Gnus.
|
|
2224 @end enumerate
|
|
2225
|
82
|
2226 @node Q2.1.18, Q2.1.19, Q2.1.17, Installation
|
|
2227 @section 19.14 hangs on HP/UX 10.10.
|
|
2228
|
|
2229 Richard Cognot <cognot@@ensg.u-nancy.fr> writes:
|
|
2230
|
|
2231 @quotation
|
|
2232 For the record, compiling on hpux 10.10 leads to a hang in Gnus when
|
|
2233 compiled with optimization on.
|
|
2234
|
|
2235 I've just discovered that my hpux 10.01 binary was working less well
|
|
2236 than expected. In fact, on a 10.10 system, @code{(while t)} was not
|
|
2237 interupted by @kbd{C-g}. I defined @code{BROKEN_SIGIO} and recompiled on
|
|
2238 10.10, and... the hang is now gone.
|
|
2239
|
|
2240 As far as configure goes, this will be a bit tricky: @code{BROKEN_SIGIO}
|
|
2241 is needed on 10.10, but @strong{not} on 10.01: if I run my 10.01 binary
|
|
2242 on a 10.01 machine, without @code{BROKEN_SIGIO} being defined, @kbd{C-g}
|
|
2243 works as expected.
|
|
2244 @end quotation
|
|
2245
|
|
2246 Richard Cognot <cognot@@ensg.u-nancy.fr> adds:
|
|
2247
|
|
2248 @quotation
|
|
2249 Apparently somebody has found the reason why there is this @samp{poll:
|
|
2250 interrupted...} message for each event. For some reason, libcurses
|
|
2251 reimplements a @code{select()} system call, in a highly broken fashion.
|
|
2252 The fix is to add a -lc to the link line @emph{before} the
|
|
2253 -lxcurses. XEmacs will then use the right version of @code{select()}.
|
|
2254 @end quotation
|
|
2255
|
|
2256
|
|
2257 Alain Fauconnet <af@@biomath.jussieu.fr> writes:
|
|
2258
|
|
2259 @quotation
|
|
2260 The @emph{real} solution is to @emph{not} link -lcurses in! I just
|
|
2261 changed -lcurses to -ltermcap in the Makefile and it fixed:
|
|
2262
|
|
2263 @enumerate
|
|
2264 @item
|
|
2265 The @samp{poll: interrupted system call} message.
|
|
2266
|
|
2267 @item
|
|
2268 A more serious problem I had discovered in the meantime, that is the
|
|
2269 fact that subprocess handling was seriously broken: subprocesses
|
163
|
2270 e.g. started by AUC TeX for TeX compilation of a buffer would
|
82
|
2271 @emph{hang}. Actually they would wait forever for emacs to read the
|
|
2272 socket which connects stdout...
|
|
2273 @end enumerate
|
|
2274 @end quotation
|
|
2275
|
|
2276 @node Q2.1.19, Q2.1.20, Q2.1.18, Installation
|
|
2277 @section XEmacs does not follow the local timezone.
|
|
2278
|
|
2279 When using one of the prebuilt binaries many users have observed that
|
|
2280 XEmacs uses the timezone under which it was built, but not the timezone
|
|
2281 under which it is running. The solution is to add:
|
|
2282
|
|
2283 @lisp
|
|
2284 (set-time-zone-rule "MET")
|
|
2285 @end lisp
|
|
2286
|
|
2287 to your @file{.emacs} or the @file{site-start.el} file if you can.
|
|
2288 Replace @code{MET} with your local timezone.
|
|
2289
|
|
2290 @node Q2.1.20, Q2.1.21, Q2.1.19, Installation
|
|
2291 @section @samp{Symbol's function definition is void: hkey-help-show.}
|
|
2292
|
|
2293 This is a problem with a partially loaded hyperbole. Try adding:
|
|
2294
|
|
2295 @lisp
|
|
2296 (require 'hmouse-drv)
|
|
2297 @end lisp
|
|
2298
|
|
2299 where you load hyperbole and the problem should go away.
|
|
2300
|
116
|
2301 @node Q2.1.21, Q2.1.22, Q2.1.20, Installation
|
82
|
2302 @section Every so often the XEmacs frame freezes
|
|
2303
|
|
2304 This problem has been fixed in 19.15, and was due to a not easily
|
|
2305 reproducible race condition.
|
|
2306
|
126
|
2307 @node Q2.1.22, Q2.1.23, Q2.1.21, Installation
|
116
|
2308 @section XEmacs seems to take a really long time to do some things
|
|
2309
|
|
2310 David Moore <dmoore@@ucsd.edu> writes:
|
|
2311
|
|
2312 @quotation
|
|
2313 Two things you can do:
|
|
2314
|
|
2315 1) C level:
|
|
2316
|
|
2317 When you see it going mad like this, you might want to use gdb from an
|
|
2318 'xterm' to attach to the running process and get a stack trace. To do
|
|
2319 this just run:
|
|
2320
|
|
2321 @example
|
|
2322 gdb /path/to/xemacs/xemacs ####
|
|
2323 @end example
|
|
2324
|
163
|
2325 Where @code{####} is the process id of your xemacs, instead of
|
|
2326 specifying the core. When gdb attaches, the xemacs will stop [1] and
|
|
2327 you can type `where' in gdb to get a stack trace as usual. To get
|
|
2328 things moving again, you can just type `quit' in gdb. It'll tell you
|
|
2329 the program is running and ask if you want to quit anyways. Say 'y' and
|
|
2330 it'll quit and have your emacs continue from where it was at.
|
116
|
2331
|
|
2332 2) Lisp level:
|
|
2333
|
|
2334 Turn on debug-on-quit early on. When you think things are going slow
|
|
2335 hit C-g and it may pop you in the debugger so you can see what routine
|
|
2336 is running. Press `c' to get going again.
|
|
2337
|
|
2338 debug-on-quit doesn't work if something's turned on inhibit-quit or in
|
|
2339 some other strange cases.
|
|
2340 @end quotation
|
|
2341
|
126
|
2342 @node Q2.1.23, , Q2.1.22, Installation
|
|
2343 @section Movemail on Linux doe snot work for XEmacs 19.15 and later.
|
|
2344
|
|
2345 Movemail used to work fine in 19.14 but has stopped working in 19.15
|
|
2346 and 20.x. I am using Linux.
|
|
2347
|
|
2348 Steven L Baur <steve@@miranova.com> writes:
|
|
2349
|
|
2350 @quotation
|
163
|
2351 Movemail on Linux used to default to using flock file locking. With
|
|
2352 19.15 and later versions it now defaults to using @code{.lock} file
|
|
2353 locking. If this is not appropriate for your system, edit src/s/linux.h
|
|
2354 and uncomment the line that reads:
|
|
2355
|
|
2356 @example
|
|
2357 #define MAIL_USE_FLOCK
|
|
2358 @end example
|
126
|
2359 @end quotation
|
|
2360
|
82
|
2361 @node Customization, Subsystems, Installation, Top
|
|
2362 @chapter Customization and Options
|
|
2363
|
|
2364 This is part 3 of the XEmacs Frequently Asked Questions list. This
|
|
2365 section is devoted to Customization and screen settings.
|
|
2366
|
|
2367 @menu
|
|
2368 Customization---Emacs Lisp and @file{.emacs}:
|
163
|
2369 * Q3.0.1:: What version of Emacs am I running?
|
82
|
2370 * Q3.0.2:: How do I evaluate Elisp expressions?
|
|
2371 * Q3.0.3:: @code{(setq tab-width 6)} behaves oddly.
|
|
2372 * Q3.0.4:: How can I add directories to the @code{load-path}?
|
|
2373 * Q3.0.5:: How to check if a lisp function is defined?
|
|
2374 * Q3.0.6:: Can I force the output of @code{(face-list)} to a buffer?
|
163
|
2375 * Q3.0.7:: Font selections don't get saved after @code{Save Options}.
|
82
|
2376 * Q3.0.8:: How do I make a single minibuffer frame?
|
|
2377
|
|
2378 X Window System & Resources:
|
|
2379 * Q3.1.1:: Where is a list of X resources?
|
|
2380 * Q3.1.2:: How can I detect a color display?
|
|
2381 * Q3.1.3:: @code{(set-screen-width)} worked in 19.6, but not in 19.13?
|
163
|
2382 * Q3.1.4:: Specifiying @code{Emacs*EmacsScreen.geometry} in @file{.emacs} does not work in 19.15?
|
82
|
2383 * Q3.1.5:: How can I get the icon to just say @samp{XEmacs}?
|
|
2384 * Q3.1.6:: How can I have the window title area display the full path?
|
|
2385 * Q3.1.7:: @samp{xemacs -name junk} doesn't work?
|
|
2386 * Q3.1.8:: @samp{-iconic} it doesn't work.
|
|
2387
|
|
2388 Textual Fonts & Colors:
|
|
2389 * Q3.2.1:: How can I set color options from @file{.emacs}?
|
|
2390 * Q3.2.2:: How do I set the text, menu and modeline fonts?
|
|
2391 * Q3.2.3:: How can I set the colors when highlighting a region?
|
163
|
2392 * Q3.2.4:: How can I limit color map usage?
|
82
|
2393 * Q3.2.5:: My tty supports color, but XEmacs doesn't use them.
|
|
2394
|
|
2395 The Modeline:
|
|
2396 * Q3.3.1:: How can I make the modeline go away?
|
|
2397 * Q3.3.2:: How do you have XEmacs display the line number in the modeline?
|
|
2398 * Q3.3.3:: How do I get XEmacs to put the time of day on the modeline?
|
163
|
2399 * Q3.3.4:: How do I turn off current chapter from AUC TeX modeline?
|
|
2400 * Q3.3.5:: How can one change the modeline color based on the mode used?
|
82
|
2401
|
|
2402 3.4 Multiple Device Support:
|
163
|
2403 * Q3.4.1:: How do I open a frame on another screen of my multi-headed display?
|
82
|
2404 * Q3.4.2:: Can I really connect to a running XEmacs after calling up over a modem? How?
|
|
2405
|
|
2406 3.5 The Keyboard:
|
|
2407 * Q3.5.1:: How can I bind complex functions (or macros) to keys?
|
|
2408 * Q3.5.2:: How can I stop down-arrow from adding empty lines to the bottom of my buffers?
|
|
2409 * Q3.5.3:: How do I bind C-. and C-; to scroll one line up and down?
|
|
2410 * Q3.5.4:: Globally binding @kbd{Delete}?
|
|
2411 * Q3.5.5:: Scrolling one line at a time.
|
163
|
2412 * Q3.5.6:: How to map @kbd{Help} key alone on Sun type4 keyboard?
|
82
|
2413 * Q3.5.7:: How can you type in special characters in XEmacs?
|
|
2414 * Q3.5.8:: Why does @code{(global-set-key [delete-forward] 'delete-char)} complain?
|
|
2415 * Q3.5.9:: How do I make the Delete key delete forward?
|
|
2416 * Q3.5.10:: Can I turn on @dfn{sticky} modifier keys?
|
|
2417
|
|
2418 The Cursor:
|
|
2419 * Q3.6.1:: Is there a way to make the bar cursor thicker?
|
|
2420 * 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?
|
|
2421 * Q3.6.3:: Can I make the cursor blink?
|
|
2422
|
|
2423 The Mouse and Highlighting:
|
|
2424 * Q3.7.1:: How can I turn off Mouse pasting?
|
|
2425 * Q3.7.2:: How do I set control/meta/etc modifiers on mouse buttons?
|
|
2426 * Q3.7.3:: Clicking the left button does not do anything in buffer list.
|
|
2427 * Q3.7.4:: How can I get a list of buffers when I hit mouse button 3?
|
|
2428 * Q3.7.5:: Why does cut-and-paste not work between XEmacs and a cmdtool?
|
|
2429 * Q3.7.6:: How I can set XEmacs up so that it pastes where the text cursor is?
|
|
2430 * Q3.7.7:: How do I select a rectangular region?
|
|
2431 * Q3.7.8:: Why does @kbd{M-w} take so long?
|
|
2432
|
|
2433 The Menubar and Toolbar:
|
|
2434 * Q3.8.1:: How do I get rid of the menu (or menubar)?
|
|
2435 * Q3.8.2:: Can I customize the basic menubar?
|
|
2436 * Q3.8.3:: How do I control how many buffers are listed in the menu @code{Buffers} list?
|
|
2437 * Q3.8.4:: Resources like @code{Emacs*menubar*font} are not working?
|
|
2438 * Q3.8.5:: How can I bind a key to a function to toggle the toolbar?
|
|
2439
|
|
2440 Scrollbars:
|
|
2441 * Q3.9.1:: How can I disable the scrollbar?
|
|
2442 * Q3.9.2:: How can one use resources to change scrollbar colors?
|
|
2443 * Q3.9.3:: Moving the scrollbar can move the point; can I disable this?
|
|
2444 * Q3.9.4:: How can I get automatic horizontal scrolling?
|
|
2445
|
|
2446 Text Selections:
|
163
|
2447 * Q3.10.1:: How can I turn off or change highlighted selections?
|
82
|
2448 * Q3.10.2:: How do I get that typing on an active region removes it?
|
|
2449 * Q3.10.3:: Can I turn off the highlight during isearch?
|
|
2450 * Q3.10.4:: How do I turn off highlighting after @kbd{C-x C-p} (mark-page)?
|
|
2451 * Q3.10.5:: The region disappears when I hit the end of buffer while scrolling.
|
|
2452 @end menu
|
|
2453
|
|
2454 @node Q3.0.1, Q3.0.2, Customization, Customization
|
|
2455 @section What version of Emacs am I running?
|
|
2456
|
|
2457 How can @file{.emacs} determine which of the family of Emacsen I am
|
|
2458 using?
|
|
2459
|
|
2460 To determine if you are currently running GNU Emacs 18, GNU Emacs 19,
|
126
|
2461 XEmacs 19, XEmacs 20, or Epoch, and use appropriate code, check out the
|
|
2462 example given in @file{etc/sample.emacs}. There are other nifty things
|
|
2463 in there as well!
|
82
|
2464
|
|
2465 For all new code, all you really need to do is:
|
|
2466
|
|
2467 @lisp
|
|
2468 (defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
|
|
2469 @end lisp
|
|
2470
|
|
2471 @node Q3.0.2, Q3.0.3, Q3.0.1, Customization
|
|
2472 @section How can I evaluate Emacs-Lisp expressions?
|
|
2473
|
|
2474 I know I can evaluate Elisp expressions from @code{*scratch*} buffer
|
|
2475 with @kbd{C-j} after the expression. How do I do it from another
|
|
2476 buffer?
|
|
2477
|
163
|
2478 Press @kbd{M-:} (the default binding of @code{eval-expression}), and
|
|
2479 enter the expression to the minibuffer. In XEmacs prior to 19.15
|
|
2480 @code{eval-expression} used to be a disabled command by default. If
|
|
2481 this is the case, upgrade your XEmacs.
|
82
|
2482
|
|
2483 @node Q3.0.3, Q3.0.4, Q3.0.2, Customization
|
|
2484 @section @code{(setq tab-width 6)} behaves oddly.
|
|
2485
|
|
2486 If you put @code{(setq tab-width 6)} in your @file{.emacs} file it does
|
|
2487 not work! Is there a reason for this? If you do it at the EVAL prompt
|
|
2488 it works fine!! How strange.
|
|
2489
|
|
2490 Use @code{setq-default} instead, since @code{tab-width} is
|
|
2491 all-buffer-local.
|
|
2492
|
|
2493 @node Q3.0.4, Q3.0.5, Q3.0.3, Customization
|
|
2494 @section How can I add directories to the @code{load-path}?
|
|
2495
|
|
2496 Here are two ways to do that, one that puts your directories at the
|
|
2497 front of the load-path, the other at the end:
|
|
2498
|
|
2499 @lisp
|
|
2500 ;;; Add things at the beginning of the load-path, do not add
|
|
2501 ;;; duplicate directories:
|
163
|
2502 (pushnew "bar" load-path :test 'equal)
|
|
2503
|
|
2504 (pushnew "foo" load-path :test 'equal)
|
82
|
2505
|
|
2506 ;;; Add things at the end, unconditionally
|
163
|
2507 (setq load-path (nconc load-path '("foo" "bar")))
|
82
|
2508 @end lisp
|
|
2509
|
|
2510 keith (k.p.) hanlan <keithh@@nortel.ca> writes:
|
|
2511
|
|
2512 @quotation
|
|
2513 To add directories using Unix shell metacharacters use
|
|
2514 @file{expand-file-name} like this:
|
|
2515
|
|
2516 @lisp
|
163
|
2517 (push (expand-file-name "~keithh/.emacsdir") load-path)
|
82
|
2518 @end lisp
|
|
2519 @end quotation
|
|
2520
|
|
2521 @node Q3.0.5, Q3.0.6, Q3.0.4, Customization
|
|
2522 @section How to check if a lisp function is defined?
|
|
2523
|
|
2524 Use the following elisp:
|
|
2525
|
|
2526 @lisp
|
|
2527 (fboundp 'foo)
|
|
2528 @end lisp
|
|
2529
|
|
2530 It's almost always a mistake to test @code{emacs-version} or any similar
|
|
2531 variables.
|
|
2532
|
|
2533 Instead, use feature-tests, such as @code{featurep}, @code{boundp},
|
|
2534 @code{fboundp}, or even simple behavioural tests, eg.:
|
|
2535
|
|
2536 @lisp
|
|
2537 (defvar foo-old-losing-code-p
|
|
2538 (condition-case nil (progn (losing-code t) nil)
|
|
2539 (wrong-number-of-arguments t)))
|
|
2540 @end lisp
|
|
2541
|
|
2542 There is an incredible amount of broken code out there which could work
|
|
2543 much better more often in more places if it did the above instead of
|
|
2544 trying to divine its environment from the value of one variable.
|
|
2545
|
|
2546 @node Q3.0.6, Q3.0.7, Q3.0.5, Customization
|
|
2547 @section Can I force the output of @code{(face-list)} to a buffer?
|
|
2548
|
|
2549 It would be good having it in a buffer, as the output of
|
|
2550 @code{(face-list)} is too wide to fit to a minibuffer.
|
|
2551
|
|
2552 Evaluate the expression in the @samp{*scratch*} buffer with point after
|
|
2553 the rightmost paren and typing @kbd{C-j}.
|
|
2554
|
163
|
2555 If the minibuffer smallness is the only problem you encounter, you can
|
|
2556 simply press @kbd{C-h l} to get the former minibuffer contents in a
|
|
2557 buffer.
|
|
2558
|
82
|
2559 @node Q3.0.7, Q3.0.8, Q3.0.6, Customization
|
126
|
2560 @section Font selections in don't get saved after @code{Save Options}.
|
|
2561
|
|
2562 For XEmacs 19.14 and previous:
|
82
|
2563
|
|
2564 John Mann <mannj@@ll.mit.edu> writes:
|
|
2565
|
|
2566 @quotation
|
|
2567 You have to go to Options->Menubar Appearance and unselect
|
|
2568 @samp{Frame-Local Font Menu}. If this option is selected, font changes
|
|
2569 are only applied to the @emph{current} frame and do @emph{not} get saved
|
|
2570 when you save options.
|
|
2571 @end quotation
|
|
2572
|
126
|
2573 For XEmacs 19.15 and later:
|
|
2574
|
|
2575 Implement the above as well as set the following in your @file{.emacs}
|
|
2576
|
|
2577 @lisp
|
163
|
2578 (setq options-save-faces t)
|
126
|
2579 @end lisp
|
|
2580
|
82
|
2581 @node Q3.0.8, Q3.1.1, Q3.0.7, Customization
|
|
2582 @section How do I get a single minibuffer frame?
|
|
2583
|
|
2584 Vin Shelton <acs@@acm.org> writes:
|
|
2585
|
|
2586 @lisp
|
|
2587 (setq initial-frame-plist '(minibuffer nil))
|
|
2588 (setq default-frame-plist '(minibuffer nil))
|
|
2589 (setq default-minibuffer-frame
|
|
2590 (make-frame
|
|
2591 '(minibuffer only
|
|
2592 width 86
|
|
2593 height 1
|
|
2594 menubar-visible-p nil
|
|
2595 default-toolbar-visible-p nil
|
|
2596 name "minibuffer"
|
|
2597 top -2
|
|
2598 left -2
|
|
2599 has-modeline-p nil)))
|
|
2600 (frame-notice-user-settings)
|
|
2601 @end lisp
|
|
2602
|
|
2603 @strong{NOTE:} The single minibuffer frame may not be to everyone's
|
|
2604 taste, and there any number of other XEmacs options settings that may
|
|
2605 make it difficult or inconvenient to use.
|
|
2606
|
|
2607 @node Q3.1.1, Q3.1.2, Q3.0.8, Customization
|
|
2608 @section Where is a list of X resources?
|
|
2609
|
|
2610 Search through the @file{NEWS} file for @samp{X Resources}. A fairly
|
|
2611 comprehensive list is given after it.
|
|
2612
|
|
2613 In addition, an @file{app-defaults} file is supplied,
|
|
2614 @file{etc/Emacs.ad} listing the defaults. The file
|
|
2615 @file{etc/sample.Xdefaults} gives a set of defaults that you might
|
|
2616 consider. It is essentially the same as @file{etc/Emacs.ad} but some
|
|
2617 entries are slightly altered. Be careful about installing the contents
|
|
2618 of this file into your @file{.Xdefaults} or @file{.Xresources} file if
|
|
2619 you use GNU Emacs under X11 as well.
|
|
2620
|
|
2621 @node Q3.1.2, Q3.1.3, Q3.1.1, Customization
|
|
2622 @section How can I detect a color display?
|
|
2623
|
|
2624 You can test the return value of the function @code{(device-class)}, as
|
|
2625 in:
|
|
2626
|
|
2627 @lisp
|
|
2628 (when (eq (device-class) 'color)
|
|
2629 (set-face-foreground 'font-lock-comment-face "Grey")
|
|
2630 (set-face-foreground 'font-lock-string-face "Red")
|
|
2631 ....
|
|
2632 )
|
|
2633 @end lisp
|
|
2634
|
|
2635 @node Q3.1.3, Q3.1.4, Q3.1.2, Customization
|
|
2636 @section @code{(set-screen-width)} worked in 19.6, but not in 19.13?
|
|
2637
|
|
2638 In Lucid Emacs 19.6 I did @code{(set-screen-width @var{characters})} and
|
|
2639 @code{(set-screen-height @var{lines})} in my @file{.emacs} instead of
|
|
2640 specifying @code{Emacs*EmacsScreen.geometry} in my @file{.Xdefaults} but
|
|
2641 this does not work in XEmacs 19.13.
|
|
2642
|
|
2643 These two functions now take frame arguments:
|
|
2644
|
|
2645 @lisp
|
|
2646 (set-frame-width (selected-frame) @var{characters})
|
|
2647 (set-frame-height (selected-frame) @var{lines})
|
|
2648 @end lisp
|
|
2649
|
|
2650 @node Q3.1.4, Q3.1.5, Q3.1.3, Customization
|
126
|
2651 @section Specifiying @code{Emacs*EmacsScreen.geometry} in @file{.emacs} does not work in 19.15?
|
82
|
2652
|
|
2653 In XEmacs 19.11 I specified @code{Emacs*EmacsScreen.geometry} in
|
126
|
2654 my @file{.emacs} but this does not work in XEmacs 19.15.
|
82
|
2655
|
|
2656 We have switched from using the term @dfn{screen} to using the term
|
|
2657 @dfn{frame}.
|
|
2658
|
|
2659 The correct entry for your @file{.Xdefaults} is now:
|
|
2660
|
|
2661 @example
|
|
2662 Emacs*EmacsFrame.geometry
|
|
2663 @end example
|
|
2664
|
|
2665 @node Q3.1.5, Q3.1.6, Q3.1.4, Customization
|
|
2666 @section How can I get the icon to just say @samp{XEmacs}?
|
|
2667
|
|
2668 I'd like the icon to just say @samp{XEmacs}, and not include the name of
|
|
2669 the current file in it.
|
|
2670
|
|
2671 Add the following line to your @file{.emacs}:
|
|
2672
|
|
2673 @lisp
|
|
2674 (setq frame-icon-title-format "XEmacs")
|
|
2675 @end lisp
|
|
2676
|
|
2677 @node Q3.1.6, Q3.1.7, Q3.1.5, Customization
|
|
2678 @section How can I have the window title area display the full path?
|
|
2679
|
|
2680 I'd like to have the window title area display the full directory/name
|
|
2681 of the current buffer file and not just the name.
|
|
2682
|
|
2683 Add the following line to your @file{.emacs}:
|
|
2684
|
|
2685 @lisp
|
|
2686 (setq frame-title-format "%S: %f")
|
|
2687 @end lisp
|
|
2688
|
|
2689 A more sophisticated title might be:
|
|
2690
|
|
2691 @lisp
|
|
2692 (setq frame-title-format
|
|
2693 '("%S: " (buffer-file-name "%f" (dired-directory dired-directory "%b"))))
|
|
2694 @end lisp
|
|
2695
|
|
2696 That is, use the file name, or the dired-directory, or the buffer name.
|
|
2697
|
|
2698 @node Q3.1.7, Q3.1.8, Q3.1.6, Customization
|
|
2699 @section @samp{xemacs -name junk} doesn't work?
|
|
2700
|
|
2701 When I run @samp{xterm -name junk}, I get an xterm whose class name
|
|
2702 according to xprop, is @samp{junk}. This is the way it's supposed to
|
|
2703 work, I think. When I run @samp{xemacs -name junk} the class name is
|
|
2704 not set to @samp{junk}. It's still @samp{emacs}. What does
|
|
2705 @samp{xemacs -name} really do? The reason I ask is that my window
|
|
2706 manager (fvwm) will make a window sticky and I use XEmacs to read my
|
|
2707 mail. I want that XEmacs window to be sticky, without having to use the
|
|
2708 window manager's function to set the window sticky. What gives?
|
|
2709
|
|
2710 @samp{xemacs -name} sets the application name for the program (that is,
|
|
2711 the thing which normally comes from @samp{argv[0]}). Using @samp{-name}
|
|
2712 is the same as making a copy of the executable with that new name. The
|
|
2713 @code{WM_CLASS} property on each frame is set to the frame-name, and the
|
|
2714 application-class. So, if you did @samp{xemacs -name FOO} and then
|
|
2715 created a frame named @var{BAR}, you'd get an X window with WM_CLASS =
|
|
2716 @code{( "BAR", "Emacs")}. However, the resource hierarchy for this
|
|
2717 widget would be:
|
|
2718
|
|
2719 @example
|
|
2720 Name: FOO .shell .container .BAR
|
|
2721 Class: Emacs .TopLevelEmacsShell.EmacsManager.EmacsFrame
|
|
2722 @end example
|
|
2723
|
|
2724 instead of the default
|
|
2725
|
|
2726 @example
|
|
2727 Name: xemacs.shell .container .emacs
|
|
2728 Class: Emacs .TopLevelEmacsShell.EmacsManager.EmacsFrame
|
|
2729 @end example
|
|
2730
|
|
2731
|
|
2732 It is arguable that the first element of WM_CLASS should be set to the
|
|
2733 application-name instead of the frame-name, but I think that's less
|
|
2734 flexible, since it does not give you the ability to have multiple frames
|
|
2735 with different WM_CLASS properties. Another possibility would be for
|
|
2736 the default frame name to come from the application name instead of
|
|
2737 simply being @samp{emacs}. However, at this point, making that change
|
|
2738 would be troublesome: it would mean that many users would have to make
|
|
2739 yet another change to their resource files (since the default frame name
|
|
2740 would suddenly change from @samp{emacs} to @samp{xemacs}, or whatever
|
|
2741 the executable happened to be named), so we'd rather avoid it.
|
|
2742
|
|
2743 To make a frame with a particular name use:
|
|
2744
|
|
2745 @lisp
|
|
2746 (make-frame '((name . "the-name")))
|
|
2747 @end lisp
|
|
2748
|
|
2749 @node Q3.1.8, Q3.2.1, Q3.1.7, Customization
|
|
2750 @section @samp{-iconic} doesn't work.
|
|
2751
|
|
2752 When I start up XEmacs using @samp{-iconic} it doesn't work right.
|
|
2753 Using @samp{-unmapped} on the command line, and setting the
|
|
2754 @code{initiallyUnmapped} X Resource don't seem to help much either...
|
|
2755
|
|
2756 Ben Wing <ben@@666.com> writes:
|
|
2757
|
|
2758 @quotation
|
|
2759 Ugh, this stuff is such an incredible mess that I've about given up
|
|
2760 getting it to work. The principal problem is numerous window-manager
|
|
2761 bugs...
|
|
2762 @end quotation
|
|
2763
|
|
2764 @node Q3.2.1, Q3.2.2, Q3.1.8, Customization
|
|
2765 @section How can I set color options from @file{.emacs}?
|
|
2766
|
|
2767 How can I set the most commonly used color options from my @file{.emacs}
|
|
2768 instead of from my @file{.Xdefaults}?
|
|
2769
|
|
2770 Like this:
|
|
2771
|
|
2772 @lisp
|
|
2773 (set-face-background 'default "bisque") ; frame background
|
|
2774 (set-face-foreground 'default "black") ; normal text
|
|
2775 (set-face-background 'zmacs-region "red") ; When selecting w/
|
|
2776 ; mouse
|
|
2777 (set-face-foreground 'zmacs-region "yellow")
|
|
2778 (set-face-font 'default "*courier-bold-r*120-100-100*")
|
|
2779 (set-face-background 'highlight "blue") ; Ie when selecting buffers
|
|
2780 (set-face-foreground 'highlight "yellow")
|
|
2781 (set-face-background 'modeline "blue") ; Line at bottom of buffer
|
|
2782 (set-face-foreground 'modeline "white")
|
|
2783 (set-face-font 'modeline "*bold-r-normal*140-100-100*")
|
|
2784 (set-face-background 'isearch "yellow") ; When highlighting while
|
|
2785 ; searching
|
|
2786 (set-face-foreground 'isearch "red")
|
|
2787 (setq x-pointer-foreground-color "black") ; Adds to bg color,
|
|
2788 ; so keep black
|
|
2789 (setq x-pointer-background-color "blue") ; This is color you really
|
|
2790 ; want ptr/crsr
|
|
2791 @end lisp
|
|
2792
|
|
2793 @node Q3.2.2, Q3.2.3, Q3.2.1, Customization
|
|
2794 @section How do I set the text, menu and modeline fonts?
|
|
2795
|
|
2796 Note that you should use @samp{Emacs.} and not @samp{Emacs*} when
|
|
2797 setting face values.
|
|
2798
|
|
2799 In @file{.Xdefaults}:
|
|
2800
|
|
2801 @example
|
|
2802 Emacs.default.attributeFont: -*-*-medium-r-*-*-*-120-*-*-m-*-*-*
|
|
2803 Emacs*menubar*font: fixed
|
|
2804 Emacs.modeline.attributeFont: fixed
|
|
2805 @end example
|
|
2806
|
|
2807 This is confusing because modeline is a face, and can be found listed
|
|
2808 with all faces in the current mode by using @kbd{M-x set-face-font
|
|
2809 (enter) ?}. It uses the face specification of @code{attributeFont},
|
|
2810 while menubar is a normal X thing that uses the specification
|
|
2811 @code{font}. With Motif it may be necessary to use @code{fontList}
|
|
2812 instead of @code{font}.
|
|
2813
|
|
2814 @node Q3.2.3, Q3.2.4, Q3.2.2, Customization
|
|
2815 @section How can I set the colors when highlighting a region?
|
|
2816
|
|
2817 How can I set the background/foreground colors when highlighting a
|
|
2818 region?
|
|
2819
|
|
2820 You can change the face @code{zmacs-region} either in your
|
|
2821 @file{.Xdefaults}:
|
|
2822
|
|
2823 @example
|
|
2824 Emacs.zmacs-region.attributeForeground: firebrick
|
|
2825 Emacs.zmacs-region.attributeBackground: lightseagreen
|
16
|
2826 @end example
|
|
2827
|
82
|
2828 or in your @file{.emacs}:
|
|
2829
|
|
2830 @lisp
|
|
2831 (set-face-background 'zmacs-region "red")
|
|
2832 (set-face-foreground 'zmacs-region "yellow")
|
|
2833 @end lisp
|
|
2834
|
|
2835 @node Q3.2.4, Q3.2.5, Q3.2.3, Customization
|
|
2836 @section How can I limit color map usage?
|
|
2837
|
|
2838 I'm using Netscape (or another color grabber like XEmacs);
|
|
2839 is there anyway to limit the number of available colors in the color map?
|
|
2840
|
126
|
2841 XEmacs 19.13 didn't have such a mechanism (unlike netscape, or other
|
82
|
2842 color-hogs). One solution is to start XEmacs prior to netscape, since
|
|
2843 this will prevent Netscape from grabbing all colors (but Netscape will
|
|
2844 complain). You can use the flags for Netscape, like -mono, -ncols <#>
|
|
2845 or -install (for mono, limiting to <#> colors, or for using a private
|
|
2846 color map). Since Netscape will take the entire colormap and never
|
|
2847 release it, the only reasonable way to run it is with @samp{-install}.
|
|
2848
|
|
2849 If you have the money, another solution would be to use a truecolor or
|
|
2850 direct color video.
|
|
2851
|
|
2852 Starting with XEmacs 19.14, XEmacs uses the closest available color if
|
|
2853 the colormap is full, so it's O.K. now to start Netscape first.
|
|
2854
|
|
2855 @node Q3.2.5, Q3.3.1, Q3.2.4, Customization
|
|
2856 @section My tty supports color, but XEmacs doesn't use them.
|
|
2857
|
|
2858 XEmacs tries to automatically determine whether your tty supports color,
|
|
2859 but sometimes guesses wrong. In that case, you can make XEmacs Do The
|
|
2860 Right Thing using this Lisp code:
|
|
2861
|
|
2862 @lisp
|
|
2863 (if (eq 'tty (device-type))
|
|
2864 (set-device-class nil 'color))
|
|
2865 @end lisp
|
|
2866
|
|
2867 @node Q3.3.1, Q3.3.2, Q3.2.5, Customization
|
|
2868 @section How can I make the modeline go away?
|
|
2869
|
|
2870 @lisp
|
|
2871 (set-specifier has-modeline-p nil)
|
|
2872 @end lisp
|
|
2873
|
|
2874 Starting with XEmacs 19.14 the modeline responds to mouse clicks, so if
|
|
2875 you haven't liked or used the modeline in the past, you might want to
|
|
2876 try the new version out.
|
|
2877
|
|
2878 @node Q3.3.2, Q3.3.3, Q3.3.1, Customization
|
|
2879 @section How do you have XEmacs display the line number in the modeline?
|
|
2880
|
|
2881 Add the following line to your @file{.emacs} file to display the
|
|
2882 line number:
|
|
2883
|
|
2884 @lisp
|
|
2885 (setq line-number-mode t)
|
|
2886 @end lisp
|
|
2887
|
|
2888 Use the following to display the column number:
|
|
2889
|
|
2890 @lisp
|
|
2891 (display-column-mode)
|
|
2892 @end lisp
|
|
2893
|
|
2894 @node Q3.3.3, Q3.3.4, Q3.3.2, Customization
|
|
2895 @section How do I get XEmacs to put the time of day on the modeline?
|
|
2896
|
|
2897 @lisp
|
|
2898 (display-time)
|
|
2899 @end lisp
|
|
2900
|
|
2901 @node Q3.3.4, Q3.3.5, Q3.3.3, Customization
|
163
|
2902 @section How do I turn off current chapter from AUC TeX modeline?
|
|
2903
|
|
2904 With AUC TeX, fast typing is hard because the current chapter, section
|
82
|
2905 etc. are given in the modeline. How can I turn this off?
|
|
2906
|
163
|
2907 It's not AUC TeX, it comes from @code{func-menu} in @file{func-menu.el}.
|
82
|
2908 Add this code to your @file{.emacs} to turn it off:
|
|
2909
|
|
2910 @lisp
|
|
2911 (setq fume-display-in-modeline-p nil)
|
|
2912 @end lisp
|
|
2913
|
|
2914 Or just add a hook to @code{TeX-mode-hook} to turn it off only for TeX
|
|
2915 mode:
|
|
2916
|
|
2917 @lisp
|
|
2918 (add-hook 'TeX-mode-hook '(lambda () (setq fume-display-in-modeline-p nil)))
|
|
2919 @end lisp
|
|
2920
|
|
2921 David Hughes <dhughes@@origin-at.co.uk> writes:
|
|
2922
|
|
2923 @quotation
|
|
2924 If you have 19.14 or later, try this instead; you'll still get the
|
|
2925 function name displayed in the modeline, but it won't attempt to keep
|
|
2926 track when you modify the file. To refresh when it gets out of synch,
|
|
2927 you simply need click on the @samp{Rescan Buffer} option in the
|
|
2928 function-menu.
|
|
2929
|
|
2930 @lisp
|
|
2931 (setq-default fume-auto-rescan-buffer-p nil)
|
|
2932 @end lisp
|
|
2933 @end quotation
|
|
2934
|
|
2935 @node Q3.3.5, Q3.4.1, Q3.3.4, Customization
|
|
2936 @section How can one change the modeline color based on the mode used?
|
|
2937
|
|
2938 You can use something like the following:
|
|
2939
|
|
2940 @lisp
|
|
2941 (add-hook 'lisp-mode-hook
|
163
|
2942 (lambda ()
|
|
2943 (set-face-background 'modeline "red" (current-buffer))))
|
82
|
2944 @end lisp
|
|
2945
|
|
2946 Then, when editing a Lisp file (i.e. when in Lisp mode), the modeline
|
|
2947 colors change from the default set in your @file{.emacs}. The change
|
|
2948 will only be made in the buffer you just entered (which contains the
|
|
2949 Lisp file you are editing) and will not affect the modeline colors
|
|
2950 anywhere else.
|
|
2951
|
|
2952 Notes:
|
|
2953
|
|
2954 @itemize @bullet
|
|
2955
|
|
2956 @item
|
|
2957 The hook is the mode name plus @code{-hook}. eg. c-mode-hook,
|
|
2958 c++-mode-hook, emacs-lisp-mode-hook (used for your @file{.emacs} or a
|
|
2959 @file{xx.el} file), lisp-interaction-mode-hook (the @samp{*scratch*}
|
|
2960 buffer), text-mode-hook, etc.
|
|
2961
|
|
2962 @item
|
|
2963 Be sure to use @code{add-hook}, not @code{(setq c-mode-hook xxxx)},
|
|
2964 otherwise you will erase anything that anybody has already put on the
|
|
2965 hook.
|
|
2966
|
|
2967 @item
|
|
2968 You can also do @code{(set-face-font 'modeline @var{font})},
|
|
2969 eg. @code{(set-face-font 'modeline "*bold-r-normal*140-100-100*"
|
|
2970 (current-buffer))} if you wish the modeline font to vary based on the
|
|
2971 current mode.
|
|
2972 @end itemize
|
|
2973
|
126
|
2974 This works in 19.15 as well, but there are additional modeline faces,
|
82
|
2975 @code{modeline-buffer-id}, @code{modeline-mousable}, and
|
|
2976 @code{modeline-mousable-minor-mode}, which you may want to customize.
|
|
2977
|
|
2978 @node Q3.4.1, Q3.4.2, Q3.3.5, Customization
|
|
2979 @section How do I open a frame on another screen of my multi-headed display?
|
|
2980
|
163
|
2981 The support for this was revamped for 19.14. Use the command
|
82
|
2982 @kbd{M-x make-frame-on-display}. This command is also on the File menu
|
|
2983 in the menubar.
|
|
2984
|
163
|
2985 XEmacs 19.14 and later also have the command @code{make-frame-on-tty}
|
|
2986 which will establish a connection to any tty-like device. Opening the
|
|
2987 TTY devices should be left to @code{gnuclient}, though.
|
82
|
2988
|
|
2989 @node Q3.4.2, Q3.5.1, Q3.4.1, Customization
|
|
2990 @section Can I really connect to a running XEmacs after calling up over a modem? How?
|
|
2991
|
|
2992 If you're not running at least XEmacs 19.14, you can't. Otherwise check
|
163
|
2993 out the @code{gnuattach} program supplied with XEmacs. Starting with
|
|
2994 XEmacs 20.3, @code{gnuattach} and @code{gnudoit} functionality will be
|
|
2995 provided by @code{gnuclient}.
|
82
|
2996
|
|
2997 @node Q3.5.1, Q3.5.2, Q3.4.2, Customization
|
|
2998 @section How can I bind complex functions (or macros) to keys?
|
|
2999
|
|
3000 As an example, say you want the @kbd{paste} key on a Sun keyboard to
|
|
3001 insert the current Primary X selection at point. You can accomplish this
|
|
3002 with:
|
|
3003
|
|
3004 @lisp
|
|
3005 (define-key global-map [f18] 'x-insert-selection)
|
|
3006 @end lisp
|
|
3007
|
|
3008 However, this only works if there is a current X selection (the
|
|
3009 selection will be highlighted). The functionality I like is for the
|
|
3010 @kbd{paste} key to insert the current X selection if there is one,
|
|
3011 otherwise insert the contents of the clipboard. To do this you need to
|
|
3012 pass arguments to @code{x-insert-selection}. This is done by wrapping
|
|
3013 the call in a 'lambda form:
|
|
3014
|
|
3015 @lisp
|
163
|
3016 (global-set-key [f18]
|
|
3017 (lambda () (interactive) (x-insert-selection t nil)))
|
82
|
3018 @end lisp
|
|
3019
|
|
3020 This binds the f18 key to a @dfn{generic} functional object. The
|
|
3021 interactive spec is required because only interactive functions can be
|
163
|
3022 bound to keys.
|
82
|
3023
|
|
3024 For the FAQ example you could use:
|
|
3025
|
|
3026 @lisp
|
|
3027 (global-set-key [(control ?.)]
|
163
|
3028 (lambda () (interactive) (scroll-up 1)))
|
82
|
3029 (global-set-key [(control ?;)]
|
163
|
3030 (lambda () (interactive) (scroll-up -1)))
|
82
|
3031 @end lisp
|
|
3032
|
|
3033 This is fine if you only need a few functions within the lambda body.
|
|
3034 If you're doing more it's cleaner to define a separate function as in
|
|
3035 question 3.5.3 (@xref{Q3.5.3}).
|
|
3036
|
|
3037 @node Q3.5.2, Q3.5.3, Q3.5.1, Customization
|
|
3038 @section How can I stop down-arrow from adding empty lines to the bottom of my buffers?
|
|
3039
|
|
3040 Add the following line to your @file{.emacs} file:
|
|
3041
|
|
3042 @lisp
|
|
3043 (setq next-line-add-newlines nil)
|
|
3044 @end lisp
|
|
3045
|
163
|
3046 This has been the default setting in XEmacs for some time.
|
|
3047
|
82
|
3048 @node Q3.5.3, Q3.5.4, Q3.5.2, Customization
|
|
3049 @section How do I bind C-. and C-; to scroll one line up and down?
|
|
3050
|
|
3051 Add the following (Thanks to Richard Mlynarik <mly@@adoc.xerox.com> and
|
|
3052 Wayne Newberry <wayne@@zen.cac.stratus.com>) to @file{.emacs}:
|
|
3053
|
|
3054 @lisp
|
|
3055 (defun scroll-up-one-line ()
|
|
3056 (interactive)
|
|
3057 (scroll-up 1))
|
|
3058
|
|
3059 (defun scroll-down-one-line ()
|
|
3060 (interactive)
|
|
3061 (scroll-down 1))
|
|
3062
|
163
|
3063 (global-set-key [(control ?.)] 'scroll-up-one-line) ; C-.
|
|
3064 (global-set-key [(control ?;)] 'scroll-down-one-line) ; C-;
|
82
|
3065 @end lisp
|
|
3066
|
|
3067 The key point is that you can only bind simple functions to keys; you
|
|
3068 can not bind a key to a function that you're also passing arguments to.
|
|
3069 (@xref{Q3.5.1} for a better answer).
|
|
3070
|
|
3071 @node Q3.5.4, Q3.5.5, Q3.5.3, Customization
|
|
3072 @section Globally binding @kbd{Delete}?
|
|
3073
|
|
3074 I cannot manage to globally bind my @kbd{Delete} key to something other
|
|
3075 than the default. How does one do this?
|
|
3076
|
|
3077 @lisp
|
163
|
3078 (defun foo ()
|
82
|
3079 (interactive)
|
163
|
3080 (message "You hit DELETE"))
|
|
3081
|
|
3082 (global-set-key 'delete 'foo)
|
82
|
3083 @end lisp
|
|
3084
|
|
3085 However, some modes explicitly bind @kbd{Delete}, so you would need to
|
|
3086 add a hook that does @code{local-set-key} for them. If what you want to
|
|
3087 do is make the Backspace and Delete keys work more PC/Motif-like, then
|
|
3088 take a look at the @file{delbackspace.el} package.
|
|
3089
|
|
3090 New in XEmacs 19.14 is a variable called @code{key-translation-map}
|
|
3091 which makes it easier to bind @kbd{Delete}. @file{delbackspace.el} is a
|
|
3092 good example of how to do this correctly.
|
|
3093
|
|
3094 @node Q3.5.5, Q3.5.6, Q3.5.4, Customization
|
|
3095 @section Scrolling one line at a time.
|
|
3096
|
|
3097 Can the cursor keys scroll the screen a line at a time, rather than the
|
|
3098 default half page jump? I tend it to find it disorienting.
|
|
3099
|
|
3100 Try this:
|
|
3101
|
|
3102 @lisp
|
|
3103 (defun scroll-one-line-up (&optional arg)
|
|
3104 "Scroll the selected window up (forward in the text) one line (or N lines)."
|
|
3105 (interactive "p")
|
|
3106 (scroll-up (or arg 1)))
|
|
3107
|
|
3108 (defun scroll-one-line-down (&optional arg)
|
|
3109 "Scroll the selected window down (backward in the text) one line (or N)."
|
|
3110 (interactive "p")
|
|
3111 (scroll-down (or arg 1)))
|
|
3112
|
163
|
3113 (global-set-key [up] 'scroll-one-line-up)
|
|
3114 (global-set-key [down] 'scroll-one-line-down)
|
82
|
3115 @end lisp
|
|
3116
|
|
3117 The following will also work but will affect more than just the cursor
|
|
3118 keys (i.e. @kbd{C-n} and @kbd{C-p}):
|
|
3119
|
|
3120 @lisp
|
|
3121 (setq scroll-step 1)
|
|
3122 @end lisp
|
|
3123
|
|
3124 @node Q3.5.6, Q3.5.7, Q3.5.5, Customization
|
|
3125 @section How to map @kbd{Help} key alone on Sun type4 keyboard?
|
|
3126
|
|
3127 The following works in GNU Emacs 19:
|
|
3128
|
|
3129 @lisp
|
|
3130 (global-set-key [help] 'help-command) ;; Help
|
|
3131 @end lisp
|
|
3132
|
126
|
3133 The following works in XEmacs 19.15 with the addition of shift:
|
82
|
3134
|
|
3135 @lisp
|
|
3136 (global-set-key [(shift help)] 'help-command) ;; Help
|
|
3137 @end lisp
|
|
3138
|
|
3139 But it doesn't work alone. This is in the file @file{PROBLEMS} which
|
|
3140 should have come with your XEmacs installation: @emph{Emacs ignores the
|
|
3141 @kbd{help} key when running OLWM}.
|
|
3142
|
|
3143 OLWM grabs the @kbd{help} key, and retransmits it to the appropriate
|
|
3144 client using @code{XSendEvent}. Allowing Emacs to react to synthetic
|
|
3145 events is a security hole, so this is turned off by default. You can
|
|
3146 enable it by setting the variable @code{x-allow-sendevents} to t. You
|
|
3147 can also cause fix this by telling OLWM to not grab the help key, with
|
|
3148 the null binding @code{OpenWindows.KeyboardCommand.Help:}.
|
|
3149
|
|
3150 @node Q3.5.7, Q3.5.8, Q3.5.6, Customization
|
|
3151 @section How can you type in special characters in XEmacs?
|
|
3152
|
|
3153 One way is to use the package @samp{x-compose}. Then you can use
|
|
3154 sequences like @kbd{Compose " a} to get ä, etc.
|
|
3155
|
163
|
3156 Another way is to use the iso-ascii package, provided in XEmacs 19.15
|
|
3157 and later.
|
82
|
3158
|
|
3159 @node Q3.5.8, Q3.5.9, Q3.5.7, Customization
|
|
3160 @section Why does @code{(global-set-key [delete-forward] 'delete-char)} complain?
|
|
3161
|
|
3162 Why does @code{(define-key global-map [ delete-forward ] 'delete-char)}
|
|
3163 complain of not being able to bind an unknown key?
|
|
3164
|
|
3165 Try this instead:
|
|
3166
|
|
3167 @lisp
|
|
3168 (define-key global-map [delete_forward] 'delete-char)
|
|
3169 @end lisp
|
|
3170
|
|
3171 and it will work.
|
|
3172
|
|
3173 What you are seeing above is a bug due to code that is trying to check
|
|
3174 for GNU Emacs syntax like:
|
|
3175
|
|
3176 (define-key global-map [C-M-a] 'delete-char)
|
|
3177
|
|
3178 which otherwise would cause no errors but would not result in the
|
|
3179 expected behavior.
|
|
3180
|
|
3181 This bug has been fixed in 19.14.
|
|
3182
|
|
3183 @node Q3.5.9, Q3.5.10, Q3.5.8, Customization
|
|
3184 @section How do I make the Delete key delete forward?
|
|
3185
|
163
|
3186 Use the @file{delbs} package:
|
82
|
3187
|
|
3188 @lisp
|
163
|
3189 (require 'delbs)
|
82
|
3190 @end lisp
|
|
3191
|
163
|
3192 This will give you the functions @code{delbs-enable-delete-forward} to
|
|
3193 set things up, and @code{delbs-disable-delete-forward} to revert to
|
|
3194 ``normal'' behavior.
|
|
3195
|
82
|
3196 Also @xref{Q3.5.4}.
|
|
3197
|
|
3198 @node Q3.5.10, Q3.6.1, Q3.5.9, Customization
|
|
3199 @section Can I turn on @dfn{sticky} modifier keys?
|
|
3200
|
|
3201 Yes, with @code{(setq modifier-keys-are-sticky t)}. This will give the
|
|
3202 effect of being able to press and release Shift and have the next
|
|
3203 character typed come out in upper case. This will affect all the other
|
|
3204 modifier keys like Control and Meta as well.
|
|
3205
|
|
3206 Ben Wing <ben@@666.com> writes:
|
|
3207
|
|
3208 @quotation
|
|
3209 One thing about the sticky modifiers is that if you move the mouse out
|
163
|
3210 of the frame and back in, it cancels all currently ``stuck'' modifiers.
|
82
|
3211 @end quotation
|
|
3212
|
|
3213 @node Q3.6.1, Q3.6.2, Q3.5.10, Customization
|
|
3214 @section Is there a way to make the bar cursor thicker?
|
|
3215
|
|
3216 I'd like to have the bar cursor a little thicker, as I tend to "lose" it
|
|
3217 often.
|
|
3218
|
|
3219 For a 1 pixel bar cursor, use:
|
|
3220
|
|
3221 @lisp
|
|
3222 (setq bar-cursor t)
|
|
3223 @end lisp
|
|
3224
|
|
3225 For a 2 pixel bar cursor, use:
|
|
3226
|
|
3227 @lisp
|
|
3228 (setq bar-cursor 'anything-else)
|
|
3229 @end lisp
|
|
3230
|
|
3231 You can use a color to make it stand out better:
|
|
3232
|
|
3233 @example
|
|
3234 Emacs*cursorColor: Red
|
|
3235 @end example
|
|
3236
|
|
3237 @node Q3.6.2, Q3.6.3, Q3.6.1, Customization
|
|
3238 @section Is there a way to get back the block cursor?
|
|
3239
|
|
3240 @lisp
|
|
3241 (setq bar-cursor nil)
|
|
3242 @end lisp
|
|
3243
|
|
3244 @node Q3.6.3, Q3.7.1, Q3.6.2, Customization
|
|
3245 @section Can I make the cursor blink?
|
|
3246
|
|
3247 If you are running a version of XEmacs older than 19.14, no. Otherwise
|
|
3248 you can do the following:
|
|
3249
|
|
3250 @lisp
|
|
3251 (blink-cursor-mode)
|
|
3252 @end lisp
|
|
3253
|
|
3254 This function toggles between a steady cursor and a blinking cursor.
|
|
3255 You may also set this mode from the menu bar by selecting @samp{Options
|
|
3256 => Frame Appearance => Blinking Cursor}.
|
|
3257
|
|
3258 @node Q3.7.1, Q3.7.2, Q3.6.3, Customization
|
|
3259 @section How can I turn off Mouse pasting?
|
|
3260
|
|
3261 I keep hitting the middle mouse button by accident and getting stuff
|
|
3262 pasted into my buffer so how can I turn this off?
|
|
3263
|
|
3264 Here is an alternative binding, whereby the middle mouse button selects
|
|
3265 (but does not cut) the expression under the mouse. Clicking middle on a
|
|
3266 left or right paren will select to the matching one. Note that you can
|
|
3267 use @code{define-key} or @code{global-set-key}.
|
|
3268
|
|
3269 @lisp
|
163
|
3270 (defun mouse-set-point-and-select (event)
|
82
|
3271 "Sets the point at the mouse location, then marks following form"
|
|
3272 (interactive "@@e")
|
|
3273 (mouse-set-point event)
|
163
|
3274 (mark-sexp 1))
|
|
3275 (define-key global-map [button2] 'mouse-set-point-and-select)
|
82
|
3276 @end lisp
|
|
3277
|
|
3278 @node Q3.7.2, Q3.7.3, Q3.7.1, Customization
|
|
3279 @section How do I set control/meta/etc modifiers on mouse buttons?
|
|
3280
|
|
3281 Use, for instance, @code{[(meta button1)]}. For example, here is a
|
|
3282 common setting for Common Lisp programmers who use the bundled ilisp
|
|
3283 package, whereby meta-button1 on a function name will find the file
|
|
3284 where the function name was defined, and put you at that location in the
|
|
3285 source file.
|
|
3286
|
|
3287 [Inside a function that gets called by the lisp-mode-hook and
|
|
3288 ilisp-mode-hook]
|
|
3289
|
|
3290 @lisp
|
|
3291 (local-set-key [(meta button1)] 'edit-definitions-lisp)
|
|
3292 @end lisp
|
|
3293
|
|
3294 @node Q3.7.3, Q3.7.4, Q3.7.2, Customization
|
|
3295 @section Clicking the left button does not do anything in buffer list.
|
|
3296
|
|
3297 I do @kbd{C-x C-b} to get a list of buffers and the entries get
|
|
3298 highlighted when I move the mouse over them but clicking the left mouse
|
|
3299 does not do anything.
|
|
3300
|
|
3301 Use the middle mouse button.
|
|
3302
|
|
3303 @node Q3.7.4, Q3.7.5, Q3.7.3, Customization
|
|
3304 @section How can I get a list of buffers when I hit mouse button 3?
|
|
3305
|
163
|
3306 The following code will replace the default popup on button3:
|
82
|
3307
|
|
3308 @lisp
|
163
|
3309 (global-set-key [button3] 'popup-buffer-menu)
|
82
|
3310 @end lisp
|
|
3311
|
|
3312 @node Q3.7.5, Q3.7.6, Q3.7.4, Customization
|
|
3313 @section Why does cut-and-paste not work between XEmacs and a cmdtool?
|
|
3314
|
|
3315 We don't know. It's a bug. There does seem to be a work-around,
|
|
3316 however. Try running xclipboard first. It appears to fix the problem
|
|
3317 even if you exit it. (This should be mostly fixed in 19.13, but we
|
|
3318 haven't yet verified that).
|
|
3319
|
|
3320 @node Q3.7.6, Q3.7.7, Q3.7.5, Customization
|
|
3321 @section How I can set XEmacs up so that it pastes where the text cursor is?
|
|
3322
|
|
3323 By default XEmacs pastes X selections where the mouse pointer is. How
|
|
3324 do I disable this?
|
|
3325
|
|
3326 Examine the function @code{mouse-yank}, by typing @kbd{C-h f mouse-yank
|
|
3327 RET}.
|
|
3328
|
|
3329 To get XEmacs to paste at the text cursor, add this your @file{.emacs}:
|
|
3330
|
|
3331 @lisp
|
|
3332 (setq mouse-yank-at-point t)
|
|
3333 @end lisp
|
|
3334
|
|
3335 @node Q3.7.7, Q3.7.8, Q3.7.6, Customization
|
|
3336 @section How do I select a rectangular region?
|
|
3337
|
|
3338 Just select the region normally, then use the rectangle commands (e.g.
|
|
3339 @code{kill-rectangle} on it. The region does not highlight as a
|
|
3340 rectangle, but the commands work just fine.
|
|
3341
|
|
3342 To actually sweep out rectangular regions with the mouse do the
|
|
3343 following:
|
|
3344
|
|
3345 @lisp
|
|
3346 (setq mouse-track-rectangle-p t)
|
|
3347 @end lisp
|
|
3348
|
|
3349 Aki Vehtari <Aki.Vehtari@@hut.fi> writes:
|
|
3350
|
|
3351 @quotation
|
|
3352 To actually sweep out rectangular regions with the mouse you can also
|
|
3353 use @code{mouse-track-do-rectangle} which is assigned to
|
|
3354 @kbd{M-button1}. Then use rectangle commands.
|
|
3355
|
|
3356 @example
|
|
3357 mouse-track-do-rectangle: (event)
|
|
3358 -- an interactive compiled Lisp function.
|
|
3359 Like `mouse-track' but selects rectangles instead of regions.
|
|
3360 @end example
|
|
3361 @end quotation
|
|
3362
|
|
3363 @node Q3.7.8, Q3.8.1, Q3.7.7, Customization
|
|
3364 @section Why does @kbd{M-w} take so long?
|
|
3365
|
|
3366 It actually doesn't. It leaves the region visible for a second so that
|
|
3367 you can see what area is being yanked. If you start working, though, it
|
|
3368 will immediately complete its operation. In other words, it will only
|
|
3369 delay for a second if you let it.
|
|
3370
|
|
3371 @node Q3.8.1, Q3.8.2, Q3.7.8, Customization
|
|
3372 @section How do I get rid of the menu (or menubar)?
|
|
3373
|
|
3374 If you are running XEmacs 19.13 and earlier, add this command to your
|
|
3375 @file{.emacs}.
|
|
3376
|
|
3377 @lisp
|
|
3378 (set-menubar nil)
|
|
3379 @end lisp
|
|
3380
|
|
3381 Starting with XEmacs 19.14 the preferred method is:
|
|
3382
|
|
3383 @lisp
|
|
3384 (set-specifier menubar-visible-p nil)
|
|
3385 @end lisp
|
|
3386
|
|
3387 @node Q3.8.2, Q3.8.3, Q3.8.1, Customization
|
|
3388 @section Can I customize the basic menubar?
|
|
3389
|
|
3390 For an extensive menubar, add this line to your @file{.emacs}:
|
|
3391
|
|
3392 @lisp
|
|
3393 (load "big-menubar")
|
|
3394 @end lisp
|
|
3395
|
|
3396 If you'd like to write your own, this file provides as good a set of
|
|
3397 examples as any to start from. The file is located in
|
|
3398 @file{lisp/packages/big-menubar.el} in the XEmacs installation
|
|
3399 directory.
|
|
3400
|
|
3401 @node Q3.8.3, Q3.8.4, Q3.8.2, Customization
|
|
3402 @section How do I control how many buffers are listed in the menu @code{Buffers List}?
|
|
3403
|
|
3404 Add the following to your @file{.emacs} (suit to fit):
|
|
3405
|
|
3406 @lisp
|
|
3407 (setq buffers-menu-max-size 20)
|
|
3408 @end lisp
|
|
3409
|
|
3410 For no limit, use an argument of @samp{nil}.
|
|
3411
|
|
3412 @node Q3.8.4, Q3.8.5, Q3.8.3, Customization
|
|
3413 @section Resources like @code{Emacs*menubar*font} are not working?
|
|
3414
|
|
3415 I am trying to use a resource like @code{Emacs*menubar*font} to set the
|
|
3416 font of the menubar but it's not working.
|
|
3417
|
|
3418 If you are using the real Motif menubar, this resource is not
|
|
3419 recognized; you have to say:
|
|
3420
|
|
3421 @example
|
|
3422 Emacs*menubar*fontList: FONT
|
|
3423 @end example
|
|
3424
|
|
3425 If you are using the Lucid menubar, the former resource will be
|
|
3426 recognized only if the latter resource is unset. This means that the
|
|
3427 resource
|
|
3428
|
|
3429 @example
|
|
3430 *fontList: FONT
|
|
3431 @end example
|
|
3432
|
|
3433 will override
|
|
3434
|
|
3435 @example
|
|
3436 Emacs*menubar*font: FONT
|
|
3437 @end example
|
|
3438
|
|
3439 even though the latter is more specific.
|
|
3440
|
|
3441 @node Q3.8.5, Q3.9.1, Q3.8.4, Customization
|
|
3442 @section How can I bind a key to a function to toggle the toolbar?
|
|
3443
|
|
3444 Try something like:
|
|
3445
|
|
3446 @lisp
|
163
|
3447 (defun my-toggle-toolbar ()
|
|
3448 (interactive)
|
|
3449 (set-specifier default-toolbar-visible-p
|
|
3450 (not (specifier-instance default-toolbar-visible-p))))
|
|
3451 (global-set-key "\C-xT" 'my-toggle-toolbar)
|
82
|
3452 @end lisp
|
|
3453
|
|
3454 There are redisplay bugs in 19.14 that may make the preceding result in
|
|
3455 a messed-up display, especially for frames with multiple windows. You
|
|
3456 may need to resize the frame before XEmacs completely realizes the
|
|
3457 toolbar is really gone.
|
|
3458
|
|
3459 Thanks to Martin Buchholz <Martin.Buchholz@@sun.com> for the correct
|
|
3460 code.
|
|
3461
|
|
3462 @node Q3.9.1, Q3.9.2, Q3.8.5, Customization
|
|
3463 @section How can I disable the scrollbar?
|
|
3464
|
|
3465 To disable them for all frames, add the following line to
|
|
3466 your @file{.Xdefaults}:
|
|
3467
|
|
3468 @example
|
|
3469 Emacs.scrollBarWidth: 0
|
|
3470 @end example
|
|
3471
|
|
3472 To turn the scrollbar off on a per-frame basis, use the following
|
|
3473 function:
|
|
3474
|
|
3475 @lisp
|
163
|
3476 (set-specifier scrollbar-width 0 (selected-frame))
|
82
|
3477 @end lisp
|
|
3478
|
|
3479 You can actually turn the scrollbars on at any level you want by
|
|
3480 substituting for (selected-frame) in the above command. For example, to
|
|
3481 turn the scrollbars off only in a single buffer:
|
|
3482
|
|
3483 @lisp
|
163
|
3484 (set-specifier scrollbar-width 0 (current-buffer))
|
82
|
3485 @end lisp
|
|
3486
|
163
|
3487 In XEmacs versions prior to 19.14, you had to use the hairier construct:
|
82
|
3488
|
|
3489 @lisp
|
163
|
3490 (set-specifier scrollbar-width (cons (selected-frame) 0))
|
82
|
3491 @end lisp
|
|
3492
|
|
3493 @node Q3.9.2, Q3.9.3, Q3.9.1, Customization
|
|
3494 @section How can one use resources to change scrollbar colors?
|
|
3495
|
|
3496 Here's a recap of how to use resources to change your scrollbar colors:
|
|
3497
|
|
3498 @example
|
|
3499 ! Motif scrollbars
|
|
3500
|
|
3501 Emacs*XmScrollBar.Background: skyblue
|
|
3502 Emacs*XmScrollBar.troughColor: lightgray
|
|
3503
|
|
3504 ! Athena scrollbars
|
|
3505
|
|
3506 Emacs*Scrollbar.Foreground: skyblue
|
|
3507 Emacs*Scrollbar.Background: lightgray
|
|
3508 @end example
|
|
3509
|
|
3510 Note the capitalization of @code{Scrollbar} for the Athena widget.
|
|
3511
|
|
3512 @node Q3.9.3, Q3.9.4, Q3.9.2, Customization
|
|
3513 @section Moving the scrollbar can move the point; can I disable this?
|
|
3514
|
|
3515 When I move the scrollbar in an XEmacs window, it moves the point as
|
|
3516 well, which should not be the default behavior. Is this a bug or a
|
|
3517 feature? Can I disable it?
|
|
3518
|
|
3519 The current behavior is a feature, not a bug. Point remains at the same
|
|
3520 buffer position as long as that position does not scroll off the screen.
|
|
3521 In that event, point will end up in either the upper-left or lower-left
|
|
3522 hand corner.
|
|
3523
|
|
3524 This cannot be changed.
|
|
3525
|
|
3526 @node Q3.9.4, Q3.10.1, Q3.9.3, Customization
|
|
3527 @section How can I get automatic horizontal scrolling?
|
|
3528
|
|
3529 By the same token, how can I turn it off in specific modes?
|
|
3530
|
|
3531 To do this, add to your @file{.emacs} file:
|
|
3532
|
|
3533 @lisp
|
|
3534 (require 'auto-show)
|
|
3535 @end lisp
|
|
3536
|
|
3537 Then do @code{(setq truncate-lines t)} in the mode-hooks for any modes
|
|
3538 in which you want lines truncated.
|
|
3539
|
|
3540 More precisely: If @code{truncate-lines} is nil, horizontal scrollbars
|
|
3541 will never appear. Otherwise, they will appear only if the value of
|
|
3542 @code{scrollbar-height} for that buffer/window/etc. is non-zero. If you
|
|
3543 do
|
|
3544
|
|
3545 @lisp
|
|
3546 (set-specifier scrollbar-height 0)
|
|
3547 @end lisp
|
|
3548
|
|
3549 then horizontal scrollbars will not appear in truncated buffers unless
|
|
3550 the package specifically asked for them.
|
|
3551
|
|
3552 Automatic horizontal scrolling is now standard, starting with 19.14.
|
|
3553
|
|
3554 @node Q3.10.1, Q3.10.2, Q3.9.4, Customization
|
|
3555 @section How can I turn off or change highlighted selections?
|
|
3556
|
|
3557 The @code{zmacs} mode allows for what some might call gratuitous
|
|
3558 highlighting for selected regions (either by setting mark or by using
|
|
3559 the mouse). This is the default behavior. To turn off, add the
|
|
3560 following line to your @file{.emacs} file:
|
|
3561
|
|
3562 @lisp
|
|
3563 (setq zmacs-regions nil)
|
|
3564 @end lisp
|
|
3565
|
126
|
3566 To change the face for selection, look at @code{Options->Customize} on
|
82
|
3567 the menubar.
|
|
3568
|
|
3569 @node Q3.10.2, Q3.10.3, Q3.10.1, Customization
|
|
3570 @section How do I get that typing on an active region removes it?
|
|
3571
|
|
3572 I want to change things so that if I select some text and start typing,
|
|
3573 the typed text replaces the selected text, similar to Motif.
|
|
3574
|
|
3575 You want to use something called @dfn{pending delete}. Pending delete
|
|
3576 is what happens when you select a region (with the mouse or keyboard)
|
|
3577 and you press a key to replace the selected region by the key you typed.
|
|
3578 Usually backspace kills the selected region.
|
|
3579
|
|
3580 To get this behavior, add the following line to your @file{.emacs}:
|
|
3581
|
|
3582 @lisp
|
|
3583 (require 'pending-del)
|
|
3584 @end lisp
|
|
3585
|
|
3586 Note that this will work with both Backspace and Delete.
|
|
3587
|
|
3588 @node Q3.10.3, Q3.10.4, Q3.10.2, Customization
|
|
3589 @section Can I turn off the highlight during isearch?
|
|
3590
|
|
3591 I do not like my text highlighted while I am doing isearch as I am not
|
|
3592 able to see what's underneath. How do I turn it off?
|
|
3593
|
|
3594 Put the following in your @file{.emacs}:
|
|
3595
|
|
3596 @lisp
|
|
3597 (setq isearch-highlight nil)
|
|
3598 @end lisp
|
|
3599
|
|
3600 Note also that isearch-highlight affects query-replace and ispell.
|
|
3601 Instead of disabling isearch-highlight you may find that a better
|
|
3602 solution consists of customizing the @code{isearch} face.
|
|
3603
|
|
3604 @node Q3.10.4, Q3.10.5, Q3.10.3, Customization
|
|
3605 @section How do I turn off highlighting after @kbd{C-x C-p} (mark-page)?
|
|
3606
|
|
3607 Put this in your @code{.emacs}:
|
|
3608
|
|
3609 @lisp
|
|
3610 (setq zmacs-regions nil)
|
|
3611 @end lisp
|
|
3612
|
|
3613 @strong{Warning: This command turns off all region highlighting.}
|
|
3614
|
|
3615 @node Q3.10.5, , Q3.10.4, Customization
|
|
3616 @section The region disappears when I hit the end of buffer while scrolling.
|
|
3617
|
|
3618 How do I turn this feature (if it indeed is a feature) off?
|
|
3619
|
|
3620 Like this:
|
|
3621
|
|
3622 @lisp
|
|
3623 (defadvice scroll-up (around scroll-up freeze)
|
|
3624 (interactive "_P")
|
|
3625 (let ((zmacs-region-stays t))
|
|
3626 (if (interactive-p)
|
|
3627 (condition-case nil
|
|
3628 ad-do-it
|
|
3629 (end-of-buffer (goto-char (point-max))))
|
|
3630 ad-do-it)))
|
|
3631
|
|
3632 (defadvice scroll-down (around scroll-down freeze)
|
|
3633 (interactive "_P")
|
|
3634 (let ((zmacs-region-stays t))
|
|
3635 (if (interactive-p)
|
|
3636 (condition-case nil
|
|
3637 ad-do-it
|
|
3638 (beginning-of-buffer (goto-char (point-min))))
|
|
3639 ad-do-it)))
|
|
3640 @end lisp
|
|
3641
|
|
3642 Thanks to T. V. Raman <raman@@adobe.com> for assistance in deriving this
|
|
3643 answer.
|
|
3644
|
|
3645 @node Subsystems, Miscellaneous, Customization, Top
|
|
3646 @chapter Major Subsystems
|
|
3647
|
|
3648 This is part 4 of the XEmacs Frequently Asked Questions list. This
|
|
3649 section is devoted to major XEmacs subsystems.
|
|
3650
|
|
3651 @menu
|
|
3652 Reading Mail with VM:
|
|
3653 * Q4.0.1:: How do I set up VM to retrieve remote mail using POP?
|
|
3654 * Q4.0.2:: How do I get VM to filter mail for me?
|
|
3655 * Q4.0.3:: How can I get VM to automatically check for new mail?
|
|
3656 * Q4.0.4:: [This question intentionally left blank]
|
|
3657 * Q4.0.5:: How do I get my outgoing mail archived?
|
|
3658 * Q4.0.6:: I have various addresses at which I receive mail. How can I tell VM to ignore them when doing a "reply-all"?
|
|
3659 * Q4.0.7:: Is there a mailing list or FAQ for VM?
|
|
3660 * Q4.0.8:: Remote Mailreading with VM.
|
|
3661 * Q4.0.9:: rmail or VM gets an error incorporating new mail.
|
|
3662 * Q4.0.10:: How do I make VM stay in a single frame?
|
|
3663 * Q4.0.11:: How do I make VM or mh-e display graphical smilies?
|
|
3664 * Q4.0.12:: Customization of VM not covered in the manual or here.
|
|
3665
|
|
3666 Web browsing with W3:
|
|
3667 * Q4.1.1:: What is W3?
|
|
3668 * Q4.1.2:: How do I run W3 from behind a firewall?
|
163
|
3669 * Q4.1.3:: Is it true that W3 supports style sheets and tables?
|
82
|
3670
|
|
3671 Reading Netnews and Mail with Gnus:
|
163
|
3672 * Q4.2.1:: GNUS, (ding) Gnus, Gnus 5, September Gnus, Red Gnus,argh!
|
82
|
3673 * Q4.2.2:: [This question intentionally left blank]
|
|
3674 * Q4.2.3:: How do I make Gnus stay within a single frame?
|
|
3675 * Q4.2.4:: How do I customize the From: line?
|
|
3676
|
|
3677 Other Mail & News:
|
|
3678 * Q4.3.1:: How can I read and/or compose MIME messages?
|
|
3679 * Q4.3.2:: What is TM and where do I get it?
|
|
3680 * Q4.3.3:: Why isn't this @code{movemail} program working?
|
|
3681 * Q4.3.4:: Movemail is also distributed by Netscape? Can that cause problems?
|
|
3682 * Q4.3.5:: Where do I find pstogif (required by tm)?
|
|
3683
|
|
3684 Sparcworks, EOS, and WorkShop:
|
163
|
3685 * Q4.4.1:: What is SPARCworks, EOS, and WorkShop
|
82
|
3686
|
|
3687 Energize:
|
|
3688 * Q4.5.1:: What is/was Energize?
|
|
3689
|
|
3690 Infodock:
|
|
3691 * Q4.6.1:: What is Infodock?
|
|
3692
|
|
3693 Other Unbundled Packages:
|
163
|
3694 * Q4.7.1:: What is AUC TeX? Where do you get it?
|
82
|
3695 * Q4.7.2:: Are there any Emacs Lisp Spreadsheets?
|
163
|
3696 * Q4.7.3:: Byte compiling AUC TeX on XEmacs 19.14
|
|
3697 * Q4.7.4:: Problems installing AUC TeX
|
|
3698 * Q4.7.5:: Is there a reason for an Emacs package not to be included in XEmacs?
|
82
|
3699 @end menu
|
|
3700
|
|
3701 @node Q4.0.1, Q4.0.2, Subsystems, Subsystems
|
|
3702 @section How do I set up VM to retrieve mail from a remote site using POP?
|
|
3703
|
|
3704 Use @code{vm-spool-files}, like this for example:
|
|
3705
|
|
3706 @lisp
|
|
3707 (setq vm-spool-files '("/var/spool/mail/wing"
|
|
3708 "netcom23.netcom.com:110:pass:wing:MYPASS"))
|
|
3709 @end lisp
|
|
3710
|
|
3711 Of course substitute your actual password for MYPASS.
|
|
3712
|
|
3713 @node Q4.0.2, Q4.0.3, Q4.0.1, Subsystems
|
|
3714 @section How do I get VM to filter mail for me?
|
|
3715
|
|
3716 One possibility is to use procmail to split your mail before it gets to
|
|
3717 VM. I prefer this personally, since there are many strange and
|
|
3718 wonderful things one can do with procmail. Procmail may be found at
|
|
3719 <URL:ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/>.
|
|
3720
|
|
3721 Also see the Mail Filtering FAQ at:
|
|
3722 <URL:http://www.cis.ohio-state.edu/hypertext/faq/usenet/mail/filtering-faq/faq.html>.
|
|
3723
|
|
3724 @node Q4.0.3, Q4.0.4, Q4.0.2, Subsystems
|
|
3725 @section How can I get VM to automatically check for new mail?
|
|
3726
|
|
3727 John Turner <turner@@lanl.gov> writes:
|
|
3728
|
|
3729 @quotation
|
|
3730 Use the following:
|
|
3731
|
|
3732 @lisp
|
|
3733 (setq vm-auto-get-new-mail 60)
|
|
3734 @end lisp
|
|
3735 @end quotation
|
|
3736
|
|
3737 @node Q4.0.4, Q4.0.5, Q4.0.3, Subsystems
|
|
3738 @section [This question intentionally left blank]
|
|
3739
|
|
3740 Obsolete question, left blank to avoid renumbering.
|
|
3741
|
|
3742 @node Q4.0.5, Q4.0.6, Q4.0.4, Subsystems
|
|
3743 @section How do I get my outgoing mail archived?
|
|
3744
|
|
3745 @lisp
|
|
3746 (setq mail-archive-file-name "~/outbox")
|
|
3747 @end lisp
|
|
3748
|
|
3749 @node Q4.0.6, Q4.0.7, Q4.0.5, Subsystems
|
|
3750 @section I have various addresses at which I receive mail. How can I tell VM to ignore them when doing a "reply-all"?
|
|
3751
|
|
3752 Set @code{vm-reply-ignored-addresses} to a list, like
|
|
3753
|
|
3754 @lisp
|
|
3755 (setq vm-reply-ignored-addresses '("wing@@netcom[0-9]*.netcom.com"
|
|
3756 "wing@@netcom.com" "wing@@666.com"))
|
|
3757 @end lisp
|
|
3758
|
|
3759 Note that each string is a regular expression.
|
|
3760
|
|
3761 @node Q4.0.7, Q4.0.8, Q4.0.6, Subsystems
|
|
3762 @section Is there a mailing list or FAQ for VM?
|
|
3763
|
175
|
3764 A FAQ for VM exists at <URL:http://www.cyberpass.net/~gorkab/vmfaq.htm>.
|
82
|
3765
|
163
|
3766 VM has its own newsgroups gnu.emacs.vm.info and gnu.emacs.vm.bug.
|
82
|
3767
|
|
3768 @node Q4.0.8, Q4.0.9, Q4.0.7, Subsystems
|
|
3769 @section Remote Mailreading with VM.
|
|
3770
|
|
3771 My mailbox lives at the office on a big honkin server. My regular INBOX
|
|
3772 lives on my honkin desktop machine. I now can PPP to the office from
|
|
3773 home which is far from honking... I'd like to be able to read mail at
|
|
3774 home without storing it here and I'd like to use xemacs and VM at
|
|
3775 home... Is there a recommended setup?
|
|
3776
|
|
3777 Joseph J. Nuspl Jr. <nuspl@@nvwls.cc.purdue.edu> writes:
|
|
3778
|
|
3779 @quotation
|
|
3780 There are several ways to do this.
|
|
3781
|
|
3782 @enumerate
|
|
3783 @item
|
|
3784 Set your display to your home machine and run dxpc or one of the other X
|
|
3785 compressors.
|
|
3786
|
|
3787 @item
|
|
3788 NFS mount your desktop machine on your home machine and modify your pop
|
|
3789 command on your home machine to rsh to your desktop machine and actually
|
|
3790 do the pop get's.
|
|
3791
|
|
3792 @item
|
|
3793 Run a POP server on your desktop machine as well and do a sort of two
|
|
3794 tiered POP get.
|
|
3795 @end enumerate
|
|
3796 @end quotation
|
|
3797
|
|
3798 William Perry <wmperry@@monolith.spry.com> adds:
|
|
3799
|
|
3800 @quotation
|
|
3801 Or you could run a pop script periodically on your desktop machine, and
|
|
3802 just use ange-ftp or NFS to get to your mailbox. I used to do this all
|
|
3803 the time back at IU.
|
|
3804 @end quotation
|
|
3805
|
|
3806 @node Q4.0.9, Q4.0.10, Q4.0.8, Subsystems
|
|
3807 @section rmail or VM gets an error incorporating new mail.
|
|
3808
|
163
|
3809 Quoting the XEmacs PROBLEMS file:
|
82
|
3810
|
|
3811 @quotation
|
|
3812 rmail and VM get new mail from @file{/usr/spool/mail/$USER} using a
|
|
3813 program called @code{movemail}. This program interlocks with
|
|
3814 @code{/bin/mail} using the protocol defined by @code{/bin/mail}.
|
|
3815
|
|
3816 There are two different protocols in general use. One of them uses the
|
|
3817 @code{flock} system call. The other involves creating a lock file;
|
|
3818 @code{movemail} must be able to write in @file{/usr/spool/mail} in order
|
|
3819 to do this. You control which one is used by defining, or not defining,
|
|
3820 the macro @code{MAIL_USE_FLOCK} in @file{config.h} or the m- or s- file
|
|
3821 it includes.
|
|
3822
|
|
3823 @strong{IF YOU DON'T USE THE FORM OF INTERLOCKING THAT IS NORMAL ON YOUR
|
|
3824 SYSTEM, YOU CAN LOSE MAIL!}
|
|
3825
|
|
3826 If your system uses the lock file protocol, and fascist restrictions
|
|
3827 prevent ordinary users from writing the lock files in
|
|
3828 @file{/usr/spool/mail}, you may need to make @code{movemail} setgid to a
|
|
3829 suitable group such as @samp{mail}. You can use these commands (as
|
|
3830 root):
|
|
3831
|
|
3832 @example
|
|
3833 chgrp mail movemail
|
|
3834 chmod 2755 movemail
|
|
3835 @end example
|
|
3836
|
|
3837 If your system uses the lock file protocol, and fascist restrictions
|
|
3838 prevent ordinary users from writing the lock files in
|
|
3839 @file{/usr/spool/mail}, you may need to make @code{movemail} setgid to a
|
|
3840 suitable group such as @code{mail}. To do this, use the following
|
|
3841 commands (as root) after doing the make install.
|
|
3842
|
|
3843 @example
|
|
3844 chgrp mail movemail
|
|
3845 chmod 2755 movemail
|
|
3846 @end example
|
|
3847
|
|
3848 Installation normally copies movemail from the build directory to an
|
|
3849 installation directory which is usually under @file{/usr/local/lib}.
|
|
3850 The installed copy of @code{movemail} is usually in the directory
|
|
3851 @file{/usr/local/lib/emacs/VERSION/TARGET}. You must change the group
|
|
3852 and mode of the installed copy; changing the group and mode of the build
|
|
3853 directory copy is ineffective.
|
|
3854 @end quotation
|
|
3855
|
|
3856 @node Q4.0.10, Q4.0.11, Q4.0.9, Subsystems
|
|
3857 @section How do I make VM stay in a single frame?
|
|
3858
|
|
3859 John S Cooper <John.Cooper@@Eng.Sun.COM> writes:
|
|
3860
|
|
3861 @quotation
|
|
3862 @lisp
|
|
3863 ; Don't use multiple frames
|
|
3864 (setq vm-frame-per-composition nil)
|
|
3865 (setq vm-frame-per-folder nil)
|
|
3866 (setq vm-frame-per-edit nil)
|
|
3867 (setq vm-frame-per-summary nil)
|
|
3868 @end lisp
|
|
3869 @end quotation
|
|
3870
|
|
3871 @node Q4.0.11, Q4.0.12, Q4.0.10, Subsystems
|
|
3872 @section How do I make VM or mh-e display graphical smilies?
|
|
3873
|
|
3874 For mh-e use the following:
|
|
3875
|
|
3876 @lisp
|
|
3877 (add-hook 'mh-show-mode-hook '(lambda () (smiley-region (point-min)
|
|
3878 (point-max))))
|
|
3879 @end lisp
|
|
3880
|
|
3881 For vm use the following:
|
|
3882 @lisp
|
|
3883 (require 'messagexmas)
|
|
3884 (require 'smiley)
|
|
3885 (add-hook 'vm-select-message-hook '(lambda () (smiley-region (point-min)
|
|
3886 (point-max))))
|
|
3887 @end lisp
|
|
3888
|
|
3889 For tm use the following:
|
|
3890 @lisp
|
|
3891 (autoload 'smiley-buffer "smiley" nil t)
|
|
3892 (add-hook 'mime-viewer/plain-text-preview-hook 'smiley-buffer)
|
|
3893 @end lisp
|
|
3894
|
|
3895 @node Q4.0.12, Q4.1.1, Q4.0.11, Subsystems
|
|
3896 @section Customization of VM not covered in the manual, or here.
|
|
3897
|
|
3898 giacomo boffi <boffi@@hp735.stru.polimi.it> writes:
|
|
3899
|
|
3900 @quotation
|
|
3901 The meta-answer is to look into the file @file{vm-vars.el}, in the vm
|
|
3902 directory of the lisp library.
|
|
3903
|
|
3904 @file{vm-vars.el} contains, initializes and carefully describes, with
|
|
3905 examples of usage, the plethora of user options that @emph{fully}
|
|
3906 control VM's behavior.
|
|
3907
|
|
3908 Enter vm-vars, @code{forward-search} for toolbar, find the variables
|
|
3909 that control the toolbar placement, appearance, existence, copy to your
|
|
3910 @file{.emacs} or @file{.vm} and modify according to the detailed
|
|
3911 instructions.
|
|
3912
|
|
3913 The above also applies to all the various features of VM: search for
|
|
3914 some keywords, maybe the first you conjure isn't appropriate, find the
|
|
3915 appropriate variables, copy and experiment.
|
|
3916 @end quotation
|
|
3917
|
|
3918 @node Q4.1.1, Q4.1.2, Q4.0.12, Subsystems
|
|
3919 @section What is W3?
|
|
3920
|
|
3921 W3 is an advanced graphical browser written in Emacs lisp that runs on
|
|
3922 XEmacs. It has full support for cascaded style sheets, and more...
|
|
3923
|
|
3924 It has a home web page at
|
|
3925 <URL:http://www.cs.indiana.edu/elisp/w3/docs.html>.
|
|
3926
|
163
|
3927 @node Q4.1.2, Q4.1.3, Q4.1.1, Subsystems
|
82
|
3928 @section How do I run W3 from behind a firewall?
|
|
3929
|
|
3930 There is a long, well-written, detailed section in the W3 manual that
|
|
3931 describes how to do this. Look in the section entitled "Firewalls".
|
|
3932
|
163
|
3933 @node Q4.1.3, Q4.2.1, Q4.1.2, Subsystems
|
|
3934 @section Is it true that W3 supports style sheets and tables?
|
|
3935
|
|
3936 Yes, and much more. W3, as distributed with the latest XEmacs is a
|
|
3937 full-featured web browser.
|
|
3938
|
|
3939 @node Q4.2.1, Q4.2.2, Q4.1.3, Subsystems
|
82
|
3940 @section GNUS, (ding) Gnus, Gnus 5, September Gnus, Red Gnus, Mamey Sapote Gnus, argh!
|
|
3941
|
163
|
3942 The Gnus numbering issues are not meant for mere mortals to know them.
|
|
3943 If you feel you @emph{must} enter the muddy waters of Gnus, visit the
|
|
3944 excellent FAQ, maintained by Justin Sheehy, at:
|
|
3945
|
|
3946 @example
|
|
3947 <URL:http://www.ccs.neu.edu/software/gnus/>
|
|
3948 @end example
|
82
|
3949
|
|
3950 @node Q4.2.2, Q4.2.3, Q4.2.1, Subsystems
|
|
3951 @section This question intentionally left blank.
|
|
3952
|
|
3953 Obsolete question, left blank to avoid renumbering.
|
|
3954
|
|
3955 @node Q4.2.3, Q4.2.4, Q4.2.2, Subsystems
|
|
3956 @section How do I make Gnus stay within a single frame?
|
|
3957
|
163
|
3958 The toolbar code to start Gnus opens the new frame---and it's a feature
|
|
3959 rather than a bug. If you don't like it, but would still like to click
|
|
3960 on the seemly icon, use the following code:
|
82
|
3961
|
|
3962 @lisp
|
|
3963 (defun toolbar-news ()
|
|
3964 (gnus))
|
|
3965 @end lisp
|
163
|
3966
|
|
3967 It will redefine the callback function of the icon to just call
|
|
3968 @code{gnus}, without all the fancy frame stuff.
|
82
|
3969
|
|
3970 @node Q4.2.4, Q4.3.1, Q4.2.3, Subsystems
|
|
3971 @section How do I customize the From: line?
|
|
3972
|
|
3973 How do I change the @code{From:} line? I have set gnus-user-from-line
|
|
3974 to Gail Gurman <gail.gurman@@sybase.com>, but XEmacs Gnus doesn't use
|
|
3975 it. Instead it uses Gail Mara Gurman <gailg@@deall> and then complains
|
|
3976 that it's incorrect. Also, as you perhaps can see, my Message-ID is
|
|
3977 screwy. How can I change that?
|
|
3978
|
|
3979 Lars Magne Ingebrigtsen <larsi@@aegir.ifi.uio.no> writes:
|
|
3980
|
|
3981 @quotation
|
|
3982 Set @code{user-mail-address} to @samp{gail.gurman@@sybase.com} or
|
|
3983 @code{mail-host-address} to @samp{sybase.com}.
|
|
3984 @end quotation
|
|
3985
|
|
3986 @node Q4.3.1, Q4.3.2, Q4.2.4, Subsystems
|
|
3987 @section How can I read and/or compose MIME messages?
|
|
3988
|
|
3989 One answer is @code{tra-vm-mime}. You may find it at
|
|
3990 <URL:http://lenkkari.cs.tut.fi/~tra/software/tra-vm-mime.el>.
|
|
3991
|
|
3992 Another possibility is RMIME. You may find RMIME at
|
|
3993 <URL:http://www.cinti.net/~rmoody/rmime/index.html>.
|
|
3994
|
|
3995 You probably want to use the Tools for MIME (tm). @xref{Q4.3.2} for
|
|
3996 details.
|
|
3997
|
|
3998 Trey Jackson <trey@@cs.berkeley.edu> has an Emacs & MIME web page at
|
|
3999 <URL:http://bmrc.berkeley.edu/~trey/emacs/mime.html>.
|
|
4000
|
|
4001 @node Q4.3.2, Q4.3.3, Q4.3.1, Subsystems
|
|
4002 @section What is TM and where do I get it?
|
|
4003
|
|
4004 TM stands for @dfn{Tools for MIME} and not Tiny MIME. TM integrates
|
|
4005 with all major XEmacs packages like Gnus (all flavors), VM, MH-E, and
|
|
4006 mailcrypt. It provides totally transparent and trouble-free MIME
|
|
4007 support. When appropriate a message will be decoded in place in an
|
|
4008 XEmacs buffer.
|
|
4009
|
213
|
4010 TM now comes as a package with XEmacs 19.16 and XEmacs 20.2.
|
126
|
4011
|
82
|
4012 TM was written by MORIOKA Tomohiko <morioka@@jaist.ac.jp> and KOBAYASHI
|
|
4013 Shuhei <shuhei-k@@jaist.ac.jp>. It is based on the work of UMEDA
|
|
4014 Masanobu <umerin@@mse.kyutech.ac.jp>, the original writer of GNUS.
|
|
4015
|
|
4016 The following information is from the @file{README}:
|
|
4017
|
|
4018 @dfn{tm} is a MIME package for GNU Emacs.
|
|
4019 tm has following functions:
|
|
4020
|
|
4021 @itemize @bullet
|
|
4022 @item MIME style multilingual header.
|
|
4023 @item MIME message viewer (mime/viewer-mode).
|
|
4024 @item MIME message composer (mime/editor-mode).
|
|
4025 @item MIME extenders for mh-e, GNUS, RMAIL and VM.
|
|
4026 @end itemize
|
|
4027
|
|
4028 tm is available from following anonymous ftp sites:
|
|
4029 @itemize @bullet
|
|
4030 @item <URL:ftp://ftp.jaist.ac.jp/pub/GNU/elisp/mime/> (Japan).
|
|
4031 @item <URL:ftp://ftp.nis.co.jp/pub/gnu/emacs-lisp/tm/> (Japan).
|
|
4032 @item <URL:ftp://ftp.nisiq.net/pub/gnu/emacs-lisp/tm/> (US).
|
|
4033 @item <URL:ftp://ftp.miranova.com/pub/gnus/jaist.ac.jp/> (US).
|
|
4034 @item <URL:ftp://ftp.unicamp.br/pub/mail/mime/tm/> (Brasil).
|
|
4035 @item <URL:ftp://ftp.th-darmstadt.de/pub/editors/GNU-Emacs/lisp/mime/> (Germany).
|
|
4036 @item <URL:ftp://ftp.tnt.uni-hannover.de/pub/editors/xemacs/contrib/> (Germany).
|
|
4037 @end itemize
|
|
4038
|
|
4039 Don't let the installation procedure & instructions stop you from trying
|
|
4040 this package out---it's much simpler than it looks, and once installed,
|
|
4041 trivial to use.
|
|
4042
|
|
4043 @node Q4.3.3, Q4.3.4, Q4.3.2, Subsystems
|
|
4044 @section Why isn't this @code{movemail} program working?
|
|
4045
|
|
4046 Ben Wing <ben@@666.com> writes:
|
|
4047
|
|
4048 @quotation
|
|
4049 It wasn't chown'ed/chmod'd correctly.
|
|
4050 @end quotation
|
|
4051
|
|
4052 @node Q4.3.4, Q4.3.5, Q4.3.3, Subsystems
|
|
4053 @section Movemail is also distributed by Netscape? Can that cause problems?
|
|
4054
|
|
4055 Steve Baur <steve@@altair.xemacs.org> writes:
|
|
4056
|
|
4057 @quotation
|
|
4058 Yes. Always use the movemail installed with your XEmacs. Failure to do
|
|
4059 so can result in lost mail.
|
|
4060 @end quotation
|
|
4061
|
|
4062 Please refer to Jamie Zawinski's <jwz@@netscape.com> notes at
|
|
4063 <URL:http://home.netscape.com/eng/mozilla/2.0/relnotes/demo/movemail.html>.
|
|
4064 In particular, this document will show you how to make Netscape use the
|
|
4065 version of movemail configured for your system by the person who built
|
|
4066 XEmacs.
|
|
4067
|
|
4068 @node Q4.3.5, Q4.4.1, Q4.3.4, Subsystems
|
|
4069 @section Where do I find pstogif (required by tm)?
|
|
4070
|
|
4071 pstogif is part of the latex2html package.
|
|
4072
|
|
4073 Jan Vroonhof <vroonhof@@math.ethz.ch> writes:
|
|
4074
|
|
4075 latex2html is best found at the CTAN hosts and their mirrors
|
|
4076 in @file{tex-archive/support/latex2html}.
|
|
4077
|
|
4078 CTAN hosts are:
|
|
4079
|
|
4080 @itemize @bullet
|
|
4081 @item <URL:ftp://ftp.tex.ac.uk/tex-archive/support/latex2html/>.
|
|
4082 @item <URL:ftp://ftp.dante.de/tex-archive/support/latex2html/>.
|
|
4083 @end itemize
|
|
4084
|
|
4085 There is a good mirror at ftp.cdrom.com;
|
|
4086 <URL:ftp://ftp.cdrom.com/pub/tex/ctan/support/latex2html/>.
|
|
4087
|
|
4088 @node Q4.4.1, Q4.5.1, Q4.3.5, Subsystems
|
|
4089 @section What is SPARCworks, EOS, and WorkShop?
|
|
4090
|
|
4091 John Turner <turner@@lanl.gov> writes:
|
|
4092
|
|
4093 @quotation
|
|
4094 SPARCworks is SunSoft's development environment, comprising compilers
|
|
4095 (C, C++, FORTRAN 77, Fortran 90, Ada, and Pascal), a debugger, and other
|
|
4096 tools such as TeamWare (for configuration management), MakeTool, etc.
|
|
4097 @end quotation
|
|
4098
|
126
|
4099 See <URL:http://www.sun.com/sunsoft/Developer-products/>
|
82
|
4100 for more info.
|
|
4101
|
|
4102 EOS stands for "Era on SPARCworks", but I don't know what Era stands
|
|
4103 for.
|
|
4104
|
|
4105 EOS is the integration of XEmacs with the SPARCworks debugger. It
|
|
4106 allows one to use an XEmacs frame to view code (complete with
|
|
4107 fontification, etc.), set breakpoints, print variables, etc., while
|
|
4108 using the SPARCworks debugger. It works very well and I use it all the
|
|
4109 time.
|
|
4110
|
|
4111 Chuck Thompson <cthomp@@xemacs.org> writes:
|
|
4112
|
|
4113 @quotation
|
|
4114 Era stood for "Emacs Rewritten Again". It was what we were calling the
|
|
4115 modified version of Lucid Emacs for Sun when I was dragged, er, allowed
|
|
4116 to work on this wonderful editor.
|
|
4117 @end quotation
|
|
4118
|
|
4119 Martin Buchholz <Martin.Buchholz@@sun.com> writes:
|
|
4120
|
|
4121 @quotation
|
|
4122 EOS is being replaced with a new graphical development environment
|
|
4123 called Sun WorkShop, which is currently (07/96) in Alpha Test. For more
|
|
4124 details, check out
|
|
4125 <URL:http://www.sun.com/sunsoft/Products/Developer-products/programs.html>.
|
|
4126 @end quotation
|
|
4127
|
|
4128 @node Q4.5.1, Q4.6.1, Q4.4.1, Subsystems
|
|
4129 @section What is/was Energize?
|
|
4130
|
|
4131 David N Gray <gray@@meteor.harlequin.com> writes:
|
|
4132 @quotation
|
|
4133 The files in @file{lisp/energize} are to enable Emacs to interface with
|
|
4134 the "Energize Programming System", a C and C++ development environment,
|
|
4135 which was a product of Lucid, Inc. Tragically, Lucid went out of
|
|
4136 business in 1994, so although Energize is still a great system, if you
|
|
4137 don't already have it, there isn't any way to get it now. (Unless you
|
|
4138 happen to be in Japan; INS Engineering may still be selling it there.
|
|
4139 Tartan bought the rights to sell it in the rest of the world, but never
|
|
4140 did so.)
|
|
4141 @end quotation
|
|
4142
|
|
4143 @node Q4.6.1, Q4.7.1, Q4.5.1, Subsystems
|
|
4144 @section What is Infodock?
|
|
4145
|
0
|
4146 InfoDock is an integrated productivity toolset, mainly aimed at
|
86
|
4147 technical people. It is developed and supported by InfoDock
|
|
4148 Associates, a firm that offers custom support and development
|
|
4149 for InfoDock, XEmacs and GNU Emacs. (http://www.infodock.com,
|
88
|
4150 <info@@infodock.com>, +1 408 243 3300).
|
86
|
4151
|
|
4152 InfoDock is built atop the XEmacs variant of GNU Emacs and so has all of
|
|
4153 the power of Emacs, but with an easier to use and more comprehensive
|
|
4154 menu-based user interface. The bottom portion of this text describes
|
|
4155 how it differs from XEmacs and GNU Emacs from the Free Software
|
|
4156 Foundation.
|
0
|
4157
|
|
4158 InfoDock is aimed at people who want a free, turn-key productivity
|
|
4159 environment. Although InfoDock is customizable, it is not intended for
|
|
4160 people who like basic versions of Emacs which need to be customized
|
|
4161 extensively for local use; standard Emacs distributions are better for
|
|
4162 such uses. InfoDock is for those people who want a complete,
|
|
4163 pre-customized environment in one package, which they need not touch
|
|
4164 more than once or twice a year to update to new revisions.
|
|
4165
|
86
|
4166 InfoDock is pre-built for SPARC SunOS/Solaris systems, PA-RISC HP-UX,
|
|
4167 and Intel Linux systems. It is intended for use on a color display,
|
|
4168 although most features will work on monochrome monitors. Simply unpack
|
|
4169 InfoDock according to the instructions in the ID-INSTALL file and you
|
|
4170 are ready to run.
|
0
|
4171
|
|
4172 The InfoDock Manual is concise, yet sufficient as a user guide for users
|
|
4173 who have never used an Emacs-type editor before. For users who are
|
|
4174 already familiar with Emacs, it supplements the information in the GNU
|
|
4175 Emacs Manual.
|
|
4176
|
|
4177 InfoDock menus are much more extensive and more mature than standard
|
86
|
4178 Emacs menus. Each menu offers a @samp{Manual} item which displays
|
0
|
4179 documentation associated with the menu's functions.
|
86
|
4180
|
|
4181 @noindent
|
|
4182 Four types of menubars are provided:
|
0
|
4183 @enumerate
|
|
4184 @item
|
|
4185 An extensive menubar providing access to global InfoDock commands.
|
|
4186 @item
|
|
4187 Mode-specific menubars tailored to the current major mode.
|
|
4188 @item
|
86
|
4189 A simple menubar for basic editing to help novices get started with InfoDock.
|
|
4190 @item
|
|
4191 The standard XEmacs menubar.
|
0
|
4192 @end enumerate
|
|
4193
|
86
|
4194 Most modes also include mode-specific popup menus. Additionally, region and
|
|
4195 rectangle popup menus are included.
|
|
4196
|
|
4197 @samp{Hyperbole}, the everyday information manager, is a core part of
|
0
|
4198 InfoDock. This provides context-sensitive mouse keys, a rolodex-type
|
|
4199 contact manager, programmable hypertext buttons, and an autonumbered
|
|
4200 outliner with embedded hyperlink anchors.
|
82
|
4201
|
86
|
4202 The @samp{OO-Browser}, a multi-language object-oriented code browser, is a
|
|
4203 standard part of InfoDock.
|
0
|
4204
|
|
4205 InfoDock saves a more extensive set of user options than other Emacs
|
|
4206 versions.
|
|
4207
|
|
4208 InfoDock inserts a useful file header in many file types, showing the
|
|
4209 author, summary, and last modification time of each file. A summary
|
|
4210 program can then be used to summarize all of the files in a directory,
|
|
4211 for easy MANIFEST file creation.
|
|
4212
|
|
4213 Your working set of buffers is automatically saved and restored (if you
|
|
4214 answer yes to a prompt) between InfoDock sessions.
|
|
4215
|
86
|
4216 Refined color choices for code highlighting are provided for both dark and
|
|
4217 light background display frames.
|
|
4218
|
|
4219 The @kbd{C-z} key prefix performs frame-based commands which parallel the
|
|
4220 @kbd{C-x} key prefix for window-based commands.
|
0
|
4221
|
|
4222 The Smart Menu system is included for producing command menus on dumb
|
86
|
4223 terminals.
|
0
|
4224
|
|
4225 Lisp libraries are better categorized according to function.
|
|
4226
|
86
|
4227 Extensions and improvements to many areas of Emacs are included, such as:
|
|
4228 paragraph filling, mail reading with Rmail, shell handling, outlining, code
|
|
4229 highlighting and browsing, and man page browsing.
|
0
|
4230
|
|
4231 InfoDock questions, answers and discussion should go to the mail list
|
86
|
4232 @samp{infodock@@infodock.com}. Use
|
|
4233 @samp{infodock-request@@infodock.com} to be added or removed from the
|
|
4234 list. Always include your InfoDock version number when sending help
|
|
4235 requests.
|
|
4236
|
|
4237 InfoDock is available across the Internet via anonymous FTP. To get
|
|
4238 it, first move to a directory into which you want the InfoDock archive
|
|
4239 files placed. We will call this <DIST-DIR>.
|
|
4240
|
|
4241 @example
|
|
4242 cd <DIST-DIR>
|
|
4243 @end example
|
|
4244
|
|
4245 Ftp to ftp.xemacs.org (Internet Host ID = 128.174.252.16):
|
82
|
4246
|
0
|
4247 @example
|
86
|
4248 prompt> ftp ftp.xemacs.org
|
0
|
4249 @end example
|
|
4250
|
86
|
4251 Login as @samp{anonymous} with your own <user-id>@@<site-name> as a password.
|
|
4252
|
|
4253 @example
|
|
4254 Name (ftp.xemacs.org): anonymous
|
|
4255 331 Guest login ok, send your complete e-mail address as password.
|
|
4256 Password: -<your-user-id@@your-domain>
|
|
4257 230 Guest login ok, access restrictions apply.
|
0
|
4258 @end example
|
|
4259
|
|
4260 Move to the location of the InfoDock archives:
|
|
4261
|
|
4262 @example
|
86
|
4263 ftp> cd pub/infodock
|
0
|
4264 @end example
|
|
4265
|
|
4266 Set your transfer mode to binary:
|
|
4267
|
|
4268 @example
|
86
|
4269 ftp> bin
|
|
4270 200 Type set to I.
|
0
|
4271 @end example
|
|
4272
|
|
4273 Turn off prompting:
|
|
4274
|
|
4275 @example
|
86
|
4276 ftp> prompt
|
|
4277 Interactive mode off.
|
0
|
4278 @end example
|
|
4279
|
|
4280 Retrieve the InfoDock archives that you want, either by using a
|
86
|
4281 @samp{get <file>} for each file you want or by using the following to
|
0
|
4282 get a complete distribution, including all binaries:
|
|
4283
|
|
4284 @example
|
86
|
4285 ftp> mget ID-INSTALL
|
|
4286 ftp> mget id-*
|
0
|
4287 @end example
|
|
4288
|
|
4289 Close the FTP connection:
|
|
4290
|
|
4291 @example
|
86
|
4292 ftp> quit
|
|
4293 221 Goodbye.
|
0
|
4294 @end example
|
|
4295
|
|
4296 Read the @file{ID-INSTALL} file which you just retrieved for
|
|
4297 step-by-step installation instructions.
|
|
4298
|
82
|
4299 @node Q4.7.1, Q4.7.2, Q4.6.1, Subsystems
|
163
|
4300 @section What is AUC TeX? Where do you get it?
|
|
4301
|
|
4302 AUC TeX is a package written by Per Abrahamsen <abraham@@dina.kvl.dk>.
|
213
|
4303 Starting with XEmacs 19.16, AUC TeX is bundled with XEmacs. The
|
163
|
4304 following information is from the @file{README} and website.
|
82
|
4305
|
|
4306 AUC TeX is an extensible package that supports writing and formatting
|
|
4307 TeX files for most variants of GNU Emacs. Many different macro packages
|
|
4308 are supported, including AMS TeX, LaTeX, and TeXinfo.
|
|
4309
|
|
4310 The most recent version is always available by ftp at
|
|
4311 <URL:ftp://sunsite.auc.dk/packages/auctex/auctex.tar.gz>.
|
|
4312
|
|
4313 In case you don't have access to anonymous ftp, you can get it by an
|
|
4314 email request to <URL:mailto:ftpmail@@decwrl.dec.com>.
|
|
4315
|
|
4316 WWW users may want to check out the AUC TeX page at
|
|
4317 <URL:http://sunsite.auc.dk/auctex/>.
|
|
4318
|
|
4319 @node Q4.7.2, Q4.7.3, Q4.7.1, Subsystems
|
|
4320 @section Are there any Emacs Lisp Spreadsheets?
|
|
4321
|
|
4322 Yes. Check out @dfn{dismal} (which stands for Dis' Mode Ain't Lotus) at
|
|
4323 <URL:ftp://cs.nyu.edu/pub/local/fox/dismal/>.
|
|
4324
|
|
4325 @node Q4.7.3, Q4.7.4, Q4.7.2, Subsystems
|
163
|
4326 @section Byte compiling AUC TeX on XEmacs 19.14.
|
82
|
4327
|
|
4328 Georges Brun-Cottan <bruncott@@dormeur.inria.fr> writes:
|
|
4329
|
|
4330 @quotation
|
|
4331 When byte compiling auxtex-9.4g, you must use the command:
|
0
|
4332
|
|
4333 @example
|
82
|
4334 xemacs -batch -l lpath.el
|
0
|
4335 @end example
|
82
|
4336 @end quotation
|
|
4337
|
163
|
4338 @node Q4.7.4, Q4.7.5, Q4.7.3, Subsystems
|
|
4339 @section Problems installing AUC TeX.
|
82
|
4340
|
|
4341 Jan Vroonhof <vroonhof@@math.ethz.ch> writes:
|
|
4342
|
|
4343 @quotation
|
163
|
4344 AUC TeX works fine on both stock Emacs and XEmacs has been doing so for
|
|
4345 a very very long time. This is mostly due to the work of Per Abrahamsen
|
82
|
4346 <abraham@@dina.kvl.dk> (clap clap) in particular his @file{easymenu}
|
|
4347 package. Which leads to what is probably the problem...
|
|
4348 @end quotation
|
|
4349
|
163
|
4350 Most problems with AUC TeX are one of two things:
|
0
|
4351
|
|
4352 @itemize @bullet
|
|
4353 @item
|
82
|
4354 The TeX-lisp-directory in @file{tex-site.el} and the makefile don't
|
|
4355 match.
|
|
4356
|
163
|
4357 Fix: make sure you configure AUC TeX properly @strong{before} installing.
|
82
|
4358
|
54
|
4359 @item
|
82
|
4360 You have an old version of easymenu.el in your path.
|
|
4361
|
|
4362 Fix: use @code{locate-library} and remove old versions to make sure it
|
|
4363 @strong{only} finds the one that came with XEmacs.
|
70
|
4364 @end itemize
|
|
4365
|
163
|
4366
|
|
4367 @node Q4.7.5, , Q4.7.4, Subsystems
|
|
4368 @section Is there a reason for an Emacs package not to be included in XEmacs?
|
|
4369
|
|
4370 The reason for an Emacs package not to be included in XEmacs is
|
|
4371 usually one or more of the following:
|
|
4372
|
|
4373 @enumerate
|
|
4374 @item
|
|
4375 The package has not been ported to XEmacs. This will typically happen
|
|
4376 when it uses GNU-Emacs-specific features, which make it fail under
|
|
4377 XEmacs.
|
|
4378
|
|
4379 Porting a package to XEmacs can range from a trivial amount of change to
|
|
4380 a partial or full rewrite. Fortunately, the authors of modern packages
|
|
4381 usually choose to support both Emacsen themselves.
|
|
4382
|
|
4383 @item
|
|
4384 The package has been decided not to be appropriate for XEmacs. It may
|
|
4385 have an equivalent or better replacement within XEmacs, in which case
|
|
4386 the developers may choose not to burden themselves with supporting an
|
|
4387 additional package.
|
|
4388
|
|
4389 Each package bundled with XEmacs means more work for the maintainers,
|
|
4390 whether they want it or not. If you are ready to take over the
|
|
4391 maintainence responsibilities for the package you port, be sure to say
|
|
4392 so -- we will more likely include it.
|
|
4393
|
|
4394 @item
|
|
4395 The package simply hasn't been noted by the XEmacs development. If
|
|
4396 that's the case, the messages like yours are very useful for attracting
|
|
4397 our attention.
|
|
4398
|
|
4399 @item
|
|
4400 The package was noted by the developers, but they simply haven't yet
|
|
4401 gotten around to including/porting it. Wait for the next release or,
|
|
4402 even better, offer your help. It will be gladly accepted and
|
|
4403 appreciated.
|
|
4404 @end enumerate
|
|
4405
|
82
|
4406 @node Miscellaneous, Current Events, Subsystems, Top
|
|
4407 @chapter The Miscellaneous Stuff
|
|
4408
|
|
4409 This is part 5 of the XEmacs Frequently Asked Questions list. This
|
|
4410 section is devoted to anything that doesn't fit neatly into the other
|
|
4411 sections.
|
70
|
4412
|
|
4413 @menu
|
82
|
4414 Major & Minor Modes:
|
|
4415 * Q5.0.1:: How can I do source code highlighting using font-lock?
|
|
4416 * Q5.0.2:: I do not like cc-mode. How do I use the old c-mode?
|
|
4417 * Q5.0.3:: How do I get @samp{More} Syntax Highlighting on by default?
|
|
4418 * Q5.0.4:: How can I enable auto-indent?
|
|
4419 * Q5.0.5:: How can I get XEmacs to come up in text/auto-fill mode by default?
|
|
4420 * Q5.0.6:: How do I start up a second shell buffer?
|
|
4421 * Q5.0.7:: Telnet from shell filters too much.
|
|
4422 * Q5.0.8:: Why does edt emulation not work?
|
|
4423 * Q5.0.9:: How can I emulate VI and use it as my default mode?
|
163
|
4424 * Q5.0.10:: [This question intentionally left blank]
|
|
4425 * Q5.0.11:: Filladapt doesn't work in 19.15?
|
82
|
4426 * Q5.0.12:: How do I disable gnuserv from opening a new frame?
|
|
4427 * Q5.0.13:: How do I start gnuserv so that each subsequent XEmacs is a client?
|
|
4428 * Q5.0.14:: Strange things are happening in Shell Mode.
|
|
4429 * Q5.0.15:: Where do I get the latest CC Mode?
|
|
4430 * Q5.0.16:: I find auto-show-mode disconcerting. How do I turn it off?
|
|
4431 * Q5.0.17:: How can I get two instances of info?
|
|
4432 * Q5.0.18:: I upgraded to XEmacs 19.14 and gnuserv stopped working
|
|
4433 * Q5.0.19:: Is there something better than LaTeX mode?
|
|
4434
|
|
4435 Emacs Lisp Programming Techniques:
|
|
4436 * Q5.1.1:: The difference in key sequences between XEmacs and GNU Emacs?
|
|
4437 * Q5.1.2:: Can I generate "fake" keyboard events?
|
163
|
4438 * Q5.1.3:: Could you explain @code{read-kbd-macro} in more detail?
|
|
4439 * Q5.1.4:: What is the performance hit of @code{let}?
|
|
4440 * Q5.1.5:: What is the recommended use of @code{setq}?
|
213
|
4441 * Q5.1.6:: What is the typical misuse of @code{setq}?
|
163
|
4442 * Q5.1.7:: I like the the @code{do} form of cl, does it slow things down?
|
|
4443 * Q5.1.8:: I like recursion, does it slow things down?
|
|
4444 * Q5.1.9:: How do I put a glyph as annotation in a buffer?
|
213
|
4445 * Q5.1.10:: @code{map-extents} won't traverse all of my extents!
|
82
|
4446
|
|
4447 Sound:
|
|
4448 * Q5.2.1:: How do I turn off the sound?
|
163
|
4449 * Q5.2.2:: How do I get funky sounds instead of a boring beep?
|
82
|
4450 * Q5.2.3:: What's NAS, how do I get it?
|
|
4451 * Q5.2.4:: Sunsite sounds don't play.
|
|
4452
|
|
4453 Miscellaneous:
|
|
4454 * Q5.3.1:: How do you make XEmacs indent CL if-clauses correctly?
|
|
4455 * Q5.3.2:: Fontifying hangs when editing a postscript file.
|
|
4456 * Q5.3.3:: How can I print WYSIWYG a font-locked buffer?
|
|
4457 * Q5.3.4:: Getting @kbd{M-x lpr} to work with postscript printer.
|
|
4458 * Q5.3.5:: How do I specify the paths that XEmacs uses for finding files?
|
|
4459 * Q5.3.6:: [This question intentionally left blank]
|
|
4460 * Q5.3.7:: Can I have the end of the buffer delimited in some way?
|
|
4461 * Q5.3.8:: How do I insert today's date into a buffer?
|
|
4462 * Q5.3.9:: Are only certain syntactic character classes available for abbrevs?
|
|
4463 * Q5.3.10:: How can I get those oh-so-neat X-Face lines?
|
|
4464 * Q5.3.11:: How do I add new Info directories?
|
|
4465 * Q5.3.12:: What do I need to change to make printing work?
|
70
|
4466 @end menu
|
|
4467
|
82
|
4468 @node Q5.0.1, Q5.0.2, Miscellaneous, Miscellaneous
|
|
4469 @section How can I do source code highlighting using font-lock?
|
|
4470
|
|
4471 For most modes, font-lock is already set up and just needs to be turned
|
|
4472 on. This can be done by @kbd{M-x font-lock-mode}, or by having XEmacs
|
|
4473 automatically start it by adding lines like:
|
|
4474
|
|
4475 @lisp
|
|
4476 (add-hook 'emacs-lisp-mode-hook 'turn-on-font-lock)
|
|
4477 (add-hook 'dired-mode-hook 'turn-on-font-lock)
|
|
4478 @end lisp
|
|
4479
|
|
4480 to your @file{.emacs}. See the file @file{etc/sample.emacs} for more
|
|
4481 examples.
|
|
4482
|
|
4483 @node Q5.0.2, Q5.0.3, Q5.0.1, Miscellaneous
|
|
4484 @section I do not like cc-mode. How do I use the old c-mode?
|
|
4485
|
|
4486 Well, first off, consider if you really want to do this. cc-mode is
|
|
4487 much more powerful than the old c-mode. If you're having trouble
|
|
4488 getting your old offsets to work, try using @code{c-set-offset} instead.
|
|
4489 You might also consider using the package @code{cc-compat}.
|
|
4490
|
|
4491 But, if you still insist, add the following lines to your @file{.emacs}:
|
|
4492
|
|
4493 @lisp
|
|
4494 (fmakunbound 'c-mode)
|
|
4495 (makunbound 'c-mode-map)
|
|
4496 (fmakunbound 'c++-mode)
|
|
4497 (makunbound 'c++-mode-map)
|
|
4498 (makunbound 'c-style-alist)
|
|
4499 (load-library "old-c-mode")
|
|
4500 (load-library "old-c++-mode")
|
|
4501 @end lisp
|
|
4502
|
|
4503 This must be done before any other reference is made to either c-mode or
|
|
4504 c++-mode.
|
|
4505
|
|
4506 @node Q5.0.3, Q5.0.4, Q5.0.2, Miscellaneous
|
|
4507 @section How do I get @samp{More} Syntax Highlighting on by default?
|
|
4508
|
163
|
4509 Use the following code in your @file{.emacs}:
|
82
|
4510
|
|
4511 @lisp
|
163
|
4512 (setq-default font-lock-maximum-decoration t)
|
82
|
4513 @end lisp
|
|
4514
|
163
|
4515 In versions of XEmacs prior to 19.14, you had to use a kludgy solution
|
|
4516 like this:
|
|
4517
|
|
4518 @lisp
|
|
4519 (setq c-font-lock-keywords c-font-lock-keywords-2
|
|
4520 c++-font-lock-keywords c++-font-lock-keywords-2
|
|
4521 lisp-font-lock-keywords lisp-font-lock-keywords-2)
|
|
4522 @end lisp
|
|
4523
|
|
4524 It will work for C, C++ and Lisp.
|
|
4525
|
82
|
4526 @node Q5.0.4, Q5.0.5, Q5.0.3, Miscellaneous
|
|
4527 @section How can I enable auto-indent?
|
|
4528
|
|
4529 Put the following line in your @file{.emacs}:
|
|
4530
|
|
4531 @lisp
|
|
4532 (setq indent-line-function 'indent-relative-maybe)
|
|
4533 @end lisp
|
|
4534
|
|
4535 If you want to get fancy, try the @code{filladapt} package available
|
|
4536 standard with XEmacs. Put this into your @file{.emacs}:
|
|
4537
|
|
4538 @lisp
|
|
4539 (require 'filladapt)
|
|
4540 (add-hook 'text-mode-hook 'turn-on-filladapt-mode)
|
163
|
4541 ;;; and others ...
|
82
|
4542 @end lisp
|
|
4543
|
163
|
4544 Note that well-behaving text-lookalike modes will run
|
|
4545 @code{text-mode-hook} by default (e.g. that's what Message does). For
|
|
4546 the nasty ones, you'll have to provide the @code{add-hook}s yourself.
|
|
4547
|
82
|
4548 Please note that the @code{fa-extras} package is no longer useful.
|
|
4549
|
|
4550 @node Q5.0.5, Q5.0.6, Q5.0.4, Miscellaneous
|
|
4551 @section How can I get XEmacs to come up in text/auto-fill mode by default?
|
|
4552
|
|
4553 Try the following lisp in your @file{.emacs}:
|
|
4554
|
|
4555 @lisp
|
|
4556 (setq default-major-mode 'text-mode)
|
|
4557 (setq text-mode-hook 'turn-on-auto-fill)
|
|
4558 @end lisp
|
|
4559
|
|
4560 @strong{WARNING}: note that changing the value of
|
|
4561 @code{default-major-mode} from @code{fundamental-mode} can break a large
|
|
4562 amount of built-in code that expects newly created buffers to be in
|
|
4563 @code{fundamental-mode}. (Changing from @code{fundamental-mode} to
|
|
4564 @code{text-mode} might not wreak too much havoc, but changing to
|
|
4565 something more exotic like a lisp-mode would break many Emacs packages).
|
|
4566
|
|
4567 Note that Emacs by default starts up in buffer @code{*scratch*} in
|
|
4568 @code{initial-major-mode}, which defaults to
|
|
4569 @code{lisp-interaction-mode}. Thus adding the following form to your
|
|
4570 Emacs init file will cause the initial @code{*scratch*} buffer to be put
|
|
4571 into auto-fill'ed @code{text-mode}:
|
|
4572
|
|
4573 @lisp
|
|
4574 (setq initial-major-mode
|
163
|
4575 (lambda ()
|
82
|
4576 (text-mode)
|
163
|
4577 (turn-on-auto-fill)))
|
82
|
4578 @end lisp
|
|
4579
|
|
4580 Note that after your init file is loaded, if
|
163
|
4581 @code{inhibit-startup-message} is @code{nil} (the default) and the
|
|
4582 startup buffer is @code{*scratch*} then the startup message will be
|
|
4583 inserted into @code{*scratch*}; it will be removed after a timeout by
|
|
4584 erasing the entire @code{*scratch*} buffer. Keep in mind this default
|
|
4585 usage of @code{*scratch*} if you desire any prior manipulation of
|
82
|
4586 @code{*scratch*} from within your Emacs init file. In particular,
|
|
4587 anything you insert into @code{*scratch*} from your init file will be
|
|
4588 later erased. Also, if you change the mode of the @code{*scratch*}
|
|
4589 buffer, be sure that this will not interfere with possible later
|
|
4590 insertion of the startup message (e.g. if you put @code{*scratch*} into
|
|
4591 a nonstandard mode that has automatic font lock rules, then the startup
|
|
4592 message might get fontified in a strange foreign manner, e.g. as code in
|
|
4593 some programming language).
|
|
4594
|
|
4595 @node Q5.0.6, Q5.0.7, Q5.0.5, Miscellaneous
|
|
4596 @section How do I start up a second shell buffer?
|
|
4597
|
|
4598 In the @code{*shell*} buffer:
|
|
4599
|
|
4600 @lisp
|
|
4601 M-x rename-buffer RET *shell-1* RET
|
|
4602 M-x shell RET
|
|
4603 @end lisp
|
|
4604
|
|
4605 This will then start a second shell. The key is that no buffer named
|
|
4606 @samp{*shell*} can exist. It might be preferable to use @kbd{M-x
|
|
4607 rename-uniquely} to rename the @code{*shell*} buffer instead of @kbd{M-x
|
|
4608 rename-buffer}.
|
|
4609
|
|
4610 @node Q5.0.7, Q5.0.8, Q5.0.6, Miscellaneous
|
|
4611 @section Telnet from shell filters too much
|
|
4612
|
|
4613 I'm using the Emacs @kbd{M-x shell} function, and I would like to invoke
|
|
4614 and use a telnet session within it. Everything works fine except that
|
|
4615 now all @samp{^M}'s are filtered out by Emacs. Fixes?
|
|
4616
|
|
4617 Use @kbd{M-x rsh} or @kbd{M-x telnet} to open remote sessions rather
|
|
4618 than doing rsh or telnet within the local shell buffer.
|
|
4619
|
|
4620 @node Q5.0.8, Q5.0.9, Q5.0.7, Miscellaneous
|
|
4621 @section Why does edt emulation not work?
|
|
4622
|
|
4623 We don't know, but you can use tpu-edt emulation instead, which works
|
|
4624 fine and is a little fancier than the standard edt emulation. To do
|
|
4625 this, add the following line to your @file{.emacs}:
|
|
4626
|
|
4627 @lisp
|
163
|
4628 (tpu-edt)
|
82
|
4629 @end lisp
|
|
4630
|
|
4631 If you don't want it to replace @kbd{C-h} with an edt-style help menu
|
|
4632 add this as well:
|
|
4633
|
|
4634 @lisp
|
163
|
4635 (global-set-key [(control h)] 'help-for-help)
|
82
|
4636 @end lisp
|
|
4637
|
|
4638 @node Q5.0.9, Q5.0.10, Q5.0.8, Miscellaneous
|
|
4639 @section How can I emulate VI and use it as my default mode?
|
|
4640
|
|
4641 Our recommended VI emulator is viper. To make viper-mode the default,
|
|
4642 add this to your @file{.emacs}:
|
|
4643
|
|
4644 @lisp
|
|
4645 (viper-mode)
|
|
4646 @end lisp
|
|
4647
|
|
4648 Michael Kifer <kifer@@CS.SunySB.EDU> writes:
|
|
4649
|
|
4650 @quotation
|
|
4651 This should be added as close to the top of @file{.emacs} as you can get
|
|
4652 it, otherwise some minor modes may not get viper-ized.
|
|
4653 @end quotation
|
|
4654
|
|
4655 @node Q5.0.10, Q5.0.11, Q5.0.9, Miscellaneous
|
126
|
4656 @section [This question intentionally left blank]
|
|
4657
|
|
4658 Obsolete question, left blank to avoid renumbering
|
|
4659
|
82
|
4660 @node Q5.0.11, Q5.0.12, Q5.0.10, Miscellaneous
|
126
|
4661 @section Filladapt doesn't work in 19.15
|
|
4662
|
|
4663 Filladapt 2.x is included in 19.15. In it filladapt is now a minor
|
82
|
4664 mode and minor modes are traditionally off by default. The following
|
|
4665 added to your @file{.emacs} will turn it on for all buffers:
|
|
4666
|
|
4667 @lisp
|
|
4668 (setq-default filladapt-mode t)
|
|
4669 @end lisp
|
|
4670
|
|
4671 Use @code{turn-on-filladapt-mode} to turn Filladapt on in particular
|
|
4672 major modes, like this:
|
|
4673
|
|
4674 @lisp
|
|
4675 (add-hook 'text-mode-hook 'turn-on-filladapt-mode)
|
|
4676 @end lisp
|
|
4677
|
|
4678 @node Q5.0.12, Q5.0.13, Q5.0.11, Miscellaneous
|
|
4679 @section How do I disable gnuserv from opening a new frame?
|
|
4680
|
|
4681 If you set the @code{gnuserv-frame} variable to the frame that should be
|
|
4682 used to display buffers that are pulled up, a new frame will not be
|
|
4683 created. For example, you could put
|
|
4684
|
|
4685 @lisp
|
|
4686 (setq gnuserv-frame (selected-frame))
|
|
4687 @end lisp
|
|
4688
|
|
4689 early on in your @file{.emacs}, to ensure that the first frame created
|
|
4690 is the one used for your gnuserv buffers.
|
|
4691
|
|
4692 Starting in 19.15, there is an option to set the gnuserv target to
|
|
4693 the current frame. See
|
|
4694 @code{Options->"Other Window" Location->Make current frame gnuserv target}
|
|
4695
|
|
4696 @node Q5.0.13, Q5.0.14, Q5.0.12, Miscellaneous
|
|
4697 @section How do I start gnuserv so that each subsequent XEmacs is a client?
|
|
4698
|
|
4699 Put the following in your @file{.emacs} file to start the server:
|
|
4700
|
|
4701 @lisp
|
|
4702 (gnuserv-start)
|
|
4703 @end lisp
|
|
4704
|
|
4705 Start your first XEmacs as usual. After that, you can do:
|
70
|
4706
|
|
4707 @example
|
82
|
4708 gnuclient randomfilename
|
70
|
4709 @end example
|
|
4710
|
82
|
4711 from the command line to get your existing XEmacs process to open a new
|
|
4712 frame and visit randomfilename in that window. When you're done editing
|
|
4713 randomfilename, hit @kbd{C-x #} to kill the buffer and get rid of the
|
|
4714 frame.
|
|
4715
|
|
4716 @node Q5.0.14, Q5.0.15, Q5.0.13, Miscellaneous
|
|
4717 @section Strange things are happening in Shell Mode.
|
|
4718
|
|
4719 Sometimes (i.e. it's not repeatable, and I can't work out why it
|
|
4720 happens) when I'm typing into shell mode, I hit return and only a
|
|
4721 portion of the command is given to the shell, and a blank prompt is
|
|
4722 returned. If I hit return again, the rest of the previous command is
|
|
4723 given to the shell.
|
|
4724
|
|
4725 Martin Buchholz <Martin.Buchholz@@sun.com> writes:
|
|
4726
|
|
4727 @quotation
|
|
4728 There is a known problem with interaction between @code{csh} and the
|
|
4729 @code{filec} option and XEmacs. You should add the following to your
|
|
4730 @file{.cshrc}:
|
70
|
4731
|
|
4732 @example
|
82
|
4733 if ( "$TERM" == emacs || "$TERM" == unknown ) unset filec
|
70
|
4734 @end example
|
82
|
4735 @end quotation
|
|
4736
|
|
4737 @node Q5.0.15, Q5.0.16, Q5.0.14, Miscellaneous
|
|
4738 @section Where do I get the latest CC Mode?
|
|
4739
|
|
4740 Barry A. Warsaw <bwarsaw@@cnri.reston.va.us> writes:
|
|
4741
|
|
4742 @quotation
|
|
4743 This can be had from <URL:http://www.python.org/ftp/emacs/>.
|
|
4744 @end quotation
|
|
4745
|
|
4746 @node Q5.0.16, Q5.0.17, Q5.0.15, Miscellaneous
|
|
4747 @section I find auto-show-mode disconcerting. How do I turn it off?
|
|
4748
|
|
4749 @code{auto-show-mode} controls whether or not a horizontal scrollbar
|
|
4750 magically appears when a line is too long to be displayed. This is
|
|
4751 enabled by default. To turn it off, put the following in your
|
|
4752 @file{.emacs}:
|
|
4753
|
|
4754 @lisp
|
|
4755 (setq auto-show-mode nil)
|
|
4756 (setq-default auto-show-mode nil)
|
|
4757 @end lisp
|
|
4758
|
|
4759 @node Q5.0.17, Q5.0.18, Q5.0.16, Miscellaneous
|
|
4760 @section How can I get two instances of info?
|
|
4761
|
|
4762 You can't. The info package does not provide for multiple info buffers.
|
|
4763
|
|
4764 @node Q5.0.18, Q5.0.19, Q5.0.17, Miscellaneous
|
|
4765 @section I upgraded to XEmacs 19.14 and gnuserv stopped working.
|
|
4766
|
|
4767 Mark Daku <daku@@nortel.ca> writes:
|
|
4768
|
|
4769 @quotation
|
|
4770 It turns out I was using an older version of gnuserv. The installation
|
|
4771 didn't put the binary into the public bin directory. It put it in
|
|
4772 @file{lib/xemacs-19.14/hppa1.1-hp-hpux9.05/gnuserv}. Shouldn't it have
|
|
4773 been put in @file{bin/hppa1.1-hp-hpux9.0}?
|
|
4774 @end quotation
|
|
4775
|
|
4776 @node Q5.0.19, Q5.1.1, Q5.0.18, Miscellaneous
|
|
4777 @section Is there something better than LaTeX mode?
|
|
4778
|
|
4779 David Kastrup <dak@@fsnif.neuroinformatik.ruhr-uni-bochum.de> writes:
|
|
4780
|
|
4781 @quotation
|
|
4782 The standard TeX modes leave much to be desired, and are somewhat
|
163
|
4783 leniently maintained. Serious TeX users use AUC TeX (@xref{Q4.7.1}).
|
82
|
4784 @end quotation
|
|
4785
|
|
4786 @node Q5.1.1, Q5.1.2, Q5.0.19, Miscellaneous
|
|
4787 @section What is the difference in key sequences between XEmacs and GNU Emacs?
|
|
4788
|
|
4789 Erik Naggum <erik@@naggum.no> writes;
|
|
4790
|
|
4791 @quotation
|
|
4792 Emacs has a legacy of keyboards that produced characters with modifier
|
|
4793 bits, and therefore map a variety of input systems into this scheme even
|
|
4794 today. XEmacs is instead optimized for X events. This causes an
|
|
4795 incompatibility in the way key sequences are specified, but both Emacs
|
|
4796 and XEmacs will accept a key sequence as a vector of lists of modifiers
|
163
|
4797 that ends with a key, e.g., to bind @kbd{M-C-a}, you would say
|
|
4798 @code{[(meta control a)]} in both Emacsen. XEmacs has an abbreviated
|
|
4799 form for a single key, just (meta control a). Emacs has an abbreviated
|
|
4800 form for the Control and the Meta modifiers to string-characters (the
|
|
4801 ASCII characters), as in @samp{\M-\C-a}. XEmacs users need to be aware
|
|
4802 that the abbreviated form works only for one-character key sequences,
|
|
4803 while Emacs users need to be aware that the string-character is rather
|
|
4804 limited. Specifically, the string-character can accomodate only 256
|
|
4805 different values, 128 of which have the Meta modifier and 128 of which
|
|
4806 have not. In each of these blocks, only 32 characters have the Control
|
|
4807 modifier. Whereas @code{[(meta control A)]} differs from @code{[(meta
|
|
4808 control a)]} because the case differs, @samp{\M-\C-a} and @samp{\M-\C-A}
|
|
4809 do not. Programmers are advised to use the full common form, both
|
|
4810 because it is more readable and less error-prone, and because it is
|
|
4811 supported by both Emacsen.
|
82
|
4812 @end quotation
|
|
4813
|
163
|
4814 Another (even safer) way to be sure of the key-sequences is to use the
|
|
4815 @code{read-kbd-macro} function, which takes a string like @samp{C-c
|
|
4816 <up>}, and converts it to the internal key representation of the Emacs
|
|
4817 you use. The function is available both on XEmacs and GNU Emacs.
|
|
4818
|
82
|
4819 @node Q5.1.2, Q5.1.3, Q5.1.1, Miscellaneous
|
|
4820 @section Can I generate "fake" keyboard events?
|
|
4821
|
163
|
4822 I wonder if there is an interactive function that can generate
|
|
4823 @dfn{fake} keyboard events. This way, I could simply map them inside
|
|
4824 XEmacs.
|
70
|
4825
|
|
4826 This seems to work:
|
82
|
4827
|
|
4828 @lisp
|
70
|
4829 (defun cg--generate-char-event (ch)
|
|
4830 "Generate an event, as if ch has been typed"
|
|
4831 (dispatch-event (character-to-event ch)))
|
|
4832
|
|
4833 ;; Backspace and Delete stuff
|
163
|
4834 (global-set-key [backspace]
|
|
4835 (lambda () (interactive) (cg--generate-char-event 127)))
|
|
4836 (global-set-key [unknown_keysym_0x4]
|
|
4837 (lambda () (interactive) (cg--generate-char-event 4)))
|
82
|
4838 @end lisp
|
|
4839
|
|
4840 @node Q5.1.3, Q5.1.4, Q5.1.2, Miscellaneous
|
163
|
4841 @section Could you explain @code{read-kbd-macro} in more detail?
|
|
4842
|
|
4843 The @code{read-kbd-macro} function returns the internal Emacs
|
|
4844 representation of a human-readable string (which is its argument).
|
|
4845 Thus:
|
82
|
4846
|
|
4847 @lisp
|
163
|
4848 (read-kbd-macro "C-c C-a")
|
|
4849 @result{} [(control ?c) (control ?a)]
|
|
4850
|
|
4851 (read-kbd-macro "C-c C-. <up>")
|
|
4852 @result{} [(control ?c) (control ?.) up]
|
82
|
4853 @end lisp
|
|
4854
|
163
|
4855 In GNU Emacs the same forms will be evaluated to what GNU Emacs
|
|
4856 understands internally---the sequences @code{"\C-x\C-c"} and @code{[3
|
|
4857 67108910 up]}, respectively.
|
|
4858
|
|
4859 The exact @dfn{human-readable} syntax is defined in the docstring of
|
|
4860 @code{edmacro-mode}. I'll repeat it here, for completeness.
|
|
4861
|
|
4862 @quotation
|
|
4863 Format of keyboard macros during editing:
|
|
4864
|
|
4865 Text is divided into @dfn{words} separated by whitespace. Except for
|
|
4866 the words described below, the characters of each word go directly as
|
|
4867 characters of the macro. The whitespace that separates words is
|
|
4868 ignored. Whitespace in the macro must be written explicitly, as in
|
|
4869 @kbd{foo SPC bar RET}.
|
|
4870
|
|
4871 @itemize @bullet
|
|
4872 @item
|
|
4873 The special words @kbd{RET}, @kbd{SPC}, @kbd{TAB}, @kbd{DEL}, @kbd{LFD},
|
|
4874 @kbd{ESC}, and @kbd{NUL} represent special control characters. The
|
|
4875 words must be written in uppercase.
|
|
4876
|
|
4877 @item
|
|
4878 A word in angle brackets, e.g., @code{<return>}, @code{<down>}, or
|
|
4879 @code{<f1>}, represents a function key. (Note that in the standard
|
|
4880 configuration, the function key @code{<return>} and the control key
|
|
4881 @kbd{RET} are synonymous.) You can use angle brackets on the words
|
|
4882 @kbd{RET}, @kbd{SPC}, etc., but they are not required there.
|
|
4883
|
|
4884 @item
|
|
4885 Keys can be written by their @sc{ascii} code, using a backslash followed
|
|
4886 by up to six octal digits. This is the only way to represent keys with
|
|
4887 codes above \377.
|
|
4888
|
|
4889 @item
|
|
4890 One or more prefixes @kbd{M-} (meta), @kbd{C-} (control), @kbd{S-}
|
|
4891 (shift), @kbd{A-} (alt), @kbd{H-} (hyper), and @kbd{s-} (super) may
|
|
4892 precede a character or key notation. For function keys, the prefixes
|
|
4893 may go inside or outside of the brackets: @code{C-<down>} @equiv{}
|
|
4894 @code{<C-down>}. The prefixes may be written in any order: @kbd{M-C-x}
|
|
4895 @equiv{} @kbd{C-M-x}.
|
|
4896
|
|
4897 Prefixes are not allowed on multi-key words, e.g., @kbd{C-abc}, except
|
|
4898 that the Meta prefix is allowed on a sequence of digits and optional
|
|
4899 minus sign: @kbd{M--123} @equiv{} @kbd{M-- M-1 M-2 M-3}.
|
|
4900
|
|
4901 @item
|
|
4902 The @code{^} notation for control characters also works: @kbd{^M}
|
|
4903 @equiv{} @kbd{C-m}.
|
|
4904
|
|
4905 @item
|
|
4906 Double angle brackets enclose command names: @code{<<next-line>>} is
|
|
4907 shorthand for @kbd{M-x next-line RET}.
|
|
4908
|
|
4909 @item
|
|
4910 Finally, @code{REM} or @code{;;} causes the rest of the line to be
|
|
4911 ignored as a comment.
|
|
4912 @end itemize
|
|
4913
|
|
4914 Any word may be prefixed by a multiplier in the form of a decimal number
|
|
4915 and @code{*}: @code{3*<right>} @equiv{} @code{<right> <right> <right>},
|
|
4916 and @code{10*foo} @equiv{} @code{foofoofoofoofoofoofoofoofoofoo}.
|
|
4917
|
|
4918 Multiple text keys can normally be strung together to form a word, but
|
|
4919 you may need to add whitespace if the word would look like one of the
|
|
4920 above notations: @code{; ; ;} is a keyboard macro with three semicolons,
|
|
4921 but @code{;;;} is a comment. Likewise, @code{\ 1 2 3} is four keys but
|
|
4922 @code{\123} is a single key written in octal, and @code{< right >} is
|
|
4923 seven keys but @code{<right>} is a single function key. When in doubt,
|
|
4924 use whitespace.
|
|
4925 @end quotation
|
|
4926
|
|
4927 @node Q5.1.4, Q5.1.5, Q5.1.3, Miscellaneous
|
|
4928 @section What is the performance hit of @code{let}?
|
|
4929
|
|
4930 In most cases, not noticable. Besides, there's no avoiding
|
|
4931 @code{let}---you have to bind your local variables, after all. Some
|
|
4932 pose a question whether to nest @code{let}s, or use one @code{let} per
|
|
4933 function. I think because of clarity and maintenance (and possible
|
|
4934 future implementation), @code{let}-s should be used (nested) in a way to
|
|
4935 provide the clearest code.
|
|
4936
|
|
4937 @node Q5.1.5, Q5.1.6, Q5.1.4, Miscellaneous
|
|
4938 @section What is the recommended use of @code{setq}?
|
|
4939
|
|
4940 @itemize @bullet
|
|
4941 @item Global variables
|
|
4942
|
|
4943 You will typically @code{defvar} your global variable to a default
|
|
4944 value, and use @code{setq} to set it later.
|
|
4945
|
|
4946 It is never a good practice to @code{setq} user variables (like
|
|
4947 @code{case-fold-search}, etc.), as it ignores the user's choice
|
|
4948 unconditionally. Note that @code{defvar} doesn't change the value of a
|
|
4949 variable if it was bound previously. If you wish to change a
|
|
4950 user-variable temporarily, use @code{let}:
|
82
|
4951
|
|
4952 @lisp
|
163
|
4953 (let ((case-fold-search nil))
|
|
4954 ... ; code with searches that must be case-sensitive
|
|
4955 ...)
|
82
|
4956 @end lisp
|
|
4957
|
163
|
4958 You will notice the user-variables by their docstrings beginning with an
|
|
4959 asterisk (a convention).
|
|
4960
|
|
4961 @item Local variables
|
|
4962
|
|
4963 Bind them with @code{let}, which will unbind them (or restore their
|
|
4964 previous value, if they were bound) after exiting from the @code{let}
|
|
4965 form. Change the value of local variables with @code{setq} or whatever
|
|
4966 you like (e.g. @code{incf}, @code{setf} and such). The @code{let} form
|
|
4967 can even return one of its local variables.
|
|
4968
|
|
4969 Typical usage:
|
82
|
4970
|
|
4971 @lisp
|
163
|
4972 ;; iterate through the elements of the list returned by
|
|
4973 ;; `hairy-function-that-returns-list'
|
|
4974 (let ((l (hairy-function-that-returns-list)))
|
|
4975 (while l
|
|
4976 ... do something with (car l) ...
|
|
4977 (setq l (cdr l))))
|
|
4978 @end lisp
|
|
4979
|
|
4980 Another typical usage includes building a value simply to work with it.
|
|
4981
|
|
4982 @lisp
|
|
4983 ;; Build the mode keymap out of the key-translation-alist
|
|
4984 (let ((inbox (file-truename (expand-file-name box)))
|
|
4985 (i 0))
|
|
4986 ... code dealing with inbox ...
|
|
4987 inbox)
|
|
4988 @end lisp
|
|
4989
|
|
4990 This piece of code uses the local variable @code{inbox}, which becomes
|
|
4991 unbound (or regains old value) after exiting the form. The form also
|
|
4992 returns the value of @code{inbox}, which can be reused, for instance:
|
|
4993
|
|
4994 @lisp
|
|
4995 (setq foo-processed-inbox
|
|
4996 (let .....))
|
82
|
4997 @end lisp
|
163
|
4998 @end itemize
|
|
4999
|
|
5000 @node Q5.1.6, Q5.1.7, Q5.1.5, Miscellaneous
|
|
5001 @section What is the typical misuse of @code{setq} ?
|
|
5002
|
|
5003 A typical misuse is probably @code{setq}ing a variable that was meant to
|
|
5004 be local. Such a variable will remain bound forever, never to be
|
|
5005 garbage-collected. For example, the code doing:
|
|
5006
|
|
5007 @lisp
|
|
5008 (defun my-function (whatever)
|
|
5009 (setq a nil)
|
|
5010 ... build a large list ...
|
|
5011 ... and exit ...)
|
|
5012 @end lisp
|
|
5013
|
|
5014 does a bad thing, as @code{a} will keep consuming memory, never to be
|
|
5015 unbound. The correct thing is to do it like this:
|
|
5016
|
|
5017 @lisp
|
|
5018 (defun my-function (whatever)
|
|
5019 (let (a) ; default initialization is to nil
|
|
5020 ... build a large list ...
|
|
5021 ... and exit, unbinding `a' in the process ...)
|
|
5022 @end lisp
|
|
5023
|
|
5024 Not only is this prettier syntactically, but it makes it possible for
|
|
5025 Emacs to garbage-collect the objects which @code{a} used to reference.
|
|
5026
|
|
5027 Note that even global variables should not be @code{setq}ed without
|
|
5028 @code{defvar}ing them first, because the byte-compiler issues warnings.
|
|
5029 The reason for the warning is the following:
|
|
5030
|
|
5031 @lisp
|
|
5032 (defun flurgoze nil) ; ok, global internal variable
|
|
5033 ...
|
|
5034
|
|
5035 (setq flurghoze t) ; ops! a typo, but semantically correct.
|
|
5036 ; however, the byte-compiler warns.
|
|
5037
|
|
5038 While compiling toplevel forms:
|
|
5039 ** assignment to free variable flurghoze
|
|
5040 @end lisp
|
|
5041
|
|
5042 @node Q5.1.7, Q5.1.8, Q5.1.6, Miscellaneous
|
|
5043 @section I like the the @code{do} form of cl, does it slow things down?
|
|
5044
|
|
5045 It shouldn't. Here is what Dave Gillespie has to say about cl.el
|
|
5046 performance:
|
82
|
5047
|
|
5048 @quotation
|
163
|
5049 Many of the advanced features of this package, such as @code{defun*},
|
|
5050 @code{loop}, and @code{setf}, are implemented as Lisp macros. In
|
|
5051 byte-compiled code, these complex notations will be expanded into
|
|
5052 equivalent Lisp code which is simple and efficient. For example, the
|
|
5053 forms
|
82
|
5054
|
|
5055 @lisp
|
163
|
5056 (incf i n)
|
|
5057 (push x (car p))
|
82
|
5058 @end lisp
|
|
5059
|
163
|
5060 are expanded at compile-time to the Lisp forms
|
82
|
5061
|
|
5062 @lisp
|
163
|
5063 (setq i (+ i n))
|
|
5064 (setcar p (cons x (car p)))
|
82
|
5065 @end lisp
|
|
5066
|
163
|
5067 which are the most efficient ways of doing these respective operations
|
|
5068 in Lisp. Thus, there is no performance penalty for using the more
|
|
5069 readable @code{incf} and @code{push} forms in your compiled code.
|
|
5070
|
|
5071 @emph{Interpreted} code, on the other hand, must expand these macros
|
|
5072 every time they are executed. For this reason it is strongly
|
|
5073 recommended that code making heavy use of macros be compiled. (The
|
|
5074 features labelled @dfn{Special Form} instead of @dfn{Function} in this
|
|
5075 manual are macros.) A loop using @code{incf} a hundred times will
|
|
5076 execute considerably faster if compiled, and will also garbage-collect
|
|
5077 less because the macro expansion will not have to be generated, used,
|
|
5078 and thrown away a hundred times.
|
|
5079
|
|
5080 You can find out how a macro expands by using the @code{cl-prettyexpand}
|
|
5081 function.
|
82
|
5082 @end quotation
|
|
5083
|
163
|
5084 @node Q5.1.8, Q5.1.9, Q5.1.7, Miscellaneous
|
|
5085 @section I like recursion, does it slow things down?
|
|
5086
|
|
5087 Yes. Emacs byte-compiler cannot do much to optimize recursion. But
|
|
5088 think well whether this is a real concern in Emacs. Much of the Emacs
|
|
5089 slowness comes from internal mechanisms such as redisplay, or from the
|
|
5090 fact that it is an interpreter.
|
|
5091
|
|
5092 Please try not to make your code much uglier to gain a very small speed
|
|
5093 gain. It's not usually worth it.
|
|
5094
|
213
|
5095 @node Q5.1.9, Q5.1.10, Q5.1.8, Miscellaneous
|
163
|
5096 @section How do I put a glyph as annotation in a buffer?
|
|
5097
|
|
5098 Here is a solution that will insert the glyph annotation at the
|
|
5099 beginning of buffer:
|
|
5100
|
|
5101 @lisp
|
|
5102 (make-annotation (make-glyph '([FORMAT :file FILE]
|
|
5103 [string :data "fallback-text"]))
|
|
5104 (point-min)
|
|
5105 'text
|
|
5106 (current-buffer))
|
|
5107 @end lisp
|
|
5108
|
|
5109 Replace @samp{FORMAT} with an unquoted symbol representing the format of
|
|
5110 the image (e.g. @code{xpm}, @code{xbm}, @code{gif}, @code{jpeg}, etc.)
|
|
5111 Instead of @samp{FILE}, use the image file name
|
|
5112 (e.g. @file{/usr/local/lib/xemacs-20.2/etc/recycle.xpm}).
|
|
5113
|
|
5114 You can turn this to a function (that optionally prompts you for a file
|
|
5115 name), and inserts the glyph at @code{(point)} instead of
|
|
5116 @code{(point-min)}.
|
|
5117
|
213
|
5118 @node Q5.1.10, Q5.2.1, Q5.1.9, Miscellaneous
|
|
5119 @section @code{map-extents} won't traverse all of my extents!
|
|
5120
|
|
5121 I tried to use @code{map-extents} to do an operation on all the extents
|
|
5122 in a region. However, it seems to quit after processing a random number
|
|
5123 of extents. Is it buggy?
|
|
5124
|
|
5125 No. The documentation of @code{map-extents} states that it will iterate
|
|
5126 across the extents as long as @var{function} returns @code{nil}.
|
|
5127 Unexperienced programmers often forget to return @code{nil} explicitly,
|
|
5128 which results in buggy code. For instance, the following code is
|
|
5129 supposed to delete all the extents in a buffer, and issue as many
|
|
5130 @samp{fubar!} messages.
|
|
5131
|
|
5132 @lisp
|
|
5133 (map-extents (lambda (ext ignore)
|
|
5134 (delete-extent ext)
|
|
5135 (message "fubar!")))
|
|
5136 @end lisp
|
|
5137
|
|
5138 Instead, it will delete only the first extent, and stop right there --
|
|
5139 because @code{message} will return a non-nil value. The correct code
|
|
5140 is:
|
|
5141
|
|
5142 @lisp
|
|
5143 (map-extents (lambda (ext ignore)
|
|
5144 (delete-extent ext)
|
|
5145 (message "fubar!")
|
|
5146 nil))
|
|
5147 @end lisp
|
|
5148
|
|
5149 @node Q5.2.1, Q5.2.2, Q5.1.10, Miscellaneous
|
82
|
5150 @section How do I turn off the sound?
|
|
5151
|
|
5152 Add the following line to your @file{.emacs}:
|
|
5153
|
|
5154 @lisp
|
|
5155 (setq bell-volume 0)
|
|
5156 (setq sound-alist nil)
|
|
5157 @end lisp
|
|
5158
|
163
|
5159 That will make your XEmacs totally silent -- even the default ding sound
|
|
5160 (TTY beep on TTY-s) will be gone.
|
|
5161
|
82
|
5162 @node Q5.2.2, Q5.2.3, Q5.2.1, Miscellaneous
|
|
5163 @section How do I get funky sounds instead of a boring beep?
|
|
5164
|
|
5165 Make sure your XEmacs was compiled with sound support, and then put this
|
|
5166 in your @file{.emacs}:
|
|
5167
|
|
5168 @lisp
|
|
5169 (load-default-sounds)
|
|
5170 @end lisp
|
|
5171
|
126
|
5172 The sound support in XEmacs 19.14 was greatly improved over previous
|
82
|
5173 versions.
|
|
5174
|
|
5175 @node Q5.2.3, Q5.2.4, Q5.2.2, Miscellaneous
|
|
5176 @section What's NAS, how do I get it?
|
|
5177
|
|
5178 @xref{Q2.0.3} for an explanation of the @dfn{Network Audio System}.
|
|
5179
|
|
5180 @node Q5.2.4, Q5.3.1, Q5.2.3, Miscellaneous
|
|
5181 @section Sunsite sounds don't play.
|
|
5182
|
|
5183 I'm having some trouble with sounds I've downloaded from sunsite. They
|
|
5184 play when I run them through @code{showaudio} or cat them directly to
|
|
5185 @file{/dev/audio}, but XEmacs refuses to play them.
|
|
5186
|
|
5187 Markus Gutschke <gutschk@@uni-muenster.de> writes:
|
|
5188
|
|
5189 @quotation
|
|
5190 [Many of] These files have an (erroneous) 24byte header that tells about
|
|
5191 the format that they have been recorded in. If you cat them to
|
|
5192 @file{/dev/audio}, the header will be ignored and the default behavior
|
|
5193 for /dev/audio will be used. This happens to be 8kHz uLaw. It is
|
|
5194 probably possible to fix the header by piping through @code{sox} and
|
|
5195 passing explicit parameters for specifying the sampling format; you then
|
|
5196 need to perform a 'null' conversion from SunAudio to SunAudio.
|
|
5197 @end quotation
|
|
5198
|
|
5199 @node Q5.3.1, Q5.3.2, Q5.2.4, Miscellaneous
|
|
5200 @section How do you make XEmacs indent CL if-clauses correctly?
|
|
5201
|
|
5202 I'd like XEmacs to indent all the clauses of a Common Lisp @code{if} the
|
|
5203 same amount instead of indenting the 3rd clause differently from the
|
|
5204 first two.
|
70
|
5205
|
|
5206 One way is to add, to @file{.emacs}:
|
|
5207
|
82
|
5208 @lisp
|
70
|
5209 (put 'if 'lisp-indent-function nil)
|
82
|
5210 @end lisp
|
70
|
5211
|
|
5212 However, note that the package @file{cl-indent.el} that comes with
|
82
|
5213 XEmacs sets up this kind of indentation by default. @code{cl-indent}
|
|
5214 also knows about many other CL-specific forms. To use @code{cl-indent},
|
|
5215 one can do this:
|
|
5216
|
|
5217 @lisp
|
70
|
5218 (load "cl-indent")
|
|
5219 (setq lisp-indent-function (function common-lisp-indent-function))
|
82
|
5220 @end lisp
|
|
5221
|
|
5222 One can also customize @file{cl-indent.el} so it mimics the default
|
|
5223 @code{if} indentation @code{then} indented more than the @code{else}.
|
|
5224 Here's how:
|
|
5225
|
|
5226 @lisp
|
70
|
5227 (put 'if 'common-lisp-indent-function '(nil nil &body))
|
82
|
5228 @end lisp
|
70
|
5229
|
|
5230 Also, a new version (1.2) of @file{cl-indent.el} was posted to
|
82
|
5231 comp.emacs.xemacs on 12/9/94. This version includes more documentation
|
|
5232 than previous versions. This may prove useful if you need to customize
|
|
5233 any indent-functions.
|
|
5234
|
|
5235 @node Q5.3.2, Q5.3.3, Q5.3.1, Miscellaneous
|
|
5236 @section Fontifying hang when editing a postscript file.
|
|
5237
|
|
5238 When I try to edit a postscript file it gets stuck saying:
|
|
5239 @samp{fontifying 'filename' (regexps....)} and it just sits there. If I
|
|
5240 press @kbd{C-c} in the window where XEmacs was started, it suddenly
|
|
5241 becomes alive again.
|
70
|
5242
|
|
5243 This was caused by a bug in the Postscript font-lock regular
|
82
|
5244 expressions. It was fixed in 19.13. For earlier versions of XEmacs,
|
|
5245 have a look at your @file{.emacs} file. You will probably have a line
|
|
5246 like:
|
|
5247
|
|
5248 @lisp
|
70
|
5249 (add-hook 'postscript-mode-hook 'turn-on-font-lock)
|
82
|
5250 @end lisp
|
|
5251
|
|
5252 Take it out, restart XEmacs, and it won't try to fontify your postscript
|
|
5253 files anymore.
|
|
5254
|
|
5255 @node Q5.3.3, Q5.3.4, Q5.3.2, Miscellaneous
|
|
5256 @section How can I print WYSIWYG a font-locked buffer?
|
|
5257
|
|
5258 Font-lock looks nice. How can I print (WYSIWYG) the highlighted
|
|
5259 document?
|
|
5260
|
|
5261 The package @file{ps-print.el}, which is now included with XEmacs,
|
|
5262 provides the ability to do this. The source code contains complete
|
|
5263 instructions on its use, in
|
|
5264 @file{<xemacs_src_root>/lisp/packages/ps-print.el}.
|
|
5265
|
|
5266 @node Q5.3.4, Q5.3.5, Q5.3.3, Miscellaneous
|
|
5267 @section Getting @kbd{M-x lpr} to work with postscript printer.
|
|
5268
|
|
5269 My printer is a Postscript printer and @code{lpr} only works for
|
|
5270 Postscript files, so how do I get @kbd{M-x lpr-region} and @kbd{M-x
|
|
5271 lpr-buffer} to work?
|
|
5272
|
|
5273 Put something like this in your @file{.emacs}:
|
|
5274
|
|
5275 @lisp
|
|
5276 (setq lpr-command "a2ps")
|
|
5277 (setq lpr-switches '("-p" "-1"))
|
|
5278 @end lisp
|
|
5279
|
|
5280 If you don't use a2ps to convert ASCII to postscript (why not, it's
|
|
5281 free?), replace with the command you do use. Note also that some
|
|
5282 versions of a2ps require a @samp{-Pprinter} to ensure spooling.
|
|
5283
|
|
5284 @node Q5.3.5, Q5.3.6, Q5.3.4, Miscellaneous
|
|
5285 @section How do I specify the paths that XEmacs uses for finding files?
|
0
|
5286
|
|
5287 You can specify what paths to use by using a number of different flags
|
|
5288 when running configure. See the section MAKE VARIABLES in the top-level
|
|
5289 file INSTALL in the XEmacs distribution for a listing of those flags.
|
|
5290
|
82
|
5291 Most of the time, however, the simplest fix is: @strong{do not} specify
|
|
5292 paths as you might for GNU Emacs. XEmacs can generally determine the
|
0
|
5293 necessary paths dynamically at run time. The only path that generally
|
|
5294 needs to be specified is the root directory to install into. That can
|
|
5295 be specified by passing the @code{--prefix} flag to configure. For a
|
82
|
5296 description of the XEmacs install tree, please consult the @file{NEWS}
|
|
5297 file.
|
|
5298
|
|
5299 @node Q5.3.6, Q5.3.7, Q5.3.5, Miscellaneous
|
|
5300 @section [This question intentionally left blank]
|
|
5301
|
|
5302 Obsolete question, left blank to avoid renumbering.
|
|
5303
|
|
5304 @node Q5.3.7, Q5.3.8, Q5.3.6, Miscellaneous
|
|
5305 @section Can I have the end of the buffer delimited in some way?
|
|
5306
|
163
|
5307 Say, with: @samp{[END]}?
|
|
5308
|
|
5309 Try this:
|
|
5310
|
|
5311 @lisp
|
|
5312 (let ((ext (make-extent (point-min) (point-max))))
|
|
5313 (set-extent-property ext 'start-closed t)
|
|
5314 (set-extent-property ext 'end-closed t)
|
|
5315 (set-extent-property ext 'detachable nil)
|
|
5316 (set-extent-end-glyph ext (make-glyph [string :data "[END]"])))
|
|
5317 @end lisp
|
|
5318
|
|
5319 Since this is XEmacs, you can specify an icon to be shown on
|
|
5320 window-system devices. To do so, change the @code{make-glyph} call to
|
|
5321 something like this:
|
|
5322
|
|
5323 @lisp
|
|
5324 (make-glyph '([xpm :file "~/something.xpm"]
|
|
5325 [string :data "[END]"]))
|
|
5326 @end lisp
|
|
5327
|
|
5328 You can inline the @sc{xpm} definition yourself by specifying
|
|
5329 @code{:data} instead of @code{:file}. Here is such a full-featured
|
|
5330 version that works on both X and TTY devices:
|
82
|
5331
|
|
5332 @lisp
|
163
|
5333 (let ((ext (make-extent (point-min) (point-max))))
|
|
5334 (set-extent-property ext 'start-closed t)
|
|
5335 (set-extent-property ext 'end-closed t)
|
|
5336 (set-extent-property ext 'detachable nil)
|
|
5337 (set-extent-end-glyph ext (make-glyph '([xpm :data "\
|
|
5338 /* XPM */
|
|
5339 static char* eye = @{
|
|
5340 \"20 11 7 2\",
|
|
5341 \"__ c None\"
|
|
5342 \"_` c #7f7f7f\",
|
|
5343 \"_a c #fefefe\",
|
|
5344 \"_b c #7f0000\",
|
|
5345 \"_c c #fefe00\",
|
|
5346 \"_d c #fe0000\",
|
|
5347 \"_e c #bfbfbf\",
|
|
5348 \"___________`_`_`___b_b_b_b_________`____\",
|
|
5349 \"_________`_`_`___b_c_c_c_b_b____________\",
|
|
5350 \"_____`_`_`_e___b_b_c_c_c___b___b_______`\",
|
|
5351 \"___`_`_e_a___b_b_d___b___b___b___b______\",
|
|
5352 \"_`_`_e_a_e___b_b_d_b___b___b___b___b____\",
|
|
5353 \"_`_`_a_e_a___b_b_d___b___b___b___b___b__\",
|
|
5354 \"_`_`_e_a_e___b_b_d_b___b___b___b___b_b__\",
|
|
5355 \"___`_`_e_a___b_b_b_d_c___b___b___d_b____\",
|
|
5356 \"_____`_`_e_e___b_b_b_d_c___b_b_d_b______\",
|
|
5357 \"_`_____`_`_`_`___b_b_b_d_d_d_d_b________\",
|
|
5358 \"___`_____`_`_`_`___b_b_b_b_b_b__________\",
|
|
5359 @} ;"]
|
|
5360 [string :data "[END]"]))))
|
82
|
5361 @end lisp
|
|
5362
|
163
|
5363 Note that you might want to make this a function, and put it to a hook.
|
|
5364 We leave that as an excercise for the reader.
|
82
|
5365
|
|
5366 @node Q5.3.8, Q5.3.9, Q5.3.7, Miscellaneous
|
|
5367 @section How do I insert today's date into a buffer?
|
|
5368
|
|
5369 Like this:
|
|
5370
|
|
5371 @lisp
|
|
5372 (insert (current-time-string))
|
|
5373 @end lisp
|
|
5374
|
|
5375 @node Q5.3.9, Q5.3.10, Q5.3.8, Miscellaneous
|
|
5376 @section Are only certain syntactic character classes available for abbrevs?
|
|
5377
|
|
5378 Markus Gutschke <gutschk@@uni-muenster.de> writes:
|
|
5379
|
|
5380 @quotation
|
|
5381 Yes, abbrevs only expands word-syntax strings. While XEmacs does not
|
|
5382 prevent you from defining (e.g. with @kbd{C-x a g} or @kbd{C-x a l})
|
|
5383 abbrevs that contain special characters, it will refuse to expand
|
|
5384 them. So you need to ensure, that the abbreviation contains letters and
|
|
5385 digits only. This means that @samp{xd}, @samp{d5}, and @samp{5d} are
|
|
5386 valid abbrevs, but @samp{&d}, and @samp{x d} are not.
|
|
5387
|
|
5388 If this sounds confusing to you, (re-)read the online documentation for
|
|
5389 abbrevs (@kbd{C-h i m XEmacs RET m Abbrevs RET}), and then come back and
|
|
5390 read this question/answer again.
|
|
5391 @end quotation
|
|
5392
|
169
|
5393 Newsflash: this restriction has been lifted, starting with XEmacs 20.3,
|
|
5394 which is currently in beta. Hrvoje Niksic <hniksic@@srce.hr> will
|
|
5395 appreciate it if you download a beta, try out whether abbreviations work
|
|
5396 like you expect them to, and let him know.
|
163
|
5397
|
82
|
5398 @node Q5.3.10, Q5.3.11, Q5.3.9, Miscellaneous
|
|
5399 @section How can I get those oh-so-neat X-Face lines?
|
|
5400
|
|
5401 Firstly there is an ftp site which describes X-faces and has the
|
|
5402 associated tools mentioned below, at
|
|
5403 <URL:ftp://ftp.cs.indiana.edu:/pub/faces/>.
|
|
5404
|
|
5405 Then the steps are
|
|
5406
|
|
5407 @enumerate
|
|
5408 @item
|
|
5409 Create 48x48x1 bitmap with your favorite tool
|
|
5410
|
|
5411 @item
|
|
5412 Convert to "icon" format using one of xbm2ikon, pbmtoicon, etc.,
|
|
5413 and then compile the face.
|
|
5414
|
|
5415 @item
|
0
|
5416 @example
|
82
|
5417 cat file.xbm | xbm2ikon |compface > file.face
|
0
|
5418 @end example
|
|
5419
|
82
|
5420 @item
|
|
5421 Then be sure to quote things that are necessary for emacs strings:
|
0
|
5422
|
|
5423 @example
|
82
|
5424 cat ./file.face | sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g' > ./file.face.quoted
|
0
|
5425 @end example
|
|
5426
|
82
|
5427 @item
|
|
5428 Then set up emacs to include the file as a mail header - there were a
|
|
5429 couple of suggestions here---either something like:
|
|
5430
|
|
5431 @lisp
|
|
5432 (setq mail-default-headers
|
|
5433 "X-Face: <Ugly looking text string here>")
|
|
5434 @end lisp
|
|
5435
|
|
5436 Or, alternatively, as:
|
|
5437
|
|
5438 @lisp
|
|
5439 (defun mail-insert-x-face ()
|
|
5440 (save-excursion
|
|
5441 (goto-char (point-min))
|
|
5442 (search-forward mail-header-separator)
|
163
|
5443 (beginning-of-line)
|
82
|
5444 (insert "X-Face:")
|
163
|
5445 (insert-file-contents "~/.face")))
|
82
|
5446
|
|
5447 (add-hook 'mail-setup-hook 'mail-insert-x-face)
|
|
5448 @end lisp
|
|
5449 @end enumerate
|
|
5450
|
|
5451 However, 2 things might be wrong:
|
|
5452
|
|
5453 Some versions of pbmtoicon produces some header lines that is not
|
|
5454 expected by the version of compface that I grabbed. So I found I had to
|
|
5455 include a @code{tail +3} in the pipeline like this:
|
0
|
5456
|
|
5457 @example
|
82
|
5458 cat file.xbm | xbm2ikon | tail +3 |compface > file.face
|
0
|
5459 @end example
|
|
5460
|
82
|
5461 Some people have also found that if one uses the @code{(insert-file)}
|
|
5462 method, one should NOT quote the face string using the sed script .
|
|
5463
|
|
5464 It might also be helpful to use Stig's <stig@@hackvan.com> script
|
|
5465 (included in the compface distribution at XEmacs.org) to do the
|
|
5466 conversion. For convenience xbm2xface is available for anonymous FTP at
|
|
5467 <URL:ftp://ftp.miranova.com/pub/xemacs/xbm2xface.pl>.
|
|
5468
|
|
5469 Contributors for this item:
|
|
5470
|
|
5471 Paul Emsley,
|
|
5472 Ricardo Marek,
|
|
5473 Amir J. Katz,
|
|
5474 Glen McCort,
|
|
5475 Heinz Uphoff,
|
|
5476 Peter Arius,
|
|
5477 Paul Harrison, and
|
|
5478 Vegard Vesterheim
|
|
5479
|
|
5480 @node Q5.3.11, Q5.3.12, Q5.3.10, Miscellaneous
|
|
5481 @section How do I add new Info directories?
|
|
5482
|
|
5483 You use something like:
|
|
5484
|
|
5485 @lisp
|
|
5486 (setq Info-directory-list (cons
|
|
5487 (expand-file-name "~/info")
|
|
5488 Info-default-directory-list))
|
|
5489 @end lisp
|
|
5490
|
|
5491 David Masterson <davidm@@prism.kla.com> writes:
|
|
5492
|
|
5493 @quotation
|
|
5494 Emacs Info and XEmacs Info do many things differently. If you're trying to
|
|
5495 support a number of versions of Emacs, here are some notes to remember:
|
|
5496
|
|
5497 @enumerate
|
|
5498 @item
|
|
5499 Emacs Info scans @code{Info-directory-list} from right-to-left while
|
|
5500 XEmacs Info reads it from left-to-right, so append to the @emph{correct}
|
|
5501 end of the list.
|
|
5502
|
|
5503 @item
|
|
5504 Use @code{Info-default-directory-list} to initialize
|
|
5505 @code{Info-directory-list} @emph{if} it is available at startup, but not
|
|
5506 all Emacsen define it.
|
|
5507
|
|
5508 @item
|
|
5509 Emacs Info looks for a standard @file{dir} file in each of the
|
|
5510 directories scanned from #1 and magically concatenates them together.
|
|
5511
|
|
5512 @item
|
|
5513 XEmacs Info looks for a @file{localdir} file (which consists of just the
|
|
5514 menu entries from a @file{dir} file) in each of the directories scanned
|
|
5515 from #1 (except the first), does a simple concatentation of them, and
|
|
5516 magically attaches the resulting list to the end of the menu in the
|
|
5517 @file{dir} file in the first directory.
|
|
5518 @end enumerate
|
|
5519
|
|
5520 Another alternative is to convert the documentation to HTML with
|
|
5521 texi2html and read it from a web browser like Lynx or W3.
|
|
5522 @end quotation
|
|
5523
|
|
5524 @node Q5.3.12, , Q5.3.11, Miscellaneous
|
|
5525 @section What do I need to change to make printing work?
|
|
5526
|
|
5527 For regular printing there are two variables that can be customized.
|
|
5528
|
|
5529 @table @code
|
|
5530 @item lpr-command
|
|
5531 This should be set to a command that takes standard input and sends
|
|
5532 it to a printer. Something like:
|
|
5533
|
|
5534 @lisp
|
|
5535 (setq lpr-command "lp")
|
|
5536 @end lisp
|
|
5537
|
|
5538 @item lpr-switches
|
|
5539 This should be set to a list that contains whatever the print command
|
|
5540 requires to do its job. Something like:
|
|
5541
|
|
5542 @lisp
|
|
5543 (setq lpr-switches '("-depson"))
|
|
5544 @end lisp
|
|
5545 @end table
|
|
5546
|
|
5547 For postscript printing there are three analogous variables to
|
|
5548 customize.
|
|
5549
|
|
5550 @table @code
|
|
5551 @item ps-lpr-command
|
|
5552 This should be set to a command that takes postscript on standard input
|
|
5553 and directs it to a postscript printer.
|
|
5554
|
|
5555 @item ps-lpr-switches
|
|
5556 This should be set to a list of switches required for
|
|
5557 @code{ps-lpr-command} to do its job.
|
|
5558
|
|
5559 @item ps-print-color-p
|
|
5560 This boolean variable should be set @code{t} if printing will be done in
|
|
5561 color, otherwise it should be set to @code{nil}.
|
|
5562 @end table
|
|
5563
|
|
5564 NOTE: It is an undocumented limitation in XEmacs that postscript
|
|
5565 printing (the @code{Pretty Print Buffer} menu item) @strong{requires} a
|
|
5566 window system environment. It cannot be used outside of X11.
|
|
5567
|
|
5568 @node Current Events, , Miscellaneous, Top
|
|
5569 @chapter What the Future Holds
|
|
5570
|
|
5571 This is part 6 of the XEmacs Frequently Asked Questions list. This
|
|
5572 section will change monthly, and contains any interesting items that have
|
|
5573 transpired over the previous month. If you are reading this from the
|
|
5574 XEmacs distribution, please see the version on the Web or archived at the
|
|
5575 various FAQ FTP sites, as this file is surely out of date.
|
|
5576
|
|
5577 @menu
|
163
|
5578 * Q6.0.1:: What is new in 20.2?
|
|
5579 * Q6.0.2:: What is new in 20.3?
|
82
|
5580 * Q6.0.3:: Procedural changes in XEmacs development.
|
|
5581 @end menu
|
|
5582
|
163
|
5583 @node Q6.0.1, Q6.0.2, Current Events, Current Events
|
|
5584 @section What is new in 20.2?
|
|
5585
|
|
5586 The biggest changes in 20.2 include intergration of EFS (the next
|
|
5587 generation of ange-ftp) and AUC Tex (the Emacs subsystem that includes a
|
126
|
5588 major mode for editing Tex and LaTeX, and a lot of other stuff). Many
|
163
|
5589 bugs from 20.0 have been fixed for this release. 20.2 also contains a
|
|
5590 new system for customizing XEmacs options, invoked via @kbd{M-x
|
|
5591 customize}.
|
|
5592
|
|
5593 XEmacs 20.2 is the development release (20.0 was beta), and is no longer
|
|
5594 considered unstable.
|
|
5595
|
|
5596 @node Q6.0.2, Q6.0.3, Q6.0.1, Current Events
|
|
5597 @section What is new in 20.3?
|
|
5598
|
207
|
5599 XEmacs release 20.3 is planned for november 1997. It will contain many
|
|
5600 bugfixes, and a number of new features, including Autoconf 2 based
|
|
5601 configuration, multiple TTY frames, further customizations, synches with
|
|
5602 GNU Emacs 20, advanced Perl-like regexp features, and more.
|
163
|
5603
|
|
5604 @node Q6.0.3, , Q6.0.2, Current Events
|
82
|
5605 @section Procedural changes in XEmacs development.
|
|
5606
|
|
5607 @enumerate
|
|
5608 @item
|
|
5609 Discussion about the development of XEmacs occurs on the xemacs-beta
|
|
5610 mailing list. Subscriptions to this list will now be fully automated
|
|
5611 instead of being handled by hand. Send a mail message to
|
|
5612 <xemacs-beta-request@@xemacs.org> with a subject of subscribe to join
|
|
5613 the list. Please note this is a developers mailing list for people who
|
|
5614 have an active interest in the development process.
|
|
5615
|
|
5616 @item
|
|
5617 Due to the long development cycle in between releases, it has been
|
|
5618 decided that intermediate versions will be made available in source only
|
|
5619 form for the truly interested.
|
|
5620
|
207
|
5621 XEmacs 19.16 will be the last 19 release, basically consisting of 19.15
|
|
5622 plus the collected bugfixes.
|
82
|
5623
|
|
5624 @item
|
|
5625 As of December 1996, Steve Baur <steve@@altair.xemacs.org> has become
|
|
5626 the lead maintainer of XEmacs.
|
163
|
5627 @end enumerate
|
82
|
5628
|
0
|
5629 @bye
|