Mercurial > hg > xemacs-beta
annotate man/xemacs-faq.texi @ 4980:931aaa7a6b37
Martin Buchholz claims tests/frame.el.
author | Jerry James <james@xemacs.org> |
---|---|
date | Fri, 05 Feb 2010 10:50:06 -0700 |
parents | 755ae5b97edb |
children | b7232de2a937 |
rev | line source |
---|---|
442 | 1 \input texinfo.tex @c -*- mode: texinfo; coding: iso-2022-8 -*- |
428 | 2 @c %**start of header |
3 @setfilename ../info/xemacs-faq.info | |
4 @settitle Frequently asked questions about XEmacs | |
5 @setchapternewpage off | |
6 @c %**end of header | |
7 @finalout | |
8 @titlepage | |
9 @title XEmacs FAQ | |
3404 | 10 @subtitle Frequently asked questions about XEmacs @* Last Modified: $Date: 2006/05/16 15:36:16 $ |
428 | 11 @sp 1 |
2417 | 12 @author Ben Wing <ben@@xemacs.org> |
1869 | 13 @author Tony Rossini <rossini@@u.washington.edu> |
428 | 14 @author Chuck Thompson <cthomp@@xemacs.org> |
15 @author Steve Baur <steve@@xemacs.org> | |
16 @author Andreas Kaempf <andreas@@sccon.com> | |
17 @author Christian Nyb@o{} <chr@@mediascience.no> | |
434 | 18 @author Sandra Wambold <wambold@@xemacs.org> |
428 | 19 @page |
20 @end titlepage | |
21 | |
22 @ifinfo | |
23 @dircategory XEmacs Editor | |
24 @direntry | |
440 | 25 * FAQ: (xemacs-faq). XEmacs FAQ. |
428 | 26 @end direntry |
27 @end ifinfo | |
28 | |
2417 | 29 @ignore |
30 ***************************************** | |
31 ***** To update the menus and nodes ***** | |
32 ***************************************** | |
33 | |
34 First, the first argument to @node (the name itself) needs to be correct. | |
35 Use a macro if necessary to update the @node names from the | |
36 @unnumberedsubsec commands. Also note that the command we're about to | |
37 run will not correctly fix up the part of the menu to the right of a ::. | |
38 It will leave existing text in place but not change anything. If you | |
39 make a lot of changes and want to update this semi-automatically, use | |
40 M-x occur to pick out all @unnumberedsubsec lines then do some editing | |
41 magic to coerce them into the right format and cut and paste as necessary: | |
42 | |
43 1. M-x occur @unnumberedsubsec | |
44 2. <select a rectangle including all text before the Q#.#.#> | |
45 3. C-x r t *<space> | |
46 4. go to the top and use the following macro to get the indentation right. | |
47 | |
48 (setq last-kbd-macro (read-kbd-macro | |
49 "C-s : RET : <right> M-x indent- to- column RET 14 RET <home> <down>")) | |
50 | |
51 5. Cut and paste the menus into the detailmenu at the top and | |
52 individual menus at the top of the appropriate chapters. (#### I | |
53 wonder, does texinfo-master-menu generate the detailmenu from the | |
54 individual menus or vice-versa or neither?) | |
55 | |
56 Then, | |
57 | |
2559 | 58 6. C-u C-c C-u m (C-u M-x texinfo-master-menu) will update the menus |
2417 | 59 and nodes. However, it appears that even though it tries to |
60 preserve the existing menu structure as much as possible, it | |
61 doesn't do a perfect job. It messes up in at least two ways: The | |
62 indentation in the part of the main menu above the detailmenu will | |
63 be screwed up, and the #.0 titles will be removed from both the | |
64 detailmenu and the individual chapter menus. In addition, | |
65 sometimes random things get screwed up in individual parts of the | |
66 menus. Therefore: | |
67 | |
2559 | 68 1. Use the Lisp line below to get the spacing correct for the Q#.#.# |
69 menu entries. | |
70 | |
71 (set (make-local-variable 'texinfo-column-for-description) 14) | |
72 | |
73 2. Copy the whole detailmenu beforehand. | |
74 3. Run C-u C-c C-u m to fix up the nodes. | |
75 4. Run `fix-main-menu' and `fix-omitted-menu-lines'. | |
76 5. Check the new detailmenu carefully to see if anything is screwed up | |
2417 | 77 compared to the old detailmenu you copied. |
2559 | 78 6. If so, paste back the appropriate sections and fix up the corresponding |
2417 | 79 part of the chapter-specific menu. |
80 | |
81 (defun fix-main-menu () | |
82 (interactive) | |
83 (save-restriction | |
84 (let (p q) | |
2559 | 85 (goto-char (point-min)) |
86 (re-search-forward "^@menu") | |
2417 | 87 (setq p (match-beginning 0)) |
88 (re-search-forward "^$") | |
89 (setq q (match-end 0)) | |
90 (narrow-to-region p q) | |
91 (goto-char p) | |
92 (while (search-forward ":: " nil t) | |
93 (indent-to-column 26))))) | |
94 | |
95 (defun fix-omitted-menu-lines () | |
96 (interactive) | |
97 (save-excursion | |
2559 | 98 (loop for x from 1 to 10 do |
2417 | 99 (goto-char (point-min)) |
100 (re-search-forward (format "@unnumberedsec \\(%d.0: .*\\)" x)) | |
101 (let ((line (match-string 1))) | |
2559 | 102 (re-search-backward "^@menu") |
2417 | 103 (forward-line 1) |
2559 | 104 (unless (looking-at "[0-9]+.0:") |
2417 | 105 (insert line) |
106 (insert "\n")) | |
107 (goto-char (point-min)) | |
2559 | 108 (re-search-forward "^@menu") |
2417 | 109 (search-forward (format "Q%d.0.1:" x)) |
110 (forward-line -1) | |
2559 | 111 (unless (looking-at "[0-9]+.0:") |
112 (insert "\n") | |
113 (insert line)))))) | |
2417 | 114 |
115 ***************************************** | |
116 ***** Other work ***** | |
117 ***************************************** | |
118 | |
119 When you've rearranged and renumbered a bunch of nodes, you can get | |
120 the numbers agreeing again. The macro below assumes that the | |
121 unnumberedsubsec number is correct, and fixes up the node to agree. | |
122 Only the first part of the node is fixed and the other parts may still | |
123 be wrong; but they will be fixed as part of | |
124 @code{texinfo-master-menu}. | |
125 | |
126 (setq last-kbd-macro (read-kbd-macro | |
127 "<f1> unnumberedsubsec SPC RET C-s : RET <left> C-x C-x <f3> <home> <up> <C-right> <right> C-s , RET <left> C-x C-x <f4> <home> 2*<down>")) | |
128 @end ignore | |
129 | |
130 | |
428 | 131 @node Top, Introduction, (dir), (dir) |
132 @top XEmacs FAQ | |
133 | |
134 This is the guide to the XEmacs Frequently Asked Questions list---a | |
135 compendium of questions and answers pertaining to one of the finest | |
442 | 136 programs ever written. XEmacs is much more than just a Text Editor. |
137 | |
138 This FAQ is freely redistributable. This FAQ is distributed in the hope | |
139 that it will be useful, but WITHOUT ANY WARRANTY; without even the | |
140 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
428 | 141 |
142 If you have a Web browser, the official hypertext version is at | |
143 @iftex | |
144 @* | |
145 @end iftex | |
1143 | 146 @uref{http://www.xemacs.org/FAQ/xemacs-faq.html} |
428 | 147 |
148 @ifset CANONICAL | |
149 @html | |
150 This document is available in several different formats: | |
151 @itemize @bullet | |
152 @item | |
153 @uref{xemacs-faq.txt, As a single ASCII file}, produced by | |
154 @code{makeinfo --no-headers} | |
155 @item | |
156 @uref{xemacs-faq.dvi, As a .dvi file}, as used with | |
157 @uref{http://www.tug.org, TeX.} | |
158 @item | |
159 As a PostScript file @uref{xemacs-faq-a4.ps, in A4 format}, | |
160 as well as in @uref{xemacs-faq-letter.ps, letter format} | |
161 @item | |
162 In html format, @uref{xemacs-faq_1.html, split by chapter}, or in | |
163 @uref{xemacs-faq.html, one monolithic} document. | |
164 @item | |
165 The canonical version of the FAQ is the texinfo document | |
166 @uref{xemacs-faq.texi, man/xemacs-faq.texi}. | |
167 @item | |
168 If you do not have makeinfo installed, you may @uref{xemacs-faq.info, | |
169 download the faq} in info format, and install it in @file{<XEmacs | |
170 library directory>/info/}. For example in | |
462 | 171 @file{/usr/local/lib/xemacs-21.4/info/}. |
428 | 172 |
173 @end itemize | |
174 | |
175 @end html | |
176 | |
177 @end ifset | |
178 | |
179 @c end ifset points to CANONICAL | |
180 | |
181 @menu | |
2417 | 182 * Introduction:: Introduction, Policy, Credits. |
183 * Installation:: Installation and Troubleshooting. | |
2459 | 184 * Editing:: Editing Functions. |
185 * Display:: Display Functions. | |
2417 | 186 * External Subsystems:: Interfacing with the OS and External Devices. |
187 * Internet:: Connecting to the Internet. | |
188 * Advanced:: Advanced Customization Using XEmacs Lisp. | |
2459 | 189 * Other Packages:: Other External Packages. |
2417 | 190 * Current Events:: What the Future Holds. |
191 * Legacy Versions:: New information about old XEmacsen. | |
428 | 192 |
193 @detailmenu | |
194 --- The Detailed Node Listing --- | |
195 | |
2417 | 196 1 Introduction, Policy, Credits |
197 | |
2537 | 198 1.0: What is XEmacs? |
2417 | 199 * Q1.0.1:: What is XEmacs? |
200 * Q1.0.2:: What is the current version of XEmacs? | |
2537 | 201 * Q1.0.3:: How do you pronounce XEmacs? |
202 * Q1.0.4:: What does XEmacs look like? | |
203 * Q1.0.5:: Who wrote XEmacs? | |
204 * Q1.0.6:: Who wrote the FAQ? | |
205 | |
206 1.1: Getting XEmacs | |
207 * Q1.1.1:: Where can I find XEmacs? | |
208 * Q1.1.2:: Are binaries available? | |
209 * Q1.1.3:: How do I get the bleeding-edge sources? | |
210 * Q1.1.4:: Where can I obtain a printed copy of the XEmacs User's Manual? | |
211 | |
212 1.2: Versions for Different Operating Systems | |
213 * Q1.2.1:: Do I need X11 to run XEmacs? | |
214 * Q1.2.2:: What versions of Unix does XEmacs run on? | |
215 * Q1.2.3:: Is there a port of XEmacs to Microsoft Windows? | |
216 * Q1.2.4:: Can I build XEmacs on MS Windows with X support? Do I need to? | |
217 * Q1.2.5:: What are Cygwin and MinGW, and do I need them to run XEmacs? | |
218 * Q1.2.6:: What are the differences between the various MS Windows emacsen? | |
219 * Q1.2.7:: How does the port cope with differences in the Windows user interface? | |
220 * Q1.2.8:: Is there a port of XEmacs to the Macintosh? | |
221 * Q1.2.9:: Is there a port of XEmacs to MS-DOS? | |
222 * Q1.2.10:: Is there a port of XEmacs to OS/2? | |
223 * Q1.2.11:: Is there a port of XEmacs to NextStep? | |
224 * Q1.2.12:: Is there a port of XEmacs to VMS? | |
225 | |
226 1.3: Getting Started | |
227 * Q1.3.1:: What is an @file{init.el} or @file{.emacs} and is there a sample one? | |
228 * Q1.3.2:: Where do I put my @file{init.el} file? | |
229 * Q1.3.3:: Can I use the same @file{init.el} with the other Emacs? | |
230 * Q1.3.4:: Any good XEmacs tutorials around? | |
231 * Q1.3.5:: May I see an example of a useful XEmacs Lisp function? | |
232 * Q1.3.6:: And how do I bind it to a key? | |
233 * Q1.3.7:: What's the difference between a macro and a function? | |
234 * Q1.3.8:: What is @code{Custom}? | |
235 | |
236 1.4: Getting Help | |
237 * Q1.4.1:: Where can I get help? | |
238 * Q1.4.2:: Which mailing lists are there? | |
2559 | 239 * Q1.4.3:: Where are the mailing lists archived? |
240 * Q1.4.4:: How can I get two instances of info? | |
241 * Q1.4.5:: How do I add new Info directories? | |
2537 | 242 |
243 1.5: Contributing to XEmacs | |
244 * Q1.5.1:: How do I submit changes to the FAQ? | |
245 * Q1.5.2:: How do I become a beta tester? | |
246 * Q1.5.3:: How do I contribute to XEmacs itself? | |
2559 | 247 * Q1.5.4:: How do I get started developing XEmacs? |
248 * Q1.5.5:: What's the basic layout of the code? | |
2537 | 249 |
250 1.6: Politics (XEmacs vs. GNU Emacs) | |
251 * Q1.6.1:: What is GNU Emacs? | |
252 * Q1.6.2:: How does XEmacs differ from GNU Emacs? | |
253 * Q1.6.3:: How much does XEmacs differ? | |
254 * Q1.6.4:: Is XEmacs "GNU"? | |
255 * Q1.6.5:: What is the correct way to refer to XEmacs and GNU Emacs? | |
256 * Q1.6.6:: Why haven't XEmacs and GNU Emacs merged? | |
257 | |
258 1.7: External Packages | |
2559 | 259 * Q1.7.1:: What is the package system? |
260 * Q1.7.2:: Which external packages are there? | |
261 * Q1.7.3:: Do I need to have the packages to run XEmacs? | |
262 * Q1.7.4:: Is there a way to find which package has particular functionality? | |
2537 | 263 |
264 1.8: Internationalization | |
265 * Q1.8.1:: What is the status of internationalization support aka MULE (including Asian language support)? | |
266 * Q1.8.2:: How can I help with internationalization? | |
267 * Q1.8.3:: How do I type non-ASCII characters? | |
268 * Q1.8.4:: Can XEmacs messages come out in a different language? | |
269 * Q1.8.5:: Please explain the various input methods in MULE/XEmacs | |
270 * Q1.8.6:: How do I portably code for MULE/XEmacs? | |
271 * Q1.8.7:: How about Cyrillic modes? | |
272 * Q1.8.8:: Does XEmacs support Unicode? | |
273 * Q1.8.9:: How does XEmacs display Unicode? | |
2417 | 274 |
275 2 Installation and Troubleshooting | |
276 | |
2559 | 277 2.0: Installation (General) |
278 * Q2.0.1:: How do I build and install XEmacs? | |
279 * Q2.0.2:: Where do I find external libraries? | |
280 * Q2.0.3:: How do I specify the paths that XEmacs uses for finding files? | |
281 * Q2.0.4:: Running XEmacs without installing | |
282 * Q2.0.5:: XEmacs is too big | |
283 | |
284 2.1: Package Installation | |
285 * Q2.1.1:: How do I install the packages? | |
286 * Q2.1.2:: Can I install the packages individually? | |
287 * Q2.1.3:: Can I install the packages automatically? | |
288 * Q2.1.4:: Can I upgrade or remove packages? | |
289 * Q2.1.5:: Which packages to install? | |
290 * Q2.1.6:: Can you describe the package location process in more detail? | |
291 * Q2.1.7:: EFS fails with "500 AUTH not understood" | |
292 | |
293 2.2: Unix/Mac OS X Installation (Also Relevant to Cygwin, MinGW) | |
294 * Q2.2.1:: Libraries in non-standard locations | |
295 * Q2.2.2:: Why can't I strip XEmacs? | |
3404 | 296 * Q2.2.3:: X11/bitmaps/gray (or other X11-related file) not found. |
2559 | 297 |
298 2.3: Windows Installation (Windows, Cygwin, MinGW) | |
299 * Q2.3.1:: What exactly are all the different ways to build XEmacs under Windows? | |
300 * Q2.3.2:: What compiler/libraries do I need to compile XEmacs? | |
301 * Q2.3.3:: How do I compile the native port? | |
302 * Q2.3.4:: What do I need for Cygwin? | |
303 * Q2.3.5:: How do I compile under Cygwin? | |
304 * Q2.3.6:: How do I compile using MinGW (aka @samp{the -mno-cygwin flag to gcc})? | |
305 * Q2.3.7:: How do I compile with X support? | |
306 * Q2.3.8:: Cygwin XEmacs won't start -- cygXpm-noX4.dll was not found (NEW) | |
307 | |
308 2.4: General Troubleshooting | |
309 * Q2.4.1:: How do I deal with bugs or with problems building, installing, or running? | |
310 * Q2.4.2:: Help! XEmacs just crashed on me! | |
311 * Q2.4.3:: XEmacs crashes and I compiled it myself. | |
312 * Q2.4.4:: How to debug an XEmacs problem with a debugger | |
313 * Q2.4.5:: I get a cryptic error message when trying to do something. | |
314 * Q2.4.6:: XEmacs hangs when I try to do something. | |
315 * Q2.4.7:: I get an error message when XEmacs is running in batch mode. | |
316 * Q2.4.8:: The keyboard or mouse is not working properly, or I have some other event-related problem. | |
317 * Q2.4.9:: @kbd{C-g} doesn't work for me. Is it broken? | |
318 * Q2.4.10:: How do I debug process-related problems? | |
319 * Q2.4.11:: XEmacs is outputting lots of X errors. | |
320 * Q2.4.12:: After upgrading, XEmacs won't do `foo' any more! | |
321 | |
322 2.5: Startup-Related Problems | |
323 * Q2.5.1:: XEmacs cannot connect to my X Terminal! | |
324 * Q2.5.2:: Startup problems related to paths or package locations. | |
4658
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
325 * Q2.5.3:: XEmacs won't start without network, or starts slowly. |
2559 | 326 * Q2.5.4:: Startup warnings about deducing proper fonts? |
327 * Q2.5.5:: Warnings from incorrect key modifiers. | |
328 * Q2.5.6:: XEmacs 21.1 on Windows used to spawn an ugly console window on every startup. Has that been fixed? | |
2417 | 329 |
2459 | 330 3 Editing Functions |
2417 | 331 |
332 3.0: The Keyboard | |
2459 | 333 * Q3.0.1:: How can I customize the keyboard? |
334 * Q3.0.2:: How can I bind complex functions (or macros) to keys? | |
335 * Q3.0.3:: How do I bind C-. and C-; to scroll one line up and down? | |
336 * Q3.0.4:: Globally binding @kbd{Delete}? | |
337 * Q3.0.5:: How to map @kbd{Help} key alone on Sun type4 keyboard? | |
338 * Q3.0.6:: How can you type in special characters in XEmacs? | |
339 * Q3.0.7:: Can I turn on @dfn{sticky} modifier keys? | |
340 * Q3.0.8:: How do I map the arrow keys? | |
341 * Q3.0.9:: HP Alt key as Meta. | |
342 * Q3.0.10:: Why does edt emulation not work? | |
343 * Q3.0.11:: How can I emulate VI and use it as my default mode? | |
4625
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
344 * Q3.0.12:: Mac Alt/Option key as Meta. |
2417 | 345 |
346 3.1: The Mouse | |
347 * Q3.1.1:: How can I turn off Mouse pasting? | |
348 * Q3.1.2:: How do I set control/meta/etc modifiers on mouse buttons? | |
349 * Q3.1.3:: Clicking the left button does not do anything in buffer list. | |
350 * Q3.1.4:: How can I get a list of buffers when I hit mouse button 3? | |
2459 | 351 * Q3.1.5:: How can I set XEmacs up so that it pastes where the text cursor is? |
352 | |
353 3.2: Buffers, Text Editing | |
354 * Q3.2.1:: Can I have the end of the buffer delimited in some way? | |
355 * Q3.2.2:: How do I insert today's date into a buffer? | |
356 * Q3.2.3:: How do I get a single minibuffer frame? | |
357 * Q3.2.4:: How can I enable auto-indent and/or Filladapt? | |
358 * Q3.2.5:: How can I get XEmacs to come up in text/auto-fill mode by default? | |
359 | |
360 3.3: Text Selections | |
361 * Q3.3.1:: How do I select a rectangular region? | |
362 * Q3.3.2:: How can I turn off or change highlighted selections? | |
363 * Q3.3.3:: How do I cause typing on an active region to remove it? | |
364 * Q3.3.4:: Can I turn off the highlight during isearch? | |
365 * Q3.3.5:: Why is killing so slow? | |
366 * Q3.3.6:: Why does @kbd{M-w} take so long? | |
367 | |
368 3.4: Editing Source Code | |
369 * Q3.4.1:: I do not like cc-mode. How do I use the old c-mode? | |
370 * Q3.4.2:: How do you make XEmacs indent CL if-clauses correctly? | |
371 | |
372 4 Display Functions | |
373 | |
374 4.0: Textual Fonts and Colors | |
375 * Q4.0.1:: How do I specify a font? | |
376 * Q4.0.2:: How do I set the text, menu and modeline fonts? | |
377 * Q4.0.3:: How can I set color options from @file{init.el}? | |
378 * Q4.0.4:: How can I set the colors when highlighting a region? | |
379 * Q4.0.5:: How can I limit color map usage? | |
380 * Q4.0.6:: My tty supports color, but XEmacs doesn't use them. | |
381 * Q4.0.7:: Can I have pixmap backgrounds in XEmacs? | |
382 * Q4.0.8:: How do I display non-ASCII characters? | |
383 * Q4.0.9:: Font selections in don't get saved after @code{Save Options}. | |
384 | |
385 4.1: Syntax Highlighting (Font Lock) | |
386 * Q4.1.1:: How can I do source code highlighting using font-lock? | |
387 * Q4.1.2:: How do I get @samp{More} Syntax Highlighting on by default? | |
388 | |
389 4.2: The Modeline | |
390 * Q4.2.1:: How can I make the modeline go away? | |
391 * Q4.2.2:: How do you have XEmacs display the line number in the modeline? | |
392 * Q4.2.3:: How do I get XEmacs to put the time of day on the modeline? | |
393 * Q4.2.4:: How can I change the modeline color based on the mode used? | |
394 | |
395 4.3: The Cursor | |
396 * Q4.3.1:: Is there a way to make the bar cursor thicker? | |
397 * Q4.3.2:: Is there a way to get back the block cursor? | |
398 * Q4.3.3:: Can I make the cursor blink? | |
399 | |
400 4.4: The Menubar | |
401 * Q4.4.1:: How do I get rid of the menubar? | |
402 * Q4.4.2:: How can I customize the menubar? | |
403 * Q4.4.3:: How do I enable use of the keyboard (@kbd{Alt}) to access menu items? | |
404 * Q4.4.4:: How do I control how many buffers are listed in the menu @code{Buffers List}? | |
405 * Q4.4.5:: Resources like @code{Emacs*menubar*font} are not working? | |
406 | |
407 4.5: The Toolbar | |
408 * Q4.5.1:: How do I get rid of the toolbar? | |
409 * Q4.5.2:: How can I customize the toolbar? | |
410 * Q4.5.3:: How can I bind a key to a function to toggle the toolbar? | |
411 * Q4.5.4:: @samp{Can't instantiate image error...} in toolbar | |
412 | |
413 4.6: Scrollbars and Scrolling | |
414 * Q4.6.1:: How can I disable the scrollbar? | |
415 * Q4.6.2:: How can I change the scrollbar width? | |
416 * Q4.6.3:: How can I use resources to change scrollbar colors? | |
417 * Q4.6.4:: Moving the scrollbar can move the point; can I disable this? | |
418 * Q4.6.5:: Scrolling one line at a time. | |
419 * Q4.6.6:: How can I turn off automatic horizontal scrolling in specific modes? | |
420 * Q4.6.7:: I find auto-show-mode disconcerting. How do I turn it off? | |
421 | |
422 4.7: The Gutter Tabs, The Progress Bar, Widgets | |
423 * Q4.7.1:: How can I disable the gutter tabs? | |
424 * Q4.7.2:: How can I disable the progress bar? | |
425 * Q4.7.3:: There are bugs in the gutter or widgets. | |
426 * Q4.7.4:: How can I customize the gutter or gutter tabs? | |
427 | |
428 5 Interfacing with the Operating System and External Devices | |
429 | |
430 5.0: X Window System and Resources | |
431 * Q5.0.1:: Where is a list of X resources? | |
432 * Q5.0.2:: How can I detect a color display? | |
433 * Q5.0.3:: How can I get the icon to just say @samp{XEmacs}? | |
434 * Q5.0.4:: How can I have the window title area display the full path? | |
435 * Q5.0.5:: @samp{xemacs -name junk} doesn't work? | |
436 * Q5.0.6:: @samp{-iconic} doesn't work. | |
4505
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
437 * Q5.0.7:: How can I use antialiased fonts under X11? |
2459 | 438 |
439 5.1: Microsoft Windows | |
440 * Q5.1.1:: Does XEmacs rename all the @samp{win32-*} symbols to @samp{w32-*}? | |
441 * Q5.1.2:: How do I get Windows Explorer to associate a file type with XEmacs? | |
442 | |
443 5.2: Printing | |
444 * Q5.2.1:: What do I need to change to make printing work? | |
445 * Q5.2.2:: How can I print WYSIWYG a font-locked buffer? | |
446 * Q5.2.3:: Getting @kbd{M-x lpr} to work with postscript printer. | |
447 * Q5.2.4:: Can you print under MS Windows? | |
448 | |
449 5.3: Sound | |
450 * Q5.3.1:: How do I turn off the sound? | |
451 * Q5.3.2:: How do I get funky sounds instead of a boring beep? | |
452 * Q5.3.3:: What are NAS and ESD (EsounD)? | |
453 * Q5.3.4:: Sunsite sounds don't play. | |
454 | |
455 5.4: Running an Interior Shell, Invoking Subprocesses | |
456 * Q5.4.1:: What is an interior shell? | |
457 * Q5.4.2:: How do I start up a second shell buffer? | |
458 * Q5.4.3:: Telnet from shell filters too much | |
459 * Q5.4.4:: Strange things are happening in Shell Mode. | |
460 * Q5.4.5:: XEmacs complains "No such file or directory, diff" | |
2995 | 461 * Q5.4.6:: Cygwin error "fork_copy: linked dll/bss pass 0 failed" |
2459 | 462 |
463 5.5: Multiple Device Support | |
464 * Q5.5.1:: How do I open a frame on another screen of my multi-headed display? | |
465 * Q5.5.2:: Can I really connect to a running XEmacs after calling up over a modem? How? | |
466 * Q5.5.3:: How do I disable gnuserv from opening a new frame? | |
467 * Q5.5.4:: How do I start gnuserv so that each subsequent XEmacs is a client? | |
468 * Q5.5.5:: Is there a way to start a new XEmacs if there's no gnuserv running, and otherwise use gnuclient? | |
469 | |
470 6 Connecting to the Internet | |
471 | |
472 6.0: General Mail and News | |
473 * Q6.0.1:: What are the various packages for reading mail? | |
474 * Q6.0.2:: How can I send mail? | |
475 * Q6.0.3:: How do I get my outgoing mail archived? | |
476 * Q6.0.4:: How can I read and/or compose MIME messages? | |
477 * Q6.0.5:: How do I customize the From line? | |
478 * Q6.0.6:: How do I get my MUA to filter mail for me? | |
479 * Q6.0.7:: Remote mail reading with an MUA. | |
480 * Q6.0.8:: An MUA gets an error incorporating new mail. | |
481 * Q6.0.9:: Why isn't @file{movemail} working? | |
482 * Q6.0.10:: How do I make my MUA display graphical smilies? | |
483 * Q6.0.11:: How can I get those oh-so-neat X-Face lines? | |
484 | |
485 6.1: Reading Mail with VM | |
486 * Q6.1.1:: How do I set up VM to retrieve mail from a remote site using POP? | |
487 * Q6.1.2:: How can I get VM to automatically check for new mail? | |
488 * Q6.1.3:: I have various addresses at which I receive mail. How can I tell VM to ignore them when doing a "reply-all"? | |
489 * Q6.1.4:: Is there a mailing list or FAQ for VM? | |
490 * Q6.1.5:: How do I make VM stay in a single frame? | |
491 * Q6.1.6:: Customization of VM not covered in the manual, or here. | |
492 | |
493 6.2: Reading Netnews and Mail with Gnus | |
494 * Q6.2.1:: GNUS, (ding) Gnus, Gnus 5, September Gnus, Red Gnus, Quassia Gnus, argh! | |
495 * Q6.2.2:: How do I make Gnus stay within a single frame? | |
496 | |
497 6.3: FTP Access | |
498 * Q6.3.1:: Can I edit files on other hosts? | |
499 * Q6.3.2:: What is EFS? | |
500 | |
501 6.4: Web Browsing with W3 | |
502 * Q6.4.1:: What is W3? | |
503 * Q6.4.2:: How do I run W3 from behind a firewall? | |
504 * Q6.4.3:: Is it true that W3 supports style sheets and tables? | |
505 | |
506 7 Advanced Customization Using XEmacs Lisp | |
507 | |
2537 | 508 7.0: Emacs Lisp and @file{init.el} |
509 * Q7.0.1:: What version of Emacs am I running? | |
510 * Q7.0.2:: How can I evaluate Emacs-Lisp expressions? | |
511 * Q7.0.3:: @code{(setq tab-width 6)} behaves oddly. | |
512 * Q7.0.4:: How can I add directories to the @code{load-path}? | |
513 * Q7.0.5:: How to check if a lisp function is defined? | |
514 * Q7.0.6:: Can I force the output of @code{(face-list)} to a buffer? | |
515 | |
516 7.1: Emacs Lisp Programming Techniques | |
517 * Q7.1.1:: What is the difference in key sequences between XEmacs and GNU Emacs? | |
518 * Q7.1.2:: Can I generate "fake" keyboard events? | |
519 * Q7.1.3:: Could you explain @code{read-kbd-macro} in more detail? | |
520 * Q7.1.4:: What is the performance hit of @code{let}? | |
521 * Q7.1.5:: What is the recommended use of @code{setq}? | |
522 * Q7.1.6:: What is the typical misuse of @code{setq}? | |
523 * Q7.1.7:: I like the @code{do} form of cl, does it slow things down? | |
524 * Q7.1.8:: I like recursion, does it slow things down? | |
525 * Q7.1.9:: How do I put a glyph as annotation in a buffer? | |
526 * Q7.1.10:: @code{map-extents} won't traverse all of my extents! | |
527 * Q7.1.11:: My elisp program is horribly slow. Is there an easy way to find out where it spends time? | |
528 | |
529 7.2: Mathematics | |
2559 | 530 * Q7.2.1:: What are bignums, ratios, and bigfloats in Lisp? |
531 * Q7.2.2:: XEmacs segfaults when I use very big numbers! | |
532 * Q7.2.3:: Bignums are really slow! | |
533 * Q7.2.4:: Equal bignums don't compare as equal! What gives? | |
2459 | 534 |
535 8 Other External Packages | |
536 | |
537 8.0: TeX | |
538 * Q8.0.1:: Is there something better than LaTeX mode? | |
539 * Q8.0.2:: What is AUCTeX? Where do you get it? | |
540 * Q8.0.3:: Problems installing AUCTeX. | |
541 * Q8.0.4:: How do I turn off current chapter from AUCTeX modeline? | |
542 | |
543 8.1: Other Unbundled Packages | |
544 * Q8.1.1:: Is there a reason for an Emacs package not to be included in XEmacs? | |
545 * Q8.1.2:: Are there any Emacs Lisp Spreadsheets? | |
546 * Q8.1.3:: Is there a MatLab mode? | |
547 | |
548 8.2: Environments Built Around XEmacs | |
549 * Q8.2.1:: What are SPARCworks, EOS, and WorkShop? | |
550 * Q8.2.2:: How do I start the Sun Workshop support in XEmacs 21? | |
551 * Q8.2.3:: What is/was Energize? | |
552 * Q8.2.4:: What is Infodock? | |
553 | |
554 9 What the Future Holds | |
555 | |
556 9.0: Changes | |
557 * Q9.0.1:: What new features will be in XEmacs soon? | |
558 * Q9.0.2:: What's new in XEmacs 21.4? | |
559 * Q9.0.3:: What's new in XEmacs 21.1? | |
560 * Q9.0.4:: What's new in XEmacs 20.4? | |
561 * Q9.0.5:: What's new in XEmacs 20.3? | |
562 * Q9.0.6:: What's new in XEmacs 20.2? | |
563 | |
564 10 New information about old XEmacsen | |
565 | |
566 10.0: XEmacs 21.1 | |
567 * Q10.0.1:: Gnus 5.10 won't display smileys in XEmacs 21.1. | |
2559 | 568 * Q10.0.2:: XEmacs won't start on Windows in XEmacs 21.1. |
569 | |
428 | 570 @end detailmenu |
571 @end menu | |
572 | |
573 @node Introduction, Installation, Top, Top | |
574 @unnumbered 1 Introduction, Policy, Credits | |
575 | |
576 Learning XEmacs is a lifelong activity. Even people who have used Emacs | |
577 for years keep discovering new features. Therefore this document cannot | |
578 be complete. Instead it is aimed at the person who is either | |
579 considering XEmacs for their own use, or has just obtained it and is | |
580 wondering what to do next. It is also useful as a reference to | |
581 available resources. | |
582 | |
2417 | 583 The previous maintainer of the FAQ was |
584 @email{rossini@@biostat.washington.edu, Anthony Rossini}, who started | |
585 it, after getting tired of hearing JWZ complain about repeatedly | |
586 having to answer questions. @email{ben@@xemacs.org, Ben Wing} then | |
587 took over and did a massive update reorganizing the whole thing. At | |
588 this point Anthony took back over, but then had to give it up again. | |
589 Some of the other contributors to this FAQ are listed later in this | |
590 document. | |
428 | 591 |
592 The previous version was converted to hypertext format, and edited by | |
593 @email{steve@@xemacs.org, Steven L. Baur}. It was converted back to | |
434 | 594 texinfo by @email{hniksic@@xemacs.org, Hrvoje Niksic}. The FAQ was then |
595 maintained by @email{andreas@@sccon.com, Andreas Kaempf}, who passed it | |
2417 | 596 on to ChristianNyb@o{}, and then to @email{wambold@@xemacs.org,Sandra Wambold}. |
597 | |
598 The current version of the FAQ has been heavily redone by | |
599 @email{ben@@xemacs.org, Ben Wing}. | |
428 | 600 |
601 If you notice any errors or items which should be added or amended to | |
2417 | 602 this FAQ please send email to @email{xemacs-beta@@xemacs.org}. |
603 Include @samp{XEmacs FAQ} on the Subject: line. | |
428 | 604 |
605 @menu | |
2537 | 606 1.0: What is XEmacs? |
2417 | 607 * Q1.0.1:: What is XEmacs? |
608 * Q1.0.2:: What is the current version of XEmacs? | |
2537 | 609 * Q1.0.3:: How do you pronounce XEmacs? |
610 * Q1.0.4:: What does XEmacs look like? | |
611 * Q1.0.5:: Who wrote XEmacs? | |
612 * Q1.0.6:: Who wrote the FAQ? | |
613 | |
614 1.1: Getting XEmacs | |
615 * Q1.1.1:: Where can I find XEmacs? | |
616 * Q1.1.2:: Are binaries available? | |
617 * Q1.1.3:: How do I get the bleeding-edge sources? | |
618 * Q1.1.4:: Where can I obtain a printed copy of the XEmacs User's Manual? | |
619 | |
620 1.2: Versions for Different Operating Systems | |
621 * Q1.2.1:: Do I need X11 to run XEmacs? | |
622 * Q1.2.2:: What versions of Unix does XEmacs run on? | |
623 * Q1.2.3:: Is there a port of XEmacs to Microsoft Windows? | |
624 * Q1.2.4:: Can I build XEmacs on MS Windows with X support? Do I need to? | |
625 * Q1.2.5:: What are Cygwin and MinGW, and do I need them to run XEmacs? | |
626 * Q1.2.6:: What are the differences between the various MS Windows emacsen? | |
627 * Q1.2.7:: How does the port cope with differences in the Windows user interface? | |
628 * Q1.2.8:: Is there a port of XEmacs to the Macintosh? | |
629 * Q1.2.9:: Is there a port of XEmacs to MS-DOS? | |
630 * Q1.2.10:: Is there a port of XEmacs to OS/2? | |
631 * Q1.2.11:: Is there a port of XEmacs to NextStep? | |
632 * Q1.2.12:: Is there a port of XEmacs to VMS? | |
633 | |
634 1.3: Getting Started | |
635 * Q1.3.1:: What is an @file{init.el} or @file{.emacs} and is there a sample one? | |
636 * Q1.3.2:: Where do I put my @file{init.el} file? | |
637 * Q1.3.3:: Can I use the same @file{init.el} with the other Emacs? | |
638 * Q1.3.4:: Any good XEmacs tutorials around? | |
639 * Q1.3.5:: May I see an example of a useful XEmacs Lisp function? | |
640 * Q1.3.6:: And how do I bind it to a key? | |
641 * Q1.3.7:: What's the difference between a macro and a function? | |
642 * Q1.3.8:: What is @code{Custom}? | |
643 | |
644 1.4: Getting Help | |
645 * Q1.4.1:: Where can I get help? | |
646 * Q1.4.2:: Which mailing lists are there? | |
2559 | 647 * Q1.4.3:: Where are the mailing lists archived? |
648 * Q1.4.4:: How can I get two instances of info? | |
649 * Q1.4.5:: How do I add new Info directories? | |
2537 | 650 |
651 1.5: Contributing to XEmacs | |
652 * Q1.5.1:: How do I submit changes to the FAQ? | |
653 * Q1.5.2:: How do I become a beta tester? | |
654 * Q1.5.3:: How do I contribute to XEmacs itself? | |
2559 | 655 * Q1.5.4:: How do I get started developing XEmacs? |
656 * Q1.5.5:: What's the basic layout of the code? | |
2537 | 657 |
658 1.6: Politics (XEmacs vs. GNU Emacs) | |
659 * Q1.6.1:: What is GNU Emacs? | |
660 * Q1.6.2:: How does XEmacs differ from GNU Emacs? | |
661 * Q1.6.3:: How much does XEmacs differ? | |
662 * Q1.6.4:: Is XEmacs "GNU"? | |
663 * Q1.6.5:: What is the correct way to refer to XEmacs and GNU Emacs? | |
664 * Q1.6.6:: Why haven't XEmacs and GNU Emacs merged? | |
665 | |
666 1.7: External Packages | |
2559 | 667 * Q1.7.1:: What is the package system? |
668 * Q1.7.2:: Which external packages are there? | |
669 * Q1.7.3:: Do I need to have the packages to run XEmacs? | |
670 * Q1.7.4:: Is there a way to find which package has particular functionality? | |
2537 | 671 |
672 1.8: Internationalization | |
673 * Q1.8.1:: What is the status of internationalization support aka MULE (including Asian language support)? | |
674 * Q1.8.2:: How can I help with internationalization? | |
675 * Q1.8.3:: How do I type non-ASCII characters? | |
676 * Q1.8.4:: Can XEmacs messages come out in a different language? | |
677 * Q1.8.5:: Please explain the various input methods in MULE/XEmacs | |
678 * Q1.8.6:: How do I portably code for MULE/XEmacs? | |
679 * Q1.8.7:: How about Cyrillic modes? | |
680 * Q1.8.8:: Does XEmacs support Unicode? | |
681 * Q1.8.9:: How does XEmacs display Unicode? | |
428 | 682 @end menu |
683 | |
2537 | 684 @unnumberedsec 1.0: What is XEmacs? |
2417 | 685 |
428 | 686 @node Q1.0.1, Q1.0.2, Introduction, Introduction |
687 @unnumberedsubsec Q1.0.1: What is XEmacs? | |
688 | |
479 | 689 XEmacs is a powerful, highly customizable open source text editor and |
2417 | 690 application development system, with full GUI support. It is |
691 protected under the GNU Public License and related to other versions | |
692 of Emacs, in particular GNU Emacs. Its emphasis is on modern | |
693 graphical user interface support and an open software development | |
694 model, similar to Linux. XEmacs has an active development community | |
695 numbering in the hundreds (and thousands of active beta testers on top | |
696 of this), and runs on all versions of MS Windows, on Mac OS X, on | |
697 Linux, and on nearly every other version of Unix in existence. | |
698 Support for XEmacs has been supplied by Sun Microsystems, University | |
699 of Illinois, Lucid, ETL/Electrotechnical Laboratory, Amdahl | |
700 Corporation, BeOpen, and others, as well as the unpaid time of a great | |
701 number of individual developers. | |
428 | 702 |
703 @node Q1.0.2, Q1.0.3, Q1.0.1, Introduction | |
704 @unnumberedsubsec Q1.0.2: What is the current version of XEmacs? | |
705 | |
2417 | 706 XEmacs versions 21.4.* are releases made from the current stable |
707 sources. XEmacs versions 21.5.* (which will be released as 22.0) are | |
708 releases made from the development sources. Check at | |
709 @uref{http://www.xemacs.org} for the current minor version. XEmacs | |
710 versions 21.1.* were the previous stable releases, now retired. | |
711 | |
712 XEmacs 20.4, released in February 1998, was the last release of v20. | |
713 | |
714 XEmacs 19.16, released in November, 1997. was the last release of v19, | |
715 and was also the last version without international language support. | |
428 | 716 |
717 @node Q1.0.3, Q1.0.4, Q1.0.2, Introduction | |
2537 | 718 @unnumberedsubsec Q1.0.3: How do you pronounce XEmacs? |
719 | |
4505
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
720 The most common pronounciation is @samp{Eks eemax}, @samp{Eks'im&ks} in |
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
721 Kirshenbaum IPA. (See |
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
722 @uref{http://www.kirshenbaum.net/IPA/ascii-ipa.pdf} if you know the IPA |
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
723 already and want to know how to map from Kirshenbaum to it.) |
428 | 724 |
725 @node Q1.0.4, Q1.0.5, Q1.0.3, Introduction | |
2537 | 726 @unnumberedsubsec Q1.0.4: What does XEmacs look like? |
727 | |
728 Screen snapshots are available at | |
729 @uref{http://www.xemacs.org/About/Screenshots/index.html} | |
730 as part of the XEmacs website. | |
731 | |
732 @node Q1.0.5, Q1.0.6, Q1.0.4, Introduction | |
733 @unnumberedsubsec Q1.0.5: Who wrote XEmacs? | |
734 | |
735 XEmacs is the result of the time and effort of many people, and the | |
736 active developers have changed over time. There are two major | |
737 components of the XEmacs effort -- writing the code itself and providing | |
738 all the support work (testing the code, releasing beta and final | |
739 versions, handling patches, reading bug reports, maintaining the web | |
740 site, managing the mailing lists, etc. etc.). Neither component would | |
741 work without the other. | |
742 | |
743 @subheading CODING | |
744 | |
745 The primary code contributor over the years has been Ben Wing (active | |
746 since late 1992). Between 1991 and 1995, large amounts of coding was | |
747 contributed by Jamie Zawinski and Chuck Thompson. Many other people | |
748 have authored major subsystems or otherwise contributed large amounts of | |
749 code, including Andy Piper, Hrvoje Niksic, Jerry James, Jonathan Harris, | |
750 Kyle Jones, Martin Buchholz, Michael Sperber, Olivier Galibert, Richard | |
751 Mlynarik, Stig, William Perry and plenty of others. | |
752 | |
753 Primary XEmacs-specific subsystems and their authors: | |
754 | |
755 @table @asis | |
756 @item Objects | |
757 @itemize @minus | |
758 @item | |
759 Conversion from 26-bit to 28-bit pointers and integers, lrecords, lcrecords: Richard Mlynarik, 1994 | |
760 @item | |
761 Conversion to 32-bit pointers and 31-bit integers: Kyle Jones, Martin Buchholz | |
762 @item | |
763 Portable dumper, object descriptions: Olivier Galibert | |
764 @item | |
765 KKCC (new garbage collector), ephemerons, weak boxes: Michael Sperber and students | |
766 @item | |
767 Random object work (object equal and hash methods, weak lists, lcrecord lists, bit vectors, dynarr, blocktype, opaque, string resizing): Ben Wing | |
768 @item | |
769 Profiling: Ben Wing | |
770 @item | |
771 Some byte-compilation and hash-table improvements: Martin Buchholz | |
772 @item | |
773 Bignum: Jerry James | |
774 @end itemize | |
775 | |
776 @item Internationalization/Mule | |
777 @itemize @minus | |
778 @item | |
779 mostly Ben Wing; many ideas for future work, Stephen Turnbull | |
780 @end itemize | |
781 | |
782 @item I/O | |
783 @itemize @minus | |
784 @item | |
785 Basic event/event-stream implementation: Jamie Zawinski | |
786 @item | |
787 Most event work since 1994: Ben Wing | |
788 @item | |
789 Asynchronous stuff (async timeouts, signals, quit-checking): Ben Wing | |
790 @item | |
791 Process method abstraction, Windows process work: Kirill Katsnelson | |
792 @item | |
793 Misc-user events, async timeouts, most quit-checking and signal code, most other work since 1994: Ben Wing | |
794 @item | |
795 Lstreams: Ben Wing | |
796 @end itemize | |
797 | |
798 @item Display | |
799 @itemize @minus | |
800 @item | |
801 Redisplay mechanism: implementation, Chuck Thompson; additional work, lots of people | |
802 @item | |
803 Glyphs: mostly Ben Wing | |
804 @item | |
805 Specifiers: Ben Wing | |
806 @item | |
807 Extents: initial implementation, someone at Lucid; rewrite, 1994, Ben Wing | |
808 @item | |
809 Widgets: Andy Piper | |
810 @item | |
811 JPEG/PNG/TIFF image converters: Ben Wing, William Perry, Jareth Hein, others (see comment in @file{glyphs-eimage.c}) | |
812 @item | |
813 Menus: Jamie Zawinski, someone at Lucid (Lucid menus) | |
814 @item | |
815 Scrollbars: Chuck Thompson, ??? (Lucid scrollbar) | |
816 @item | |
817 Multi-device/device-independence work (console/device/etc methods): Ben Wing, prototype by chuck thompson | |
818 @item | |
819 Faces: first implementation, Jamie Zawinski; second, chuck; third, Ben Wing | |
820 @item | |
821 Fonts/colors: first implementation, Jamie Zawinski; further work, Ben Wing | |
822 @item | |
823 Toolbars: implementation, chuck, much interface work, Ben Wing | |
824 @item | |
825 Gutters, tabs: andy piper | |
826 @end itemize | |
827 | |
828 @item Device subsystems | |
829 @itemize @minus | |
830 @item | |
4311 | 831 X Windows: Jamie Zawinski, Ben Wing, others |
2537 | 832 @item |
833 GTK: William Perry, Malcolm Purvis | |
834 @item | |
835 MS Windows: initial implementation, Jonathan Harris; some more work, Andy Piper, Ben Wing | |
836 @item | |
837 TTY: Chuck Thompson, Ben Wing | |
838 @item | |
839 Cygwin: Andy Piper | |
840 @end itemize | |
841 | |
842 @item Misc | |
843 @itemize @minus | |
844 @item | |
845 Configure: initial porting from fsf, Chuck Thompson; conversion to autoconf 2, much rewriting, Martin Buchholz | |
846 @item | |
847 Most initialization-related code: Ben Wing | |
848 @item | |
849 Internals manual, much of Lisp manual: Ben Wing | |
850 @item | |
851 FSF synching: initial sync with FSF 19, Richard Mlynarik, further work, Ben Wing | |
852 @end itemize | |
853 @end table | |
854 | |
855 @subheading SUPPORT | |
856 | |
857 Currently, support duties are handled by many different people. | |
858 | |
859 Release managers have been | |
860 | |
861 @itemize @minus | |
862 @item | |
863 Stephen Turnbull (April 2001 - January 2003, March 2004 - present, 21.2.47 - 21.4.12, 21.5.2 - 21.5.7, 21.5.17 - present) | |
864 @item | |
865 Vin Shelton (May 2003 - present, 21.4.13 - present) | |
866 @item | |
867 Steve Youngs (July 2002 - September 2003, 21.5.8 - 21.5.16) | |
868 @item | |
869 Martin Buchholz (December 1998, November 1999 - May 2001, 21.2.7 - 21.2.8, 21.2.21 - 21.2.46, 21.5.0 - 21.5.1) | |
870 @item | |
871 Steve Baur (early 1997 - December 1998, February 1999 - November 1999, 19.15 - 21.2.5, 21.2.9 - 21.2.20) | |
872 @item | |
873 Andy Piper (December 1998, 21.2.6) | |
874 @item | |
875 Chuck Thompson (June 1994 - September 1996, 19.11 - 19.14) | |
876 @item | |
877 Jamie Zawinski (April 1991 - June 1994, 19.0 - 19.10) | |
878 @end itemize | |
879 | |
880 The recent overlapping dates are intentional, since two or three trees | |
881 are maintained simultaneously at any point. | |
882 | |
883 Other major support work: | |
884 | |
885 @itemize @minus | |
886 @item | |
887 Adrian Aichner wrote and maintains the web site. | |
888 @item | |
889 Stephen Turnbull has produced many of the beta and semi-stable releases | |
890 and has attempted to be the "face" of XEmacs on the newsgroups and | |
891 mailing lists. | |
892 @item | |
893 Steve Youngs currently produces the beta releases (???). | |
894 @item | |
4311 | 895 Steve Youngs, Ville Skyttä, and now Norbert Koch have taken turns |
2537 | 896 maintaining the packages. |
897 @item | |
898 Vin Shelton maintains the stable releases. | |
899 @item | |
900 Testing - #### Norbert, Adrian, ??? | |
901 @end itemize | |
902 | |
903 Portraits and email of some of the major developers: | |
904 | |
905 @itemize @bullet | |
906 @item @email{andy@@xemacs.org, Andy Piper} | |
907 @html | |
908 <br><img src="piper.png" alt="Portrait of Andy Piper"><br> | |
909 @end html | |
910 | |
911 @item @email{ben@@xemacs.org, Ben Wing} | |
912 @html | |
913 <br><img src="ben.png" alt="Portrait of Ben Wing"><br> | |
914 @end html | |
915 | |
916 @item @email{cthomp@@xemacs.org, Chuck Thompson} | |
917 @html | |
918 <br><img src="cthomp.png" alt="Portrait of Chuck Thompson"><br> | |
919 @end html | |
920 | |
921 @item @email{hniksic@@xemacs.org, Hrvoje Niksic} | |
922 | |
923 @html | |
924 <br><img src="hniksic.png" alt="Portrait of Hrvoje Niksic"><br> | |
925 @end html | |
926 | |
927 @item @email{jwz@@jwz.org, Jamie Zawinski} | |
928 @html | |
929 <br><img src="jwz.png" alt="Portrait of Jamie Zawinski"><br> | |
930 @end html | |
931 | |
932 @item @email{martin@@xemacs.org, Martin Buchholz} | |
933 @html | |
934 <br><img src="martin.png" alt="Portrait of Martin Buchholz"><br> | |
935 @end html | |
936 | |
937 @item @email{mly@@adoc.xerox.com, Richard Mlynarik} | |
938 @html | |
939 <br><img src="mly.png" alt="Portrait of Richard Mlynarik"><br> | |
940 @end html | |
941 | |
942 @item @email{stephen@@xemacs.org, Stephen Turnbull} | |
943 | |
944 @item @email{steve@@xemacs.org, Steve Baur} | |
945 @html | |
946 <br><img src="slb.png" alt="Portrait of Steve Baur"><br> | |
947 @end html | |
948 @end itemize | |
949 | |
950 Many other people have contributed to XEmacs; this is partially | |
951 enumerated in the @samp{About XEmacs} option in the Help menu. | |
952 | |
953 @node Q1.0.6, Q1.1.1, Q1.0.5, Introduction | |
954 @unnumberedsubsec Q1.0.6: Who wrote the FAQ? | |
955 | |
956 The current version of this FAQ was created by @email{ben@@xemacs.org, | |
957 Ben Wing}. | |
958 | |
959 Previous contributors to the FAQ include | |
960 | |
961 @itemize @bullet | |
962 @item @email{steve@@xemacs.org, SL Baur} | |
963 | |
964 @item @email{hniksic@@xemacs.org, Hrvoje Niksic} | |
965 | |
966 @item @email{binge@@aloft.att.com, Curtis.N.Bingham} | |
967 | |
968 @item @email{bruncott@@dormeur.inria.fr, Georges Brun-Cottan} | |
969 | |
970 @item @email{rjc@@cogsci.ed.ac.uk, Richard Caley} | |
971 | |
972 @item @email{cognot@@ensg.u-nancy.fr, Richard Cognot} | |
973 | |
974 @item @email{daku@@nortel.ca, Mark Daku} | |
975 | |
976 @item @email{wgd@@martigny.ai.mit.edu, William G. Dubuque} | |
977 | |
978 @item @email{eeide@@cs.utah.edu, Eric Eide} | |
979 | |
980 @item @email{af@@biomath.jussieu.fr, Alain Fauconnet} | |
981 | |
982 @item @email{cflatter@@nrao.edu, Chris Flatters} | |
983 | |
984 @item @email{ginsparg@@adra.com, Evelyn Ginsparg} | |
985 | |
986 @item @email{hall@@aplcenmp.apl.jhu.edu, Marty Hall} | |
987 | |
988 @item @email{dkindred@@cmu.edu, Darrell Kindred} | |
989 | |
990 @item @email{dmoore@@ucsd.edu, David Moore} | |
991 | |
992 @item @email{arup+@@cmu.edu, Arup Mukherjee} | |
993 | |
994 @item @email{nickel@@prz.tu-berlin.de, Juergen Nickelsen} | |
995 | |
996 @item @email{powell@@csl.ncsa.uiuc.edu, Kevin R. Powell} | |
997 | |
998 @item @email{dworkin@@ccs.neu.edu, Justin Sheehy} | |
999 | |
1000 @item @email{stig@@hackvan.com, Stig} | |
1001 | |
1002 @item @email{Aki.Vehtari@@hut.fi, Aki Vehtari} | |
1003 @end itemize | |
1004 | |
1005 @unnumberedsec 1.1: Getting XEmacs | |
1006 | |
1007 @node Q1.1.1, Q1.1.2, Q1.0.6, Introduction | |
1008 @unnumberedsubsec Q1.1.1: Where can I find XEmacs? | |
1009 | |
1010 To download XEmacs, visit the XEmacs WWW page at | |
1011 @uref{http://www.xemacs.org/Download/}. The most up-to-date list of | |
1012 distribution sites can always be found there. Try to pick a site that | |
1013 is networkologically close to you. If you know of other mirrors of | |
1014 the XEmacs archives, please send e-mail to | |
1015 @uref{mailto:webmaster@@xemacs.org} and we will list them here as well. | |
1016 | |
1017 The canonical distribution point is ftp.xemacs.org, available either | |
1018 through HTTP (@uref{http://ftp.xemacs.org/}) or anonymous FTP | |
1019 (@uref{ftp://ftp.xemacs.org/pub/xemacs/}). | |
1020 | |
1021 @node Q1.1.2, Q1.1.3, Q1.1.1, Introduction | |
1022 @unnumberedsubsec Q1.1.2: Are binaries available? | |
2417 | 1023 |
1024 MS Windows binaries are available at | |
1025 @uref{http://www.xemacs.org/Download/win32/} for the native versions | |
1026 of 21.4 and 21.1. Cygwin binaries are now available as part of the | |
1027 standard Cygwin installation process. XEmacs also comes pre-built as | |
1028 part of many Linux distributions, such as Red Hat and SuSE. | |
1029 | |
1030 Otherwise, you will need to build XEmacs yourself or get your system | |
1031 administrator to do it. Generally, this is not a difficult process | |
1032 under Unix and Mac OS X, as XEmacs has been tested under all of the | |
1033 common Unix versions and under Mac OS X and comes with an extensive | |
1034 configure script that is able to automatically detect most aspects of | |
1035 the configuration of your particular system. | |
1036 | |
2537 | 1037 @node Q1.1.3, Q1.1.4, Q1.1.2, Introduction |
1038 @unnumberedsubsec Q1.1.3: How do I get the bleeding-edge sources? | |
1039 | |
1040 If you are interested in developing XEmacs, or getting the absolutely most | |
1041 recent, up-to-the-moment, bleeding-edge source code, you can directly | |
1042 access the master CVS source tree (read-only, of course, until you ask for | |
1043 and are granted permission to directly modify portions of the source tree) | |
1044 at cvs.xemacs.org. Directions on how to access the source tree are located | |
1045 at @uref{http://www.xemacs.org/Develop/cvsaccess.html}. | |
1046 | |
1047 Nightly CVS snapshots are available at | |
1048 @uref{http://www.dk.xemacs.org/Download/CVS-snapshots/}. | |
1049 | |
1050 @node Q1.1.4, Q1.2.1, Q1.1.3, Introduction | |
1051 @unnumberedsubsec Q1.1.4: Where can I obtain a printed copy of the XEmacs User's Manual? | |
1052 | |
1053 Pre-printed manuals are not available. If you are familiar with | |
1054 TeX, you can generate your own manual from the XEmacs sources. | |
1055 | |
1056 HTML and Postscript versions of XEmacs manuals are available from the | |
1057 XEmacs web site at | |
1058 @uref{http://www.xemacs.org/Documentation/index.html}. | |
1059 | |
1060 @unnumberedsec 1.2: Versions for Different Operating Systems | |
1061 | |
1062 @node Q1.2.1, Q1.2.2, Q1.1.4, Introduction | |
1063 @unnumberedsubsec Q1.2.1: Do I need X11 to run XEmacs? | |
1064 | |
1065 No. The name @dfn{XEmacs} is unfortunate in the sense that it is | |
1066 @strong{not} an X Window System-only version of Emacs. XEmacs has | |
1067 full color support on a color-capable character terminal. | |
1068 | |
1069 @node Q1.2.2, Q1.2.3, Q1.2.1, Introduction | |
1070 @unnumberedsubsec Q1.2.2: What versions of Unix does XEmacs run on? | |
1071 | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4658
diff
changeset
|
1072 XEmacs is regularly tested on Linux, Solaris and OpenSolaris, HP/UX, |
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4658
diff
changeset
|
1073 FreeBSD, OpenBSD, Cygwin, Mac OS X, and probably others. It should work |
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4658
diff
changeset
|
1074 on all versions of Unix created in the last 10 years or so, perhaps with |
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4658
diff
changeset
|
1075 a bit of work on more obscure platforms to correct bit-rot. It uses a |
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4658
diff
changeset
|
1076 sophisticated configuration system to auto-detect zillions of features |
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4658
diff
changeset
|
1077 that are implemented differently in different versions of Unix, so it |
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4658
diff
changeset
|
1078 will probably work on your vendor's version, possibly with a bit of |
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4658
diff
changeset
|
1079 tweaking, even if we've never heard of it. |
2559 | 1080 |
2537 | 1081 For problems with particular machines and versions of Unix, see the |
1082 @file{PROBLEMS} file. | |
1083 | |
1084 Much effort has gone into making XEmacs work on as many different | |
1085 machines, configurations, and compilers as possible. | |
1086 | |
1087 Much effort has gone into making XEmacs 64-bit clean. | |
1088 | |
1089 Much effort has gone into removing system-specific code, and replacing | |
1090 such code with autodetection at configure time. | |
1091 | |
1092 The XEmacs core should build "out of the box" on most Unix-like systems. | |
1093 | |
1094 XEmacs 21.2 was tested and @samp{make check} succeeded on these Unix | |
1095 configurations as of 2001-02-10: | |
1096 | |
1097 @example | |
1098 alphaev56-dec-osf4.0e (both Compaq C and gcc) | |
1099 i386-unknown-freebsd4.2 | |
1100 i386-unknown-netbsdelf1.5 | |
1101 i586-sco-sysv5uw7.0.1 (both SCO's cc and gcc) | |
1102 i686-pc-linux-gnu | |
1103 hppa2.0-hp-hpux10.20 (both HP's ANSI cc and gcc) | |
1104 mips-sgi-irix6.5 (both MIPSpro cc and gcc) | |
1105 rs6000-ibm-aix4.3.0.0 (both IBM's xlc and gcc) | |
1106 sparc-sun-solaris2.6 (both Sun's Forte C and gcc) | |
1107 sparc-sun-solaris2.7 (both Sun's Forte C and gcc) | |
1108 sparc-sun-sunos4.1.4 (gcc) | |
1109 @end example | |
1110 | |
3018 | 1111 Some systems have a dual mode 32-bit/64-bit compiler. On most of these, |
1112 XEmacs requires the @samp{--pdump} (in XEmacs 21.5, | |
1113 @samp{--enable-pdump}) configure option to build correctly with the | |
1114 64-bit version of the compiler. | |
2537 | 1115 |
1116 @example | |
1117 mips-sgi-irix6.5, CC="gcc -mabi=64" | |
1118 mips-sgi-irix6.5, CC="cc -64" | |
1119 rs6000-ibm-aix4.3.0.0, CC="cc -q64" | |
1120 @end example | |
1121 | |
1122 On most of these systems, XEmacs also builds with a C++ compiler, | |
1123 but not "out of the box". This feature is only for use by the | |
1124 maintainers. | |
1125 | |
1126 XEmacs 21.2 is known @emph{not} to work on any machines with m680x0 | |
1127 processors. Sorry, all you sun3 and Unix PC nostalgia buffs out there. | |
1128 | |
1129 VMS has never been supported by XEmacs. In fact, all the old VMS code | |
1130 inherited from Emacs has been removed. Sorry, all you VMS fans out there. | |
1131 | |
1132 @node Q1.2.3, Q1.2.4, Q1.2.2, Introduction | |
1133 @unnumberedsubsec Q1.2.3: Is there a port of XEmacs to Microsoft Windows? | |
1134 | |
1135 Yes. Beginning with release 21.0, XEmacs has worked under MS Windows | |
1136 and is fully-featured and actively developed. A group of dedicated | |
1137 developers actively maintains and improves the Windows-specific | |
1138 portions of the code. Some of the core developers, in fact, use | |
1139 Windows as their only development environment, and some features, such | |
1140 as printing, actually work better on Windows than native Unix and Mac | |
1141 OS X. The mailing list at @email{xemacs-winnt@@xemacs.org} is dedicated | |
1142 to that effort (please use the -request address to | |
1143 subscribe). (Despite its name, XEmacs actually works on all versions | |
1144 of Windows.) | |
1145 | |
1146 The list name is misleading, as XEmacs supports and has been compiled on | |
1147 Windows 95, Windows 98, Windows NT, Windows 2000, Windows ME, Windows | |
1148 XP, and all newer versions of Windows. The MS Windows-specific code is | |
1149 based on Microsoft Win32 API, and will not work on MS Windows 3.x or on | |
1150 MS-DOS. | |
1151 | |
1152 XEmacs also supports the Cygwin and MinGW development and runtime | |
1153 environments, where it also uses native Windows code for graphical | |
1154 features. In addition, under Cygwin it is possible to compile XEmacs | |
1155 to use an X server (and XFree86 is available as part of the standard | |
1156 Cygwin installation). | |
1157 | |
1158 @node Q1.2.4, Q1.2.5, Q1.2.3, Introduction | |
1159 @unnumberedsubsec Q1.2.4: Can I build XEmacs on MS Windows with X support? Do I need to? | |
1160 | |
1161 Yes, you can, but no you do not need to. In fact, we recommend that you | |
1162 use a native-GUI version unless you have a specific need for an X | |
1163 version. | |
1164 | |
1165 @node Q1.2.5, Q1.2.6, Q1.2.4, Introduction | |
1166 @unnumberedsubsec Q1.2.5: What are Cygwin and MinGW, and do I need them to run XEmacs? | |
1167 | |
1168 To answer the second part of the question: No, you, you don't need | |
1169 Cygwin or MinGW to build or to run XEmacs. But if you have them and | |
1170 want to use them, XEmacs supports these environments. | |
1171 | |
1172 (One important reason to support Cygwin is that it lets the MS Windows | |
1173 developers test out their code in a Unix environment without actually | |
1174 having to have a Unix machine around. For this reason alone, Cygwin | |
1175 support is likely to remain supported for a long time in XEmacs. Same | |
1176 goes for the X support under Cygwin, for the same reasons. MinGW | |
1177 support, on the other hand, depends on volunteers to keep it up to date; | |
1178 but this is generally not hard.) | |
1179 | |
1180 Cygwin is a set of tools providing Unix-like API on top of Win32. | |
1181 It makes it easy to port large Unix programs without significant | |
1182 changes to their source code. It is a development environment as well | |
1183 as a runtime environment. | |
1184 | |
1185 When built with Cygwin, XEmacs supports all display types -- TTY, X & | |
1186 Win32 GUI, and can be built with support for all three simultaneously. | |
1187 If you build with Win32 GUI support then the Cygwin version uses the | |
1188 majority of the Windows-specific code, which is mostly related to | |
1189 display. If you want to build with X support you need X libraries (and | |
2559 | 1190 an X server to display XEmacs on); see @ref{Q2.3.7}. TTY and Win32 GUI |
2537 | 1191 require no additional libraries beyond what comes standard with Cygwin. |
1192 | |
1193 The advantages of the Cygwin version are that it integrates well with | |
1194 the Cygwin environment for existing Cygwin users; uses configure so | |
1195 building with different features is very easy; and actively supports X & | |
1196 TTY. Furthermore, the entire Cygwin environment and compiler are free, | |
1197 whereas Visual C++ costs money. | |
1198 | |
1199 The disadvantage is that it requires the whole Cygwin environment, | |
1200 whereas the native port requires only a suitable MS Windows compiler. | |
1201 Also, it follows the Unix filesystem and process model very closely | |
1202 (some will undoubtedly view this as an advantage). | |
1203 | |
1204 See @uref{http://www.cygwin.com/} for more information on | |
1205 Cygwin. | |
1206 | |
1207 MinGW is a collection of header files and import libraries that allow | |
1208 one to use GCC under the Cygwin environment to compile and produce | |
1209 exactly the same native Win32 programs that you can using Visual C++. | |
1210 Programs compiled with MinGW make use of the standard Microsoft runtime | |
1211 library @file{MSVCRT.DLL}, present on all Windows systems, and look, | |
1212 feel, and act like a standard Visual-C-produced application. (The only | |
1213 difference is the compiler.) This means that, unlike a | |
1214 standardly-compiled Cygwin application, no extra runtime support | |
1215 (e.g. Cygwin's @file{cygwin1.dll}) is required. This, along with the | |
1216 fact that GCC is free (and works in a nice Unix-y way in a nice Unix-y | |
1217 environment, for those die-hard Unix hackers out there), is the main | |
1218 advantage of MinGW. It is also potentially faster than Cygwin because | |
1219 it has less overhead when calling Windows, but you lose the POSIX | |
1220 emulation layer, which makes Unix programs harder to port. (But this is | |
1221 irrelevant for XEmacs since it's already ported to Win32.) | |
1222 | |
1223 See @uref{http://www.mingw.org/} for more information on MinGW. | |
1224 | |
1225 @node Q1.2.6, Q1.2.7, Q1.2.5, Introduction | |
1226 @unnumberedsubsec Q1.2.6: What are the differences between the various MS Windows emacsen? | |
1227 | |
1228 XEmacs, Win-Emacs, DOS Emacs, NT Emacs, this is all very confusing. | |
1229 Could you briefly explain the differences between them? | |
1230 | |
1231 Here is a recount of various Emacs versions running on MS Windows: | |
1232 | |
1233 @itemize @bullet | |
1234 | |
1235 @item | |
1236 XEmacs | |
1237 | |
1238 @itemize @minus | |
1239 | |
1240 @item | |
1241 Beginning with XEmacs 19.12, XEmacs' architecture was redesigned | |
1242 in such a way to allow clean support of multiple window systems. At | |
1243 this time the TTY support was added, making X and TTY the first two | |
1244 "window systems" supported by XEmacs. The 19.12 design is the basis for | |
1245 the current native MS Windows code. | |
1246 | |
1247 @item | |
1248 Some time during 1997, David Hobley (soon joined by Marc Paquette) | |
1249 imported some of the NT-specific portions of GNU Emacs, making XEmacs | |
1250 with X support compile under Windows NT, and creating the "X" port. | |
1251 | |
1252 @item | |
1253 Several months later, Jonathan Harris sent out initial patches to use | |
1254 the Win32 API, thus creating the native port. Since then, various | |
1255 people have contributed, including Kirill M. Katsnelson (contributed | |
1256 support for menubars, subprocesses and network, as well as loads of | |
1257 other code), Andy Piper (ported XEmacs to Cygwin environment, | |
1258 contributed Windows unexec, Windows-specific glyphs and toolbars code, | |
1259 and more), Ben Wing (loads of improvements; primary MS Windows developer | |
1260 since 2000), Jeff Sparkes (contributed scrollbars support) and many | |
1261 others. | |
1262 @end itemize | |
1263 | |
1264 @item | |
1265 NT Emacs | |
1266 | |
1267 @itemize @minus | |
1268 | |
1269 @item | |
1270 NT Emacs was an early version of GNU Emacs 19 modified to compile and | |
1271 run under MS Windows 95 and NT using the native Win32 API. It was | |
1272 written by Geoff Voelker, and has long since been incorporated into | |
1273 the mainline GNU Emacs distribution. | |
1274 @end itemize | |
1275 | |
1276 @item | |
1277 Win-Emacs | |
1278 | |
1279 @itemize @minus | |
1280 | |
1281 @item | |
1282 Win-Emacs was a port of Lucid Emacs 19.6 to MS Windows using X | |
1283 compatibility libraries. Win-Emacs was written by Ben Wing. The MS | |
1284 Windows code never made it back to Lucid Emacs, and its creator (Pearl | |
1285 Software) has long since gone out of business. | |
1286 @end itemize | |
1287 | |
1288 @item | |
1289 GNU Emacs for DOS | |
1290 | |
1291 @itemize @minus | |
1292 | |
1293 @item | |
1294 GNU Emacs features support for MS-DOS and DJGPP (D.J. Delorie's DOS | |
1295 port of GCC). Such an Emacs is heavily underfeatured, because it does | |
1296 not support long file names, lacks proper subprocesses support, and | |
1297 is far too big compared with typical DOS editors. | |
1298 @end itemize | |
1299 | |
1300 @item | |
1301 GNU Emacs compiled with Win32 | |
1302 | |
1303 @itemize @minus | |
1304 | |
1305 @item | |
1306 Starting with GNU Emacs 19.30, it has been possible to compile GNU Emacs | |
1307 under MS Windows using the DJGPP compiler and X libraries. The result | |
1308 is very similar to GNU Emacs compiled under MS DOS, only it works | |
1309 somewhat better because it runs in 32-bit mode, makes use of all the | |
1310 system memory, supports long file names, etc. | |
1311 @end itemize | |
1312 | |
1313 @end itemize | |
1314 | |
1315 @node Q1.2.7, Q1.2.8, Q1.2.6, Introduction | |
1316 @unnumberedsubsec Q1.2.7: How does the port cope with differences in the Windows user interface? | |
1317 | |
1318 The XEmacs (and Emacs in general) user interface is pretty different | |
1319 from what is expected of a typical MS Windows program. How does the MS | |
1320 Windows port cope with it? | |
1321 | |
1322 As a general rule, we follow native MS Windows conventions as much as | |
1323 possible. 21.4 is a fairly complete Windows application, supporting | |
1324 native printing, system file dialog boxes, tool tips, etc. In cases | |
1325 where there's a clear UI conflict, we currently use normal Unix XEmacs | |
1326 behavior by default, but make sure the MS Windows "look and feel" (mark | |
1327 via shift-arrow, self-inserting deletes region, Alt selects menu items, | |
1328 etc.) is easily configurable (respectively: using the variable | |
1329 @code{shifted-motion-keys-select-region} in 21.4 and above [it's in fact | |
1330 the default in these versions], or the @file{pc-select} package; using | |
1331 the @file{pending-del} package; and setting the variable | |
1332 @code{menu-accelerator-enabled} to @code{menu-force} in 21.4 and above). | |
1333 In fact, if you use the sample @file{init.el} file as your init file, | |
1334 you will get all these behaviors automatically turned on. | |
1335 | |
1336 In future versions, some of these features might be turned on by | |
1337 default in the MS Windows environment. | |
1338 | |
1339 @node Q1.2.8, Q1.2.9, Q1.2.7, Introduction | |
1340 @unnumberedsubsec Q1.2.8: Is there a port of XEmacs to the Macintosh? | |
1341 | |
1342 Yes. | |
1343 | |
1344 XEmacs 21.5 (perhaps 21.4 also?) works on MacOS X, although it certainly | |
1345 will not feel very much like a Mac application as it has no Mac-specific | |
1346 code in it. | |
1347 | |
1348 There is also a port of XEmacs 19.14 that works on all recent versions | |
1349 of MacOS, from 8.1 through MacOS X, by @email{pjarvis@@ispchannel.com, | |
1350 Pitts Jarvis} (recently deceased). It runs in an equivalent of TTY | |
1351 mode only (one single Macintosh window, 25 colors), but has a large | |
1352 number of Mac-specific additions. It's available at | |
1353 @uref{http://homepage.mac.com/pjarvis/xemacs.html}. | |
1354 | |
1355 @node Q1.2.9, Q1.2.10, Q1.2.8, Introduction | |
2559 | 1356 @unnumberedsubsec Q1.2.9: Is there a port of XEmacs to MS-DOS? |
1357 | |
1358 No. We have never supported running on MS-DOS or Windows 3.1, and in | |
1359 fact have long since deleted all MS-DOS-related code. We're not | |
1360 particularly interested in patches for these platforms, as they would | |
1361 introduce huge amounts of code clutter due to the woefully | |
1362 underfeatured nature of these systems. (See GNU Emacs for a port to | |
1363 MS-DOS.) | |
2537 | 1364 |
1365 @node Q1.2.10, Q1.2.11, Q1.2.9, Introduction | |
2559 | 1366 @unnumberedsubsec Q1.2.10: Is there a port of XEmacs to OS/2? |
2537 | 1367 |
1368 No, but Alexander Nikolaev <avn_1251@@mail.ru> was at one point | |
1369 working on it. | |
1370 | |
2559 | 1371 @node Q1.2.11, Q1.2.12, Q1.2.10, Introduction |
1372 @unnumberedsubsec Q1.2.11: Is there a port of XEmacs to NextStep? | |
2537 | 1373 |
1374 Carl Edman, apparently no longer at @email{cedman@@princeton.edu}, did | |
1375 the port of GNU Emacs to NeXTstep and expressed interest in doing the | |
1376 XEmacs port, but never went any farther. | |
1377 | |
2559 | 1378 @node Q1.2.12, Q1.3.1, Q1.2.11, Introduction |
1379 @unnumberedsubsec Q1.2.12: Is there a port of XEmacs to VMS? | |
2537 | 1380 |
1381 VMS has never been supported by XEmacs. In fact, all the old VMS code | |
1382 inherited from GNU Emacs has been removed. Sorry, all you VMS fans | |
1383 out there. | |
1384 | |
1385 @unnumberedsec 1.3: Getting Started | |
1386 | |
2559 | 1387 @node Q1.3.1, Q1.3.2, Q1.2.12, Introduction |
2537 | 1388 @unnumberedsubsec Q1.3.1: What is an @file{init.el} or @file{.emacs} and is there a sample one? |
1389 | |
1390 The @file{init.el} or @file{.emacs} file is used to customize XEmacs to | |
1391 your tastes. Starting in 21.4, the preferred location for the init file | |
1392 is @file{~/.xemacs/init.el}; in previous versions, it was | |
1393 @file{~/.emacs}. 21.4 still accepts the old location, but the first | |
1394 time you run it, it will ask to migrate your file to the new location. | |
1395 If you answer yes, the file will be moved, and a "compatibility" | |
1396 @file{.emacs} file will be placed in the old location so that you can | |
1397 still run older versions of XEmacs, and versions of GNU Emacs, which | |
1398 expect the old location. The @file{.emacs} file present is just a stub | |
1399 that loads the real file in @file{~/.xemacs/init.el}. | |
1400 | |
1401 No two init files are alike, nor are they expected to be alike, but | |
1402 that's the point. The XEmacs distribution contains an excellent starter | |
1403 example in the @file{etc/} directory called @file{sample.init.el} | |
1404 (starting in 21.4) or @file{sample.emacs} in older versions. Copy this | |
1405 file from there to @file{~/.xemacs/init.el} (starting in 21.4) or | |
1406 @file{~/.emacs} in older versions, where @samp{~} means your home | |
1407 directory, of course. Then edit it to suit. | |
1408 | |
1409 You may bring the @file{sample.init.el} or @file{sample.emacs} file into | |
1410 an XEmacs buffer from the menubar. (The menu entry for it is always | |
1411 under the @samp{Help} menu, but its location under that has changed in | |
1412 various versions. Recently, look under the @samp{Samples} submenu.) To | |
1413 determine the location of the @file{etc/} directory type the command | |
1414 @kbd{C-h v data-directory @key{RET}}. | |
1415 | |
1416 @node Q1.3.2, Q1.3.3, Q1.3.1, Introduction | |
1417 @unnumberedsubsec Q1.3.2: Where do I put my @file{init.el} file? | |
1418 | |
1419 @file{init.el} is the name of the init file starting with 21.4, and is | |
1420 located in the subdirectory @file{.xemacs/} of your home directory. In | |
1421 prior versions, the init file is called @file{.emacs} and is located in | |
1422 your home directory. | |
1423 | |
1424 Your home directory under Windows is determined by the @samp{HOME} | |
1425 environment variable. If this is not set, it defaults to @samp{C:\}. | |
1426 To set this variable, modify @file{AUTOEXEC.BAT} under Windows 95/98, or | |
1427 select @samp{Control Panel->System->Advanced->Environment Variables...} | |
1428 under Windows NT/2000. | |
1429 | |
1430 @node Q1.3.3, Q1.3.4, Q1.3.2, Introduction | |
1431 @unnumberedsubsec Q1.3.3: Can I use the same @file{init.el} with the other Emacs? | |
1432 | |
1433 Yes. The sample @file{init.el} included in the XEmacs | |
1434 distribution will show you how to handle different versions and flavors | |
1435 of Emacs. | |
1436 | |
1437 @node Q1.3.4, Q1.3.5, Q1.3.3, Introduction | |
1438 @unnumberedsubsec Q1.3.4: Any good XEmacs tutorials around? | |
1439 | |
1440 There's the XEmacs tutorial available from the Help Menu under | |
1441 @samp{Help->Tutorials}, or by typing @kbd{C-h t}. To check whether | |
1442 it's available in a non-english language, type @kbd{C-u C-h t TAB}, type | |
1443 the first letters of your preferred language, then type @key{RET}. | |
1444 | |
1445 @comment There's an Emacs Lisp tutorial at | |
1446 @comment | |
1447 @comment @example | |
1448 @comment @uref{ftp://prep.ai.mit.edu/pub/gnu/emacs-lisp-intro-1.04.tar.gz}. | |
1449 @comment @end example | |
1450 @comment | |
1451 @comment @email{erik@@petaxp.rug.ac.be, Erik Sundermann} has made a tutorial web | |
1452 @comment page at | |
1453 @comment @iftex | |
1454 @comment @* | |
1455 @comment @end iftex | |
1456 @comment @uref{http://petaxp.rug.ac.be/~erik/xemacs/}. | |
1457 | |
1458 @node Q1.3.5, Q1.3.6, Q1.3.4, Introduction | |
1459 @unnumberedsubsec Q1.3.5: May I see an example of a useful XEmacs Lisp function? | |
1460 | |
1461 The following function does a little bit of everything useful. It does | |
1462 something with the prefix argument, it examines the text around the | |
1463 cursor, and it's interactive so it may be bound to a key. It inserts | |
1464 copies of the current word the cursor is sitting on at the cursor. If | |
1465 you give it a prefix argument: @kbd{C-u 3 M-x double-word} then it will | |
1466 insert 3 copies. | |
1467 | |
1468 @lisp | |
1469 (defun double-word (count) | |
1470 "Insert a copy of the current word underneath the cursor" | |
1471 (interactive "*p") | |
1472 (let (here there string) | |
1473 (save-excursion | |
1474 (forward-word -1) | |
1475 (setq here (point)) | |
1476 (forward-word 1) | |
1477 (setq there (point)) | |
1478 (setq string (buffer-substring here there))) | |
1479 (while (>= count 1) | |
1480 (insert string) | |
1481 (decf count)))) | |
1482 @end lisp | |
1483 | |
1484 The best way to see what is going on here is to let XEmacs tell you. | |
1485 Put the code into an XEmacs buffer, and do a @kbd{C-h f} with the cursor | |
1486 sitting just to the right of the function you want explained. Eg. move | |
1487 the cursor to the SPACE between @code{interactive} and @samp{"*p"} and | |
1488 hit @kbd{C-h f} to see what the function @code{interactive} does. Doing | |
1489 this will tell you that the @code{*} requires a writable buffer, and | |
1490 @code{p} converts the prefix argument to a number, and | |
1491 @code{interactive} allows you to execute the command with @kbd{M-x}. | |
1492 | |
1493 @node Q1.3.6, Q1.3.7, Q1.3.5, Introduction | |
1494 @unnumberedsubsec Q1.3.6: And how do I bind it to a key? | |
1495 | |
1496 To bind to a key do: | |
1497 | |
1498 @lisp | |
1499 (global-set-key "\C-cd" 'double-word) | |
1500 @end lisp | |
1501 | |
1502 Or interactively, @kbd{M-x global-set-key} and follow the prompts. | |
1503 | |
1504 @node Q1.3.7, Q1.3.8, Q1.3.6, Introduction | |
1505 @unnumberedsubsec Q1.3.7: What's the difference between a macro and a function? | |
1506 | |
1507 Quoting from the Lisp Reference (a.k.a @dfn{Lispref}) Manual: | |
1508 | |
1509 @dfn{Macros} enable you to define new control constructs and other | |
1510 language features. A macro is defined much like a function, but instead | |
1511 of telling how to compute a value, it tells how to compute another Lisp | |
1512 expression which will in turn compute the value. We call this | |
1513 expression the @dfn{expansion} of the macro. | |
1514 | |
1515 Macros can do this because they operate on the unevaluated expressions | |
1516 for the arguments, not on the argument values as functions do. They can | |
1517 therefore construct an expansion containing these argument expressions | |
1518 or parts of them. | |
1519 | |
1520 Do not confuse the two terms with @dfn{keyboard macros}, which are | |
1521 another matter, entirely. A keyboard macro is a key bound to several | |
1522 other keys. Refer to manual for details. | |
1523 | |
1524 @node Q1.3.8, Q1.4.1, Q1.3.7, Introduction | |
1525 @unnumberedsubsec Q1.3.8: What is @code{Custom}? | |
1526 | |
1527 @code{Custom} is a system for customizing XEmacs options. | |
1528 | |
1529 You can access @code{Advanced (Customize)} from the @code{Options} menu | |
1530 or invoking one of customize commands by typing eg. | |
1531 @kbd{M-x customize}, @kbd{M-x customize-face}, | |
1532 @kbd{M-x customize-variable} or @kbd{M-x customize-apropos}. | |
1533 | |
1534 There is also new @samp{browser} mode for Customize. | |
1535 Try it out with @kbd{M-x customize-browse} | |
1536 | |
1537 @unnumberedsec 1.4: Getting Help | |
1538 | |
1539 @node Q1.4.1, Q1.4.2, Q1.3.8, Introduction | |
1540 @unnumberedsubsec Q1.4.1: Where can I get help? | |
1541 | |
1542 Probably the easiest way, if everything is installed, is to use Info, by | |
1543 pressing @kbd{C-h i}, or looking for an Info item on the | |
1544 Help Menu. @kbd{M-x apropos} can be used to look for particular commands. | |
1545 | |
1546 For items not found in the manual, try reading this FAQ | |
1547 and reading the Usenet group comp.emacs.xemacs. | |
1548 | |
1549 If you choose to post to a newsgroup, @strong{please use | |
1550 comp.emacs.xemacs}. Please do not post XEmacs related questions to | |
1551 gnu.emacs.help. | |
1552 | |
1553 If you cannot post or read Usenet news, there is a corresponding mailing | |
1554 list @email{xemacs-news@@xemacs.org} which is available. It can be | |
1555 subscribed to via the Mailman Web interface or by sending mail to to | |
1556 @email{xemacs-news-request@@xemacs.org} with @samp{subscribe} in the | |
1557 body of the message. See also | |
1558 @uref{http://www.xemacs.org/Lists/#xemacs-news}. To cancel a | |
1559 subscription, you may use the @email{xemacs-news-request@@xemacs.org} | |
1560 address or the Web interface. Send a message with a subject of | |
1561 @samp{unsubscribe} to be removed. | |
1562 | |
1563 @node Q1.4.2, Q1.4.3, Q1.4.1, Introduction | |
1564 @unnumberedsubsec Q1.4.2: Which mailing lists are there? | |
1565 | |
1566 For complete, up-to-date info on the lists and how to subscribe, see | |
1567 @uref{http://www.xemacs.org/Lists/}. | |
1568 | |
1569 @table @samp | |
1570 | |
1571 @item comp.emacs.xemacs | |
1572 is a Usenet newsgroup | |
1573 for XEmacs users to discuss problems and issues that arise | |
1574 for them. It's not generally an appropriate place to ask | |
1575 about apparent bugs (use @samp{xemacs-beta}), or future plans | |
1576 (use @samp{xemacs-design}). | |
1577 | |
1578 @item xemacs-announce | |
1579 is a read-only, low | |
1580 volume list for announcements concerning the XEmacs project | |
1581 and new releases of the XEmacs software. | |
1582 | |
1583 @item xemacs-beta | |
2559 | 1584 is an open list for bug reports about beta versions of XEmacs. This |
1585 includes the bug reports themselves, by both users and developers, as | |
1586 well as queries, follow-ups, and discussions further determining their | |
1587 nature and status. This is the primary channel for this kind of | |
1588 discussion; related code changes will usually not be applied until | |
1589 they have been discussed here. When such discussions touch on | |
1590 significant changes to the code (in particular, structural changes), | |
1591 or on changes to API's or external functionality, they should be moved | |
1592 to @samp{xemacs-design}. Requests and proposals for non-bug-related | |
1593 changes do not belong on @samp{xemacs-beta}, and should be sent to | |
1594 @samp{xemacs-design} instead. | |
2537 | 1595 |
1596 @item xemacs-beta-ja | |
1597 is an open list for bug | |
1598 reports and design discussion related to Mule features, | |
1599 including Japanese handling, in beta versions of XEmacs. | |
1600 Japanese is the preferred language of discussion. For most | |
1601 timely presentation to reviewers, please consider sending | |
1602 appropriate discussion to @samp{xemacs-mule} or | |
1603 @samp{xemacs-design} in English when convenient for | |
1604 the participants in discussion. When possible, bug reports | |
1605 not related to Mule (including Japanese) should be reported on | |
1606 @samp{xemacs-beta} in English. | |
1607 | |
1608 @item xemacs-buildreports | |
1609 is an open list for | |
1610 submission of build-reports on beta versions of XEmacs. For | |
1611 information on what the build-reports should contain, please | |
1612 see the `etc/BETA' file which is included in each beta | |
1613 distribution. | |
1614 | |
1615 @item xemacs-cvs | |
1616 is a read-only list for notices | |
1617 and information on what has been committed to the XEmacs CVS | |
1618 trees, by whom, and for what. | |
1619 | |
1620 @item xemacs-design | |
1621 is an open list for | |
1622 discussing the design of XEmacs. This includes discussion | |
1623 about planned and ongoing changes to functionality and API | |
1624 changes and additions as well as requests for them. This is | |
1625 the primary channel for this kind of discussion; related code | |
1626 changes will usually not be applied until they have been | |
1627 discussed here. This does not include bug reports, which go | |
1628 to @samp{xemacs-beta}. | |
1629 | |
1630 @item xemacs-mule | |
1631 is an open mailing list for | |
1632 discussion of International extensions to XEmacs including | |
1633 Mule, XIM, I18n issues, etc, and is not confined to | |
1634 developmental issues. This list is not restricted to | |
1635 English, postings in all languages are welcome. | |
1636 | |
1637 @item xemacs-news | |
1638 is an open list for discussion | |
1639 and bug reporting for XEmacs. This mailing list is | |
1640 bi-directionally gatewayed with the USENET newsgroup | |
1641 comp.emacs.xemacs. | |
1642 | |
1643 @item xemacs-nt | |
1644 is a developers-only mailing | |
1645 list and is intended for people who wish to work actively on | |
1646 the porting of XEmacs to Microsoft Windows NT and Microsoft | |
1647 Windows '95. | |
1648 | |
1649 @item xemacs-patches | |
1650 is an open, moderated | |
1651 list for submission of patches to the XEmacs distribution | |
1652 and its packages. Anyone may subscribe or submit to | |
1653 xemacs-patches, but all submissions are reviewed by the list | |
1654 moderator before they are distributed to the | |
1655 list. Discussion is not appropriate on xemacs-patches. | |
1656 | |
1657 @item xemacs-users-ja | |
1658 is an open list for | |
1659 discussion and bug reporting for XEmacs. Japanese is the | |
1660 preferred language of discussion. It is not gated to | |
1661 comp.emacs.xemacs or the @samp{xemacs} list. For | |
1662 fastest response, bugs not specifically related to Japanese | |
1663 or Mule features should be reported on | |
1664 @samp{xemacs-beta} (in English). | |
1665 | |
1666 @item xemacs-users-ru | |
1667 is an open list for | |
1668 discussion and bug reporting for XEmacs. Russian is the | |
1669 preferred language of discussion. It is not gated to | |
1670 comp.emacs.xemacs or the @samp{xemacs} list. For | |
1671 fastest response, bugs not specifically related to Russian | |
1672 or Mule features should be reported on | |
1673 @samp{xemacs-beta} (in English). | |
1674 @end table | |
1675 | |
1676 @node Q1.4.3, Q1.4.4, Q1.4.2, Introduction | |
1677 @unnumberedsubsec Q1.4.3: Where are the mailing lists archived? | |
1678 | |
1679 The archives can be found at @uref{http://list-archive.xemacs.org} | |
1680 | |
1681 @node Q1.4.4, Q1.4.5, Q1.4.3, Introduction | |
1682 @unnumberedsubsec Q1.4.4: How can I get two instances of info? | |
1683 | |
1684 Before 21.4, you can't. The @code{info} package does not provide for | |
1685 multiple info buffers. In 21.4, this should be fixed. #### how? | |
1686 | |
1687 @node Q1.4.5, Q1.5.1, Q1.4.4, Introduction | |
1688 @unnumberedsubsec Q1.4.5: How do I add new Info directories? | |
1689 | |
1690 You use something like: | |
1691 | |
1692 @lisp | |
1693 (setq Info-directory-list (cons | |
1694 (expand-file-name "~/info") | |
1695 Info-default-directory-list)) | |
1696 @end lisp | |
1697 | |
1698 @email{davidm@@prism.kla.com, David Masterson} writes: | |
1699 | |
1700 @quotation | |
1701 Emacs Info and XEmacs Info do many things differently. If you're trying to | |
1702 support a number of versions of Emacs, here are some notes to remember: | |
1703 | |
1704 @enumerate | |
1705 @item | |
1706 Emacs Info scans @code{Info-directory-list} from right-to-left while | |
1707 XEmacs Info reads it from left-to-right, so append to the @emph{correct} | |
1708 end of the list. | |
1709 | |
1710 @item | |
1711 Use @code{Info-default-directory-list} to initialize | |
1712 @code{Info-directory-list} @emph{if} it is available at startup, but not | |
1713 all Emacsen define it. | |
1714 | |
1715 @item | |
1716 Emacs Info looks for a standard @file{dir} file in each of the | |
1717 directories scanned from #1 and magically concatenates them together. | |
1718 | |
1719 @item | |
1720 XEmacs Info looks for a @file{localdir} file (which consists of just the | |
1721 menu entries from a @file{dir} file) in each of the directories scanned | |
1722 from #1 (except the first), does a simple concatenation of them, and | |
1723 magically attaches the resulting list to the end of the menu in the | |
1724 @file{dir} file in the first directory. | |
1725 @end enumerate | |
1726 | |
1727 Another alternative is to convert the documentation to HTML with | |
1728 texi2html and read it from a web browser like Lynx or W3. | |
1729 @end quotation | |
1730 | |
1731 @unnumberedsec 1.5: Contributing to XEmacs | |
1732 | |
1733 @node Q1.5.1, Q1.5.2, Q1.4.5, Introduction | |
1734 @unnumberedsubsec Q1.5.1: How do I submit changes to the FAQ? | |
1735 | |
1736 The FAQ is actively maintained and modified regularly. All links should | |
1737 be up to date. Unfortunately, some of the information is out of date -- | |
1738 a situation which the FAQ maintainer is working on. All submissions are | |
1739 welcome, please e-mail submissions to @email{faq@@xemacs.org, XEmacs FAQ | |
1740 maintainers}. | |
1741 | |
1742 Please make sure that @samp{XEmacs FAQ} appears on the Subject: line. | |
1743 If you think you have a better way of answering a question, or think a | |
1744 question should be included, we'd like to hear about it. Questions and | |
1745 answers included into the FAQ will be edited for spelling and grammar | |
1746 and will be attributed. Answers appearing without attribution are | |
1747 either from versions of the FAQ dated before May 1996 or are from | |
1748 previous FAQ maintainers. Answers quoted from Usenet news articles will | |
1749 always be attributed, regardless of the author. | |
1750 | |
1751 @node Q1.5.2, Q1.5.3, Q1.5.1, Introduction | |
1752 @unnumberedsubsec Q1.5.2: How do I become a beta tester? | |
1753 | |
1754 Send an email message to @email{xemacs-beta-request@@xemacs.org} with | |
1755 the line @samp{subscribe} in the body of the message. | |
1756 | |
1757 Be prepared to get your hands dirty, as beta testers are expected to | |
1758 identify problems as best they can. | |
1759 | |
2559 | 1760 @node Q1.5.3, Q1.5.4, Q1.5.2, Introduction |
2537 | 1761 @unnumberedsubsec Q1.5.3: How do I contribute to XEmacs itself? |
1762 | |
1763 It depends on the knowledge and time you possess. If you are able, by | |
1764 all means become a beta tester (@pxref{Q1.5.2}). If you are a | |
1765 programmer, try to build XEmacs and see if you can improve it. | |
1766 | |
1767 Otherwise, you can still help by using XEmacs as your everyday editor | |
1768 (for pre-built binary versions, @pxref{Q1.1.2}) and reporting bugs you | |
1769 find to the mailing list. | |
1770 | |
1771 Another area where we need help is the documentation: We need good | |
1772 documentation for building XEmacs and for using it. This FAQ is a | |
1773 small step in that direction. | |
1774 | |
1775 Ben Wing @email{ben@@xemacs.org} writes: | |
1776 | |
1777 @quotation | |
1778 BTW if you have a wish list of things that you want added, you have to | |
1779 speak up about it! More specifically, you can do the following if you | |
1780 want a feature added (in increasing order of usefulness): | |
1781 | |
1782 @itemize @bullet | |
1783 @item | |
1784 Make a posting about a feature you want added. | |
1785 | |
1786 @item | |
1787 Become a beta tester and make more postings about those same features. | |
1788 | |
1789 @item | |
1790 Convince us that you're going to use the features in some cool and | |
1791 useful way. | |
1792 | |
1793 @item | |
1794 Come up with a clear and well-thought-out API concerning the features. | |
1795 | |
1796 @item | |
1797 Write the code to implement a feature and send us a patch. | |
1798 @end itemize | |
1799 | |
1800 (not that we're necessarily requiring you to write the code, but we can | |
1801 always hope :) | |
1802 @end quotation | |
1803 | |
2559 | 1804 @node Q1.5.4, Q1.5.5, Q1.5.3, Introduction |
1805 @unnumberedsubsec Q1.5.4: How do I get started developing XEmacs? | |
1806 | |
1807 First, get yourself set up under CVS so that you can access the CVS | |
1808 repositories containing the XEmacs sources and the XEmacs packages. | |
1809 | |
1810 Next, set up your layout. This is important, as a good layout will | |
1811 facilitate getting things done efficiently, while a bad layout will could | |
1812 lead to disaster, as you can't figure out which code is the most recent, | |
1813 which can be thrown away, etc. We suggest the following layout: (feel free | |
1814 to make changes) | |
1815 | |
1816 @itemize @bullet | |
1817 @item | |
1818 Everything goes under @file{/src/xemacs} (use a different directory if | |
1819 you want). From now, instead of saying @file{/src/xemacs}, we use | |
1820 @file{<xsrc-top>}, to make it easier in case someone picked a | |
1821 different directory. | |
1822 | |
1823 @item | |
1824 Package source is in @file{<xsrc-top>/package-src}. | |
1825 | |
1826 @item | |
1827 Installed packages go under @file{<xsrc-top>/xemacs-packages}, and | |
1828 @file{<xsrc-top>/mule-packages}. | |
1829 | |
1830 @item | |
1831 A "workspace" is a complete copy of the sources, in which you do work of | |
1832 a particular kind. Workspaces can be differentiated by which branch of | |
1833 the source tree they extend off of -- usually either the stable or | |
1834 experimental, unless other branches have been created (for example, Ben | |
1835 created a branch for his Mule work because (1) the project was long-term | |
1836 and involved an enormous number of changes, (2) people wanted to be able | |
1837 to look at what his work in progress, and (3) he wanted to be able to | |
1838 check things in and in general use source-code control, since it was a | |
1839 long-term project). Workspaces are also differentiated in what their | |
1840 purpose is -- general working workspace, workspace for particular | |
1841 projects, workspace keeping the latest copy of the code in one of the | |
1842 branches without mods, etc. | |
1843 | |
1844 @item | |
1845 Various workspaces are subdirectories under @file{<xsrc-top>}, e.g.: | |
1846 | |
1847 @itemize @bullet | |
1848 @item | |
1849 @file{<xsrc-top>/working} (the workspace you're actively working on, | |
1850 periodically synched up with the latest trunk) | |
1851 | |
1852 @item | |
1853 @file{<xsrc-top>/stable} (for making changes to the stable version of | |
1854 XEmacs, which sits on a branch) | |
1855 | |
1856 @item | |
1857 @file{<xsrc-top>/unsigned-removal} (a workspace for a specific, difficult | |
1858 task that's going to affect lots of source and take a long time, and | |
1859 so best done in its own workspace without the interference of other | |
1860 work you're doing. Also, you can commit just this one large change, | |
1861 separate from all the other changes). | |
1862 | |
1863 @item | |
1864 @file{<xsrc-top>/latest} (a copy of the latest sources on the trunk, | |
1865 i.e. the experimental version of XEmacs, with no patches in it; | |
1866 either update it periodically, by hand, or set up a cron job to do it | |
1867 automatically). Set it up so it can be built, and build it so you | |
1868 have a working XEmacs. (Building it might also go into the cron job.) | |
1869 | |
1870 This workspace serves a number of purposes: | |
1871 @enumerate | |
1872 @item | |
1873 You always have a recent version of XEmacs you can compare | |
1874 against when something you're working on breaks. It's true | |
1875 that you can do this with cvs diff, but when you need to do | |
1876 some serious investigation, this method just fails. | |
1877 @item | |
1878 You (almost) always have a working, up-to-date executable that | |
1879 can be used when your executable is crashing and you need to | |
1880 keep developing it, or when you need an `xemacs' to build | |
1881 packages, etc. | |
1882 @item | |
1883 When creating new workspaces, you can just copy the `latest' | |
1884 workspace using GNU @code{cp -a}. You have all the .elc's built, | |
1885 everything else probably configured, any spare files in place | |
1886 (e.g. some annoying xpm.dll under Windows, etc.). | |
1887 @end enumerate | |
1888 | |
1889 @item | |
1890 @file{<xsrc-top>/latest-stable/} (equivalent to @file{<xsrc-top>/latest/}, but | |
1891 for the Stable branch of XEmacs, rather than the Experimental branch | |
1892 of XEmacs). This may or may not be necessary depending on how much | |
1893 development you do of the stable branch. | |
1894 @end itemize | |
1895 | |
1896 @item | |
1897 @file{<xsrc-top>/xemacsweb} is a workspace for working on the XEmacs | |
1898 web site. | |
1899 | |
1900 @item | |
1901 @file{<xsrc-top>/in-patches} for patches received from email and saved | |
1902 to files. | |
1903 | |
1904 @item | |
1905 @file{<xsrc-top>/out-patches} for locally-generated patches to be sent | |
1906 to @email{xemacs-patches@@xemacs.org}. Less useful now that the | |
1907 patcher util has been developed. | |
1908 | |
1909 @item | |
1910 @file{<xsrc-top>/build}, for build trees when compiling and testing XEmacs with | |
1911 various configuration options turned off and on. The scripts in | |
1912 xemacs-builds/ben (see below) can be used to automate building XEmacs | |
1913 workspaces with many different configuration options and automatically | |
1914 filtering out the normal output so that you see only the abnormal | |
1915 output. | |
1916 | |
1917 @item | |
1918 @file{<xsrc-top>/xemacs-builds}, for the xemacs-builds module, which you need | |
1919 to check out separately in CVS. This contains scripts used for building | |
1920 XEmacs, automating and simplifying using CVS, etc. Under various | |
1921 people's directories are their own build and other scripts. The | |
1922 currently most-maintained scripts are under ben/, where there are easily | |
1923 configurable scripts that can be used to easily build any workspace | |
1924 (esp. if you've more or less followed the layout presented above) | |
1925 unattended, with one or more configuration states (there's a | |
1926 pre-determined list of the most useful, but it's easy to change). The | |
1927 output is filtered and split up in various ways so that you can identify | |
1928 which output came from where, and you can see the output either full or | |
1929 with all "normal" output except occasional status messages filtered so | |
1930 that you only see the abnormal ones. | |
1931 @end itemize | |
1932 | |
1933 @node Q1.5.5, Q1.6.1, Q1.5.4, Introduction | |
1934 @unnumberedsubsec Q1.5.5: What's the basic layout of the code? | |
1935 | |
1936 The file @file{configure} is a shell script to acclimate XEmacs to the | |
1937 oddities of your processor and operating system. It will create a | |
1938 file named @file{Makefile} (a script for the @file{make} program), which helps | |
1939 automate the process of building and installing emacs. See INSTALL | |
1940 for more detailed information. | |
1941 | |
1942 The file @file{configure.in} is the input used by the autoconf program to | |
1943 construct the @file{configure} script. Since XEmacs has configuration | |
1944 requirements that autoconf can't meet, @file{configure.in} uses an unholy | |
1945 marriage of custom-baked configuration code and autoconf macros; it | |
1946 may be wise to avoid rebuilding @file{configure} from @file{configure.in} when | |
1947 possible. | |
1948 | |
1949 The file @file{Makefile.in} is a template used by @file{configure} to create | |
1950 @file{Makefile}. | |
1951 | |
1952 There are several subdirectories: | |
1953 | |
1954 @enumerate | |
1955 @item | |
1956 @file{src} holds the C code for XEmacs (the XEmacs Lisp interpreter and its | |
1957 primitives, the redisplay code, and some basic editing functions). | |
1958 @item | |
1959 @file{lisp} holds the XEmacs Lisp code for XEmacs (most everything else). | |
1960 @item | |
1961 @file{lib-src} holds the source code for some utility programs for use by | |
1962 or with XEmacs, like movemail and etags. | |
1963 @item | |
1964 @file{etc} holds miscellaneous architecture-independent data files | |
1965 XEmacs uses, like the tutorial text. The contents of the @file{lisp}, | |
1966 @file{info} and @file{man} subdirectories are architecture-independent too. | |
1967 @item | |
1968 @file{lwlib} holds the C code for the X toolkit objects used by XEmacs. | |
1969 @item | |
1970 @file{info} holds the Info documentation tree for XEmacs. | |
1971 @item | |
1972 @file{man} holds the source code for the XEmacs online documentation. | |
1973 @item | |
1974 @file{nt} holds files used compiling XEmacs under Microsoft Windows. | |
1975 @end enumerate | |
1976 | |
2537 | 1977 @unnumberedsec 1.6: Politics (XEmacs vs. GNU Emacs) |
1978 | |
2559 | 1979 @node Q1.6.1, Q1.6.2, Q1.5.5, Introduction |
2537 | 1980 @unnumberedsubsec Q1.6.1: What is GNU Emacs? |
1981 | |
1982 GNU Emacs and XEmacs are related open-source text editors. Both | |
1983 derive from GNU Emacs version 18; the split between the two happened | |
1984 in 1991 (for comparison, the oldest versions of GNU Emacs date from | |
1985 1984). For information on GNU Emacs, see | |
1986 @uref{http://www.gnu.org/software/emacs/emacs.html}. | |
1987 | |
1988 @node Q1.6.2, Q1.6.3, Q1.6.1, Introduction | |
1989 @unnumberedsubsec Q1.6.2: How does XEmacs differ from GNU Emacs? | |
428 | 1990 |
1991 For a detailed description of the differences between GNU Emacs and | |
1992 XEmacs and a detailed history of XEmacs, check out the | |
1993 @example | |
430 | 1994 @uref{http://www.xemacs.org/About/XEmacsVsGNUemacs.html, NEWS file} |
428 | 1995 @end example |
1996 | |
2417 | 1997 @table @strong |
1998 @item User-Visible Editing Features | |
1999 XEmacs in general tries hard to conform to exist user-interface | |
2000 standards, and to work "out-of-the-box" without the need for obscure | |
2001 customization changes. GNU Emacs, particularly version 21, has gotten | |
2002 better about this (in many cases by copying the XEmacs behavior!), but | |
2003 still has some weirdnesses. For example, the standard method of | |
2004 selecting text using the Shift key works out-of-the-box in XEmacs. | |
2005 | |
2006 XEmacs has a built-in toolbar. Four toolbars can actually be configured | |
2007 simultaneously: top, bottom, left, and right toolbars. | |
2008 | |
2009 XEmacs has vertical and horizontal scrollbars. Unlike in GNU Emacs 19 | |
2010 (which provides a primitive form of vertical scrollbar), these are true | |
2011 toolkit scrollbars. A look-alike Motif scrollbar is provided for those | |
2012 who don't have Motif. (Even for those who do, the look-alike may be | |
2013 preferable as it is faster.) | |
2014 | |
2015 XEmacs has buffer tabs along the top of the frame (although the | |
2016 position can be changed) that make it very easy to switch buffers. | |
2017 | |
2018 The menubar under XEmacs is better-designed, with more thought put into | |
2019 it. | |
2020 | |
2021 XEmacs can ask questions using popup dialog boxes. Any command executed | |
2022 from a menu will ask yes/no questions with dialog boxes, while commands | |
2023 executed via the keyboard will use the minibuffer. | |
2024 | |
2025 XEmacs under MS Windows provides uses the standard file-dialog box for | |
2026 opening and saving files. Standard menu-accelerator behavior can easily | |
2027 be enabled using the Options menu, and integrates well into the existing | |
2028 keymap. | |
2029 | |
2030 XEmacs has (still experimental) support for widgets of various sorts -- | |
2031 buttons, text boxes, sliders, progress bars, etc. A progress bar is | |
2032 used in font lock to show the progress. | |
2033 | |
2034 Experimental support for drag-and-drop protocols is provided from | |
2035 XEmacs 21. | |
2036 | |
2037 @item General Platform Support | |
2038 If you're running on a machine with audio hardware, you can specify | |
2039 sound files for XEmacs to play instead of the default X beep. See the | |
2040 documentation of the function load-sound-file and the variable | |
2041 sound-alist. XEmacs also supports the network sound protocols NAS and | |
2042 EsounD. | |
2043 | |
2044 XEmacs 21 supports database protocols with LISP bindings, currently | |
2045 including Berkeley DB, LDAP, and PostgreSQL (21.2 only). | |
2046 | |
2047 XEmacs 20 and 21 support the Canna, Wnn, and SJ3 Japanese input method | |
2048 servers directly, as well as through the X Input Method (XIM) | |
2049 protocol. GNU Emacs 20 supports only the XIM protocol. Both Emacsen | |
2050 support the Quail family of input methods (implemented in LISP) for many | |
2051 languages. | |
2052 | |
2053 XEmacs provides support for ToolTalk on systems that have | |
2054 it. | |
2055 | |
2056 @item Packaged LISP Libraries | |
2057 Many more packages are provided standard with XEmacs than with GNU Emacs | |
2058 19 or 20. | |
2059 | |
2060 XEmacs 21 supports an integrated package management system which uses | |
2061 EFS to download, then automatically install prebuilt LISP | |
2062 libraries. This allows XEmacs users much more straightforward access to | |
2063 the "latest and greatest" version of any given library. | |
2064 | |
2065 We are working on a standard method for enabling, disabling and | |
2066 otherwise controlling packages, which should make them very easy to use. | |
2067 | |
2068 @item LISP Programming | |
2069 From XEmacs 20 on, characters are a separate type. Characters can be | |
2070 converted to integers (and many integers can be converted to | |
2071 characters), but characters are not integers. GNU Emacs 19, XEmacs 19, | |
2072 Mule 2.3 (an extensive patch to GNU Emacs 18.55 and 19.x), and GNU Emacs | |
2073 20 (incorporating Mule 3 and later Mule 4) represent them as integers. | |
2074 | |
2075 From XEmacs 20 on, the buffer is treated as an array of characters, and | |
2076 the representation of buffer text is not exposed to LISP. The GNU Emacs | |
2077 20 functions like buffer-as-multibyte are not supported. | |
2078 | |
2079 In XEmacs, events are first-class objects. GNU Emacs 19 represents them | |
2080 as integers, which obscures the differences between a key gesture and | |
2081 the ancient ASCII code used to represent a particular overlapping subset | |
2082 of them. | |
2083 | |
2084 In XEmacs, keymaps are first-class opaque objects. GNU Emacs 19 | |
2085 represents them as complicated combinations of association lists and | |
2086 vectors. If you use the advertised functional interface to manipulation | |
2087 of keymaps, the same code will work in XEmacs, GNU Emacs 18, and GNU | |
2088 Emacs 19; if your code depends on the underlying implementation of | |
2089 keymaps, it will not. | |
2090 | |
2091 XEmacs uses "extents" to represent all non-textual aspects of buffers; | |
2092 GNU Emacs 19 uses two distinct objects, "text properties" and | |
2093 "overlays", which divide up the functionality between them. Extents are | |
2094 a superset of the union of the functionality of the two GNU Emacs data | |
2095 types. The full GNU Emacs 19 interface to text properties and overlays | |
2096 is supported in XEmacs (with extents being the underlying | |
2097 representation). | |
2098 | |
2099 Extents can be made to be copied into strings, and then restored, by | |
2100 kill and yank. Thus, one can specify this behavior on either "extents" | |
2101 or "text properties", whereas in GNU Emacs 19 text properties always | |
2102 have this behavior and overlays never do. | |
2103 | |
2104 @item Window System Programming Interface | |
2105 XEmacs uses the MIT "Xt" toolkit instead of raw Xlib calls, which makes | |
2106 it be a more well-behaved X citizen (and also improves portability). A | |
2107 result of this is that it is possible to include other Xt "Widgets" in | |
2108 the XEmacs window. Also, XEmacs understands the standard Xt command-line | |
2109 arguments. | |
2110 | |
2111 XEmacs supports Motif applications, generic Xt (e.g. Athena) | |
2112 applications, and raw Xlib applications. An XEmacs variant which | |
2113 supports GTK+ is available (integration as an option in the XEmacs | |
2114 mainline is planned for XEmacs 22), although code to take advantage of | |
2115 the support is as yet scarce. | |
2116 | |
2117 An XEmacs frame can be placed within an "external client widget" managed | |
2118 by another application. This allows an application to use an XEmacs | |
2119 frame as its text pane rather than the standard Text widget that is | |
2120 provided with Motif or Athena. | |
2121 | |
2122 @item Community Participation | |
2459 | 2123 Joining the XEmacs development team is simple. Mail to |
2124 @email{xemacs-beta@@xemacs.org, XEmacs Developers}, and you're in! (If | |
2125 you want to be, of course. You're also welcome to just post | |
2126 development-related questions and bug reports.) The GNU Emacs | |
2417 | 2127 development team and internal mailing lists are still by invitation |
2128 only. | |
2129 | |
2130 The "bleeding edge" of mainline XEmacs development is available by | |
2131 anonymous CVS as are some subsidiary branches (check out the xemacs-gtk | |
2132 module for the latest in GUI features!) | |
2133 | |
2134 Development and maintenance of Lisp libraries is separated from the core | |
2135 editor development at a fairly low level. This provides better | |
2136 modularization and a better division of responsibility between external | |
2137 library maintainers and the XEmacs core development team. Even for | |
2138 packages the size of Gnus, XEmacs users normally have access to a | |
2139 pre-built version within a few weeks of a major release, and minor | |
2140 updates often within days. | |
2141 | |
2142 CVS commit authority is broadly dispersed. Recognized maintainers of | |
2143 LISP libraries who are willing to maintain XEmacs packaged versions | |
2144 automatically qualify for CVS accounts for their packages. | |
2145 @end table | |
2146 | |
2537 | 2147 @node Q1.6.3, Q1.6.4, Q1.6.2, Introduction |
2148 @unnumberedsubsec Q1.6.3: How much does XEmacs differ? | |
2417 | 2149 |
2150 RMS has asserted at times that XEmacs is merely a "patch" on top of | |
2537 | 2151 GNU Emacs (@pxref{Q1.6.4}). In fact, probably not more than 5% of the |
2417 | 2152 code, if that, remains unchanged, and nearly 14 years of work has gone |
2153 into XEmacs at this point. (GNU Emacs itself is only than 20 years | |
2154 old, and thus XEmacs has existed as a separate product for over 2/3 of | |
2155 the lifespan of GNU Emacs.) As a point of comparison, XEmacs 21.5 has | |
2156 perhaps 65,000 more lines of C code than GNU Emacs 21.2. | |
2157 | |
2158 However, the XEmacs developers strive to keep their code compatible with | |
2159 GNU Emacs, especially on the Lisp level. Much effort goes into | |
2160 "synching" the XEmacs Elisp code with recent GNU Emacs releases so as to | |
2161 benefit from GNU Emacs development work. (In contrast, almost no code | |
2162 from XEmacs has made it into GNU Emacs, and in fact the GNU Emacs | |
2163 developers are instructed by RMS not to even look at XEmacs source code! | |
2164 This stems from self-imposed licensing restrictions on the part of GNU | |
2165 Emacs -- and almost certainly out of hostility, as well.) | |
2166 | |
2537 | 2167 @node Q1.6.4, Q1.6.5, Q1.6.3, Introduction |
2168 @unnumberedsubsec Q1.6.4: Is XEmacs "GNU"? | |
2417 | 2169 |
2170 RMS insists on the term "GNU XEmacs" and maintains that | |
2171 | |
2172 @quotation | |
2173 XEmacs is GNU software because it's a modified version of a | |
2174 GNU program. And it is GNU software because the FSF is the copyright | |
2175 holder for most of it, and therefore the legal responsibility for | |
2176 protecting its free status falls on us whether we want it or not. This | |
2177 is why the term "GNU XEmacs" is legitimate. | |
2178 @end quotation | |
2179 | |
2180 In fact, FSF is @emph{not} the copyright holder for most of the code, | |
2537 | 2181 as very little unmodified FSF code remains (@pxref{Q1.6.3}). |
2417 | 2182 |
2183 Furthermore, RMS's assertion that XEmacs is "GNU" seems rather bizarre | |
2184 to the XEmacs developers given RMS's hostility and general lack of | |
2185 interest in cooperation. "GNU" software in general is part of the GNU | |
2186 Project, is distributed by it on their FTP site, and receives support | |
2187 (or at least cooperation), as well as implicit endorsement, from it. | |
2188 The GNU Project, however, has never supported XEmacs and never | |
2189 distributed XEmacs, and RMS's hostility is the farthest thing possible | |
2190 from an endorsement. In fact, the GNU Project distributes a number of | |
2191 non-GNU software projects on the FSF web site, but again XEmacs is not | |
2192 one of them. | |
2193 | |
2537 | 2194 @node Q1.6.5, Q1.6.6, Q1.6.4, Introduction |
2195 @unnumberedsubsec Q1.6.5: What is the correct way to refer to XEmacs and GNU Emacs? | |
2417 | 2196 |
2197 Unfortunately even the naming of these two applications has become | |
2198 politicized. Much of this stems from RMS, who has a history of | |
2199 politicizing similar issues. (Compare the controversy over "Lignux" | |
2200 and "GNU/Linux".) We would prefer that the terms "XEmacs" and "GNU | |
2201 Emacs" be used, which are neutral and acceptable to most people. RMS, | |
2202 however, is not willing to accept these terms. He insists that, if | |
2203 his product is called "GNU Emacs", then ours must be called "GNU | |
2537 | 2204 XEmacs". (For our opinion of this term, @xref{Q1.6.4}.) On the other |
2417 | 2205 hand, if our product is to be called "XEmacs", as we prefer, then his |
2206 product must simply be called "Emacs". The intent of this seems | |
2207 clear: RMS wants to make sure the names reflect his view that his | |
2208 version is the "real" Emacs and ours is merely a derivative, | |
2537 | 2209 second-class product (@pxref{Q1.6.3}). |
2417 | 2210 |
2211 The XEmacs developers hope that you will use the neutral terms | |
2212 "XEmacs" and "GNU Emacs" for these two specific products. "Emacs", on | |
2213 the other hand, is a generic term for a class of programmable text | |
2214 editors with a similar look-and-feel, and usually a Lisp-based | |
2215 extension language. These trace themselves back to early editors such | |
2216 as EINE, ZWEI, ZMACS and Multics Emacs. @xref{A History of Emacs,,, | |
2217 internals, XEmacs Internals Manual}. | |
2218 | |
2219 We also call upon RMS, in the spirit of furthering cooperation, to | |
2220 stop politicizing this issue and use the neutral terms "XEmacs" and | |
2221 "GNU Emacs". We have already acceded to RMS' wishes in this respect, | |
2222 and we expect him to do the same. (In the past, the XEmacs developers | |
2223 often used the terms "FSF Emacs" or "FSFmacs" or "RMSmacs" in | |
2224 reference to GNU Emacs; these terms were apparently modeled after RMS' | |
2225 own usage of "Gosmacs" and "Gosling Emacs" in reference to Unipress | |
2226 Emacs, produced by James Gosling. RMS, however, considers such terms | |
2227 to be insulting, so we refrain from using them as much as possible in | |
2228 preference to GNU Emacs.) | |
2229 | |
2537 | 2230 @node Q1.6.6, Q1.7.1, Q1.6.5, Introduction |
2231 @unnumberedsubsec Q1.6.6: Why haven't XEmacs and GNU Emacs merged? | |
2417 | 2232 |
2233 There are currently irreconcilable differences in the views about | |
2234 technical, programming, design, organizational and legal matters | |
2235 between Richard Stallman (RMS), the author and leader of the GNU Emacs | |
2236 project, and the XEmacs development team which provide little hope for | |
2237 a merge to take place in the short-term future. There have been | |
2238 repeated attempts at merging by all of the major XEmacs developers, | |
2239 starting from the early days of Lucid Emacs (in 1991), but they have | |
2240 all failed. RMS has very strong views about how GNU Emacs should be | |
2241 structured and how his project should be run, and during the repeated | |
2242 merge efforts has never demonstrated any realistic interest in | |
2243 sufficiently compromising or ceding control to allow a middle ground | |
2244 to be found. The basic problem seems to be the very different goals | |
2245 of RMS and the XEmacs project. The primary goals of the XEmacs | |
2246 project are technical and organizational -- we want to create the best | |
2247 editor possible, and to make it as easy as possible for people around | |
2248 the world to contribute. The primary goals of RMS, on the other hand, | |
2249 are political, and GNU Emacs, and any potential merge efforts with | |
2250 XEmacs, are strictly subservient to these goals. In fact, in many | |
2251 ways RMS sees GNU Emacs as the "poster child" of his aims, the one | |
2252 program in the GNU project that above all others must set an example | |
2253 to the world. (This has to do with the fact that GNU Emacs was the | |
2254 first program in the GNU project, and the only one that he is still | |
2255 personally involved with on a day-to-day basis.) Given his goals, his | |
2256 position is completely reasonable -- but unfortunately, makes any | |
2257 merge impossible. | |
2258 | |
2259 From the XEmacs perspective, the most intractable issues appear to be | |
2260 legal and organizational, specifically: | |
428 | 2261 |
2262 @itemize @bullet | |
2263 @item | |
2417 | 2264 RMS requires "legal papers" to be signed for all contributions of code |
2265 to GNU Emacs over 10 lines or so, transferring the copyright and all | |
2266 legal rights to the code to the Free Software Foundation. XEmacs does | |
2267 not and has never required this, since it has the practical effect of | |
2268 discouraging individual and in particular corporate contributions -- | |
2269 corporations will almost never sign away their legal rights to code | |
2270 since it makes it impossible to reuse the code in any product that | |
2271 whose license is not compatible with the GNU General Public License. | |
2272 Since RMS has shown no inclination to compromise on this issue, a | |
2273 merge would require that most of the existing XEmacs code would need | |
2274 to be thrown away and rewritten -- something the XEmacs developers are | |
2275 understandably reluctant to do. | |
2276 | |
2277 @item | |
2278 A repeated stumbling block in the merge talks has been the issue of | |
2279 organizational control over the resulting product. RMS has made it | |
2280 clear that he intends to have final say over design issues in a merged | |
2281 Emacs. Unfortunately, RMS and the XEmacs developers have repeatedly | |
2282 clashed over design decisions, and RMS' insistence on getting his way | |
2283 in such disagreements was the very reason for the split in the first | |
2284 place. This same issue has come up again and again in merge talks and | |
2285 we have never been able to come to a satisfactory resolution. To the | |
2286 extent that RMS is willing to compromise at all, it appears to be of a | |
2287 purely political rather than technical nature -- "If we support this | |
2288 feature of yours, we also get to support this other feature of mine." | |
2289 The XEmacs developers cannot see how such a process would lead to | |
2290 anything but a mess of incompatible things hodgepodged together. | |
2291 | |
2292 @item | |
2293 Because of the years of separate development, distinct and | |
2294 incompatible interfaces have developed and merging would be extremely | |
2295 difficult even with the above non-technical issues resolved. The | |
2296 problem has been exacerbated by the issue of legal papers -- because | |
2297 XEmacs code is not "kosher" from RMS' perspective, he discourages | |
2298 developers from even looking at it out of legal concerns. Although it | |
2299 is still possible to read the XEmacs documentation and run the | |
2300 program, the practical effect of this prohibition has been to strongly | |
2301 discourage code-sharing and cooperative development -- although a | |
2302 great deal of GNU Emacs code has been incorporated into XEmacs, | |
2303 practically none has gone the other direction. | |
428 | 2304 @end itemize |
2305 | |
2306 If you have a comment to add regarding the merge, it is a good idea to | |
2417 | 2307 avoid posting to the newsgroups, because of the very heated flamewars |
2308 that often result. Mail your questions to | |
2309 @email{xemacs-beta@@xemacs.org} and @email{emacs-devel@@gnu.org}. | |
2310 | |
2537 | 2311 @unnumberedsec 1.7: External Packages |
2312 | |
2559 | 2313 @node Q1.7.1, Q1.7.2, Q1.6.6, Introduction |
2314 @unnumberedsubsec Q1.7.1: What is the package system? | |
2315 | |
2316 In order to reduce the size and increase the maintainability of | |
2317 XEmacs, the majority of the Elisp packages that came with previous | |
2318 releases have been unbundled. They have been replaced by the package | |
2319 system. Each elisp add-on (or groups of them when they are small) now | |
2320 comes in its own tarball that contains a small search hierarchy. | |
2321 | |
2322 You select just the ones you need. Install them by untarring them into | |
2323 the right place. On startup XEmacs will find them, set up the load | |
2324 path correctly, install autoloads, etc, etc. | |
2325 | |
2326 @xref{Q2.1.1}, for more info on how to download and install the packages. | |
2327 | |
2328 @node Q1.7.2, Q1.7.3, Q1.7.1, Introduction | |
2329 @unnumberedsubsec Q1.7.2: Which external packages are there? | |
2537 | 2330 |
2331 @subheading Normal Packages | |
2332 | |
2333 A very broad collection of elisp packages. | |
2417 | 2334 |
2335 @table @asis | |
2537 | 2336 @item Sun |
2337 Support for Sparcworks. | |
2338 | |
2339 @item ada | |
2340 Ada language support. | |
2341 | |
2342 @item apel | |
2343 A Portable Emacs Library. Used by XEmacs MIME support. | |
2344 | |
2345 @item auctex | |
2346 Basic TeX/LaTeX support. | |
2347 | |
2348 @item bbdb | |
2349 The Big Brother Data Base: a rolodex-like database program. | |
2350 | |
2351 @item build | |
2352 Build XEmacs from within (UNIX, Windows). | |
2353 | |
2354 @item c-support | |
2355 Basic single-file add-ons for editing C code. | |
2356 | |
2357 @item calc | |
2358 Emacs calculator. | |
2359 | |
2360 @item calendar | |
2361 Calendar and diary support. | |
2362 | |
2363 @item cc-mode | |
2364 C, C++, Objective-C, Java, CORBA IDL, Pike and AWK language support. | |
2365 | |
2366 @item clearcase | |
2367 New Clearcase Version Control for XEmacs (UNIX, Windows). | |
2368 | |
2369 @item clearcase | |
2370 Support for the Clearcase version control system. | |
2371 | |
2372 @item cookie | |
2373 "Fortune cookie"-style messages. Includes Spook (suspicious phrases) | |
2374 and Yow (Zippy quotes). | |
2375 | |
2376 @item crisp | |
2377 Crisp/Brief emulation. | |
2378 | |
2379 @item debug | |
2380 GUD, gdb, dbx debugging support. | |
2381 | |
2382 @item dictionary | |
2383 Interface to RFC2229 dictionary servers. | |
2384 | |
2385 @item dired | |
2386 The DIRectory EDitor is for manipulating, and running commands on | |
2387 files in a directory. | |
2388 | |
2389 @item docbookide | |
2390 DocBook editing support. | |
2391 | |
2392 @item ecb | |
2393 Emacs source code browser. | |
2394 | |
2395 @item ecrypto | |
2396 Crypto functionality in Emacs Lisp. | |
2397 | |
2398 @item edebug | |
2399 An Emacs Lisp debugger. | |
2400 | |
2401 @item ediff | |
2402 Interface over GNU patch. | |
2403 | |
2404 @item edit-utils | |
2405 Miscellaneous editor extensions, you probably need this. | |
2406 | |
2407 @item edt | |
2408 DEC EDIT/EDT emulation. | |
2409 | |
2410 @item efs | |
2411 Treat files on remote systems the same as local files. | |
2412 | |
2413 @item eieio | |
2414 Enhanced Implementation of Emacs Interpreted Objects. | |
2415 | |
2416 @item elib | |
2417 Portable Emacs Lisp utilities library. | |
2418 | |
2419 @item emerge | |
2420 Another interface over GNU patch. | |
2421 | |
2422 @item erc | |
2423 ERC is an Emacs InternetRelayChat client. | |
2424 | |
2425 @item escreen | |
2426 Multiple editing sessions withing a single frame (like screen). | |
2427 | |
2428 @item eshell | |
2429 Command shell implemented entirely in Emacs Lisp. | |
2430 | |
2431 @item ess | |
2432 ESS: Emacs Speaks Statistics. | |
2433 | |
2434 @item eterm | |
2435 Terminal emulation. | |
2436 | |
2437 @item eudc | |
2438 Emacs Unified Directory Client (LDAP, PH). | |
2439 | |
2440 @item footnote | |
2441 Footnoting in mail message editing modes. | |
2442 | |
2443 @item forms | |
2444 Forms editing support (obsolete, use Widget instead). | |
2445 | |
2446 @item fortran-modes | |
2447 Fortran support. | |
2448 | |
2449 @item fortran-modes | |
2450 Fortran language support. | |
2451 | |
2452 @item frame-icon | |
2453 Set up mode-specific icons for each frame under XEmacs. | |
2454 | |
2455 @item fsf-compat | |
2456 GNU Emacs compatibility files. | |
2457 | |
2458 @item games | |
2459 Tetris, Sokoban, and Snake. | |
2460 | |
2461 @item general-docs | |
2462 General documentation. Presently, empty. | |
2463 | |
2464 @item gnats | |
2465 XEmacs bug reports. | |
2466 | |
2467 @item gnus | |
2468 The Gnus Newsreader and Mailreader. | |
2469 | |
2470 @item haskell-mode | |
2471 Haskell editing support. | |
2472 | |
2473 @item hm--html-menus | |
2474 HTML editing. | |
2475 | |
2476 @item hyperbole | |
2477 Hyperbole: The Everyday Info Manager. | |
2478 | |
2479 @item ibuffer | |
2480 Advanced replacement for buffer-menu. | |
2481 | |
2482 @item idlwave | |
2483 Editing and Shell mode for the Interactive Data Language. | |
2484 | |
2485 @item igrep | |
2486 Enhanced front-end for Grep. | |
2487 | |
2488 @item ilisp | |
2489 Front-end for interacting with Inferior Lisp (external lisps). | |
2490 | |
2491 @item ispell | |
2492 Spell-checking with GNU ispell. | |
2493 | |
2494 @item jde | |
2495 Integrated Development Environment for Java. | |
2496 | |
2497 @item liece | |
2498 IRC (Internet Relay Chat) client for Emacs. Note, this package is | |
2499 deprecated and will be removed, use riece instead. | |
2500 | |
2501 @item mail-lib | |
2502 Fundamental lisp files for providing email support. | |
2503 | |
2504 @item mailcrypt | |
2505 Support for messaging encryption with PGP. | |
2506 | |
2507 @item mew | |
2508 Messaging in an Emacs World; a MIME-based email program. | |
2509 | |
2510 @item mh-e | |
2511 The XEmacs Interface to the MH Mail System. | |
2512 | |
2513 @item mine | |
2514 Elisp implementation of the game 'Minehunt'. | |
2515 | |
2516 @item misc-games | |
2517 Other amusements and diversions. | |
2518 | |
2519 @item mmm-mode | |
2520 Support for Multiple Major Modes within a single buffer. | |
2521 | |
2522 @item net-utils | |
2523 Miscellaneous Networking Utilities. | |
2524 | |
2525 @item ocaml | |
2526 Objective Caml editing support. | |
2527 | |
2528 @item oo-browser | |
2529 OO-Browser: The Multi-Language Object-Oriented Code Browser. | |
2530 | |
2531 @item ocaml | |
2532 Objective Caml editing support. | |
2533 | |
2534 @item os-utils | |
2535 Miscellaneous single-file O/S utilities, for printing, archiving, | |
2536 compression, remote shells, etc. | |
2537 | |
2538 @item pc | |
2539 PC style interface emulation. | |
2540 | |
2541 @item pcl-cvs | |
2542 CVS frontend. | |
2543 | |
2544 @item pcomplete | |
2545 Provides programmatic completion. | |
2546 | |
2547 @item perl-modes | |
2548 Perl support. | |
2549 | |
2550 @item pgg | |
2551 Emacs interface to various PGP implementations. | |
2552 | |
2553 @item prog-modes | |
2554 Support for various programming languages. | |
2555 | |
2556 @item ps-print | |
2557 Printing functions and utilities. | |
2558 | |
2559 @item psgml | |
2560 Validated HTML/SGML editing. | |
2561 | |
2562 @item psgml-dtds | |
2563 A collection of DTDs for psgml. Note that this package is deprecated | |
2564 and will be removed in the future, most likely Q2/2003. Instead of using | |
2565 this, you should install needed DTDs yourself. | |
2566 | |
2567 @item python-modes | |
2568 Python language support. | |
2569 | |
2570 @item reftex | |
2571 Emacs support for LaTeX cross-references, citations. | |
2572 | |
2573 @item riece | |
2574 IRC (Internet Relay Chat) client for Emacs. | |
2575 | |
2576 @item rmail | |
2577 An obsolete Emacs mailer. If you do not already use it don't start. | |
2578 | |
2579 @item ruby-modes | |
2580 Ruby support. | |
2581 | |
2582 @item sasl | |
2583 Simple Authentication and Security Layer (SASL) library. | |
2584 | |
2585 @item scheme | |
2586 Front-end support for Inferior Scheme. | |
2587 | |
2588 @item semantic | |
2589 Semantic bovinator (Yacc/Lex for XEmacs). Includes Senator. | |
2590 | |
2591 @item sgml | |
2592 SGML/Linuxdoc-SGML editing. | |
2593 | |
2594 @item sh-script | |
2595 Support for editing shell scripts. | |
2596 | |
2597 @item sieve | |
2598 Manage Sieve email filtering scripts. | |
2599 | |
2600 @item slider | |
2601 User interface tool. | |
2602 | |
2603 @item sml-mode | |
2604 SML editing support. | |
2605 | |
2606 @item sounds-au | |
2607 XEmacs Sun sound files. | |
2608 | |
2609 @item sounds-wav | |
2610 XEmacs Microsoft sound files. | |
2611 | |
2612 @item speedbar | |
2613 Provides a separate frame with convenient references. | |
2614 | |
2615 @item strokes | |
2616 Mouse enhancement utility. | |
2617 | |
2618 @item supercite | |
2619 An Emacs citation tool for News & Mail messages. | |
2620 | |
2621 @item texinfo | |
2622 XEmacs TeXinfo support. | |
2623 | |
2624 @item text-modes | |
2625 Miscellaneous support for editing text files. | |
2626 | |
2627 @item textools | |
2628 Miscellaneous TeX support. | |
2629 | |
2630 @item time | |
2631 Display time & date on the modeline. | |
2632 | |
2633 @item tm | |
2634 Emacs MIME support. Not needed for gnus >= 5.8.0. | |
2635 | |
2636 @item tooltalk | |
2637 Support for building with Tooltalk. | |
2638 | |
2639 @item tpu | |
2640 DEC EDIT/TPU support. | |
2641 | |
2642 @item tramp | |
2643 Remote shell-based file editing. This is similar to EFS or Ange-FTP, | |
2644 but works with rsh/ssh and rcp/scp. | |
2645 | |
2646 @item vc | |
2647 Version Control for Free systems. | |
2648 | |
2649 @item vc-cc | |
2650 Version Control for ClearCase (UnFree) systems. | |
2651 | |
2652 @item vhdl | |
2653 Support for VHDL. | |
2654 | |
2655 @item view-process | |
2656 A Unix process browsing tool. | |
2657 | |
2658 @item viper | |
2659 VI emulation support. | |
2660 | |
2661 @item vm | |
2662 An Emacs mailer. | |
2663 | |
2664 @item w3 | |
2665 A Web browser. | |
2666 | |
2667 @item x-symbol | |
2668 Semi WYSIWYG for LaTeX, HTML, etc, using additional fonts. | |
2669 | |
2670 @item xemacs-base | |
2671 Fundamental XEmacs support, you almost certainly need this. | |
2672 | |
2673 @item xemacs-devel | |
2674 XEmacs Lisp developer support. This package contains utilities for | |
2675 supporting Lisp development. It is a single-file package so it may be | |
2676 tailored. | |
2677 | |
2678 @item xlib | |
2679 Emacs interface to X server. | |
2680 | |
2681 @item xslide | |
2682 XSL editing support. | |
2683 | |
2684 @item xslt-process | |
2685 A minor mode for (X)Emacs which allows running an XSLT processor on a | |
2686 buffer. | |
2687 | |
2688 @item xwem | |
2689 X Emacs Window Manager. | |
2690 | |
2691 @item zenirc | |
2692 ZENIRC IRC Client. | |
2417 | 2693 @end table |
2694 | |
2537 | 2695 @subheading Mule Support (mule) |
2696 | |
2697 MULti-lingual Enhancement. Support for world scripts such as | |
2698 Latin, Arabic, Cyrillic, Chinese, Japanese, Greek, Hebrew etc. | |
2699 To use these packages your XEmacs must be compiled with Mule | |
2700 support. | |
2701 | |
2702 @table @asis | |
2703 @item edict | |
2704 MULE: Lisp Interface to EDICT, Kanji Dictionary. | |
2705 | |
2706 @item egg-its | |
2707 MULE: Wnn (4.2 and 6) support. SJ3 support. | |
2708 | |
2709 @item latin-unity | |
2710 MULE: find single ISO 8859 character set to encode a buffer. | |
2711 | |
2712 @item latin-unity | |
2713 Unify character sets in a buffer. When characters belong to disjoint | |
2714 character sets, this attempts to translate the characters so | |
2715 that they belong to one character set. If the buffer coding system is | |
2716 not sufficient, this suggests different coding systems. | |
2717 | |
2718 @item leim | |
2719 MULE: Quail. All non-English and non-Japanese language support. | |
2720 | |
2721 @item locale | |
2722 MULE: Localized menubars and localized splash screens. | |
2723 | |
2724 @item lookup | |
2725 Dictionary support. (This isn't an English dictionary program) | |
2726 | |
2727 @item mule-base | |
2728 MULE: Basic Mule support, required for building with Mule. | |
2729 | |
2730 @item mule-ucs | |
2731 MULE: Extended coding systems (including Unicode) for XEmacs. | |
2732 | |
2733 @item mule-ucs | |
2734 Extended coding systems (including Unicode) for XEmacs. | |
2735 | |
2736 @item skk | |
2737 Another Japanese Language Input Method. Can be used without a | |
2738 separate process running as a dictionary server. | |
2739 @end table | |
2740 | |
2559 | 2741 @node Q1.7.3, Q1.7.4, Q1.7.2, Introduction |
2742 @unnumberedsubsec Q1.7.3: Do I need to have the packages to run XEmacs? | |
2743 | |
2744 Strictly speaking, no. XEmacs will build and install just fine without | |
2745 any packages installed. However, only the most basic editing functions | |
2746 will be available with no packages installed, so installing packages is | |
2747 an essential part of making your installed XEmacs _useful_. | |
2748 | |
2749 @node Q1.7.4, Q1.8.1, Q1.7.3, Introduction | |
2750 @unnumberedsubsec Q1.7.4: Is there a way to find which package has particular functionality? | |
2751 | |
2752 If you want to find out which package contains the functionality you | |
2753 are looking for, use @kbd{M-x package-get-package-provider}, and give it a | |
2754 symbol that is likely to be in that package. | |
2755 | |
2756 For example, if some code you want to use has a @code{(require 'thingatpt)} | |
2757 in it: | |
2758 | |
2759 @example | |
2760 M-x package-get-package-provider RET thingatpt RET | |
2761 @end example | |
2762 | |
2763 which will return something like: @samp{(fsf-compat "1.08").} | |
2764 | |
2537 | 2765 @unnumberedsec 1.8: Internationalization |
2766 | |
2559 | 2767 @node Q1.8.1, Q1.8.2, Q1.7.4, Introduction |
2537 | 2768 @unnumberedsubsec Q1.8.1: What is the status of internationalization support aka MULE (including Asian language support)? |
442 | 2769 |
2770 Both the stable and development versions of XEmacs include | |
1135 | 2771 internationalization support (aka MULE). MULE currently (21.4) works on |
2772 UNIX and Linux systems. It is possible to build with MULE on Windows | |
2773 systems, but if you really need MULE on Windows, it is recommended that | |
2774 you build and use the development (21.5) version, and deal with the | |
2775 instability of the development tree. Binaries compiled without MULE | |
2776 support run faster than MULE capable XEmacsen. | |
428 | 2777 |
2537 | 2778 @node Q1.8.2, Q1.8.3, Q1.8.1, Introduction |
2779 @unnumberedsubsec Q1.8.2: How can I help with internationalization? | |
430 | 2780 |
2781 If you would like to help, you may want to join the | |
2782 @email{xemacs-mule@@xemacs.org} mailing list. Especially needed are | |
2783 people who speak/write languages other than English, who are willing to | |
2784 use XEmacs/MULE regularly, and have some experience with Elisp. | |
428 | 2785 |
1135 | 2786 Translations of the TUTORIAL and man page are welcome, and XEmacs does |
2787 support multilingual menus, but we have few current translations. | |
2788 | |
2537 | 2789 @xref{Q1.5.2, How do I become a Beta Tester?}. |
2790 | |
2791 @node Q1.8.3, Q1.8.4, Q1.8.2, Introduction | |
2792 @unnumberedsubsec Q1.8.3: How do I type non-ASCII characters? | |
2417 | 2793 |
2459 | 2794 @xref{Q3.0.6, How can you type in special characters in XEmacs?}, in |
2417 | 2795 part 3 of this FAQ, for some simple methods that also work in non-MULE |
2796 builds of XEmacs (but only for one-octet coded character sets, and | |
2797 mostly for ISO 8859/1). Many of the methods available for Cyrillic | |
2537 | 2798 (@pxref{Q1.8.7, How about Cyrillic modes?}) work without MULE. MULE |
2799 has more general capabilities. @xref{Q1.8.5, Please explain the | |
2417 | 2800 various input methods in MULE/XEmacs}. |
2801 | |
2459 | 2802 @xref{Q4.0.8, How do I display non-ASCII characters?}, which covers |
2417 | 2803 display of non-ASCII characters. |
2804 | |
2537 | 2805 @node Q1.8.4, Q1.8.5, Q1.8.3, Introduction |
2806 @unnumberedsubsec Q1.8.4: Can XEmacs messages come out in a different language? | |
428 | 2807 |
1135 | 2808 The message-catalog support was written but is badly bit-rotted. XEmacs |
2809 20 and 21 did @emph{not} support it, and early releases of XEmacs 22 | |
2810 will not either. | |
2811 | |
2812 However, menubar localization @emph{does} work. To enable it, add to | |
2813 your @file{Emacs} file entries like this: | |
428 | 2814 |
2815 @example | |
440 | 2816 Emacs*XlwMenu.resourceLabels: True |
2817 Emacs*XlwMenu.file.labelString: Fichier | |
442 | 2818 Emacs*XlwMenu.openInOtherWindow.labelString: In anderem Fenster oeffnen |
428 | 2819 @end example |
2820 | |
2821 The name of the resource is derived from the non-localized entry by | |
2822 removing punctuation and capitalizing as above. | |
2823 | |
2537 | 2824 @node Q1.8.5, Q1.8.6, Q1.8.4, Introduction |
2825 @unnumberedsubsec Q1.8.5: Please explain the various input methods in MULE/XEmacs | |
428 | 2826 |
1135 | 2827 Mule supports a wide variety of input methods. There are three basic |
2828 classes: Lisp implementations, generic platform support, and library | |
2829 interfaces. | |
2830 | |
2831 @emph{Lisp implementations} include Quail, which provides table-driven input | |
2832 methods for almost all the character sets that Mule supports (including | |
2833 all of the ISO 8859 family, the Indic languages, Thai, and so on), and | |
2834 SKK, for Japanese. (SKK also supports an interface to an external | |
2835 "dictionary server" process.) Quail supports both typical "dead-key" | |
2836 methods (eg, in the "latin-1-prefix" method, @kbd{" a} produces ä, LATIN | |
2837 SMALL LETTER A WITH DIAERESIS), and the complex dictionary-based phonetic | |
2838 methods used for Asian ideographic languages like Chinese. | |
2839 | |
2840 Lisp implementations can be less powerful (but they are not perceptibly | |
2841 inefficient), and of course are not portable to non-Emacs applications. | |
2842 The incompatibility can be very annoying. On the other hand, they | |
2843 require no special platform support or external libraries, so if you can | |
2844 display the characters, Mule can input them for you and you can edit, | |
2845 anywhere. | |
2846 | |
2847 @emph{Generic platform support} is currently limited to the X Input | |
2848 Method (XIM) framework, although support for MSIME (for MS Windows) is | |
2849 planned, and IIIMF (Sun's Internet-Intranet Input Method Framework) | |
2850 support is extremely desirable. XIM is enabled at build time by use of | |
2851 the @samp{--with-xim} flag to @code{configure}. For use of XIM, see | |
2852 your platform documentation. However, normally the input method you use | |
2853 is specified via the @samp{LANG} and @samp{XMODIFIERS} environment | |
2854 variables. | |
2855 | |
2856 Of course, input skills are portable across most applications. However, | |
2857 especially in modern GUI systems the habit of using bucky bits has | |
2858 fallen into sad disuse, and many XIM systems are poorly configured for | |
2859 use with Emacs. For example, the kinput2 input manager (a separate | |
2860 process providing an interface between Japanese dictionary servers such | |
2861 as Canna and Wnn, and the application) tends to gobble up keystrokes | |
2862 generating Meta characters. This means that to edit while using an XIM | |
2863 input method, you must toggle the input method off every time you want | |
2864 to use @kbd{M-f}. Your mileage may vary. | |
2865 | |
2866 @emph{Library interfaces} are most common for Japanese, although Wnn | |
2867 supports Chinese (traditional and simplified) and Korean. There are | |
2868 Chinese and Korean input servers available, but we do not know of any | |
2869 patches for XEmacs to use them directly. You can use them via | |
2870 IM-enabled terminals, by manipulating the terminal coding systems. We | |
2871 describe only the Japanese-oriented systems here. The advantage of | |
2872 these systems is that they are very powerful, and on platforms where | |
2873 they are available there is typically a wide range of applications that | |
2874 support them. Thus your input skills are portable across applications. | |
2875 | |
2876 Mule provides built-in interfaces to the following input methods: Wnn4, | |
2877 Wnn6, Canna, and SJ3. These can be configured at build time. There are | |
2878 patches available (no URL, sorry) to support the SKK server, as well. | |
2879 Wnn and SJ3 use the @code{egg} user interface. The interface for Canna | |
2880 is specialized to Canna. | |
428 | 2881 |
2882 Wnn supports Japanese, Chinese and Korean. It is made by OMRON and Kyôto | |
1135 | 2883 University. It is a powerful and complex system. Wnn4 is free and Wnn6 |
2884 is not. Wnn uses grammatical hints and probability of word association, | |
2885 so in principle Wnn can be cleverer than other methods. | |
2886 | |
2887 Canna, made by NEC, supports only Japanese. It is a simple and powerful | |
2888 system. Canna uses only grammar, but its grammar and dictionary are | |
2889 quite sophisticated. So for standard modern Japanese, Canna seems | |
2890 cleverer than Wnn4. In addition, the UNIX version of Canna is free (now | |
2891 there is a Microsoft Windows version). | |
2892 | |
2893 SJ3, by Sony, supports only Japanese. | |
428 | 2894 |
2895 Egg consists of following parts: | |
2896 | |
2897 @enumerate | |
2898 @item | |
2899 Input character Translation System (ITS) layer. | |
2900 It translates ASCII inputs to Kana/PinYin/Hangul characters. | |
2901 | |
2902 @item | |
2903 Kana/PinYin/Hangul to Kanji transfer layer. | |
1135 | 2904 The interface layer to network Kana-Kanji server (Wnn and Sj3). |
428 | 2905 @end enumerate |
2906 | |
1135 | 2907 These input methods are modal. They have a raw (alphabet) mode, a |
2908 phonetic input mode, and Kana-Kanji transfer mode. However there are | |
2909 mode-less input methods for Egg and Canna. @samp{boiled-egg} is a | |
2910 mode-less input method running on Egg. For Canna, @samp{canna.el} has a | |
2911 tiny boiled-egg-like command, @code{(canna-boil)}, and there are some | |
2912 boiled-egg-like utilities. | |
2913 | |
2914 Much of this information was provided by @email{morioka@@jaist.ac.jp, | |
2915 MORIOKA Tomohiko}. | |
428 | 2916 |
2537 | 2917 @node Q1.8.6, Q1.8.7, Q1.8.5, Introduction |
2918 @unnumberedsubsec Q1.8.6: How do I portably code for MULE/XEmacs? | |
428 | 2919 |
1135 | 2920 MULE has evolved rapidly over the last few years, and the original third |
2921 party patch (for GNU Emacs 19), GNU Emacs 20+, and XEmacs 20+ have quite | |
2922 different implementations. The APIs also vary although recent versions | |
2923 of XEmacs have tended to converge to the GNU Emacs standard. | |
2924 | |
2925 MULE implementations are going to continue to evolve. Both GNU Emacs | |
2926 and XEmacs are working hard on Unicode support, which will involve new | |
2927 APIs and probably variations on old ones. For XEmacs 22, the old ISO | |
2928 2022-based system for recognizing encodings will be replaced by a much | |
2929 more flexible system, which should improve accuracy of automatic coding | |
2930 detections, but will also involve new APIs. | |
2931 | |
428 | 2932 @email{morioka@@jaist.ac.jp, MORIOKA Tomohiko} writes: |
2933 | |
2934 @quotation | |
1135 | 2935 The application implementor must write separate code for these mule |
2936 variants. [Please don't hesitate to report these variants to us; they | |
2937 are not, strictly speaking, bugs, but they give third-party developers | |
2938 the same kind of creepy-crawly feeling. We'll do what we can. -- Ed.] | |
428 | 2939 |
2940 MULE and the next version of Emacs are similar but the symbols are very | |
2941 different---requiring separate code as well. | |
2942 | |
2943 Namely we must support 3 kinds of mule variants and 4 or 5 or 6 kinds of | |
2944 emacs variants... (;_;) I'm shocked, so I wrote a wrapper package called | |
1135 | 2945 @code{emu} to provide a common interface. [There is an XEmacs package |
2946 of APEL which provides much more comprehensive coverage. Be careful, | |
2947 however; APEL has problems of its own. -- Ed.] | |
428 | 2948 |
2949 I have the following suggestions about dealing with mule variants: | |
2950 | |
2951 @itemize @bullet | |
2952 @item | |
2953 @code{(featurep 'mule)} @code{t} on all mule variants | |
2954 | |
2955 @item | |
2956 @code{(boundp 'MULE)} is @code{t} on only MULE. Maybe the next version | |
2957 of Emacs will not have this symbol. | |
2958 | |
2959 @item | |
2960 MULE has a variable @code{mule-version}. Perhaps the next version of | |
2961 Emacs will have this variable as well. | |
2962 @end itemize | |
2963 | |
2964 Following is a sample to distinguish mule variants: | |
2965 | |
2966 @lisp | |
2967 (if (featurep 'mule) | |
2968 (cond ((boundp 'MULE) | |
2969 ;; for original Mule | |
2970 ) | |
440 | 2971 ((string-match "XEmacs" emacs-version) |
2972 ;; for XEmacs with Mule | |
2973 ) | |
2974 (t | |
2975 ;; for next version of Emacs | |
2976 )) | |
428 | 2977 ;; for old emacs variants |
2978 ) | |
2979 @end lisp | |
2980 @end quotation | |
2981 | |
2537 | 2982 @node Q1.8.7, Q1.8.8, Q1.8.6, Introduction |
2983 @unnumberedsubsec Q1.8.7: How about Cyrillic modes? | |
428 | 2984 |
2985 @email{ilya@@math.ohio-state.edu, Ilya Zakharevich} writes: | |
2986 | |
2987 @quotation | |
2988 There is a cyrillic mode in the file @file{mysetup.zip} in | |
2989 @iftex | |
2990 @* | |
2991 @end iftex | |
2992 @uref{ftp://ftp.math.ohio-state.edu/pub/users/ilya/emacs/}. This is a | |
2993 modification to @email{ava@@math.jhu.ed, Valery Alexeev's} @file{russian.el} | |
2994 which can be obtained from | |
2995 @end quotation | |
2996 | |
871 | 2997 @uref{http://www.math.uga.edu/~valery/russian.el}. |
428 | 2998 |
2999 @email{d.barsky@@ee.surrey.ac.uk, Dima Barsky} writes: | |
3000 | |
3001 @quotation | |
3002 There is another cyrillic mode for both GNU Emacs and XEmacs by | |
3003 @email{manin@@camelot.mssm.edu, Dmitrii | |
3004 (Mitya) Manin} at | |
3005 @iftex | |
3006 | |
3007 @end iftex | |
3008 @uref{http://kulichki-lat.rambler.ru/centrolit/manin/cyr.el}. | |
3009 @c Link above, <URL:http://camelot.mssm.edu/~manin/cyr.el> was dead. | |
3010 @c Changed to russian host instead | |
3011 @end quotation | |
3012 | |
3013 @email{rebecca.ore@@op.net, Rebecca Ore} writes: | |
3014 | |
3015 @quotation | |
3016 The fullest resource I found on Russian language use (in and out of | |
661 | 3017 XEmacs) is @uref{http://www.ibiblio.org/sergei/Software/Software.html} |
428 | 3018 @end quotation |
3019 | |
2537 | 3020 @node Q1.8.8, Q1.8.9, Q1.8.7, Introduction |
3021 @unnumberedsubsec Q1.8.8: Does XEmacs support Unicode? | |
2417 | 3022 |
3023 To get Unicode support, you need a Mule-enabled XEmacs. | |
3024 | |
3025 21.5 has internal support for Unicode and supports it fully, although we | |
3026 don't yet use it as the internal encoding. | |
3027 | |
3028 21.4 supports Unicode partially -- as an external encoding for files, | |
2537 | 3029 processes, and terminals, but without font support. @xref{Q1.8.9, How |
2417 | 3030 does XEmacs display Unicode?}. To get Unicode support in 21.4, |
3031 install Mule-UCS from packages in the usual way, and put | |
745 | 3032 |
1616 | 3033 @example |
745 | 3034 (require 'un-define) |
3035 (set-coding-priority-list '(utf-8)) | |
1616 | 3036 (set-coding-category-system 'utf-8 'utf-8) |
3037 @end example | |
3038 | |
3039 in your init file to enable the UTF-8 coding system. You may wish to | |
3040 view the documentation of @code{set-coding-priority-list} if you find | |
3041 that files that are not UTF-8 are being mis-recognized as UTF-8. | |
745 | 3042 |
2417 | 3043 Install standard national fonts (not Unicode fonts) for all character |
2537 | 3044 sets you use. @xref{Q1.8.9, How does XEmacs display Unicode??}. |
745 | 3045 |
3046 Mule-UCS also supports 16-bit forms of Unicode (UTF-16). It does not | |
3047 support 31-bit forms of Unicode (UTF-32 or UCS-4). | |
3048 | |
2537 | 3049 @node Q1.8.9, , Q1.8.8, Introduction |
3050 @unnumberedsubsec Q1.8.9: How does XEmacs display Unicode? | |
745 | 3051 |
3052 Mule doesn't have a Unicode charset internally, so there's nothing to | |
3053 bind a Unicode registry to. It would not be straightforward to create, | |
3054 either, because Unicode is not ISO 2022-compatible. You'd have to | |
3055 translate it to multiple 96x96 pages. | |
3056 | |
3057 This means that Mule-UCS uses ordinary national fonts for display. This | |
3058 is not really a problem, except for those languages that use the Unified | |
3059 Han characters. The problem here is that Mule-UCS maps from Unicode | |
3060 code points to national character sets in a deterministic way. By | |
3061 default, this means that Japanese fonts are tried first, then Chinese, | |
3062 then Korean. To change the priority ordering, use the command | |
3063 `un-define-change-charset-order'. | |
3064 | |
3065 It also means you can't use Unicode fonts directly, at least not without | |
3066 extreme hackery. You can run -nw with (set-terminal-coding-system | |
3067 'utf-8) if you really want a Unicode font for some reason. | |
3068 | |
3069 Real Unicode support will be introduced in XEmacs 22.0. | |
3070 | |
2459 | 3071 @node Installation, Editing, Introduction, Top |
2417 | 3072 @unnumbered 2 Installation and Troubleshooting |
428 | 3073 |
3074 This is part 2 of the XEmacs Frequently Asked Questions list. This | |
2417 | 3075 section is devoted to Installation, Maintenance and Troubleshooting. |
428 | 3076 |
3077 @menu | |
2559 | 3078 2.0: Installation (General) |
3079 * Q2.0.1:: How do I build and install XEmacs? | |
3080 * Q2.0.2:: Where do I find external libraries? | |
3081 * Q2.0.3:: How do I specify the paths that XEmacs uses for finding files? | |
3082 * Q2.0.4:: Running XEmacs without installing | |
3083 * Q2.0.5:: XEmacs is too big | |
3084 | |
3085 2.1: Package Installation | |
3086 * Q2.1.1:: How do I install the packages? | |
3087 * Q2.1.2:: Can I install the packages individually? | |
3088 * Q2.1.3:: Can I install the packages automatically? | |
3089 * Q2.1.4:: Can I upgrade or remove packages? | |
3090 * Q2.1.5:: Which packages to install? | |
3091 * Q2.1.6:: Can you describe the package location process in more detail? | |
3092 * Q2.1.7:: EFS fails with "500 AUTH not understood" | |
3093 | |
3094 2.2: Unix/Mac OS X Installation (Also Relevant to Cygwin, MinGW) | |
3095 * Q2.2.1:: Libraries in non-standard locations | |
3096 * Q2.2.2:: Why can't I strip XEmacs? | |
3404 | 3097 * Q2.2.3:: X11/bitmaps/gray (or other X11-related file) not found. |
2559 | 3098 |
3099 2.3: Windows Installation (Windows, Cygwin, MinGW) | |
3100 * Q2.3.1:: What exactly are all the different ways to build XEmacs under Windows? | |
3101 * Q2.3.2:: What compiler/libraries do I need to compile XEmacs? | |
3102 * Q2.3.3:: How do I compile the native port? | |
3103 * Q2.3.4:: What do I need for Cygwin? | |
3104 * Q2.3.5:: How do I compile under Cygwin? | |
3105 * Q2.3.6:: How do I compile using MinGW (aka @samp{the -mno-cygwin flag to gcc})? | |
3106 * Q2.3.7:: How do I compile with X support? | |
3107 * Q2.3.8:: Cygwin XEmacs won't start -- cygXpm-noX4.dll was not found (NEW) | |
3108 | |
3109 2.4: General Troubleshooting | |
3110 * Q2.4.1:: How do I deal with bugs or with problems building, installing, or running? | |
3111 * Q2.4.2:: Help! XEmacs just crashed on me! | |
3112 * Q2.4.3:: XEmacs crashes and I compiled it myself. | |
3113 * Q2.4.4:: How to debug an XEmacs problem with a debugger | |
3114 * Q2.4.5:: I get a cryptic error message when trying to do something. | |
3115 * Q2.4.6:: XEmacs hangs when I try to do something. | |
3116 * Q2.4.7:: I get an error message when XEmacs is running in batch mode. | |
3117 * Q2.4.8:: The keyboard or mouse is not working properly, or I have some other event-related problem. | |
3118 * Q2.4.9:: @kbd{C-g} doesn't work for me. Is it broken? | |
3119 * Q2.4.10:: How do I debug process-related problems? | |
3120 * Q2.4.11:: XEmacs is outputting lots of X errors. | |
3121 * Q2.4.12:: After upgrading, XEmacs won't do `foo' any more! | |
3122 | |
3123 2.5: Startup-Related Problems | |
3124 * Q2.5.1:: XEmacs cannot connect to my X Terminal! | |
3125 * Q2.5.2:: Startup problems related to paths or package locations. | |
4658
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
3126 * Q2.5.3:: XEmacs won't start without network, or starts slowly. |
2559 | 3127 * Q2.5.4:: Startup warnings about deducing proper fonts? |
3128 * Q2.5.5:: Warnings from incorrect key modifiers. | |
3129 * Q2.5.6:: XEmacs 21.1 on Windows used to spawn an ugly console window on every startup. Has that been fixed? | |
428 | 3130 @end menu |
3131 | |
2559 | 3132 @unnumberedsec 2.0: Installation (General) |
2417 | 3133 |
428 | 3134 @node Q2.0.1, Q2.0.2, Installation, Installation |
2559 | 3135 @unnumberedsubsec Q2.0.1: How do I build and install XEmacs? |
3136 | |
3137 See the file @file{etc/NEWS} for information on new features and other | |
3138 user-visible changes since the last version of XEmacs. | |
3139 | |
3140 The file @file{INSTALL} in the top-level directory says how to bring | |
3141 up XEmacs on Unix and Cygwin, once you have loaded the entire subtree | |
3142 of this directory. | |
3143 | |
3144 See the file @file{nt/README} for instructions on building XEmacs for | |
3145 Microsoft Windows. | |
3146 | |
3147 @xref{Q2.1.1}, for the installation of (essential) add on packages. | |
2417 | 3148 |
3149 @node Q2.0.2, Q2.0.3, Q2.0.1, Installation | |
2559 | 3150 @unnumberedsubsec Q2.0.2: Where do I find external libraries? |
2417 | 3151 |
2459 | 3152 All external libraries used by XEmacs can be found on the XEmacs web |
2417 | 3153 site |
3154 @iftex | |
3155 @* | |
3156 @end iftex | |
2459 | 3157 @uref{http://www.xemacs.org/Download/optLibs.html}. |
2417 | 3158 |
3159 The library versions available here are known to work with XEmacs. | |
3160 (Newer versions will probably work as well but we can't guarantee it.) | |
3161 We try to keep the libraries up-to-date but may not always succeed. | |
2459 | 3162 Check the above page for the canonical locations of the external libraries, |
3163 allowing you to download the latest, bleeding-edge versions. | |
2417 | 3164 |
2559 | 3165 @node Q2.0.3, Q2.0.4, Q2.0.2, Installation |
3166 @unnumberedsubsec Q2.0.3: How do I specify the paths that XEmacs uses for finding files? | |
2417 | 3167 |
3168 You can specify what paths to use by using a number of different flags | |
3169 when running configure. See the section MAKE VARIABLES in the top-level | |
3170 file INSTALL in the XEmacs distribution for a listing of those flags. | |
3171 | |
3172 Most of the time, however, the simplest fix is: @strong{do not} specify | |
3173 paths as you might for GNU Emacs. XEmacs can generally determine the | |
3174 necessary paths dynamically at run time. The only path that generally | |
3175 needs to be specified is the root directory to install into. That can | |
3176 be specified by passing the @code{--prefix} flag to configure. For a | |
3177 description of the XEmacs install tree, please consult the @file{NEWS} | |
3178 file. | |
3179 | |
2559 | 3180 @node Q2.0.4, Q2.0.5, Q2.0.3, Installation |
3181 @unnumberedsubsec Q2.0.4: Running XEmacs without installing | |
442 | 3182 |
3183 How can I just try XEmacs without installing it? | |
428 | 3184 |
3185 XEmacs will run in place without requiring installation and copying of | |
3186 the Lisp directories, and without having to specify a special build-time | |
3187 flag. It's the copying of the Lisp directories that requires so much | |
3188 space. XEmacs is largely written in Lisp. | |
3189 | |
3190 A good method is to make a shell alias for xemacs: | |
3191 | |
3192 @example | |
2459 | 3193 alias xemacs=/src/xemacs-21.5/src/xemacs |
428 | 3194 @end example |
3195 | |
3196 (You will obviously use whatever directory you downloaded the source | |
2459 | 3197 tree to instead of @file{/src/xemacs-21.5}). |
428 | 3198 |
3199 This will let you run XEmacs without massive copying. | |
3200 | |
2559 | 3201 @node Q2.0.5, Q2.1.1, Q2.0.4, Installation |
3202 @unnumberedsubsec Q2.0.5: XEmacs is too big | |
428 | 3203 |
442 | 3204 The space required by the installation directories can be |
428 | 3205 reduced dramatically if desired. Gzip all the .el files. Remove all |
442 | 3206 the packages you'll never want to use. Remove the TexInfo manuals. |
428 | 3207 Remove the Info (and use just hardcopy versions of the manual). Remove |
3208 most of the stuff in etc. Remove or gzip all the source code. Gzip or | |
3209 remove the C source code. Configure it so that copies are not made of | |
1138 | 3210 the support lisp. |
428 | 3211 |
3212 These are all Emacs Lisp source code and bytecompiled object code. You | |
3213 may safely gzip everything named *.el here. You may remove any package | |
3214 you don't use. @emph{Nothing bad will happen if you delete a package | |
3215 that you do not use}. You must be sure you do not use it though, so be | |
3216 conservative at first. | |
3217 | |
1648 | 3218 Any package with the possible exceptions of xemacs-base, and EFS are |
3219 candidates for removal. Ask yourself, @emph{Do I ever want to use this | |
3220 package?} If the answer is no, then it is a candidate for removal. | |
428 | 3221 |
3222 First, gzip all the .el files. Then go about package by package and | |
3223 start gzipping the .elc files. Then run XEmacs and do whatever it is | |
1648 | 3224 you normally do. If nothing bad happens, then remove the package. You |
3225 can remove a package via the PUI interface | |
3226 (@code{M-x pui-list-packages}, then press @kbd{d} to mark the packages | |
3227 you wish to delete, and then @kbd{x} to delete them. | |
3228 | |
3229 Another method is to do @code{M-x package-get-delete-package}. | |
428 | 3230 |
2559 | 3231 @unnumberedsec 2.1: Package Installation |
3232 | |
3233 @node Q2.1.1, Q2.1.2, Q2.0.5, Installation | |
3234 @unnumberedsubsec Q2.1.1: How do I install the packages? | |
3235 | |
3236 There are three ways to install the packages. | |
3237 | |
3238 @enumerate | |
3239 @item | |
3240 Manually, all at once, using the 'Sumo Tarball'. | |
3241 @item | |
3242 Manually, using individual package tarballs. | |
3243 @item | |
3244 Automatically, using the package tools from XEmacs. | |
3245 @end enumerate | |
3246 | |
3247 If you don't want to mess with the packages, it is easiest to just | |
3248 grab them manually, all at once. (For the other two ways, | |
3249 @xref{Q2.1.2}, and @xref{Q2.1.3}.) Download the file | |
3250 | |
3251 @file{xemacs-sumo.tar.gz} | |
3252 | |
3253 For an XEmacs compiled with Mule you also need | |
3254 | |
3255 @file{xemacs-mule-sumo.tar.gz} | |
3256 | |
3257 These are in the @file{packages} directory on your XEmacs mirror | |
3258 archive: @uref{ftp://ftp.xemacs.org/pub/xemacs/packages} or its | |
3259 mirrors. N.B. They are called 'Sumo Tarballs' for good reason. They | |
3260 are currently about 19MB and 4.5MB (gzipped) respectively. | |
3261 | |
3262 Install them on Unix and Mac OS X using the shell/Terminal command | |
3263 | |
3264 @code{cd $prefix/lib/xemacs ; gunzip -c <tarballname> | tar xf -} | |
3265 | |
3266 Where @samp{$prefix} is what you gave to the @samp{--prefix} flag to | |
3267 @file{configure}, and defaults to @file{/usr/local}. | |
3268 | |
3269 If you have GNU tar you can use: | |
3270 | |
3271 @code{cd $prefix/lib/xemacs ; tar zxvf <tarballname>} | |
3272 | |
3018 | 3273 If you have the packages somewhere nonstandard and don't want to bother |
3274 with @samp{$prefix} (for example, you're a developer and are compiling | |
3275 the packages yourself, and want your own private copy of everything), | |
3276 you can also directly specify this using @file{configure}. To do this | |
3179 | 3277 with 21.5 and above use the @samp{--with-late-packages} parameter to |
3018 | 3278 specify the directory under which you untarred the above tarballs. |
3279 Under 21.4 and previous you need to use @samp{--package-path}. Using | |
3280 these options looks something like this: | |
2559 | 3281 |
3282 @example | |
3283 configure --package-path="~/.xemacs::/src/xemacs/site-packages:/src/xemacs/xemacs-packages:/src/xemacs/mule-packages" ... | |
3284 @end example | |
3285 | |
3286 Under Windows, you need to place the above @samp{tar.gz} files in the | |
3287 directory specified using the @samp{PACKAGE_PREFIX} value in | |
3288 @file{nt/config.inc} and by default is @file{\Program Files\XEmacs}. | |
3289 (To untar a @samp{tar.gz} file you will need to use a utility such as | |
3290 WinZip, unless you have Cygwin or a similar environment installed, in | |
3291 which case the above Unix shell command should work fine.) If you want | |
3292 the packages somewhere else, just change @samp{PACKAGE_PREFIX}. | |
3293 | |
3294 Note that XEmacs finds the packages automatically anywhere underneath | |
3295 the directory tree where it expects to find the packages. All you | |
3296 need to do is put stuff there; you don't need to run any program to | |
4311 | 3297 tell XEmacs to find the packages, or do anything of that sort. |
2559 | 3298 |
3299 However, XEmacs will only notice newly installed packages when it | |
3300 starts up, so you will have to restart if you are already running | |
3301 XEmacs. | |
3302 | |
3303 For more details, @xref{Startup Paths,,,xemacs, the XEmacs User's | |
3304 Manual}, and @xref{Packages,,,xemacs, the XEmacs User's Manual}. | |
3305 | |
3306 As the Sumo tarballs are not regenerated as often as the individual | |
3307 packages, it is recommended that you use the automatic package tools | |
3308 afterwards to pick up any recent updates. | |
3309 | |
3310 @emph{NOTE}: For detailed information about how the package | |
3311 hierarchies work, @xref{Package Overview,,,lispref, the XEmacs Lisp | |
3312 Reference Manual}. | |
3313 | |
3314 @node Q2.1.2, Q2.1.3, Q2.1.1, Installation | |
3315 @unnumberedsubsec Q2.1.2: Can I install the packages individually? | |
3316 | |
3317 Yes, you can download individual packages from the FTP site (@pxref{Q2.1.1}). Since packages are automatically noticed at startup, you just have to put them in the right place. | |
3318 | |
3319 Note: If you are upgrading packages already installed, it's best to | |
3320 remove the old package first (@pxref{Q2.1.4}). | |
3321 | |
3322 For example if we are installing the @samp{xemacs-base} | |
3323 package (version 1.48): | |
3324 | |
3325 @example | |
3326 mkdir $prefix/lib/xemacs/xemacs-packages RET # if it does not exist yet | |
3327 cd $prefix/lib/xemacs/xemacs-packages RET | |
3328 gunzip -c /path/to/xemacs-base-1.48-pkg.tar.gz | tar xvf - RET | |
3329 @end example | |
3330 | |
3331 Or if you have GNU tar, the last step can be: | |
3332 | |
3333 @example | |
3334 tar zxvf /path/to/xemacs-base-1.48-pkg.tar.gz RET | |
3335 @end example | |
3336 | |
3337 For MULE related packages, it is best to untar into the @samp{mule-packages} | |
3338 hierarchy, i.e. for the @samp{mule-base} package, version 1.37: | |
3339 | |
3340 @example | |
3341 mkdir $prefix/lib/xemacs/mule-packages RET # if it does not exist yet | |
3342 cd $prefix/lib/xemacs/mule-packages RET | |
3343 gunzip -c /path/to/mule-base-1.37-pkg.tar.gz | tar xvf - RET | |
3344 @end example | |
3345 | |
3346 Or if you have GNU tar, the last step can be: | |
3347 | |
3348 @example | |
3349 tar zxvf /path/to/mule-base-1.37-pkg.tar.gz RET | |
3350 @end example | |
3351 | |
3352 @node Q2.1.3, Q2.1.4, Q2.1.2, Installation | |
3353 @unnumberedsubsec Q2.1.3: Can I install the packages automatically? | |
3354 | |
3355 XEmacs comes with some tools to make the periodic updating and | |
3356 installing easier. It will notice if new packages or versions are | |
3357 available and will fetch them from the FTP site. | |
3358 | |
3359 Unfortunately this requires that a few packages are already in place. | |
3360 You will have to install them by hand as above or use a SUMO tarball. | |
3361 This requirement will hopefully go away in the future. The packages | |
3362 you need are: | |
3363 | |
3364 @example | |
3365 efs - To fetch the files from the FTP site or mirrors. | |
3366 xemacs-base - Needed by efs. | |
3367 @end example | |
3368 | |
3369 and optionally: | |
3370 | |
3371 @example | |
3372 mailcrypt - For PGP verification of the package-index file. | |
3373 @end example | |
3374 | |
3375 After installing these by hand, fire up XEmacs and follow these | |
3376 steps. | |
3377 | |
3378 @enumerate | |
3379 @item | |
3380 Choose a download site. | |
3381 @itemize @bullet | |
3382 @item | |
3383 via menu: Tools -> Packages -> Set Download Site | |
3384 @item | |
3385 via keyb: M-x customize-variable RET package-get-remote RET | |
3386 (put in the details of remote host and directory) | |
3387 @end itemize | |
3388 | |
3389 If the package tarballs _AND_ the package-index file are in a | |
3390 local directory, you can: M-x pui-set-local-package-get-directory RET | |
3391 | |
3392 @item | |
3393 Obtain a list of packages and display the list in a buffer named | |
3394 "*Packages*". | |
3395 @itemize @bullet | |
3396 @item | |
3397 menu: Tools -> Packages -> List & Install | |
3398 @item | |
3399 keyb: M-x pui-list-packages RET | |
3400 @end itemize | |
3401 | |
3402 XEmacs will now connect to the remote site and download the | |
3403 latest package-index file. | |
3404 | |
3405 The resulting buffer, "*Packages*" has brief instructions at the | |
3406 end of the buffer. | |
3407 | |
3408 @item | |
3409 Choose the packages you wish to install. | |
3410 @itemize @bullet | |
3411 @item | |
3412 mouse: Click button 2 on the package name. | |
3413 @item | |
3414 keyb: RET on the package name | |
3415 @end itemize | |
3416 | |
3417 @item | |
3418 Make sure you have everything you need. | |
3419 @itemize @bullet | |
3420 @item | |
3421 menu: Packages -> Add Required | |
3422 @item | |
3423 keyb: r | |
3424 @end itemize | |
3425 | |
3426 XEmacs will now search for packages that are required by the | |
3427 ones that you have chosen to install and offer to select | |
3428 those packages also. | |
3429 | |
3430 For novices and gurus alike, this step can save your bacon. | |
3431 It's easy to forget to install a critical package. | |
3432 | |
3433 @item | |
3434 Download and install the packages. | |
3435 @itemize @bullet | |
3436 @item | |
3437 menu: Packages -> Install/Remove Selected | |
3438 @item | |
3439 keyb: x | |
3440 @end itemize | |
3441 @end enumerate | |
3442 | |
3443 @node Q2.1.4, Q2.1.5, Q2.1.3, Installation | |
3444 @unnumberedsubsec Q2.1.4: Can I upgrade or remove packages? | |
3445 | |
3446 As the exact files and their locations contained in a package may | |
3447 change it is recommended to remove a package first before installing a | |
4311 | 3448 new version. In order to facilitate removal each package contains a |
3449 pkginfo/MANIFEST.pkgname file which lists all the files belonging to | |
3450 the package. M-x package-admin-delete-binary-package RET can be used | |
3451 to remove a package using this file. | |
2559 | 3452 |
3453 Note that the interactive package tools included with XEmacs already do | |
3454 this for you. | |
3455 | |
3456 @node Q2.1.5, Q2.1.6, Q2.1.4, Installation | |
3457 @unnumberedsubsec Q2.1.5: Which packages to install? | |
3458 | |
3459 Unless you are an advanced user, just install everything. | |
3460 | |
3461 If you really want to install only what's absolutely needed, a good | |
3462 minimal set of packages for XEmacs-latin1 would be | |
3463 | |
3464 @example | |
3465 xemacs-base, xemacs-devel, c-support, cc-mode, debug, dired, efs, | |
3466 edit-utils, fsf-compat, mail-lib, net-utils, os-utils, prog-modes, | |
3467 text-modes, time, mailcrypt | |
3468 @end example | |
3469 | |
3470 If you are using the XEmacs package tools, don't forget to do: | |
3471 | |
3472 @example | |
3473 Packages -> Add Required | |
3474 @end example | |
3475 | |
3476 To make sure you have everything that the packages you have chosen to | |
3477 install need. | |
3478 | |
3479 @xref{Q1.7.2}, for a description of the various packages. | |
3480 | |
3481 @node Q2.1.6, Q2.1.7, Q2.1.5, Installation | |
3482 @unnumberedsubsec Q2.1.6: Can you describe the package location process in more detail? | |
3483 | |
3484 On startup XEmacs looks for packages in so-called package hierarchies. | |
3485 Normally, there are three system wide hierarchies, like this: | |
3486 | |
3487 @example | |
3488 $prefix/lib/xemacs/xemacs-packages/ | |
3489 Normal packages go here. | |
3490 | |
3491 $prefix/lib/xemacs/mule-packages/ | |
3492 Mule packages go here and are only searched by MULE-enabled XEmacsen. | |
3493 | |
3494 $prefix/lib/xemacs/site-packages/ | |
3495 Local and 3rd party packages go here. | |
3496 @end example | |
3497 | |
3498 This is what you get when you untar the SUMO tarballs under | |
3499 @file{$prefix/lib/xemacs}. | |
3500 | |
3501 @file{$prefix} is specified using the @samp{--prefix} parameter to | |
3502 @file{configure}, and defaults to @file{usr/local}. | |
3503 | |
3504 If the package path is not explicitly specified, XEmacs looks for the | |
3505 package directory @file{xemacs-packages} (and @file{mule-packages} and | |
3506 @file{site-packages}) first under @samp{~/.xemacs}, then for a sister | |
3507 directory @file{lib/xemacs-VERSION} of the directory in which the | |
3508 XEmacs executable is located, then for a sister directory | |
3509 @file{lib/xemacs}. The XEmacs executable (under Unix at least) is | |
3510 installed by default in @file{/usr/local/bin}; this explains why | |
3511 XEmacs in its default installation will find packages that you put | |
3512 under @file{/usr/local/lib/xemacs}. | |
3513 | |
3514 You can specify where exactly XEmacs looks for packages by using the | |
3179 | 3515 @samp{--with-user-packages} (an alias for @samp{--with-early-packages}) |
3516 or @samp{--with-system-packages} (an alias for | |
3517 @samp{--with-late-packages}) or @samp{--with-legacy-packages} | |
3518 (an alias for @samp{--with-last-packages}) | |
3519 parameters to @file{configure} (or the equivalent settings in | |
3520 @file{config.inc}, under Windows), or setting the | |
3521 @samp{EMACSEARLYPACKAGES}, @samp{EMACSLATEPACKAGES}, and | |
3522 @samp{EMACSLASTPACKAGES} environment variables (which have the same | |
3523 format as the configure options). @xref{Q2.1.1}. | |
2559 | 3524 |
3525 See @file{configure.usage} for more info about the format of these | |
3526 @file{configure} parameters. | |
3527 | |
3528 In addition to the system wide packages, each user can have his own | |
3529 packages installed under @file{~/.xemacs/}. If you want to install | |
3530 packages there using the interactive tools, you need to set | |
3531 @code{package-get-install-to-user-init-directory} to @code{t}. | |
3532 | |
3533 The site-packages hierarchy replaces the old @file{site-lisp} | |
3534 directory. XEmacs no longer looks into a @file{site-lisp} directly by | |
3535 default. A good place to put @file{site-start.el} would be in | |
3536 @file{$prefix/lib/xemacs/site-packages/lisp/}. | |
3537 | |
3538 @node Q2.1.7, Q2.2.1, Q2.1.6, Installation | |
3539 @unnumberedsubsec Q2.1.7: EFS fails with "500 AUTH not understood" (NEW) | |
2417 | 3540 |
3541 A typical error: FTP Error: USER request failed; 500 AUTH not understood. | |
3542 | |
4311 | 3543 Thanks to Giacomo Boffi @email{giacomo.boffi@@polimi.it} who recommends |
2417 | 3544 on comp.emacs.xemacs: |
3545 | |
3546 tell your ftp client to not attempt AUTH authentication (or do not | |
3547 use FTP servers that don't understand AUTH) | |
3548 | |
3549 and notes that you need to add an element (often "-u") to | |
3550 `efs-ftp-program-args'. Use M-x customize-variable, and verify the | |
3551 needed flag with `man ftp' or other local documentation. | |
3552 | |
2559 | 3553 @unnumberedsec 2.2: Unix/Mac OS X Installation (Also Relevant to Cygwin, MinGW) |
3554 | |
3555 @node Q2.2.1, Q2.2.2, Q2.1.7, Installation | |
3556 @unnumberedsubsec Q2.2.1: Libraries in non-standard locations | |
428 | 3557 |
2459 | 3558 If your libraries are in a non-standard location, you can specify the location |
3018 | 3559 using the following flags to @file{configure}. Under 21.4 or earlier: |
2459 | 3560 |
3561 @example | |
3562 --site-libraries=WHATEVER | |
3563 --site-includes=WHATEVER | |
3564 @end example | |
3565 | |
3018 | 3566 Under 21.5 or later: |
3567 | |
3568 @example | |
3569 --with-site-libraries=WHATEVER | |
3570 --with-site-includes=WHATEVER | |
3571 @end example | |
3572 | |
2459 | 3573 If you have multiple paths to specify, use the following syntax: |
428 | 3574 |
3575 @example | |
3576 --site-libraries='/path/one /path/two /path/etc' | |
3577 @end example | |
3578 | |
3018 | 3579 If the libraries and headers reside in the directories @samp{lib} and |
3580 @samp{include} of a common root (say @samp{/sw}) then both can be | |
3581 specified with a single option: | |
3582 | |
3583 @example | |
3584 --site-prefixes=WHATEVER | |
3585 @end example | |
3586 | |
3587 or for 21.5: | |
3588 | |
3589 @example | |
3590 --with-site-prefixes=WHATEVER | |
3591 @end example | |
3592 | |
3404 | 3593 @node Q2.2.2, Q2.2.3, Q2.2.1, Installation |
2559 | 3594 @unnumberedsubsec Q2.2.2: Why can't I strip XEmacs? |
428 | 3595 |
3596 @email{cognot@@fronsac.ensg.u-nancy.fr, Richard Cognot} writes: | |
3597 | |
3598 @quotation | |
3599 Because of the way XEmacs (and every other Emacsen, AFAIK) is built. The | |
3600 link gives you a bare-boned emacs (called temacs). temacs is then run, | |
3601 preloading some of the lisp files. The result is then dumped into a new | |
3602 executable, named xemacs, which will contain all of the preloaded lisp | |
3603 functions and data. | |
3604 | |
3605 Now, during the dump itself, the executable (code+data+symbols) is | |
3606 written on disk using a special unexec() function. This function is | |
3607 obviously heavily system dependent. And on some systems, it leads to an | |
3608 executable which, although valid, cannot be stripped without damage. If | |
3609 memory serves, this is especially the case for AIX binaries. On other | |
462 | 3610 architectures it might work OK. |
428 | 3611 |
3612 The Right Way to strip the emacs binary is to strip temacs prior to | |
3613 dumping xemacs. This will always work, although you can do that only if | |
3614 you install from sources (as temacs is @file{not} part of the binary | |
3615 kits). | |
3616 @end quotation | |
3617 | |
3618 @email{nat@@nataa.fr.eu.org, Nat Makarevitch} writes: | |
3619 | |
3620 @quotation | |
3621 Here is the trick: | |
3622 | |
3623 @enumerate | |
3624 @item | |
3625 [ ./configure; make ] | |
3626 | |
3627 @item | |
3628 rm src/xemacs | |
3629 | |
3630 @item | |
3631 strip src/temacs | |
3632 | |
3633 @item | |
3634 make | |
3635 | |
3636 @item | |
3637 cp src/xemacs /usr/local/bin/xemacs | |
3638 | |
3639 @item | |
3640 cp lib-src/DOC-19.16-XEmacs | |
3641 @iftex | |
3642 \ @* | |
3643 @end iftex | |
3644 /usr/local/lib/xemacs-19.16/i586-unknown-linuxaout | |
3645 @end enumerate | |
3646 @end quotation | |
3647 | |
3404 | 3648 @node Q2.2.3, Q2.3.1, Q2.2.2, Installation |
3649 @unnumberedsubsec Q2.2.3: X11/bitmaps/gray (or other X11-related file) not found. | |
3650 | |
3651 The X11R6 distribution was monolithic, but the X11R7 distribution is | |
3652 much more modular. Many OS distributions omit these bitmaps (assuming | |
3653 nobody uses them, evidently). Your OS distribution should have a | |
3654 developer's package containing these files, probably with a name | |
3655 containing the string "bitmap". Known package names (you may need to | |
3656 add an extension such as .deb or .rpm) include x11/xbitmaps (Ubuntu) | |
3657 and xorg-x11-xbitmaps (Fedora Core 5). | |
3658 | |
2559 | 3659 @unnumberedsec 2.3: Windows Installation (Windows, Cygwin, MinGW) |
3660 | |
3404 | 3661 @node Q2.3.1, Q2.3.2, Q2.2.3, Installation |
2559 | 3662 @unnumberedsubsec Q2.3.1: What exactly are all the different ways to build XEmacs under Windows? |
2417 | 3663 |
3664 XEmacs can be built in several ways in the MS Windows environment. | |
3665 | |
3666 The standard way is what we call the "native" port. It uses the Win32 | |
3667 API and has no connection with X whatsoever -- it does not require X | |
3668 libraries to build, nor does it require an X server to run. The native | |
3669 port is the most reliable version and provides the best graphical | |
3670 support. Almost all development is geared towards this version, and | |
3671 there is little reason not to use it. | |
3672 | |
3673 The second way to build is the Cygwin port. It takes advantage of | |
2537 | 3674 Cygnus emulation library under Win32. @xref{Q1.2.5, What are Cygwin |
2417 | 3675 and MinGW, and do I need them to run XEmacs?}, for more information. |
3676 | |
3677 A third way is the MinGW port. It uses the Cygwin environment to | |
2537 | 3678 build but does not require it at runtime. @xref{Q1.2.5, What are |
2417 | 3679 Cygwin and MinGW, and do I need them to run XEmacs?}, for more |
3680 information. | |
3681 | |
3682 Finally, you might also be able to build the non-Cygwin, non-MinGW "X" | |
3683 port. This was actually the first version of XEmacs that ran under MS | |
3684 Windows, and although the code is still in XEmacs, it's essentially | |
3685 orphaned and it's unlikely it will compile without a lot of work. If | |
3686 you want an MS Windows versin of XEmacs that supports X, use the Cygwin | |
3687 version. (The X support there is actively maintained, so that Windows | |
3688 developers can test the X support in XEmacs.) | |
3689 | |
2559 | 3690 @node Q2.3.2, Q2.3.3, Q2.3.1, Installation |
3691 @unnumberedsubsec Q2.3.2: What compiler/libraries do I need to compile XEmacs? | |
2417 | 3692 |
3693 You need Visual C++ 4.2, 5.0, or 6.0 for the native version. (We have | |
3694 some beta testers currently trying to compile with VC.NET, aka version | |
3695 7.0, but we can't yet report complete success.) For the Cygwin and | |
3696 MinGW versions, you need the Cygwin environment, which comes with GCC, | |
2537 | 3697 the compiler used for those versions. @xref{Q1.2.5, What are Cygwin |
2417 | 3698 and MinGW, and do I need them to run XEmacs?}, for more information on |
3699 Cygwin and MinGW. | |
3700 | |
2559 | 3701 @node Q2.3.3, Q2.3.4, Q2.3.2, Installation |
3702 @unnumberedsubsec Q2.3.3: How do I compile the native port? | |
2417 | 3703 |
3704 Please read the file @file{nt/README} in the XEmacs distribution, which | |
3705 contains the full description. | |
3706 | |
2559 | 3707 @node Q2.3.4, Q2.3.5, Q2.3.3, Installation |
3708 @unnumberedsubsec Q2.3.4: What do I need for Cygwin? | |
2417 | 3709 |
3710 You can find the Cygwin tools and compiler at: | |
3711 | |
3712 @uref{http://www.cygwin.com/} | |
3713 | |
3714 Click on the @samp{Install or update now!} link, which will download a | |
3715 file @file{setup.exe}, which you can use to download everything | |
3716 else. (You will need to pick a mirror site; @samp{mirrors.rcn.net} is | |
3717 probably the best.) You should go ahead and install everything -- | |
3718 you'll get various ancillary libraries that XEmacs needs or likes, | |
3719 e.g. XPM, PNG, JPEG, TIFF, etc. You can also get X Windows here, if you | |
3720 want to compile under X. | |
3721 | |
3722 If you want to compile without X, you will need the @file{xpm-nox} | |
3723 library, which must be specifically selected in the Cygwin netinstaller; | |
3724 it is not selected by default. The package has had various names. | |
3725 Currently it is called @file{cygXpm-noX4.dll}. | |
3726 | |
2559 | 3727 @node Q2.3.5, Q2.3.6, Q2.3.4, Installation |
3728 @unnumberedsubsec Q2.3.5: How do I compile under Cygwin? | |
2417 | 3729 |
3730 Similar as on Unix; use the usual `configure' and `make' process. | |
3731 Some problems to watch out for: | |
3732 | |
3733 @itemize @bullet | |
3734 @item | |
3735 make sure HOME is set. This controls where you | |
3736 @file{init.el} file comes from; | |
3737 | |
3738 @item | |
3739 @samp{CYGWIN} needs to be set to @samp{tty} for process support to work; | |
3740 | |
3741 @item | |
3742 picking up some other grep or other UNIX-like tools can kill configure; | |
3743 | |
3744 @item | |
3745 static heap too small, adjust @file{src/sheap-adjust.h} to a more positive | |
3746 number; | |
3747 | |
3748 @item | |
3749 (Unconfirmed) The Cygwin version doesn't understand | |
3750 @file{//machine/path} type paths so you will need to manually mount a | |
3751 directory of this form under a unix style directory for a build to work | |
3752 on the directory; | |
3753 | |
3754 @item | |
3755 If you're building @strong{WITHOUT} X11, don't forget to change symlinks | |
3756 @file{/usr/lib/libXpm.a} and @file{/usr/lib/libXpm.dll.a} to point to | |
3757 the non-X versions of these libraries. By default they point to the X | |
3758 versions. So: | |
3759 | |
3760 @example | |
3761 /usr/lib/libXpm.a -> /usr/lib/libXpm-noX.a | |
3762 /usr/lib/libXpm.dll.a -> /usr/lib/libXpm-noX.dll.a | |
3763 @end example | |
3764 | |
3765 (This advice may now be obsolete because of the availability of the | |
3766 cygXpm-noX4.dll package from Cygwin. Send confirmation to | |
3767 @email{faq@@xemacs.org}.) | |
3768 | |
3769 @item | |
3770 Other problems are listed in the @file{PROBLEMS} file, in the top-level | |
3771 directory of the XEmacs sources. | |
3772 | |
3773 @end itemize | |
3774 | |
3775 | |
2559 | 3776 @node Q2.3.6, Q2.3.7, Q2.3.5, Installation |
3777 @unnumberedsubsec Q2.3.6: How do I compile using MinGW (aka @samp{the -mno-cygwin flag to gcc})? | |
2417 | 3778 |
3779 Similar to the method for Unix. Things to remember: | |
3780 | |
3781 @itemize @bullet | |
3782 @item | |
3783 Specify the target host on the command line for @file{./configure}, e.g. | |
3784 @samp{./configure i586-pc-mingw32}. | |
3785 | |
3786 @item | |
3787 Be sure that your build directory is mounted such that it has the | |
3788 same path either as a cygwin path (@file{/build/xemacs}) or as a Windows | |
3789 path (@file{c:\build\xemacs}). | |
3790 | |
3791 @item | |
3792 Build @samp{gcc -mno-cygwin} versions of the extra libs, i.e. @file{libpng}, | |
3793 @file{compface}, etc. | |
3794 | |
3795 @item | |
3796 Specify the target location of the extra libs on the command line | |
3018 | 3797 to @file{configure}, e.g.for 21.4 or earlier |
3798 @samp{./configure --site-prefixes=/build/libs i586-pc-mingw32} and for | |
3799 21.5 or later | |
3800 @samp{./configure --with-site-prefixes=/build/libs i586-pc-mingw32}. | |
2417 | 3801 @end itemize |
3802 | |
2559 | 3803 @node Q2.3.7, Q2.3.8, Q2.3.6, Installation |
3804 @unnumberedsubsec Q2.3.7: How do I compile with X support? | |
2417 | 3805 |
3806 To compile under Cygwin, all you need to do is install XFree86, which | |
3807 is available as part of the standard Cygwin installation. | |
3808 @uref{http://www.cygwin.com/}. Once installed, @file{configure} | |
3809 should automatically find the X libraries and compile with X support. | |
3810 | |
3811 As noted above, the non-Cygwin X support is basically orphaned, and | |
3812 probably won't work. But if it want to try, it's described in | |
3813 @file{nt/README} in some detail. Basically, you need to get X11 | |
2459 | 3814 libraries from @uref{http://ftp.x.org}, and compile them. If the |
2417 | 3815 precompiled versions are available somewhere, we don't know of it. |
3816 | |
2559 | 3817 @node Q2.3.8, Q2.4.1, Q2.3.7, Installation |
3818 @unnumberedsubsec Q2.3.8: Cygwin XEmacs won't start -- cygXpm-noX4.dll was not found (NEW) | |
1058 | 3819 |
3820 The Cygwin binary distributed with the netinstaller uses an external DLL | |
3821 to handle XPM images (such as toolbar buttons). You may get an error like | |
3822 | |
2559 | 3823 @example |
3824 This application has failed to start because cygXpm-noX4.dll was not found. | |
3825 Re-installing the application may fix this problem. | |
3826 @end example | |
1058 | 3827 |
3828 Andy Piper <andy@@xemacs.org> sez: | |
3829 | |
2559 | 3830 @example |
3831 cygXpm-noX4 is part of the cygwin distribution under libraries or | |
3832 graphics, but is not installed by default. You need to run the | |
3833 cygwin setup again and select this package. | |
3834 @end example | |
1058 | 3835 |
3836 Ie, reinstalling XEmacs won't help because it is not part of the XEmacs | |
3837 distribution. | |
3838 | |
2559 | 3839 @unnumberedsec 2.4: General Troubleshooting |
3840 | |
3841 @node Q2.4.1, Q2.4.2, Q2.3.8, Installation | |
3842 @unnumberedsubsec Q2.4.1: How do I deal with bugs or with problems building, installing, or running? | |
3843 | |
3844 The file @file{PROBLEMS} contains information on many common problems that | |
3845 occur in building, installing and running XEmacs. | |
3846 | |
3847 Reports of bugs in XEmacs should be sent to | |
3848 @email{xemacs-beta@@xemacs.org}. You can also post to the newsgroup | |
3849 comp.emacs.xemacs (or equivalentlt, send to the mailing list | |
3850 @email{xemacs@@xemacs.org}), but it is less likely that the developers | |
3851 will see it in a timely fashion. @xref{Bugs,,, xemacs, the XEmacs | |
3852 User's Manual}, for more information on how to report bugs. | |
3853 @xref{Q1.4.2}, for more information on mailing lists relating to | |
3854 XEmacs. | |
3855 | |
3856 There are three ways to read the Bugs section. | |
3857 | |
3858 @enumerate | |
3859 @item | |
3860 In a printed copy of the XEmacs manual. | |
3861 | |
3862 @item | |
3863 With Info. First, start XEmacs. From the menu, select | |
3864 @samp{Help->Info (Online Docs)->Info Contents} to enter Info, then | |
3865 click on @samp{XEmacs}, then on @samp{Bugs}. Or, use the keyboard: do | |
3866 @kbd{C-h i} to enter Info, then @kbd{m XEmacs RET} to get to the Emacs | |
3867 manual, then @kbd{m Bugs RET} to get to the section on bugs. Or use | |
3868 standalone Info in a like manner. (Standalone Info is part of the | |
3869 Texinfo distribution, not part of the XEmacs distribution.) | |
3870 | |
3871 @item | |
3872 By hand. Do | |
3873 @example | |
3874 cat info/xemacs* | more "+/^File: xemacs.info, Node: Bugs," | |
3875 @end example | |
3876 @end enumerate | |
3877 | |
3878 @node Q2.4.2, Q2.4.3, Q2.4.1, Installation | |
3879 @unnumberedsubsec Q2.4.2: Help! XEmacs just crashed on me! | |
428 | 3880 |
3881 First of all, don't panic. Whenever XEmacs crashes, it tries extremely | |
3882 hard to auto-save all of your files before dying. (The main time that | |
3883 this will not happen is if the machine physically lost power or if you | |
3884 killed the XEmacs process using @code{kill -9}). The next time you try | |
3885 to edit those files, you will be informed that a more recent auto-save | |
3886 file exists. You can use @kbd{M-x recover-file} to retrieve the | |
3887 auto-saved version of the file. | |
3888 | |
462 | 3889 You can use the command @kbd{M-x recover-session} after a crash to pick |
3890 up where you left off. | |
428 | 3891 |
3892 Now, XEmacs is not perfect, and there may occasionally be times, or | |
3893 particular sequences of actions, that cause it to crash. If you can | |
3894 come up with a reproducible way of doing this (or even if you have a | |
3895 pretty good memory of exactly what you were doing at the time), the | |
2417 | 3896 maintainers would be very interested in knowing about it. The best |
3897 way to report a bug is using @kbd{M-x report-emacs-bug} (or by | |
3898 selecting @samp{Send Bug Report...} from the Help menu). If that | |
3899 won't work (e.g. you can't get XEmacs working at all), send ordinary | |
3900 mail to @email{xemacs-beta@@xemacs.org}. @emph{MAKE SURE} to include | |
3901 the output from the crash, especially including the Lisp backtrace, as | |
3902 well as the XEmacs configuration from @kbd{M-x describe-installation} | |
3903 (or equivalently, the file @file{Installation} in the top of the build | |
3904 tree). Note that the developers do @emph{not} usually follow | |
3905 @samp{comp.emacs.xemacs} on a regular basis; thus, this is better for | |
3906 general questions about XEmacs than bug reports. | |
428 | 3907 |
1183 | 3908 If at all possible, include a C stack backtrace of the core dump that |
2417 | 3909 was produced. This shows where exactly things went wrong, and makes |
3910 it much easier to diagnose problems. To do this under Unix and Mac OS | |
3911 X, you need to locate the core file (it's called @file{core}, and is | |
3912 usually sitting in the directory that you started XEmacs from, or your | |
3913 home directory if that other directory was not writable). Then, go to | |
3914 that directory and execute a command like: | |
428 | 3915 |
3916 @example | |
3917 gdb `which xemacs` core | |
3918 @end example | |
3919 | |
3920 and then issue the command @samp{where} to get the stack backtrace. You | |
3921 might have to use @code{dbx} or some similar debugger in place of | |
3922 @code{gdb}. If you don't have any such debugger available, complain to | |
3923 your system administrator. | |
3924 | |
2417 | 3925 It's possible that a core file didn't get produced or the stack trace |
3926 from gdb is garbage, in which case you're out of luck unless you can | |
3927 reproduce the bug. A nonexistent core file can happen in some | |
3928 circumstances on some operating systems, depending on what exactly | |
3929 triggered the crash. It's also possible, however, that your limits | |
3930 are set to turn them off. You may be able to reenable them using a | |
3931 command like @samp{unlimit coredumpsize} or @samp{ulimit -c}. (To find | |
3932 out how your limits are set, use the command @samp{limit}.) However, if | |
3933 you didn't explicitly set your limits this way, go complain to your | |
3934 system administrator and tell him not to disable core files by | |
3935 default. | |
3936 | |
3937 A garbaged stack trace can happen for various reasons. Some versions | |
3938 of gdb are broken on certain operating systems and aren't able to read | |
3939 the core file. It's also possible that the stack got overwritten | |
3940 during the crash. A very simple reason, however, is that your version | |
3941 of XEmacs was compiled without debugging information or had the | |
3942 debugging information stripped. A compilation with optimization can | |
3943 also result in partly or completely garbaged stack trace. In such | |
3944 cases, you will need to recompile XEmacs with debugging information | |
2559 | 3945 and without optimization; @xref{Q2.4.4, How to debug an XEmacs problem |
2417 | 3946 with a debugger}. Note also that core files currently don't work at |
3947 all under Cygwin, and the only way to get a backtrace is to run XEmacs | |
3948 from gdb. | |
3949 | |
3950 If you cannot get a backtrace from the core dump, but can reproduce | |
3951 the problem, try running XEmacs under gdb. The goal is to get clean C | |
3952 and Lisp backtraces and submit a bug report including full | |
3953 configuration information as described above, as this will greatly | |
3954 assist in the process of tracking down the bug. However, even partial | |
3955 information is better than none. The process of getting backtraces | |
2559 | 3956 from gdb is described in detail in @ref{Q2.4.4, How to debug an XEmacs |
2417 | 3957 problem with a debugger}. |
428 | 3958 |
1183 | 3959 If you're under Microsoft Windows, you're out of luck unless you happen |
3960 to have a debugging aid installed on your system, for example Visual | |
3961 C++. In this case, the crash will result in a message giving you the | |
3962 option to enter a debugger (for example, by pressing @samp{Cancel}). Do | |
3963 this and locate the stack-trace window. (If your XEmacs was built | |
3964 without debugging information, the stack trace may not be very useful.) | |
3965 | |
428 | 3966 When making a problem report make sure that: |
3967 | |
3968 @enumerate | |
3969 @item | |
3970 Report @strong{all} of the information output by XEmacs during the | |
3971 crash. | |
3972 | |
3973 @item | |
2417 | 3974 You mention what O/S and Hardware you are running XEmacs on. |
428 | 3975 |
3976 @item | |
3977 What version of XEmacs you are running. | |
3978 | |
3979 @item | |
3980 What build options you are using. | |
3981 | |
3982 @item | |
2417 | 3983 If the problem is related to graphics and you are running Unix or Mac |
3984 OS X, we will also need to know what version of the X Window System | |
3985 you are running, and what window manager you are using. | |
1183 | 3986 |
3987 @item | |
3988 If the problem happened on a TTY, please include the terminal type. | |
2417 | 3989 |
3990 @item | |
3991 Try very hard to get both C and Lisp backtraces, as described above. | |
428 | 3992 @end enumerate |
3993 | |
1135 | 3994 Much of the information above is automatically generated by @kbd{M-x |
3995 report-emacs-bug}. Even more, and often useful, information can be | |
3996 generated by redirecting the output of @code{make} and @code{make check} | |
3997 to a file (@file{beta.err} is the default used by @code{build-report}), | |
3998 and executing @kbd{M-x build-report}. | |
3999 | |
2417 | 4000 |
2559 | 4001 @node Q2.4.3, Q2.4.4, Q2.4.2, Installation |
4002 @unnumberedsubsec Q2.4.3: XEmacs crashes and I compiled it myself. | |
2417 | 4003 |
4004 There have been a variety of reports of crashes due to compilers with | |
4005 buggy optimizers. If you are compiling with optimization, consider | |
2559 | 4006 turning it off (@pxref{Q2.4.4, How to debug an XEmacs problem with a |
2417 | 4007 debugger}) and recompiling. |
4008 | |
4009 Please see the @file{PROBLEMS} file that comes with XEmacs (it's in | |
4010 the top-level source directory) to read what it says about your | |
4011 platform. | |
4012 | |
3018 | 4013 If you compiled XEmacs 21.4 or ealier using @samp{--use-union-type}, or |
4014 21.5 or later using @samp{--enable-union-type} (or in either case used | |
4015 the option @samp{USE_UNION_TYPE} in @file{config.inc} under Windows), | |
4016 try recompiling again without it. The union type has been known to | |
4017 trigger compiler errors in a number of cases. | |
2417 | 4018 |
2559 | 4019 @node Q2.4.4, Q2.4.5, Q2.4.3, Installation |
4020 @unnumberedsubsec Q2.4.4: How to debug an XEmacs problem with a debugger | |
428 | 4021 |
4022 If XEmacs does crash on you, one of the most productive things you can | |
4023 do to help get the bug fixed is to poke around a bit with the debugger. | |
4024 Here are some hints: | |
4025 | |
4026 @itemize @bullet | |
4027 @item | |
4028 First of all, if the crash is at all reproducible, consider very | |
563 | 4029 strongly recompiling your XEmacs with debugging symbols and with no |
4030 optimization (e.g. with GCC use the compiler flags @samp{-g -O0} -- | |
4031 that's an "oh" followed by a zero), and with the configure options | |
3018 | 4032 @samp{--debug=yes} and @samp{--error-checking=all} |
4033 (@samp{--enable-debug=yes} and @samp{--enable-error-checking=all} on | |
4034 XEmacs 21.5 or later). This will make your XEmacs run somewhat slower, | |
4035 but you are a lot more likely to catch the problem earlier (closer to | |
4036 its source). It makes it a lot easier to determine what's going on with | |
4037 a debugger. The way to control the compiler flags is with the | |
4038 configuration option @samp{--cflags} (@samp{--with-cflags} in 21.5). If | |
4039 you have a recent version of 21.5, you should use | |
2417 | 4040 @samp{--without-optimization} in preference to directly setting |
4041 @samp{--cflags}. | |
1258 | 4042 |
4043 @item | |
4044 If it's not a true crash (@emph{i.e.}, XEmacs is hung, or a zombie | |
4045 process), or it's inconvenient to run XEmacs again because XEmacs is | |
4046 already running or is running in batch mode as part of a bunch of | |
4047 scripts, you may be able to attach to the existing process with your | |
2417 | 4048 debugger. Under Unix and Mac OS X, the typical way to do this is to |
4049 first use some variant of the @samp{ps} command to figure out the | |
4050 process ID of XEmacs, for example @samp{ps -auxww | grep xemacs} under | |
4051 a BSD variant, @samp{ps -elf | grep xemacs} under Linux or System V, | |
4052 or @samp{ps -aW | grep xemacs} under Cygwin. Then run | |
4053 | |
4054 @example | |
4055 gdb /path/to/xemacs/xemacs #### | |
4056 @end example | |
4057 | |
4058 Where @code{####} is the process id of your XEmacs. (If you're not | |
4059 sure, try using @samp{which xemacs}.) When gdb attaches, the xemacs | |
4060 will stop and you can type @samp{where} in gdb to get a stack trace as | |
4061 usual. To get things moving again, you can just type @samp{quit} in | |
4062 gdb. It'll tell you the program is running and ask if you want to | |
4063 quit anyways. Say @samp{y} and it'll quit and have your emacs | |
4064 continue from where it was at. | |
4065 | |
4066 If you're running another debugger, a similar method may work, or you | |
4067 may have to run the debugger first and then use the @code{attach} | |
4068 command or something similar. | |
4069 | |
4070 Under Microsoft Windows, use the menu item @samp{Build->Start | |
4071 Debug->Attach to Process...} and select the XEmacs process from the list | |
4072 given. | |
1258 | 4073 |
4074 @item | |
4075 If you're able to run XEmacs under a debugger and reproduce the crash, | |
4076 here are some things you can do: | |
428 | 4077 |
4078 @item | |
4079 If XEmacs is hitting an assertion failure, put a breakpoint on | |
4080 @code{assert_failed()}. | |
4081 | |
4082 @item | |
4083 If XEmacs is hitting some weird Lisp error that's causing it to crash | |
4084 (e.g. during startup), put a breakpoint on @code{signal_1()}---this is | |
2417 | 4085 declared static in @file{eval.c}. |
428 | 4086 |
4087 @item | |
563 | 4088 If XEmacs is outputting lots of X errors, put a breakpoint on |
2417 | 4089 @code{x_error_handler()}; that will tell you which call is causing |
4090 them. Note that the result may not be very useful by default because | |
4091 X Windows normally operates asynchronously: A bunch of commands are | |
4092 buffered up and then sent to the server all at once. This greatly | |
4093 improves performance over a network but means that an error may not be | |
4094 reported until the server receives the commands, which can be long | |
4095 after XEmacs made the erroneous calls. For best results, you need to | |
4096 make the X server synchronous before getting the backtrace. This can | |
4097 be done by starting XEmacs with the @samp{-sync} option or executing | |
4098 the Lisp code @code{(x-debug-mode t)}. | |
563 | 4099 |
4100 @item | |
428 | 4101 Internally, you will probably see lots of variables that hold objects of |
1258 | 4102 type @code{Lisp_Object}. These are references to Lisp objects. |
4103 Printing them out with the debugger probably won't be too | |
4104 useful---you'll likely just see a number. To decode them, do this: | |
428 | 4105 |
4106 @example | |
2417 | 4107 call debug_print (OBJECT) |
428 | 4108 @end example |
4109 | |
4110 where @var{OBJECT} is whatever you want to decode (it can be a variable, | |
1258 | 4111 a function call, etc.). This uses the Lisp printing routines to out a |
4112 readable representation on the TTY from which the xemacs process was | |
4113 invoked. | |
428 | 4114 |
2417 | 4115 Under 21.5 and later, @code{dp} is defined as an easier-to-type equivalent |
4116 of @code{debug_print}. You can also try @code{dpa} if you can't see | |
4117 the output from @code{debug_print} (this will return a string containing | |
4118 the output), or use @code{debug_p3} if @code{debug_print} itself triggers | |
4119 a crash (this is a less comprehensive but super-safe way to print out | |
4120 a Lisp object). | |
4121 | |
428 | 4122 @item |
4123 If you want to get a Lisp backtrace showing the Lisp call | |
4124 stack, do this: | |
4125 | |
4126 @example | |
2417 | 4127 call debug_backtrace () |
428 | 4128 @end example |
4129 | |
2417 | 4130 Under 21.5 and later, @code{db} is defined as an easier-to-type equivalent |
4131 of @code{debug_backtrace}. | |
4132 | |
4133 @item | |
4134 Using @code{debug_print} and @code{debug_backtrace} has two | |
4135 disadvantages - they can only be used with a running (including hung | |
4136 or zombie) xemacs process, and they do not display the internal C | |
4137 structure of a Lisp Object. Even if all you've got is a core dump, | |
4138 all is not lost. | |
428 | 4139 |
4140 If you're using GDB, there are some macros in the file | |
438 | 4141 @file{src/.gdbinit} in the XEmacs source distribution that should make |
4142 it easier for you to decode Lisp objects. This file is automatically | |
4143 read by gdb if gdb is run in the directory where xemacs was built, and | |
4144 contains these useful macros to inspect the state of xemacs: | |
4145 | |
4146 @table @code | |
4147 @item pobj | |
4148 Usage: pobj lisp_object @* | |
4149 Print the internal C representation of a lisp object. | |
4150 | |
4151 @item xtype | |
4152 Usage: xtype lisp_object @* | |
4153 Print the Lisp type of a lisp object. | |
4154 | |
4155 @item lbt | |
4156 Usage: lbt @* | |
4157 Print the current Lisp stack trace. | |
1258 | 4158 Requires a running xemacs process. (It works by calling the db |
4159 routine described above.) | |
438 | 4160 |
4161 @item ldp | |
4162 Usage: ldp lisp_object @* | |
4163 Print a Lisp Object value using the Lisp printer. | |
1258 | 4164 Requires a running xemacs process. (It works by calling the dp |
4165 routine described above.) | |
438 | 4166 |
4167 @item run-temacs | |
4168 Usage: run-temacs @* | |
4169 Run temacs interactively, like xemacs. | |
4170 Use this with debugging tools (like purify) that cannot deal with dumping, | |
4171 or when temacs builds successfully, but xemacs does not. | |
4172 | |
4173 @item dump-temacs | |
4174 Usage: dump-temacs @* | |
4175 Run the dumping part of the build procedure. | |
4176 Use when debugging temacs, not xemacs! | |
4177 Use this when temacs builds successfully, but xemacs does not. | |
4178 | |
4179 @item check-xemacs | |
4180 Usage: check-xemacs @* | |
4181 Run the test suite. Equivalent to 'make check'. | |
4182 | |
4183 @item check-temacs | |
4184 Usage: check-temacs @* | |
4185 Run the test suite on temacs. Equivalent to 'make check-temacs'. | |
4186 Use this with debugging tools (like purify) that cannot deal with dumping, | |
4187 or when temacs builds successfully, but xemacs does not. | |
4188 @end table | |
428 | 4189 |
4190 If you are using Sun's @file{dbx} debugger, there is an equivalent file | |
438 | 4191 @file{src/.dbxrc}, which defines the same commands for dbx. |
428 | 4192 |
4193 @item | |
4194 If you're using a debugger to get a C stack backtrace and you're seeing | |
4195 stack traces with some of the innermost frames mangled, it may be due to | |
4196 dynamic linking. (This happens especially under Linux.) Consider | |
3018 | 4197 reconfiguring with @samp{--dynamic=no} (@samp{--with-dynamic=no} in 21.5 |
4198 or later). Also, sometimes (again under Linux), stack backtraces of | |
4199 core dumps will have the frame where the fatal signal occurred mangled; | |
4200 if you can obtain a stack trace while running the XEmacs process under a | |
4201 debugger, the stack trace should be clean. | |
428 | 4202 |
1183 | 4203 @email{1CMC3466@@ibm.mtsac.edu, Curtiss} suggests upgrading to ld.so |
4204 version 1.8 if dynamic linking and debugging is a problem on Linux. | |
428 | 4205 |
4206 @item | |
4207 If you're using a debugger to get a C stack backtrace and you're | |
4208 getting a completely mangled and bogus stack trace, it's probably due to | |
4209 one of the following: | |
4210 | |
4211 @enumerate a | |
4212 @item | |
4213 Your executable has been stripped. Bad news. Tell your sysadmin not to | |
4214 do this---it doesn't accomplish anything except to save a bit of disk | |
4215 space, and makes debugging much much harder. | |
4216 | |
4217 @item | |
4218 Your stack is getting trashed. Debugging this is hard; you have to do a | |
4219 binary-search type of narrowing down where the crash occurs, until you | |
4220 figure out exactly which line is causing the problem. Of course, this | |
1258 | 4221 only works if the bug is highly reproducible. Also, in many cases if |
4222 you run XEmacs from the debugger, the debugger can protect the stack | |
4223 somewhat. However, if the stack is being smashed, it is typically the | |
4224 case that there is a wild pointer somewhere in the program, often quite | |
4225 far from where the crash occurs. | |
428 | 4226 |
4227 @item | |
4228 If your stack trace has exactly one frame in it, with address 0x0, this | |
4229 could simply mean that XEmacs attempted to execute code at that address, | |
4230 e.g. through jumping to a null function pointer. Unfortunately, under | |
4231 those circumstances, GDB under Linux doesn't know how to get a stack | |
1183 | 4232 trace. (Yes, this is the fourth Linux-related problem I've mentioned. I |
428 | 4233 have no idea why GDB under Linux is so bogus. Complain to the GDB |
1183 | 4234 authors, or to comp.os.linux.development.system.) Again, you'll have to |
428 | 4235 use the narrowing-down process described above. |
4236 | |
4237 @item | |
462 | 4238 You will get a Lisp backtrace output when XEmacs crashes, so you'll have |
4239 something useful. | |
428 | 4240 |
4241 @end enumerate | |
4242 | |
4243 @item | |
4244 If you compile with the newer gcc variants gcc-2.8 or egcs, you will | |
438 | 4245 also need gdb 4.17 or above. Earlier releases of gdb can't handle the |
4246 debug information generated by the newer compilers. | |
428 | 4247 |
4248 @item | |
438 | 4249 In versions of XEmacs before 21.2.27, @file{src/.gdbinit} was named |
4250 @file{src/gdbinit}. This had the disadvantage of not being sourced | |
4251 automatically by gdb, so you had to set that up yourself. | |
428 | 4252 |
1183 | 4253 @item |
4254 If you are running Microsoft Windows, the the file @file{nt/README} for | |
4255 further information about debugging XEmacs. | |
4256 | |
428 | 4257 @end itemize |
4258 | |
2559 | 4259 @node Q2.4.5, Q2.4.6, Q2.4.4, Installation |
4260 @unnumberedsubsec Q2.4.5: I get a cryptic error message when trying to do something. | |
2417 | 4261 |
4262 When I try to use some particular option of some particular package, I | |
4263 get a cryptic error message in the minibuffer. | |
4264 | |
4265 If the message went by too quickly, use @samp{Help->Recent Messages} | |
4266 from the menubar (or type @kbd{C-h l}) to see recent messages. | |
4267 | |
4268 If you can't figure out what's going on, select | |
4269 @samp{Options->Troubleshooting->Debug on Error} from the menubar (or | |
4270 type @kbd{M-:} then @kbd{(setq debug-on-error t)}) then try and make | |
4271 the error happen again. This will put in the debugger (you can get | |
4272 out of this and continue what you were doing before by typing @kbd{c}) | |
4273 and give you a backtrace that may be enlightening. If not, try | |
4274 reading through this FAQ; if that fails, you could try posting to | |
4275 @samp{comp.emacs.xemacs} (making sure to include the backtrace) and | |
4276 someone may be able to help. If you can identify which XEmacs Lisp | |
4277 source file the error is coming from you can get a more detailed stack | |
4278 backtrace by doing the following: | |
428 | 4279 |
4280 @enumerate | |
4281 @item | |
2417 | 4282 Visit the .el file in an XEmacs buffer. |
4283 | |
4284 @item | |
4285 Issue the command @kbd{M-x eval-current-buffer}. | |
4286 | |
4287 @item | |
4288 Reproduce the error. | |
428 | 4289 @end enumerate |
4290 | |
2417 | 4291 For more information on debugging Lisp code, @xref{Debugging,,, |
4292 lispref, XEmacs Lisp Reference Manual}. | |
4293 | |
2559 | 4294 @node Q2.4.6, Q2.4.7, Q2.4.5, Installation |
4295 @unnumberedsubsec Q2.4.6: XEmacs hangs when I try to do something. | |
2417 | 4296 |
4297 XEmacs might just be slow; some operations take a long time. XEmacs | |
4298 may also be waiting on a response from the network, for example when | |
4299 you are trying to send mail. | |
4300 | |
4301 You can usually interrupt XEmacs by typing @kbd{C-g}. If not (for | |
4302 example, Lisp code explicitly disabled this by setting | |
4303 @code{inhibit-quit}), you can use the "critical quit" mechanism by | |
4304 typing @kbd{Control-Shift-G}. This should also pop you into the | |
4305 debugger and give you a backtrace, which can tell you where the | |
2559 | 4306 problem is (@pxref{Q2.4.4, How to debug an XEmacs problem with a |
2417 | 4307 debugger}). (Note that setting @code{debug-on-quit} or selecting |
4308 @samp{Options->Troubleshooting->Debug on Quit} will also cause regular | |
4309 @kbd{C-g} to enter the debugger and give you a backtrace.) | |
4310 | |
4311 If you can't interrupt XEmacs this way, or for some reason XEmacs is | |
4312 not talking to the keyboard, you can try sending the @samp{SIGINT} | |
4313 signal using the @samp{kill} command. | |
4314 | |
4315 If the Lisp backtrace isn't enlightening, or if XEmacs is so hung that | |
4316 you can't interrupt it at all, you could try attaching to the process | |
2559 | 4317 and getting a C stack backtrace. @xref{Q2.4.4, How to debug an XEmacs |
2417 | 4318 problem with a debugger}. |
4319 | |
2559 | 4320 @node Q2.4.7, Q2.4.8, Q2.4.6, Installation |
4321 @unnumberedsubsec Q2.4.7: I get an error message when XEmacs is running in batch mode. | |
2417 | 4322 |
4323 Typically this happens when you are trying to compile some Elisp code. | |
4324 If you are doing this as part of XEmacs or the XEmacs packages, you | |
4325 should automatically get a backtrace, which can help you determine the | |
4326 source of the problem. In other cases, you can get equivalent results | |
4327 by setting the environment variable @samp{XEMACSDEBUG} to @samp{(setq | |
4328 stack-trace-on-error t load-always-display-messages t | |
4329 load-ignore-out-of-date-elc-files t load-show-full-path-in-messages | |
4330 t)} (this needs to be all on one line; to set an environment variable, | |
4331 use @samp{export XEMACSDEBUG='FOO'} under @samp{bash}, @samp{zsh}, | |
4332 etc. or @samp{setenv XEMACSDEBUG 'FOO'} under @samp{csh} and | |
4333 @samp{tcsh}). @samp{XEMACSDEBUG} specifies Lisp code that will be | |
4334 executed at startup time. | |
4335 | |
4336 If the backtrace is not sufficiently useful in helping you diagnose | |
4337 the problem, you should consider using a debugger such as GDB. | |
2559 | 4338 @xref{Q2.4.4, How to debug an XEmacs problem with a debugger}. You |
2417 | 4339 probably want to set a breakpoint on @code{signal_1}. Since such |
4340 errors often occur during compiling, which is often triggered by a | |
4341 complex command run from a make suite, it may be easier to attach to | |
4342 the process once it's running. | |
4343 | |
3018 | 4344 Under Microsoft Windows (and perhaps other operating systems), there is |
4345 another useful trick you can do if you have configured with debugging | |
4346 support (configure option @samp{--debug} (@samp{--with-debug} in 21.5) | |
4347 or setting @samp{DEBUG_XEMACS} in @file{nt/config.inc}). Set the | |
4348 environment variable @samp{XEMACSDEBUG} (as described above) to | |
4349 @samp{(setq debug-on-error t)}. Then, when an error occurs | |
4350 noninteractively, instead of trying to invoke the Lisp debugger (which | |
4351 obviously won't work), XEmacs will break out to a C debugger using | |
2417 | 4352 @code{(force-debugging-signal t)}. @emph{NOTE}: This runs |
4353 @code{abort()}!!! (As well as and after executing INT 3 under MS | |
4354 Windows, which should invoke a debugger if it's active.) This is | |
4355 guaranteed to kill XEmacs! (But in this situation, XEmacs is about to | |
4356 die anyway, and if no debugger is present, this will usefully dump | |
4357 core.) | |
4358 | |
2559 | 4359 @node Q2.4.8, Q2.4.9, Q2.4.7, Installation |
4360 @unnumberedsubsec Q2.4.8: The keyboard or mouse is not working properly, or I have some other event-related problem. | |
2417 | 4361 |
4362 XEmacs has various facilities for debugging event handling. | |
4363 | |
4364 First, try setting the variable @code{debug-emacs-events} to non-zero. | |
4365 This will output various information showing which events are being | |
4366 received and how they are being translated. This may show you, for | |
4367 example, that a key command is getting intercepted using | |
4368 @code{key-translation-map}; this problem can otherwise be very tricky | |
4369 to debug. | |
4370 | |
4371 Under X, you can see exactly which events are being received from the | |
4372 window system by setting @code{x-debug-events} to non-zero. (The value | |
4373 @samp{1} gives you regular output, and @samp{2} gives you verbose | |
4374 output, including all parameters.) | |
4375 | |
4376 A similar facility exists under MS Windows: Set | |
4377 @code{debug-mswindows-events} to non-zero. (The value @samp{1} gives | |
4378 you regular output. The value @samp{2} gives you verbose output, | |
4379 including all parameters. The value @samp{3} gives you | |
4380 super-gorily-detailed output.) | |
4381 | |
2559 | 4382 @node Q2.4.9, Q2.4.10, Q2.4.8, Installation |
4383 @unnumberedsubsec Q2.4.9: @kbd{C-g} doesn't work for me. Is it broken? | |
2417 | 4384 |
4385 @kbd{C-g} does work for most people in most circumstances. If it | |
4386 doesn't, there are two possible explanations: | |
4387 | |
4388 @enumerate | |
4389 @item | |
4390 XEmacs is hung in a way that prevents @kbd{C-g} from working. This | |
4391 can happen when code is wrapped with a binding of @code{inhibit-quit} | |
4392 to @code{t}; you should still be able interrupt XEmacs using "critical | |
4393 quit". On the other hand, XEmacs may be seriously wedged. (If you're | |
4394 lucky, sending @samp{SIGINT} to the XEmacs process will interrupt it.) | |
2559 | 4395 @xref{Q2.4.6, XEmacs hangs when I try to do something.}. |
2417 | 4396 |
4397 @item | |
4398 @kbd{C-g} is indeed broken on your system. To test, try executing | |
4399 @code{(while t)} from the @samp{*scratch*} buffer. If @kbd{C-g} | |
4400 doesn't interrupt, then it's broken. This used to happen with systems | |
4401 where @samp{SIGIO} was broken, but @samp{BROKEN_SIGIO} wasn't defined. | |
4402 However, there may not be very many such systems nowadays. | |
4403 @end enumerate | |
4404 | |
2559 | 4405 @node Q2.4.10, Q2.4.11, Q2.4.9, Installation |
4406 @unnumberedsubsec Q2.4.10: How do I debug process-related problems? | |
2417 | 4407 |
4408 Under MS Windows, you can set the variable | |
4409 @code{debug-mswindows-process-command-lines} to non-@samp{nil} to get | |
4410 information on exactly what is getting passed to a process. This can | |
4411 be useful in determining problems with quoting. (Under Unix, a process | |
4412 receives each argument separately, but under MS Windows a single | |
4413 command line is received, and arguments with spaces or other special | |
4414 characters in them must be quoted. Unfortunately this means that each | |
4415 process, potentially at least, has its own quoting conventions, and | |
4416 the code to process quoting conventions in @file{cmd.exe}, the Visual | |
4417 C++ startup code and the like is baroque and poorly documented. | |
4418 XEmacs uses the variable | |
4419 @code{mswindows-construct-process-command-line-alist} to construct a | |
4420 command line from a list of arguments based on the command to be run, | |
4421 but it is (and cannot be) a perfect solution.) | |
4422 | |
2559 | 4423 @node Q2.4.11, Q2.4.12, Q2.4.10, Installation |
4424 @unnumberedsubsec Q2.4.11: XEmacs is outputting lots of X errors. | |
563 | 4425 |
4426 If this is happening, we would very much like to know what's causing | |
2559 | 4427 them. To find this out, see @ref{Q2.4.4, How to debug an XEmacs |
2417 | 4428 problem with a debugger}. Try to get both a C and Lisp backtrace, and |
4429 send them along with the full error output to | |
4430 @email{xemacs-beta@@xemacs.org}. | |
4431 | |
2559 | 4432 @node Q2.4.12, Q2.5.1, Q2.4.11, Installation |
4433 @unnumberedsubsec Q2.4.12: After upgrading, XEmacs won't do `foo' any more! | |
2417 | 4434 |
4435 You have been used to doing `foo', but now when you invoke it (or | |
4436 click the toolbar button or select the menu item), nothing (or an | |
4437 error) happens. The simplest explanation is that you are missing a | |
4438 package that is essential to you. You can either track it down and | |
4439 install it (there is a list of packages and brief descriptions of | |
4440 their contents in @file{etc/PACKAGES}), or install the `Sumo Tarball' | |
2559 | 4441 (@pxref{Q2.1.2, How do I figure out which packages to install?}). |
2417 | 4442 |
4443 @c #### should xref to XEmacs manual here | |
4444 | |
2559 | 4445 @unnumberedsec 2.5: Startup-Related Problems |
4446 | |
4447 @node Q2.5.1, Q2.5.2, Q2.4.12, Installation | |
4448 @unnumberedsubsec Q2.5.1: XEmacs cannot connect to my X Terminal! | |
2417 | 4449 |
4450 Help! I can not get XEmacs to display on my Envizex X-terminal! | |
4451 | |
4452 Try setting the @code{DISPLAY} variable using the numeric IP address of | |
4453 the host you are running XEmacs from. | |
4454 | |
2559 | 4455 @node Q2.5.2, Q2.5.3, Q2.5.1, Installation |
4456 @unnumberedsubsec Q2.5.2 Startup problems related to paths or package locations. | |
4457 | |
4458 First of all, if XEmacs can't find the packages, check to make sure | |
4459 that you put the packages in the right place, or that you told XEmacs | |
4460 where to look for the packages when you compiled it. @xref{Q2.1.1}. | |
4461 | |
4462 If something is still going wrong, or you get a startup warning about | |
4463 not being able to deduce some paths, you can get detailed information | |
4464 on the path-searching process at startup by setting the environment | |
4465 variable @samp{EMACSDEBUGPATHS} to a non-null value. One thing to | |
4466 look for if you're having package problems is the value of | |
4467 @samp{configure-package-path}. This corresponds to what was compiled | |
4468 into XEmacs using the @samp{--package-prefix} or @samp{--package-path} | |
4469 parameter (@pxref{Q2.1.1}). If this has the value of @samp{nil}, | |
4470 this means that no value was compiled into XEmacs using these parameters. | |
4471 | |
4472 @node Q2.5.3, Q2.5.4, Q2.5.2, Installation | |
4658
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
4473 @unnumberedsubsec Q2.5.3: XEmacs won't start without network, or starts slowly. |
434 | 4474 |
4475 If XEmacs starts when you're on the network, but fails when you're not | |
4476 on the network, you may be missing a "localhost" entry in your | |
4477 @file{/etc/hosts} file. The file should contain an entry like: | |
4478 | |
4479 @example | |
4480 127.0.0.1 localhost | |
4481 @end example | |
4482 | |
4658
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
4483 Add that line, and XEmacs will be happy. If your network is unreliable, |
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
4484 such as a Wifi network, you may experience delays but eventually XEmacs |
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
4485 starts up. This may be due to having the lookup order give precedence |
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
4486 to DNS over the hosts file (often lookup order is defined in one of the |
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
4487 files @file{/etc/host.conf}, @file{/etc/nsswitch.conf}, or |
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
4488 @file{/etc/resolv.conf}, depending on OS). See your system |
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
4489 documentation for this configuration. Note that changing the lookup |
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
4490 order is a workaround; there are good reasons to have DNS come earlier |
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
4491 by default. Make sure those reasons are less important to you than a |
fd2495d78aac
Add FAQ on network slows (lookup order of DNS and /etc/hosts).
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4625
diff
changeset
|
4492 quick XEmacs startup. |
434 | 4493 |
2559 | 4494 @node Q2.5.4, Q2.5.5, Q2.5.3, Installation |
4495 @unnumberedsubsec Q2.5.4: Startup warnings about deducing proper fonts? | |
2417 | 4496 |
4497 How can I avoid the startup warnings about deducing proper fonts? | |
4498 | |
4499 This is highly dependent on your installation, but try with the | |
4500 following font as your base font for XEmacs and see what it does: | |
4501 | |
4502 @format | |
4503 -adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1 | |
4504 @end format | |
4505 | |
4506 More precisely, do the following in your resource file: | |
4507 | |
4508 @format | |
4509 Emacs.default.attributeFont: \ | |
4510 -adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1 | |
4511 @end format | |
4512 | |
4513 If you just don't want to see the @samp{*Warnings*} buffer at startup | |
4514 time, you can set this: | |
428 | 4515 |
4516 @lisp | |
2417 | 4517 (setq display-warning-minimum-level 'error) |
428 | 4518 @end lisp |
4519 | |
2417 | 4520 The buffer still exists; it just isn't in your face. |
4521 | |
2559 | 4522 @node Q2.5.5, Q2.5.6, Q2.5.4, Installation |
4523 @unnumberedsubsec Q2.5.5: Warnings from incorrect key modifiers. | |
2417 | 4524 |
4525 The following information comes from the @file{PROBLEMS} file that comes | |
4526 with XEmacs. | |
4527 | |
4528 If you're having troubles with HP/UX it is because HP/UX defines the | |
4529 modifiers wrong in X. Here is a shell script to fix the problem; be | |
4530 sure that it is run after VUE configures the X server. | |
428 | 4531 |
4532 @example | |
2417 | 4533 #! /bin/sh |
4534 xmodmap 2> /dev/null - << EOF | |
4535 keysym Alt_L = Meta_L | |
4536 keysym Alt_R = Meta_R | |
4537 EOF | |
4538 | |
4539 xmodmap - << EOF | |
4540 clear mod1 | |
4541 keysym Mode_switch = NoSymbol | |
4542 add mod1 = Meta_L | |
4543 keysym Meta_R = Mode_switch | |
4544 add mod2 = Mode_switch | |
4545 EOF | |
428 | 4546 @end example |
4547 | |
2559 | 4548 @node Q2.5.6, , Q2.5.5, Installation |
4549 @unnumberedsubsec Q2.5.6: XEmacs 21.1 on Windows used to spawn an ugly console window on every startup. Has that been fixed? | |
2417 | 4550 |
4551 Yes. | |
4552 | |
4553 The console was there because @file{temacs} (and in turn, @file{xemacs}) | |
4554 was a console application, and Windows typically creates a new | |
4555 console for a console process unless the creating process requests that | |
4556 one isn't created. This used to be fixed with @file{runemacs}, a small | |
4557 Windows application that existed merely to start @file{xemacs}, stating | |
4558 that it didn't want a console. | |
4559 | |
4560 XEmacs 21.4 fixes this cleanly by the virtue of being a true "GUI" | |
4561 application. The explanation of what that means is included for | |
4562 educational value. | |
4563 | |
4564 When building an application to be run in a Win32 environment, you must | |
4565 state which sub-system it is to run in. Valid subsystems include | |
4566 "console" and "gui". The subsystem you use affects the run time | |
4567 libraries linked into your application, the start up function that is | |
4568 run before control is handed over to your application, the entry point | |
4569 to your program, and how Windows normally invokes your program. (Console | |
4570 programs automatically get a console created for them at startup if | |
4571 their stdin/stdout don't point anywhere useful, which is the case when | |
4572 run from the GUI. This is a stupid design, of course -- instead, the | |
4573 console should get created only when the first I/O actually occurs! | |
4574 GUI programs have an equally stupid design: When called from | |
4575 @file{CMD.EXE}/@file{COMMAND.COM}, their stdin/stdout will be set to | |
4576 point nowhere useful, even though the command shell has its own | |
4577 stdin/stdout. It's as if someone who had learned a bit about stdio but | |
4578 had no actual knowledge of interprocess communication designed the | |
4579 scheme; unfortunately, the whole process-communication aspect of the | |
4580 Win32 API is equally badly designed.) For example, the entry point for a | |
4581 console app is "main" (which is what you'd expect for a C/C++ program), | |
4582 but the entry point for a "gui" app is "WinMain". This confuses and | |
4583 annoys a lot of programmers who've grown up on Unix systems, where the | |
4584 kernel doesn't really care whether your application is a gui program or | |
4585 not. | |
4586 | |
4587 For reasons not altogether clear, and are lost in the mists of time and | |
4588 tradition, XEmacs on Win32 started out as a console application, and | |
4589 therefore a console was automatically created for it. (It may have been | |
4590 made a console application partly because a console is needed in some | |
4591 circumstances, especially under Win95, to interrupt, terminate, or send | |
4592 signals to a child process, and because of the bogosity mentioned above | |
4593 with GUI programs and the standard command shell. Currently, XEmacs | |
4594 just creates and immediately hides a console when necessary, and | |
4595 works around the "no useful stdio" problem by creating its own console | |
4596 window as necessary to display messages in.) | |
4597 | |
2459 | 4598 @node Editing, Display, Installation, Top |
4599 @unnumbered 3 Editing Functions | |
2417 | 4600 |
4601 This is part 3 of the XEmacs Frequently Asked Questions list. This | |
2459 | 4602 section is devoted to the editing-related capabilities of XEmacs (the |
4603 keyboard, mouse, buffers, text selections, etc.) and how to customize | |
4604 them. | |
2417 | 4605 |
4606 @menu | |
4607 3.0: The Keyboard | |
2459 | 4608 * Q3.0.1:: How can I customize the keyboard? |
4609 * Q3.0.2:: How can I bind complex functions (or macros) to keys? | |
4610 * Q3.0.3:: How do I bind C-. and C-; to scroll one line up and down? | |
4611 * Q3.0.4:: Globally binding @kbd{Delete}? | |
4612 * Q3.0.5:: How to map @kbd{Help} key alone on Sun type4 keyboard? | |
4613 * Q3.0.6:: How can you type in special characters in XEmacs? | |
4614 * Q3.0.7:: Can I turn on @dfn{sticky} modifier keys? | |
4615 * Q3.0.8:: How do I map the arrow keys? | |
4616 * Q3.0.9:: HP Alt key as Meta. | |
4617 * Q3.0.10:: Why does edt emulation not work? | |
4618 * Q3.0.11:: How can I emulate VI and use it as my default mode? | |
4625
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4619 * Q3.0.12:: Mac Alt/Option key as Meta. |
2417 | 4620 |
4621 3.1: The Mouse | |
4622 * Q3.1.1:: How can I turn off Mouse pasting? | |
4623 * Q3.1.2:: How do I set control/meta/etc modifiers on mouse buttons? | |
4624 * Q3.1.3:: Clicking the left button does not do anything in buffer list. | |
4625 * Q3.1.4:: How can I get a list of buffers when I hit mouse button 3? | |
2459 | 4626 * Q3.1.5:: How can I set XEmacs up so that it pastes where the text cursor is? |
4627 | |
4628 3.2: Buffers, Text Editing | |
4629 * Q3.2.1:: Can I have the end of the buffer delimited in some way? | |
4630 * Q3.2.2:: How do I insert today's date into a buffer? | |
4631 * Q3.2.3:: How do I get a single minibuffer frame? | |
4632 * Q3.2.4:: How can I enable auto-indent and/or Filladapt? | |
4633 * Q3.2.5:: How can I get XEmacs to come up in text/auto-fill mode by default? | |
4634 | |
4635 3.3: Text Selections | |
4636 * Q3.3.1:: How do I select a rectangular region? | |
4637 * Q3.3.2:: How can I turn off or change highlighted selections? | |
4638 * Q3.3.3:: How do I cause typing on an active region to remove it? | |
4639 * Q3.3.4:: Can I turn off the highlight during isearch? | |
4640 * Q3.3.5:: Why is killing so slow? | |
4641 * Q3.3.6:: Why does @kbd{M-w} take so long? | |
4642 | |
4643 3.4: Editing Source Code | |
4644 * Q3.4.1:: I do not like cc-mode. How do I use the old c-mode? | |
4645 * Q3.4.2:: How do you make XEmacs indent CL if-clauses correctly? | |
2417 | 4646 @end menu |
4647 | |
4648 @unnumberedsec 3.0: The Keyboard | |
4649 | |
2459 | 4650 @node Q3.0.1, Q3.0.2, Editing, Editing |
4651 @unnumberedsubsec Q3.0.1: How can I customize the keyboard? | |
4652 | |
4653 #### Write me. | |
4654 | |
4655 @node Q3.0.2, Q3.0.3, Q3.0.1, Editing | |
4656 @unnumberedsubsec Q3.0.2: How can I bind complex functions (or macros) to keys? | |
428 | 4657 |
4658 As an example, say you want the @kbd{paste} key on a Sun keyboard to | |
4659 insert the current Primary X selection at point. You can accomplish this | |
4660 with: | |
4661 | |
4662 @lisp | |
4663 (define-key global-map [f18] 'x-insert-selection) | |
4664 @end lisp | |
4665 | |
4666 However, this only works if there is a current X selection (the | |
4667 selection will be highlighted). The functionality I like is for the | |
4668 @kbd{paste} key to insert the current X selection if there is one, | |
4669 otherwise insert the contents of the clipboard. To do this you need to | |
4670 pass arguments to @code{x-insert-selection}. This is done by wrapping | |
4671 the call in a 'lambda form: | |
4672 | |
4673 @lisp | |
4674 (global-set-key [f18] | |
4675 (lambda () (interactive) (x-insert-selection t nil))) | |
4676 @end lisp | |
4677 | |
4678 This binds the f18 key to a @dfn{generic} functional object. The | |
4679 interactive spec is required because only interactive functions can be | |
4680 bound to keys. | |
4681 | |
4682 For the FAQ example you could use: | |
4683 | |
4684 @lisp | |
4685 (global-set-key [(control ?.)] | |
4686 (lambda () (interactive) (scroll-up 1))) | |
440 | 4687 (global-set-key [(control ?;)] |
4688 (lambda () (interactive) (scroll-up -1))) | |
428 | 4689 @end lisp |
4690 | |
4691 This is fine if you only need a few functions within the lambda body. | |
2417 | 4692 If you're doing more it's cleaner to define a separate function. |
2459 | 4693 @xref{Q3.0.3, How do I bind C-. and C-; to scroll one line up and |
2417 | 4694 down?}. |
4695 | |
2459 | 4696 @node Q3.0.3, Q3.0.4, Q3.0.2, Editing |
4697 @unnumberedsubsec Q3.0.3: How do I bind C-. and C-; to scroll one line up and down? | |
428 | 4698 |
4699 Add the following (Thanks to @email{mly@@adoc.xerox.com, Richard Mlynarik} and | |
4700 @email{wayne@@zen.cac.stratus.com, Wayne Newberry}) to @file{.emacs}: | |
4701 | |
4702 @lisp | |
4703 (defun scroll-up-one-line () | |
4704 (interactive) | |
4705 (scroll-up 1)) | |
4706 | |
4707 (defun scroll-down-one-line () | |
4708 (interactive) | |
4709 (scroll-down 1)) | |
4710 | |
4711 (global-set-key [(control ?.)] 'scroll-up-one-line) ; C-. | |
440 | 4712 (global-set-key [(control ?;)] 'scroll-down-one-line) ; C-; |
428 | 4713 @end lisp |
4714 | |
4715 The key point is that you can only bind simple functions to keys; you | |
2417 | 4716 can not bind a key to a function that you're also passing arguments |
2459 | 4717 to. (@pxref{Q3.0.2, How can I bind complex functions (or macros) to |
2417 | 4718 keys?} for a better answer). |
4719 | |
2459 | 4720 @node Q3.0.4, Q3.0.5, Q3.0.3, Editing |
4721 @unnumberedsubsec Q3.0.4: Globally binding @kbd{Delete}? | |
428 | 4722 |
4723 I cannot manage to globally bind my @kbd{Delete} key to something other | |
4724 than the default. How does one do this? | |
4725 | |
462 | 4726 Answer: The problem is that many modes explicitly bind @kbd{Delete}. To |
4727 get around this, try the following: | |
4728 | |
428 | 4729 @lisp |
4730 (defun foo () | |
4731 (interactive) | |
4732 (message "You hit DELETE")) | |
4733 | |
462 | 4734 (define-key key-translation-map 'delete 'redirected-delete) |
4735 (global-set-key 'redirected-delete 'foo) | |
428 | 4736 @end lisp |
4737 | |
2459 | 4738 @node Q3.0.5, Q3.0.6, Q3.0.4, Editing |
4739 @unnumberedsubsec Q3.0.5: How to map @kbd{Help} key alone on Sun type4 keyboard? | |
428 | 4740 |
4741 The following works in GNU Emacs 19: | |
4742 | |
4743 @lisp | |
4744 (global-set-key [help] 'help-command);; Help | |
4745 @end lisp | |
4746 | |
462 | 4747 The following works in XEmacs with the addition of shift: |
428 | 4748 |
4749 @lisp | |
4750 (global-set-key [(shift help)] 'help-command);; Help | |
4751 @end lisp | |
4752 | |
4753 But it doesn't work alone. This is in the file @file{PROBLEMS} which | |
4754 should have come with your XEmacs installation: @emph{Emacs ignores the | |
4755 @kbd{help} key when running OLWM}. | |
4756 | |
4757 OLWM grabs the @kbd{help} key, and retransmits it to the appropriate | |
4758 client using | |
4759 @iftex | |
4760 @* | |
4761 @end iftex | |
4762 @code{XSendEvent}. Allowing Emacs to react to synthetic | |
4763 events is a security hole, so this is turned off by default. You can | |
4764 enable it by setting the variable @code{x-allow-sendevents} to t. You | |
4765 can also cause fix this by telling OLWM to not grab the help key, with | |
4766 the null binding @code{OpenWindows.KeyboardCommand.Help:}. | |
4767 | |
2459 | 4768 @node Q3.0.6, Q3.0.7, Q3.0.5, Editing |
4769 @unnumberedsubsec Q3.0.6: How can you type in special characters in XEmacs? | |
428 | 4770 One way is to use the package @code{x-compose}. Then you can use |
4771 sequences like @kbd{Compose " a} to get ä, etc. | |
4772 | |
462 | 4773 Another way is to use the @code{iso-insert} package. Then you can use |
4774 sequences like @kbd{C-x 8 " a} to get ä, etc. | |
428 | 4775 |
4776 @email{glynn@@sensei.co.uk, Glynn Clements} writes: | |
4777 | |
4778 @quotation | |
4779 It depends upon your X server. | |
4780 | |
4781 Generally, the simplest way is to define a key as Multi_key with | |
4782 xmodmap, e.g. | |
4783 @c hey, show some respect, willya -- there's xkeycaps, isn't there? -- | |
4784 @c chr ;) | |
4785 @example | |
440 | 4786 xmodmap -e 'keycode 0xff20 = Multi_key' |
428 | 4787 @end example |
4788 | |
4789 You will need to pick an appropriate keycode. Use xev to find out the | |
4790 keycodes for each key. | |
4791 | |
4792 [NB: On a `Windows' keyboard, recent versions of XFree86 automatically | |
4793 define the right `Windows' key as Multi_key'.] | |
4794 | |
4795 Once you have Multi_key defined, you can use e.g. | |
4796 @example | |
440 | 4797 Multi a ' => á |
4798 Multi e " => ë | |
4799 Multi c , => ç | |
428 | 4800 @end example |
4801 | |
4802 etc. | |
4803 | |
4804 Also, recent versions of XFree86 define various AltGr-<key> | |
4805 combinations as dead keys, i.e. | |
4806 @example | |
440 | 4807 AltGr [ => dead_diaeresis |
4808 AltGr ] => dead_tilde | |
4809 AltGr ; => dead_acute | |
428 | 4810 @end example |
4811 etc. | |
4812 | |
4813 Running @samp{xmodmap -pk} will list all of the defined keysyms. | |
4814 @end quotation | |
4815 | |
1135 | 4816 For the related problem of @emph{displaying} non-ASCII characters in a |
2459 | 4817 non-Mule XEmacs, @xref{Q4.0.8, How do I display non-ASCII characters?}. |
4818 | |
4819 @node Q3.0.7, Q3.0.8, Q3.0.6, Editing | |
4820 @unnumberedsubsec Q3.0.7: Can I turn on @dfn{sticky} modifier keys? | |
428 | 4821 |
4822 Yes, with @code{(setq modifier-keys-are-sticky t)}. This will give the | |
4823 effect of being able to press and release Shift and have the next | |
4824 character typed come out in upper case. This will affect all the other | |
4825 modifier keys like Control and Meta as well. | |
4826 | |
4827 @email{ben@@xemacs.org, Ben Wing} writes: | |
4828 | |
4829 @quotation | |
4830 One thing about the sticky modifiers is that if you move the mouse out | |
4831 of the frame and back in, it cancels all currently ``stuck'' modifiers. | |
4832 @end quotation | |
4833 | |
2459 | 4834 @node Q3.0.8, Q3.0.9, Q3.0.7, Editing |
4835 @unnumberedsubsec Q3.0.8: How do I map the arrow keys? | |
428 | 4836 @c New |
4837 Say you want to map @kbd{C-@key{right}} to forward-word: | |
4838 | |
4839 @email{sds@@usa.net, Sam Steingold} writes: | |
4840 | |
4841 @quotation | |
4842 @lisp | |
4843 ; both XEmacs and Emacs | |
4844 (define-key global-map [(control right)] 'forward-word) | |
4845 @end lisp | |
4846 or | |
4847 @lisp | |
4848 ; Emacs only | |
4849 (define-key global-map [C-right] 'forward-word) | |
4850 @end lisp | |
4851 or | |
4852 @lisp | |
4853 ; ver > 20, both | |
4854 (define-key global-map (kbd "C-<right>") 'forward-word) | |
4855 @end lisp | |
4856 @end quotation | |
4857 | |
2459 | 4858 @node Q3.0.9, Q3.0.10, Q3.0.8, Editing |
4859 @unnumberedsubsec Q3.0.9: HP Alt key as Meta. | |
2417 | 4860 |
4861 How can I make XEmacs recognize the Alt key of my HP workstation as a | |
4862 Meta key? | |
4863 | |
4864 Put the following line into a file and load it with xmodmap(1) before | |
4865 starting XEmacs: | |
428 | 4866 |
4867 @example | |
2417 | 4868 remove Mod1 = Mode_switch |
428 | 4869 @end example |
4870 | |
2459 | 4871 @node Q3.0.10, Q3.0.11, Q3.0.9, Editing |
4872 @unnumberedsubsec Q3.0.10: Why does edt emulation not work? | |
2417 | 4873 |
4874 We don't know, but you can use tpu-edt emulation instead, which works | |
4875 fine and is a little fancier than the standard edt emulation. To do | |
4876 this, add the following line to your @file{init.el}: | |
4877 | |
4878 @lisp | |
4879 (tpu-edt) | |
4880 @end lisp | |
4881 | |
4882 If you don't want it to replace @kbd{C-h} with an edt-style help menu | |
4883 add this as well: | |
428 | 4884 |
4885 @lisp | |
2417 | 4886 (global-set-key [(control h)] 'help-for-help) |
428 | 4887 @end lisp |
4888 | |
4625
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4889 @node Q3.0.11, Q3.0.12, Q3.0.10, Editing |
2459 | 4890 @unnumberedsubsec Q3.0.11: How can I emulate VI and use it as my default mode? |
2417 | 4891 |
4892 Our recommended VI emulator is viper. To make viper-mode the default, | |
4893 add this to your @file{init.el}: | |
428 | 4894 |
4895 @lisp | |
2417 | 4896 (viper-mode) |
428 | 4897 @end lisp |
4898 | |
2417 | 4899 @email{kifer@@CS.SunySB.EDU, Michael Kifer} writes: |
4900 | |
4901 @quotation | |
4902 This should be added as close to the top of @file{init.el} as you can get | |
4903 it, otherwise some minor modes may not get viper-ized. | |
4904 @end quotation | |
4905 | |
4625
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4906 @node Q3.0.12, Q3.1.1, Q3.0.11, Editing |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4907 @unnumberedsubsec Q3.0.12: Mac Alt/Option key as Meta. |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4908 |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4909 Due to the Apple Command key being Meta, I can't use XEmacs on OS X. |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4910 |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4911 Didier Verna suggests: |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4912 |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4913 I use an X version of XEmacs on a Mac every day. You have to tweak the |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4914 keyboard configuration a bit but that's all. |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4915 |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4916 Here's my Xmodmap file on Darwin: |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4917 |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4918 @example |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4919 clear mod1 |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4920 clear mod2 |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4921 keycode 66 = Meta_L |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4922 keycode 63 = Mode_switch |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4923 add mod1 = Meta_L |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4924 @end example |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4925 |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4926 This leaves the command key alone and uses alt/option for Meta. |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4927 |
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4928 |
2417 | 4929 @unnumberedsec 3.1: The Mouse |
4930 | |
4625
4527fc976aa3
Meta on Mac. <87prh51rni.fsf@xemacs.org>
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4509
diff
changeset
|
4931 @node Q3.1.1, Q3.1.2, Q3.0.12, Editing |
2417 | 4932 @unnumberedsubsec Q3.1.1: How can I turn off Mouse pasting? |
428 | 4933 |
4934 I keep hitting the middle mouse button by accident and getting stuff | |
4935 pasted into my buffer so how can I turn this off? | |
4936 | |
4937 Here is an alternative binding, whereby the middle mouse button selects | |
4938 (but does not cut) the expression under the mouse. Clicking middle on a | |
4939 left or right paren will select to the matching one. Note that you can | |
4940 use @code{define-key} or @code{global-set-key}. | |
4941 | |
4942 @lisp | |
4943 (defun mouse-set-point-and-select (event) | |
4944 "Sets the point at the mouse location, then marks following form" | |
4945 (interactive "@@e") | |
4946 (mouse-set-point event) | |
4947 (mark-sexp 1)) | |
4948 (define-key global-map [button2] 'mouse-set-point-and-select) | |
4949 @end lisp | |
4950 | |
2459 | 4951 @node Q3.1.2, Q3.1.3, Q3.1.1, Editing |
2417 | 4952 @unnumberedsubsec Q3.1.2: How do I set control/meta/etc modifiers on mouse buttons? |
428 | 4953 |
4954 Use, for instance, @code{[(meta button1)]}. For example, here is a common | |
4955 setting for Common Lisp programmers who use the bundled @code{ilisp} | |
4956 package, whereby meta-button1 on a function name will find the file where | |
4957 the function name was defined, and put you at that location in the source | |
4958 file. | |
4959 | |
4960 [Inside a function that gets called by the lisp-mode-hook and | |
4961 ilisp-mode-hook] | |
4962 | |
4963 @lisp | |
4964 (local-set-key [(meta button1)] 'edit-definitions-lisp) | |
4965 @end lisp | |
4966 | |
2459 | 4967 @node Q3.1.3, Q3.1.4, Q3.1.2, Editing |
2417 | 4968 @unnumberedsubsec Q3.1.3: Clicking the left button does not do anything in buffer list. |
428 | 4969 |
4970 I do @kbd{C-x C-b} to get a list of buffers and the entries get | |
4971 highlighted when I move the mouse over them but clicking the left mouse | |
4972 does not do anything. | |
4973 | |
4974 Use the middle mouse button. | |
4975 | |
2459 | 4976 @node Q3.1.4, Q3.1.5, Q3.1.3, Editing |
2417 | 4977 @unnumberedsubsec Q3.1.4: How can I get a list of buffers when I hit mouse button 3? |
428 | 4978 |
4979 The following code will replace the default popup on button3: | |
4980 | |
4981 @lisp | |
4982 (global-set-key [button3] 'popup-buffer-menu) | |
4983 @end lisp | |
4984 | |
2459 | 4985 @node Q3.1.5, Q3.2.1, Q3.1.4, Editing |
4986 @unnumberedsubsec Q3.1.5: How can I set XEmacs up so that it pastes where the text cursor is? | |
428 | 4987 |
4988 By default XEmacs pastes X selections where the mouse pointer is. How | |
4989 do I disable this? | |
4990 | |
4991 Examine the function @code{mouse-yank}, by typing @kbd{C-h f mouse-yank | |
4992 @key{RET}}. | |
4993 | |
2417 | 4994 To get XEmacs to paste at the text cursor, add this your @file{init.el}: |
428 | 4995 |
4996 @lisp | |
4997 (setq mouse-yank-at-point t) | |
4998 @end lisp | |
4999 | |
2459 | 5000 You can also change this with Customize. Select from the |
5001 @code{Options} menu @code{Advanced | |
5002 (Customize)->Emacs->Editing->Mouse->Yank At Point...} or type @kbd{M-x | |
5003 customize @key{RET} mouse @key{RET}}. | |
5004 | |
5005 @unnumberedsec 3.2: Buffers, Text Editing | |
5006 | |
5007 @node Q3.2.1, Q3.2.2, Q3.1.5, Editing | |
5008 @unnumberedsubsec Q3.2.1: Can I have the end of the buffer delimited in some way? | |
5009 | |
5010 Say, with: @samp{[END]}? | |
5011 | |
5012 Try this: | |
5013 | |
5014 @lisp | |
5015 (let ((ext (make-extent (point-min) (point-max)))) | |
5016 (set-extent-property ext 'start-closed t) | |
5017 (set-extent-property ext 'end-closed t) | |
5018 (set-extent-property ext 'detachable nil) | |
5019 (set-extent-end-glyph ext (make-glyph [string :data "[END]"]))) | |
5020 @end lisp | |
5021 | |
5022 Since this is XEmacs, you can specify an icon to be shown on | |
5023 window-system devices. To do so, change the @code{make-glyph} call to | |
5024 something like this: | |
5025 | |
5026 @lisp | |
5027 (make-glyph '([xpm :file "~/something.xpm"] | |
5028 [string :data "[END]"])) | |
5029 @end lisp | |
5030 | |
5031 You can inline the @sc{xpm} definition yourself by specifying | |
5032 @code{:data} instead of @code{:file}. Here is such a full-featured | |
5033 version that works on both X and TTY devices: | |
5034 | |
5035 @lisp | |
5036 (let ((ext (make-extent (point-min) (point-max)))) | |
5037 (set-extent-property ext 'start-closed t) | |
5038 (set-extent-property ext 'end-closed t) | |
5039 (set-extent-property ext 'detachable nil) | |
5040 (set-extent-end-glyph ext (make-glyph '([xpm :data "\ | |
5041 /* XPM */ | |
5042 static char* eye = @{ | |
5043 \"20 11 7 2\", | |
5044 \"__ c None\" | |
5045 \"_` c #7f7f7f\", | |
5046 \"_a c #fefefe\", | |
5047 \"_b c #7f0000\", | |
5048 \"_c c #fefe00\", | |
5049 \"_d c #fe0000\", | |
5050 \"_e c #bfbfbf\", | |
5051 \"___________`_`_`___b_b_b_b_________`____\", | |
5052 \"_________`_`_`___b_c_c_c_b_b____________\", | |
5053 \"_____`_`_`_e___b_b_c_c_c___b___b_______`\", | |
5054 \"___`_`_e_a___b_b_d___b___b___b___b______\", | |
5055 \"_`_`_e_a_e___b_b_d_b___b___b___b___b____\", | |
5056 \"_`_`_a_e_a___b_b_d___b___b___b___b___b__\", | |
5057 \"_`_`_e_a_e___b_b_d_b___b___b___b___b_b__\", | |
5058 \"___`_`_e_a___b_b_b_d_c___b___b___d_b____\", | |
5059 \"_____`_`_e_e___b_b_b_d_c___b_b_d_b______\", | |
5060 \"_`_____`_`_`_`___b_b_b_d_d_d_d_b________\", | |
5061 \"___`_____`_`_`_`___b_b_b_b_b_b__________\", | |
5062 @} ;"] | |
5063 [string :data "[END]"])))) | |
5064 @end lisp | |
5065 | |
5066 Note that you might want to make this a function, and put it to a hook. | |
5067 We leave that as an exercise for the reader. | |
5068 | |
5069 @node Q3.2.2, Q3.2.3, Q3.2.1, Editing | |
5070 @unnumberedsubsec Q3.2.2: How do I insert today's date into a buffer? | |
2417 | 5071 |
5072 Like this: | |
428 | 5073 |
5074 @lisp | |
2459 | 5075 (insert (current-time-string)) |
2417 | 5076 @end lisp |
5077 | |
2459 | 5078 @node Q3.2.3, Q3.2.4, Q3.2.2, Editing |
5079 @unnumberedsubsec Q3.2.3: How do I get a single minibuffer frame? | |
5080 | |
5081 @email{acs@@acm.org, Vin Shelton} writes: | |
2417 | 5082 |
5083 @lisp | |
2459 | 5084 (setq initial-frame-plist '(minibuffer nil)) |
5085 (setq default-frame-plist '(minibuffer nil)) | |
5086 (setq default-minibuffer-frame | |
5087 (make-frame | |
5088 '(minibuffer only | |
5089 width 86 | |
5090 height 1 | |
5091 menubar-visible-p nil | |
5092 default-toolbar-visible-p nil | |
5093 name "minibuffer" | |
5094 top -2 | |
5095 left -2 | |
5096 has-modeline-p nil))) | |
5097 (frame-notice-user-settings) | |
2417 | 5098 @end lisp |
5099 | |
2459 | 5100 @strong{Please note:} The single minibuffer frame may not be to everyone's |
5101 taste, and there any number of other XEmacs options settings that may | |
5102 make it difficult or inconvenient to use. | |
5103 | |
5104 @node Q3.2.4, Q3.2.5, Q3.2.3, Editing | |
5105 @unnumberedsubsec Q3.2.4: How can I enable auto-indent and/or Filladapt? | |
5106 | |
5107 Put the following line in your @file{init.el}: | |
428 | 5108 |
5109 @lisp | |
2459 | 5110 (setq indent-line-function 'indent-relative-maybe) |
428 | 5111 @end lisp |
5112 | |
2459 | 5113 If you want to get fancy, try the @code{filladapt} package available |
5114 standard with XEmacs. Put this into your @file{init.el}: | |
428 | 5115 |
5116 @lisp | |
2459 | 5117 (require 'filladapt) |
5118 (setq-default filladapt-mode t) | |
5119 (add-hook 'c-mode-hook 'turn-off-filladapt-mode) | |
428 | 5120 @end lisp |
5121 | |
2459 | 5122 This will enable Filladapt for all modes except C mode, where it doesn't |
5123 work well. To turn Filladapt on only in particular major modes, remove | |
5124 the @code{(setq-default ...)} line and use | |
5125 @code{turn-on-filladapt-mode}, like this: | |
428 | 5126 |
5127 @lisp | |
2459 | 5128 (add-hook 'text-mode-hook 'turn-on-filladapt-mode) |
428 | 5129 @end lisp |
2417 | 5130 |
2459 | 5131 You can customize filling and adaptive filling with Customize. |
5132 Select from the @code{Options} menu | |
5133 @code{Advanced (Customize)->Emacs->Editing->Fill->Fill...} | |
5134 or type @kbd{M-x customize @key{RET} fill @key{RET}}. | |
5135 | |
5136 Note that well-behaving text-lookalike modes will run | |
5137 @code{text-mode-hook} by default (e.g. that's what Message does). For | |
5138 the nasty ones, you'll have to provide the @code{add-hook}s yourself. | |
5139 | |
5140 Please note that the @code{fa-extras} package is no longer useful. | |
5141 | |
5142 @node Q3.2.5, Q3.3.1, Q3.2.4, Editing | |
5143 @unnumberedsubsec Q3.2.5: How can I get XEmacs to come up in text/auto-fill mode by default? | |
5144 | |
5145 Try the following lisp in your @file{init.el}: | |
2417 | 5146 |
5147 @lisp | |
2459 | 5148 (setq default-major-mode 'text-mode) |
2769 | 5149 (add-hook 'text-mode-hook 'turn-on-auto-fill) |
2417 | 5150 @end lisp |
5151 | |
2459 | 5152 @strong{WARNING}: note that changing the value of |
5153 @code{default-major-mode} from @code{fundamental-mode} can break a large | |
5154 amount of built-in code that expects newly created buffers to be in | |
5155 @code{fundamental-mode}. (Changing from @code{fundamental-mode} to | |
5156 @code{text-mode} might not wreak too much havoc, but changing to | |
5157 something more exotic like a lisp-mode would break many Emacs packages). | |
5158 | |
5159 Note that Emacs by default starts up in buffer @code{*scratch*} in | |
5160 @code{initial-major-mode}, which defaults to | |
5161 @code{lisp-interaction-mode}. Thus adding the following form to your | |
5162 Emacs init file will cause the initial @code{*scratch*} buffer to be put | |
5163 into auto-fill'ed @code{text-mode}: | |
2417 | 5164 |
5165 @lisp | |
2459 | 5166 (setq initial-major-mode |
5167 (lambda () | |
5168 (text-mode) | |
5169 (turn-on-auto-fill))) | |
2417 | 5170 @end lisp |
5171 | |
2459 | 5172 Note that after your init file is loaded, if |
5173 @code{inhibit-startup-message} is @code{nil} (the default) and the | |
5174 startup buffer is @code{*scratch*} then the startup message will be | |
5175 inserted into @code{*scratch*}; it will be removed after a timeout by | |
5176 erasing the entire @code{*scratch*} buffer. Keep in mind this default | |
5177 usage of @code{*scratch*} if you desire any prior manipulation of | |
5178 @code{*scratch*} from within your Emacs init file. In particular, | |
5179 anything you insert into @code{*scratch*} from your init file will be | |
5180 later erased. Also, if you change the mode of the @code{*scratch*} | |
5181 buffer, be sure that this will not interfere with possible later | |
5182 insertion of the startup message (e.g. if you put @code{*scratch*} into | |
5183 a nonstandard mode that has automatic font lock rules, then the startup | |
5184 message might get fontified in a strange foreign manner, e.g. as code in | |
5185 some programming language). | |
5186 | |
5187 @unnumberedsec 3.3: Text Selections | |
5188 | |
5189 @node Q3.3.1, Q3.3.2, Q3.2.5, Editing | |
5190 @unnumberedsubsec Q3.3.1: How do I select a rectangular region? | |
2417 | 5191 |
5192 Just select the region normally, then use the rectangle commands (e.g. | |
5193 @code{kill-rectangle} on it. The region does not highlight as a | |
5194 rectangle, but the commands work just fine. | |
5195 | |
5196 To actually sweep out rectangular regions with the mouse you can use | |
5197 @code{mouse-track-do-rectangle} which is assigned to @kbd{M-button1}. | |
5198 Then use rectangle commands. | |
5199 | |
5200 You can also do the following to change default behavior to sweep out | |
5201 rectangular regions: | |
5202 | |
5203 @lisp | |
5204 (setq mouse-track-rectangle-p t) | |
5205 @end lisp | |
5206 | |
2459 | 5207 You can also change this with Customize. |
2417 | 5208 Select from the @code{Options} menu |
5209 @code{Advanced (Customize)->Emacs->Editing->Mouse->Track Rectangle...} or type | |
5210 @kbd{M-x customize @key{RET} mouse @key{RET}}. | |
5211 | |
5212 | |
5213 @example | |
5214 mouse-track-do-rectangle: (event) | |
5215 -- an interactive compiled Lisp function. | |
5216 Like `mouse-track' but selects rectangles instead of regions. | |
5217 @end example | |
5218 | |
2459 | 5219 @node Q3.3.2, Q3.3.3, Q3.3.1, Editing |
5220 @unnumberedsubsec Q3.3.2: How can I turn off or change highlighted selections? | |
428 | 5221 |
5222 The @code{zmacs} mode allows for what some might call gratuitous | |
5223 highlighting for selected regions (either by setting mark or by using | |
5224 the mouse). This is the default behavior. To turn off, add the | |
2417 | 5225 following line to your @file{init.el} file: |
428 | 5226 |
5227 @lisp | |
5228 (setq zmacs-regions nil) | |
5229 @end lisp | |
5230 | |
2417 | 5231 You can also change this with Customize. Select from the |
5232 @code{Options} menu | |
5233 @code{Advanced (Customize)->Emacs->Editing->Basics->Zmacs Regions} | |
5234 or type @kbd{M-x customize @key{RET} editing-basics @key{RET}}. | |
5235 | |
5236 To change the face for selection, look at @code{Options->Advanced (Customize)} | |
5237 on the menubar. | |
5238 | |
2459 | 5239 @node Q3.3.3, Q3.3.4, Q3.3.2, Editing |
5240 @unnumberedsubsec Q3.3.3: How do I cause typing on an active region to remove it? | |
428 | 5241 |
5242 I want to change things so that if I select some text and start typing, | |
5243 the typed text replaces the selected text, similar to Motif. | |
5244 | |
5245 You want to use something called @dfn{pending delete}. Pending delete | |
5246 is what happens when you select a region (with the mouse or keyboard) | |
5247 and you press a key to replace the selected region by the key you typed. | |
5248 Usually backspace kills the selected region. | |
5249 | |
2164 | 5250 To get this behavior, ensure that you have the @file{pc} package |
5251 installed, and add the following lines to your | |
2417 | 5252 @file{init.el}: |
428 | 5253 |
5254 @lisp | |
438 | 5255 (cond |
5256 ((fboundp 'turn-on-pending-delete) | |
5257 (turn-on-pending-delete)) | |
5258 ((fboundp 'pending-delete-on) | |
5259 (pending-delete-on t))) | |
428 | 5260 @end lisp |
5261 | |
1138 | 5262 Note that this will work with both Backspace and Delete. This code is a |
438 | 5263 tad more complicated than it has to be for XEmacs in order to make it |
5264 more portable. | |
428 | 5265 |
2459 | 5266 @node Q3.3.4, Q3.3.5, Q3.3.3, Editing |
5267 @unnumberedsubsec Q3.3.4: Can I turn off the highlight during isearch? | |
428 | 5268 |
5269 I do not like my text highlighted while I am doing isearch as I am not | |
5270 able to see what's underneath. How do I turn it off? | |
5271 | |
2417 | 5272 Put the following in your @file{init.el}: |
428 | 5273 |
5274 @lisp | |
5275 (setq isearch-highlight nil) | |
5276 @end lisp | |
5277 | |
2459 | 5278 You can also change this with Customize. Type |
428 | 5279 @kbd{M-x customize-variable @key{RET} isearch-highlight @key{RET}}. |
5280 | |
5281 Note also that isearch-highlight affects query-replace and ispell. | |
5282 Instead of disabling isearch-highlight you may find that a better | |
5283 solution consists of customizing the @code{isearch} face. | |
5284 | |
2459 | 5285 @node Q3.3.5, Q3.3.6, Q3.3.4, Editing |
5286 @unnumberedsubsec Q3.3.5: Why is killing so slow? | |
892 | 5287 |
5288 This actually is an X Windows question, although you'll notice it with | |
5289 keyboard operations as well as while using the GUI. Basically, there | |
5290 are four ways to communicate interprogram via the X server: | |
5291 | |
5292 @table @strong | |
5293 @item Primary selection | |
5294 a transient selection that gets replaced every time a new selection is made | |
5295 | |
5296 @item Secondary selection | |
5297 for "exchanging" with the primary selection | |
5298 | |
5299 @item Cut buffers | |
5300 a clipboard internal to the X server (deprecated) | |
5301 | |
5302 @item Clipboard selection | |
5303 a selection with a notification protocol that allows a separate app to | |
5304 manage the clipboard | |
5305 @end table | |
5306 | |
5307 The cut buffers are deprecated because managing them is even more | |
5308 inefficient than the clipboard notification protocol. The primary | |
5309 selection works fine for many users and applications, but is not very | |
5310 robust under intensive or sophisticated use. | |
5311 | |
5312 In Motif and MS Windows, a clipboard has become the primary means for | |
5313 managing cut and paste. These means that "modern" applications tend to | |
5314 be oriented toward a true clipboard, rather than the primary selection. | |
5315 (On Windows, there is nothing equivalent to the primary selection.) | |
5316 It's not that XEmacs doesn't support the simple primary selection | |
5317 method, it's that more and more other applications don't. | |
5318 | |
5319 So the slowdown occurs because XEmacs now engages in the clipboard | |
5320 notification protocol on @emph{every} kill. This is especially slow on | |
5321 Motif. | |
5322 | |
5323 With most people running most clients and server on the same host, and | |
5324 many of the rest working over very fast communication, you may expect | |
5325 that the situation is not going to improve. | |
5326 | |
5327 There are a number of workarounds. The most effective is to use a | |
5328 special command to do selection ownership only when you intend to paste | |
5329 to another application. Useful commands are @code{kill-primary-selection} | |
5330 and @code{copy-primary-selection}. These work only on text selected | |
5331 with the mouse (probably; experiment), and are bound by default to the | |
5332 @kbd{Cut} and @kbd{Copy}, respectively, buttons on the toolbar. | |
5333 @code{copy-primary-selection} is also bound to @kbd{C-Insert}. You can | |
5334 yank the clipboard contents with @code{yank-primary-selection}, bound to | |
5335 the @kbd{Paste} toolbar button and @kbd{Sh-Insert}. | |
5336 | |
5337 If you are communicating by cut and paste with applications that use the | |
5338 primary selection, then you can customize | |
5339 @code{interprogram-cut-function} to @code{nil}, restoring the XEmacs | |
5340 version 20 behavior. How can you tell if a program will support this? | |
5341 Motifly-correct programs require the clipboard; you lose. For others, | |
5342 only by trying it. You also need to customize the complementary | |
5343 @code{interprogram-paste-function} to @code{nil}. (Otherwise | |
5344 XEmacs-to-XEmacs pastes will not work correctly.) | |
5345 | |
5346 You may get some relief on Motif by setting | |
5347 @code{x-selection-strict-motif-ownership} to nil, but this means you will | |
5348 only intermittently be able to paste XEmacs kills to Motif applications. | |
5349 | |
5350 Thanks to Jeff Mincy and Glynn Clements for corrections. | |
5351 | |
2459 | 5352 @node Q3.3.6, Q3.4.1, Q3.3.5, Editing |
5353 @unnumberedsubsec Q3.3.6: Why does @kbd{M-w} take so long? | |
2417 | 5354 |
5355 It actually doesn't. It leaves the region visible for a second so that | |
5356 you can see what area is being yanked. If you start working, though, it | |
5357 will immediately complete its operation. In other words, it will only | |
5358 delay for a second if you let it. | |
5359 | |
2459 | 5360 @unnumberedsec 3.4: Editing Source Code |
5361 | |
5362 @node Q3.4.1, Q3.4.2, Q3.3.6, Editing | |
5363 @unnumberedsubsec Q3.4.1: I do not like cc-mode. How do I use the old c-mode? | |
2417 | 5364 |
5365 Well, first off, consider if you really want to do this. cc-mode is | |
5366 much more powerful than the old c-mode. If you're having trouble | |
5367 getting your old offsets to work, try using @code{c-set-offset} instead. | |
5368 You might also consider using the package @code{cc-compat}. | |
5369 | |
5370 But, if you still insist, add the following lines to your @file{init.el}: | |
5371 | |
5372 @lisp | |
5373 (fmakunbound 'c-mode) | |
5374 (makunbound 'c-mode-map) | |
5375 (fmakunbound 'c++-mode) | |
5376 (makunbound 'c++-mode-map) | |
5377 (makunbound 'c-style-alist) | |
5378 (load-library "old-c-mode") | |
5379 (load-library "old-c++-mode") | |
5380 @end lisp | |
5381 | |
5382 This must be done before any other reference is made to either c-mode or | |
5383 c++-mode. | |
5384 | |
2459 | 5385 @node Q3.4.2, , Q3.4.1, Editing |
5386 @unnumberedsubsec Q3.4.2: How do you make XEmacs indent CL if-clauses correctly? | |
2417 | 5387 |
5388 I'd like XEmacs to indent all the clauses of a Common Lisp @code{if} the | |
5389 same amount instead of indenting the 3rd clause differently from the | |
5390 first two. | |
5391 | |
2459 | 5392 The package @code{cl-indent} that comes with XEmacs sets up this kind |
5393 of indentation by default. @code{cl-indent} also knows about many | |
5394 other CL-specific forms. To use @code{cl-indent}, one can do this: | |
2417 | 5395 |
5396 @lisp | |
2459 | 5397 (setq lisp-indent-function 'common-lisp-indent-function) |
2417 | 5398 @end lisp |
5399 | |
5400 One can also customize @file{cl-indent.el} so it mimics the default | |
5401 @code{if} indentation @code{then} indented more than the @code{else}. | |
5402 Here's how: | |
5403 | |
5404 @lisp | |
5405 (put 'if 'common-lisp-indent-function '(nil nil &body)) | |
5406 @end lisp | |
5407 | |
2459 | 5408 @node Display, External Subsystems, Editing, Top |
5409 @unnumbered 4 Display Functions | |
428 | 5410 |
5411 This is part 4 of the XEmacs Frequently Asked Questions list. This | |
2459 | 5412 section is devoted to the display-related capabilities of XEmacs |
5413 (fonts, colors, modeline, menubar, toolbar, scrollbar, etc.) and how | |
5414 to customize them. | |
5415 | |
5416 @menu | |
5417 4.0: Textual Fonts and Colors | |
5418 * Q4.0.1:: How do I specify a font? | |
5419 * Q4.0.2:: How do I set the text, menu and modeline fonts? | |
5420 * Q4.0.3:: How can I set color options from @file{init.el}? | |
5421 * Q4.0.4:: How can I set the colors when highlighting a region? | |
5422 * Q4.0.5:: How can I limit color map usage? | |
5423 * Q4.0.6:: My tty supports color, but XEmacs doesn't use them. | |
5424 * Q4.0.7:: Can I have pixmap backgrounds in XEmacs? | |
5425 * Q4.0.8:: How do I display non-ASCII characters? | |
5426 * Q4.0.9:: Font selections in don't get saved after @code{Save Options}. | |
5427 | |
5428 4.1: Syntax Highlighting (Font Lock) | |
5429 * Q4.1.1:: How can I do source code highlighting using font-lock? | |
5430 * Q4.1.2:: How do I get @samp{More} Syntax Highlighting on by default? | |
5431 | |
5432 4.2: The Modeline | |
5433 * Q4.2.1:: How can I make the modeline go away? | |
5434 * Q4.2.2:: How do you have XEmacs display the line number in the modeline? | |
5435 * Q4.2.3:: How do I get XEmacs to put the time of day on the modeline? | |
5436 * Q4.2.4:: How can I change the modeline color based on the mode used? | |
5437 | |
5438 4.3: The Cursor | |
5439 * Q4.3.1:: Is there a way to make the bar cursor thicker? | |
5440 * Q4.3.2:: Is there a way to get back the block cursor? | |
5441 * Q4.3.3:: Can I make the cursor blink? | |
5442 | |
5443 4.4: The Menubar | |
5444 * Q4.4.1:: How do I get rid of the menubar? | |
5445 * Q4.4.2:: How can I customize the menubar? | |
5446 * Q4.4.3:: How do I enable use of the keyboard (@kbd{Alt}) to access menu items? | |
5447 * Q4.4.4:: How do I control how many buffers are listed in the menu @code{Buffers List}? | |
5448 * Q4.4.5:: Resources like @code{Emacs*menubar*font} are not working? | |
5449 | |
5450 4.5: The Toolbar | |
5451 * Q4.5.1:: How do I get rid of the toolbar? | |
5452 * Q4.5.2:: How can I customize the toolbar? | |
5453 * Q4.5.3:: How can I bind a key to a function to toggle the toolbar? | |
5454 * Q4.5.4:: @samp{Can't instantiate image error...} in toolbar | |
5455 | |
5456 4.6: Scrollbars and Scrolling | |
5457 * Q4.6.1:: How can I disable the scrollbar? | |
5458 * Q4.6.2:: How can I change the scrollbar width? | |
5459 * Q4.6.3:: How can I use resources to change scrollbar colors? | |
5460 * Q4.6.4:: Moving the scrollbar can move the point; can I disable this? | |
5461 * Q4.6.5:: Scrolling one line at a time. | |
5462 * Q4.6.6:: How can I turn off automatic horizontal scrolling in specific modes? | |
5463 * Q4.6.7:: I find auto-show-mode disconcerting. How do I turn it off? | |
5464 | |
5465 4.7: The Gutter Tabs, The Progress Bar, Widgets | |
5466 * Q4.7.1:: How can I disable the gutter tabs? | |
5467 * Q4.7.2:: How can I disable the progress bar? | |
5468 * Q4.7.3:: There are bugs in the gutter or widgets. | |
5469 * Q4.7.4:: How can I customize the gutter or gutter tabs? | |
5470 @end menu | |
5471 | |
5472 @unnumberedsec 4.0: Textual Fonts and Colors | |
5473 | |
5474 @node Q4.0.1, Q4.0.2, Display, Display | |
5475 @unnumberedsubsec Q4.0.1: How do I specify a font? | |
5476 | |
5477 #### Update me. | |
5478 | |
5479 In 21.4 and above, you can use the @samp{Options} menu to change the font. | |
5480 You can also do it in your init file, e.g. like this (for MS Windows): | |
5481 | |
5482 @display | |
5483 (set-face-font 'default "Lucida Console:Regular:10") | |
5484 (set-face-font 'modeline "MS Sans Serif:Regular:10") | |
5485 @end display | |
5486 | |
5487 @node Q4.0.2, Q4.0.3, Q4.0.1, Display | |
5488 @unnumberedsubsec Q4.0.2: How do I set the text, menu and modeline fonts? | |
5489 | |
5490 #### Update me. | |
5491 | |
5492 Note that you should use @samp{Emacs.} and not @samp{Emacs*} when | |
5493 setting face values. | |
5494 | |
5495 In @file{.Xresources}: | |
5496 | |
5497 @example | |
5498 Emacs.default.attributeFont: -*-*-medium-r-*-*-*-120-*-*-m-*-*-* | |
5499 Emacs*menubar*font: fixed | |
5500 Emacs.modeline.attributeFont: fixed | |
5501 @end example | |
5502 | |
5503 This is confusing because @samp{default} and @samp{modeline} are face | |
5504 names, and can be found listed with all faces in the current mode by | |
5505 using @kbd{M-x set-face-font (enter) ?}. They use the face-specific | |
5506 resource @samp{attributeFont}. | |
5507 | |
5508 On the other hand, @samp{menubar} is a normal X thing that uses the | |
5509 resource @samp{font}. With Motif it @emph{may be} necessary to use | |
5510 @samp{fontList} @emph{instead of} @samp{font}. In @emph{non-Motif} | |
5511 configurations with Mule it @emph{is} necessary to use @samp{fontSet} | |
5512 instead of @samp{font}. (Sorry, there just is no simple recipe here.) | |
5513 | |
5514 @node Q4.0.3, Q4.0.4, Q4.0.2, Display | |
5515 @unnumberedsubsec Q4.0.3: How can I set color options from @file{init.el}? | |
5516 | |
5517 How can I set the most commonly used color options from my | |
5518 @file{init.el} instead of from my @file{.Xresources}? | |
5519 | |
5520 Like this: | |
5521 | |
5522 @lisp | |
5523 (set-face-background 'default "bisque") ; frame background | |
5524 (set-face-foreground 'default "black") ; normal text | |
5525 (set-face-background 'zmacs-region "red") ; When selecting w/ | |
5526 ; mouse | |
5527 (set-face-foreground 'zmacs-region "yellow") | |
5528 (set-face-font 'default "*courier-bold-r*120-100-100*") | |
5529 (set-face-background 'highlight "blue") ; Ie when selecting | |
5530 ; buffers | |
5531 (set-face-foreground 'highlight "yellow") | |
5532 (set-face-background 'modeline "blue") ; Line at bottom | |
5533 ; of buffer | |
5534 (set-face-foreground 'modeline "white") | |
5535 (set-face-font 'modeline "*bold-r-normal*140-100-100*") | |
5536 (set-face-background 'isearch "yellow") ; When highlighting | |
5537 ; while searching | |
5538 (set-face-foreground 'isearch "red") | |
5539 (setq x-pointer-foreground-color "black") ; Adds to bg color, | |
5540 ; so keep black | |
5541 (setq x-pointer-background-color "blue") ; This is color | |
5542 ; you really | |
5543 ; want ptr/crsr | |
5544 @end lisp | |
5545 | |
5546 @node Q4.0.4, Q4.0.5, Q4.0.3, Display | |
5547 @unnumberedsubsec Q4.0.4: How can I set the colors when highlighting a region? | |
5548 | |
5549 How can I set the background/foreground colors when highlighting a | |
5550 region? | |
5551 | |
5552 You can change the face @code{zmacs-region} either in your | |
5553 @file{.Xresources}: | |
5554 | |
5555 @example | |
5556 Emacs.zmacs-region.attributeForeground: firebrick | |
5557 Emacs.zmacs-region.attributeBackground: lightseagreen | |
5558 @end example | |
5559 | |
5560 or in your @file{init.el}: | |
5561 | |
5562 @lisp | |
5563 (set-face-background 'zmacs-region "red") | |
5564 (set-face-foreground 'zmacs-region "yellow") | |
5565 @end lisp | |
5566 | |
5567 @node Q4.0.5, Q4.0.6, Q4.0.4, Display | |
5568 @unnumberedsubsec Q4.0.5: How can I limit color map usage? | |
5569 | |
5570 I'm using Netscape (or another color grabber like XEmacs); | |
5571 is there any way to limit the number of available colors in the color map? | |
5572 | |
5573 Answer: No, but you can start Netscape before XEmacs, and it will use | |
5574 the closest available color if the colormap is full. You can also limit | |
5575 the number of colors Netscape uses, using the flags -mono, -ncols <#> or | |
5576 -install (for mono, limiting to <#> colors, or for using a private color | |
5577 map). | |
5578 | |
5579 If you have the money, another solution would be to use a truecolor or | |
5580 direct color video. | |
5581 | |
5582 @node Q4.0.6, Q4.0.7, Q4.0.5, Display | |
5583 @unnumberedsubsec Q4.0.6: My tty supports color, but XEmacs doesn't use them. | |
5584 | |
5585 XEmacs tries to automatically determine whether your tty supports color, | |
5586 but sometimes guesses wrong. In that case, you can make XEmacs Do The | |
5587 Right Thing using this Lisp code: | |
5588 | |
5589 @lisp | |
5590 (if (eq 'tty (device-type)) | |
5591 (set-device-class nil 'color)) | |
5592 @end lisp | |
5593 | |
5594 @node Q4.0.7, Q4.0.8, Q4.0.6, Display | |
5595 @unnumberedsubsec Q4.0.7: Can I have pixmap backgrounds in XEmacs? | |
5596 @c New | |
5597 @email{jvillaci@@wahnsinnig.extreme.indiana.edu, Juan Villacis} writes: | |
5598 | |
5599 @quotation | |
5600 There are several ways to do it. For example, you could specify a | |
5601 default pixmap image to use in your @file{~/.Xresources}, e.g., | |
5602 | |
5603 | |
5604 @example | |
5605 Emacs*EmacsFrame.default.attributeBackgroundPixmap: /path/to/image.xpm | |
5606 @end example | |
5607 | |
5608 | |
5609 and then reload ~/.Xresources and restart XEmacs. Alternatively, | |
5610 since each face can have its own pixmap background, a better way | |
5611 would be to set a face's pixmap within your XEmacs init file, e.g., | |
5612 | |
5613 @lisp | |
5614 (set-face-background-pixmap 'default "/path/to/image.xpm") | |
5615 (set-face-background-pixmap 'bold "/path/to/another_image.xpm") | |
5616 @end lisp | |
5617 | |
5618 and so on. You can also do this interactively via @kbd{M-x edit-faces}. | |
5619 | |
5620 @end quotation | |
5621 | |
5622 @node Q4.0.8, Q4.0.9, Q4.0.7, Display | |
5623 @unnumberedsubsec Q4.0.8: How do I display non-ASCII characters? | |
5624 @c New | |
5625 | |
5626 If you're using a Mule-enabled XEmacs, then display is automatic. If | |
5627 you're not seeing the characters you expect, either (1) you don't have | |
5628 appropriate fonts available or (2) XEmacs did not correctly detect the | |
5629 coding system (@pxref{Recognize Coding, , , xemacs}). In case (1), | |
5630 install fonts as is customary for your platform. In case (2), you | |
5631 need to tell XEmacs explicitly what coding systems you're using. | |
5632 @ref{Specify Coding, , , xemacs}. | |
5633 | |
5634 If your XEmacs is not Mule-enabled, and for some reason getting a | |
5635 Mule-enabled XEmacs seems like the wrong thing to do, all is not lost. | |
5636 You can arrange it by brute force. In @file{event-Xt.c} (suppress the | |
5637 urge to look in this file---play Doom instead, because you'll survive | |
5638 longer), it is written: | |
5639 | |
5640 @quotation | |
5641 In a non-Mule world, a user can still have a multi-lingual editor, by | |
5642 doing @code{(set-face-font "-*-iso8859-2" (current-buffer))} for all | |
5643 their Latin-2 buffers, etc. | |
5644 @end quotation | |
5645 | |
5646 For the related problem of @emph{inputting} non-ASCII characters in a | |
5647 non-Mule XEmacs, @xref{Q3.0.6, How can you type in special characters | |
5648 in XEmacs?}. | |
5649 | |
5650 @node Q4.0.9, Q4.1.1, Q4.0.8, Display | |
5651 @unnumberedsubsec Q4.0.9: Font selections in don't get saved after @code{Save Options}. | |
5652 | |
5653 @email{mannj@@ll.mit.edu, John Mann} writes: | |
5654 | |
5655 @quotation | |
5656 You have to go to @samp{Options->Menubars} and unselect | |
5657 @samp{Frame-Local Font Menu}. If this option is selected, font changes | |
5658 are only applied to the @emph{current} frame and do @emph{not} get saved | |
5659 when you save options. | |
5660 @end quotation | |
5661 | |
5662 Also, set the following in your @file{init.el}: | |
5663 | |
5664 @lisp | |
5665 (setq options-save-faces t) | |
5666 @end lisp | |
5667 | |
5668 @unnumberedsec 4.1: Syntax Highlighting (Font Lock) | |
5669 | |
5670 @node Q4.1.1, Q4.1.2, Q4.0.9, Display | |
5671 @unnumberedsubsec Q4.1.1: How can I do source code highlighting using font-lock? | |
5672 | |
5673 For most modes, font-lock is already set up and just needs to be turned | |
5674 on. This can be done by adding the line: | |
5675 | |
5676 @lisp | |
5677 (require 'font-lock) | |
5678 @end lisp | |
5679 | |
5680 to your @file{init.el}. (You can turn it on for the | |
5681 current buffer and session only by @kbd{M-x font-lock-mode}.) See the | |
5682 file @file{etc/sample.init.el} (@file{etc/sample.emacs} in XEmacs | |
5683 versions prior to 21.4) for more information. | |
5684 | |
5685 @c the old way: | |
5686 @c (add-hook 'emacs-lisp-mode-hook 'turn-on-font-lock) | |
5687 @c (add-hook 'dired-mode-hook 'turn-on-font-lock) | |
5688 | |
5689 See also @code{Syntax Highlighting} from the @code{Options} menu. | |
5690 Remember to save options. | |
5691 | |
5692 @node Q4.1.2, Q4.2.1, Q4.1.1, Display | |
5693 @unnumberedsubsec Q4.1.2: How do I get @samp{More} Syntax Highlighting on by default? | |
5694 | |
5695 Use the following code in your @file{init.el}: | |
5696 | |
5697 @lisp | |
5698 (setq-default font-lock-maximum-decoration t) | |
5699 @end lisp | |
5700 | |
5701 See also @code{Syntax Highlighting} from the @code{Options} menu. | |
5702 Remember to save options. | |
5703 | |
5704 @unnumberedsec 4.2: The Modeline | |
5705 | |
5706 @node Q4.2.1, Q4.2.2, Q4.1.2, Display | |
5707 @unnumberedsubsec Q4.2.1: How can I make the modeline go away? | |
5708 | |
5709 @lisp | |
5710 (set-specifier has-modeline-p nil) | |
5711 @end lisp | |
5712 | |
5713 @node Q4.2.2, Q4.2.3, Q4.2.1, Display | |
5714 @unnumberedsubsec Q4.2.2: How do you have XEmacs display the line number in the modeline? | |
5715 | |
5716 Add the following line to your @file{init.el} file to | |
5717 display the line number: | |
5718 | |
5719 @lisp | |
5720 (line-number-mode 1) | |
5721 @end lisp | |
5722 | |
5723 Use the following to display the column number: | |
5724 | |
5725 @lisp | |
5726 (column-number-mode 1) | |
5727 @end lisp | |
5728 | |
5729 Or select from the @code{Options} menu | |
5730 @iftex | |
5731 @* | |
5732 @end iftex | |
5733 @code{Advanced (Customize)->Emacs->Editing->Basics->Line Number Mode} | |
5734 and/or | |
5735 @iftex | |
5736 @* | |
5737 @end iftex | |
5738 @code{Advanced (Customize)->Emacs->Editing->Basics->Column Number Mode} | |
5739 | |
5740 Or type @kbd{M-x customize @key{RET} editing-basics @key{RET}}. | |
5741 | |
5742 @node Q4.2.3, Q4.2.4, Q4.2.2, Display | |
5743 @unnumberedsubsec Q4.2.3: How do I get XEmacs to put the time of day on the modeline? | |
5744 | |
5745 Add the following line to your @file{init.el} file to | |
5746 display the time: | |
5747 | |
5748 @lisp | |
5749 (display-time) | |
5750 @end lisp | |
5751 | |
5752 See @code{Customize} from the @code{Options} menu for customization. | |
5753 | |
5754 @node Q4.2.4, Q4.3.1, Q4.2.3, Display | |
5755 @unnumberedsubsec Q4.2.4: How can I change the modeline color based on the mode used? | |
5756 | |
5757 You can use something like the following: | |
5758 | |
5759 @lisp | |
5760 (add-hook 'lisp-mode-hook | |
5761 (lambda () | |
5762 (set-face-background 'modeline "red" (current-buffer)))) | |
5763 @end lisp | |
5764 | |
5765 Then, when editing a Lisp file (i.e. when in Lisp mode), the modeline | |
5766 colors change from the default set in your @file{init.el}. | |
5767 The change will only be made in the buffer you just entered (which | |
5768 contains the Lisp file you are editing) and will not affect the modeline | |
5769 colors anywhere else. | |
5770 | |
5771 Notes: | |
5772 | |
5773 @itemize @bullet | |
5774 | |
5775 @item The hook is the mode name plus @code{-hook}. eg. c-mode-hook, | |
5776 c++-mode-hook, emacs-lisp-mode-hook (used for your | |
5777 @file{init.el} or a @file{xx.el} file), | |
5778 lisp-interaction-mode-hook (the @samp{*scratch*} buffer), | |
5779 text-mode-hook, etc. | |
5780 | |
5781 @item | |
5782 Be sure to use @code{add-hook}, not @code{(setq c-mode-hook xxxx)}, | |
5783 otherwise you will erase anything that anybody has already put on the | |
5784 hook. | |
5785 | |
5786 @item | |
5787 You can also do @code{(set-face-font 'modeline @var{font})}, | |
5788 eg. @code{(set-face-font 'modeline "*bold-r-normal*140-100-100*" | |
5789 (current-buffer))} if you wish the modeline font to vary based on the | |
5790 current mode. | |
5791 @end itemize | |
5792 | |
5793 There are additional modeline faces, @code{modeline-buffer-id}, | |
5794 @code{modeline-mousable}, and @code{modeline-mousable-minor-mode}, which | |
5795 you may want to customize. | |
5796 | |
5797 @unnumberedsec 4.3: The Cursor | |
5798 | |
5799 @node Q4.3.1, Q4.3.2, Q4.2.4, Display | |
5800 @unnumberedsubsec Q4.3.1: Is there a way to make the bar cursor thicker? | |
5801 | |
5802 I'd like to have the bar cursor a little thicker, as I tend to "lose" it | |
5803 often. | |
5804 | |
5805 For a 1 pixel bar cursor, use: | |
5806 | |
5807 @lisp | |
5808 (setq bar-cursor t) | |
5809 @end lisp | |
5810 | |
5811 For a 2 pixel bar cursor, use: | |
5812 | |
5813 @lisp | |
5814 (setq bar-cursor 'anything-else) | |
5815 @end lisp | |
5816 | |
5817 You can also change these with Customize. | |
5818 Select from the @code{Options} menu | |
5819 @code{Advanced (Customize)->Emacs->Environment->Display->Bar Cursor...} or type | |
5820 @kbd{M-x customize @key{RET} display @key{RET}}. | |
5821 | |
5822 You can use a color to make it stand out better: | |
5823 | |
5824 @example | |
5825 Emacs*cursorColor: Red | |
5826 @end example | |
5827 | |
5828 @node Q4.3.2, Q4.3.3, Q4.3.1, Display | |
5829 @unnumberedsubsec Q4.3.2: Is there a way to get back the block cursor? | |
5830 | |
5831 @lisp | |
5832 (setq bar-cursor nil) | |
5833 @end lisp | |
5834 | |
5835 You can also change this with Customize. | |
5836 Select from the @code{Options} menu | |
5837 @code{Advanced (Customize)->Emacs->Environment->Display->Bar Cursor...} or type | |
5838 @kbd{M-x customize @key{RET} display @key{RET}}. | |
5839 | |
5840 @node Q4.3.3, Q4.4.1, Q4.3.2, Display | |
5841 @unnumberedsubsec Q4.3.3: Can I make the cursor blink? | |
5842 | |
5843 Yes, like this: | |
5844 | |
5845 @lisp | |
5846 (blink-cursor-mode) | |
5847 @end lisp | |
5848 | |
5849 This function toggles between a steady cursor and a blinking cursor. | |
5850 You may also set this mode from the menu bar by selecting | |
5851 @samp{Options->Display->Blinking Cursor}. Remember to save options. | |
5852 | |
5853 @unnumberedsec 4.4: The Menubar | |
5854 | |
5855 @node Q4.4.1, Q4.4.2, Q4.3.3, Display | |
5856 @unnumberedsubsec Q4.4.1: How do I get rid of the menubar? | |
5857 | |
5858 @lisp | |
5859 (set-specifier menubar-visible-p nil) | |
5860 @end lisp | |
5861 | |
5862 @node Q4.4.2, Q4.4.3, Q4.4.1, Display | |
5863 @unnumberedsubsec Q4.4.2: How can I customize the menubar? | |
5864 | |
5865 For an extensive menubar, add this line to your @file{init.el}: | |
5866 | |
5867 @lisp | |
5868 (load "big-menubar") | |
5869 @end lisp | |
5870 | |
5871 If you'd like to write your own, this file provides as good a set of | |
5872 examples as any to start from. The file is located in edit-utils | |
5873 package. | |
5874 | |
5875 @node Q4.4.3, Q4.4.4, Q4.4.2, Display | |
5876 @unnumberedsubsec Q4.4.3: How do I enable use of the keyboard (@kbd{Alt}) to access menu items? | |
5877 | |
5878 #### Write me. | |
5879 | |
5880 @node Q4.4.4, Q4.4.5, Q4.4.3, Display | |
5881 @unnumberedsubsec Q4.4.4: How do I control how many buffers are listed in the menu @code{Buffers List}? | |
5882 | |
5883 Add the following to your @file{init.el} (suit to fit): | |
5884 | |
5885 @lisp | |
5886 (setq buffers-menu-max-size 20) | |
5887 @end lisp | |
5888 | |
5889 For no limit, use an argument of @samp{nil}. | |
5890 | |
5891 You can also change this with Customize. Select from the | |
5892 @code{Options} menu | |
5893 @code{Advanced (Customize)->Emacs->Environment->Menu->Buffers Menu->Max Size...} | |
5894 or type @kbd{M-x customize @key{RET} buffers-menu @key{RET}}. | |
5895 | |
5896 @node Q4.4.5, Q4.5.1, Q4.4.4, Display | |
5897 @unnumberedsubsec Q4.4.5: Resources like @code{Emacs*menubar*font} are not working? | |
5898 | |
5899 I am trying to use a resource like @code{Emacs*menubar*font} to set the | |
5900 font of the menubar but it's not working. | |
5901 | |
5902 In Motif, the use of @samp{font} resources is obsoleted in order to | |
5903 support internationalization. If you are using the real Motif menubar, | |
5904 this resource is not recognized at all; you have to say: | |
5905 | |
5906 @example | |
5907 Emacs*menubar*fontList: FONT | |
5908 @end example | |
5909 | |
5910 If you are using the Lucid menubar, for backward compatibility with | |
5911 existing user configurations, the @samp{font} resource is recognized. | |
5912 Since this is not supported by Motif itself, the code is a kludge and | |
5913 the @samp{font} resource will be recognized only if the @samp{fontList} | |
5914 resource resource is unset. This means that the resource | |
5915 | |
5916 @example | |
5917 *fontList: FONT | |
5918 @end example | |
5919 | |
5920 will override | |
5921 | |
5922 @example | |
5923 Emacs*menubar*font: FONT | |
5924 @end example | |
5925 | |
5926 even though the latter is more specific. | |
5927 | |
5928 In non-Motif configurations using @samp{--with-mule} and | |
5929 @samp{--with-xfs} it @emph{is} necessary to use the @code{fontSet} | |
5930 resource @emph{instead of} the @code{font} resource. The backward | |
5931 compatibility kludge was never implemented for non-Motif builds. | |
5932 Example: | |
5933 | |
5934 @example | |
5935 *fontSet: FONT | |
5936 @end example | |
5937 | |
5938 @unnumberedsec 4.5: The Toolbar | |
5939 | |
5940 @node Q4.5.1, Q4.5.2, Q4.4.5, Display | |
5941 @unnumberedsubsec Q4.5.1: How do I get rid of the toolbar? | |
5942 | |
5943 #### Write me. | |
5944 | |
5945 @node Q4.5.2, Q4.5.3, Q4.5.1, Display | |
5946 @unnumberedsubsec Q4.5.2: How can I customize the toolbar? | |
5947 | |
5948 #### Write me. | |
5949 | |
5950 @node Q4.5.3, Q4.5.4, Q4.5.2, Display | |
5951 @unnumberedsubsec Q4.5.3: How can I bind a key to a function to toggle the toolbar? | |
5952 | |
5953 Try something like: | |
5954 | |
5955 @lisp | |
5956 (defun my-toggle-toolbar () | |
5957 (interactive) | |
5958 (set-specifier default-toolbar-visible-p | |
5959 (not (specifier-instance default-toolbar-visible-p)))) | |
5960 (global-set-key "\C-xT" 'my-toggle-toolbar) | |
5961 @end lisp | |
5962 | |
5963 @ignore | |
5964 @c Probably not relevant any more | |
5965 There are redisplay bugs in 19.14 that may make the preceding result in | |
5966 a messed-up display, especially for frames with multiple windows. You | |
5967 may need to resize the frame before XEmacs completely realizes the | |
5968 toolbar is really gone. | |
5969 @end ignore | |
5970 | |
5971 Thanks to @email{martin@@xemacs.org, Martin Buchholz} for the correct | |
5972 code. | |
5973 | |
5974 @node Q4.5.4, Q4.6.1, Q4.5.3, Display | |
5975 @unnumberedsubsec Q4.5.4: @samp{Can't instantiate image error...} in toolbar | |
5976 | |
5977 @email{expt@@alanine.ram.org, Dr. Ram Samudrala} writes: | |
5978 | |
5979 I just installed the XEmacs (20.4-2) RPMS that I downloaded from | |
5980 @uref{http://www.xemacs.org/}. Everything works fine, except that when | |
5981 I place my mouse over the toolbar, it beeps and gives me this message: | |
5982 | |
5983 @example | |
5984 Can't instantiate image (probably cached): | |
5985 [xbm :mask-file "/usr/include/X11/bitmaps/leftptrmsk :mask-data | |
5986 (16 16 <strange control characters> ... | |
5987 @end example | |
5988 | |
5989 @email{kyle_jones@@wonderworks.com, Kyle Jones} writes: | |
5990 @quotation | |
5991 This is problem specific to some Chips and Technologies video | |
5992 chips, when running XFree86. Putting | |
5993 | |
5994 @code{Option "sw_cursor"} | |
5995 | |
5996 in @file{XF86Config} gets rid of the problem. | |
5997 @end quotation | |
5998 | |
5999 @unnumberedsec 4.6: Scrollbars and Scrolling | |
6000 | |
6001 @node Q4.6.1, Q4.6.2, Q4.5.4, Display | |
6002 @unnumberedsubsec Q4.6.1: How can I disable the scrollbar? | |
6003 | |
6004 To disable them for all frames, add the following line to | |
6005 your @file{.Xresources}: | |
6006 | |
6007 @example | |
6008 Emacs.scrollBarWidth: 0 | |
6009 @end example | |
6010 | |
6011 Or select @samp{Options->Display->Scrollbars}. | |
6012 Remember to save options. | |
6013 | |
6014 To turn the scrollbar off on a per-frame basis, use the following | |
6015 function: | |
6016 | |
6017 @lisp | |
6018 (set-specifier scrollbar-width 0 (selected-frame)) | |
6019 @end lisp | |
6020 | |
6021 You can actually turn the scrollbars on at any level you want by | |
6022 substituting for (selected-frame) in the above command. For example, to | |
6023 turn the scrollbars off only in a single buffer: | |
6024 | |
6025 @lisp | |
6026 (set-specifier scrollbar-width 0 (current-buffer)) | |
6027 @end lisp | |
6028 | |
6029 @node Q4.6.2, Q4.6.3, Q4.6.1, Display | |
6030 @unnumberedsubsec Q4.6.2: How can I change the scrollbar width? | |
6031 | |
6032 #### Write me. | |
6033 | |
6034 @node Q4.6.3, Q4.6.4, Q4.6.2, Display | |
6035 @unnumberedsubsec Q4.6.3: How can I use resources to change scrollbar colors? | |
6036 | |
6037 Here's a recap of how to use resources to change your scrollbar colors: | |
6038 | |
6039 @example | |
6040 ! Motif scrollbars | |
6041 | |
6042 Emacs*XmScrollBar.Background: skyblue | |
6043 Emacs*XmScrollBar.troughColor: lightgray | |
6044 | |
6045 ! Athena scrollbars | |
6046 | |
6047 Emacs*Scrollbar.Foreground: skyblue | |
6048 Emacs*Scrollbar.Background: lightgray | |
6049 @end example | |
6050 | |
6051 Note the capitalization of @code{Scrollbar} for the Athena widget. | |
6052 | |
6053 @node Q4.6.4, Q4.6.5, Q4.6.3, Display | |
6054 @unnumberedsubsec Q4.6.4: Moving the scrollbar can move the point; can I disable this? | |
6055 | |
6056 When I move the scrollbar in an XEmacs window, it moves the point as | |
6057 well, which should not be the default behavior. Is this a bug or a | |
6058 feature? Can I disable it? | |
6059 | |
6060 The current behavior is a feature, not a bug. Point remains at the same | |
6061 buffer position as long as that position does not scroll off the screen. | |
6062 In that event, point will end up in either the upper-left or lower-left | |
6063 hand corner. | |
6064 | |
6065 This cannot be changed. | |
6066 | |
6067 @node Q4.6.5, Q4.6.6, Q4.6.4, Display | |
6068 @unnumberedsubsec Q4.6.5: Scrolling one line at a time. | |
6069 | |
6070 Can the cursor keys scroll the screen a line at a time, rather than the | |
6071 default half page jump? I tend it to find it disorienting. | |
6072 | |
6073 Use the following: | |
6074 | |
6075 @lisp | |
6076 (setq scroll-step 1) | |
6077 @end lisp | |
6078 | |
6079 You can also change this with Customize. Select from the | |
6080 @code{Options} menu | |
6081 @code{Advanced (Customize)->Emacs->Environment->Windows->Scroll Step...} | |
6082 or type @kbd{M-x customize @key{RET} windows @key{RET}}. | |
6083 | |
6084 @node Q4.6.6, Q4.6.7, Q4.6.5, Display | |
6085 @unnumberedsubsec Q4.6.6: How can I turn off automatic horizontal scrolling in specific modes? | |
6086 | |
6087 Do @code{(setq truncate-lines t)} in the mode-hooks for any modes | |
6088 in which you want lines truncated. | |
6089 | |
6090 More precisely: If @code{truncate-lines} is nil, horizontal scrollbars | |
6091 will never appear. Otherwise, they will appear only if the value of | |
6092 @code{scrollbar-height} for that buffer/window/etc. is non-zero. If you | |
6093 do | |
6094 | |
6095 @lisp | |
6096 (set-specifier scrollbar-height 0) | |
6097 @end lisp | |
6098 | |
6099 then horizontal scrollbars will not appear in truncated buffers unless | |
6100 the package specifically asked for them. | |
6101 | |
6102 @node Q4.6.7, Q4.7.1, Q4.6.6, Display | |
6103 @unnumberedsubsec Q4.6.7: I find auto-show-mode disconcerting. How do I turn it off? | |
6104 | |
6105 @code{auto-show-mode} controls whether or not a horizontal scrollbar | |
6106 magically appears when a line is too long to be displayed. This is | |
6107 enabled by default. To turn it off, put the following in your | |
6108 @file{init.el}: | |
6109 | |
6110 @lisp | |
6111 (setq auto-show-mode nil) | |
6112 (setq-default auto-show-mode nil) | |
6113 @end lisp | |
6114 | |
6115 @unnumberedsec 4.7: The Gutter Tabs, The Progress Bar, Widgets | |
6116 | |
6117 @node Q4.7.1, Q4.7.2, Q4.6.7, Display | |
6118 @unnumberedsubsec Q4.7.1: How can I disable the gutter tabs? | |
6119 | |
6120 #### Write me. | |
6121 | |
6122 @node Q4.7.2, Q4.7.3, Q4.7.1, Display | |
6123 @unnumberedsubsec Q4.7.2: How can I disable the progress bar? | |
6124 | |
6125 #### Write me. | |
6126 | |
6127 @node Q4.7.3, Q4.7.4, Q4.7.2, Display | |
6128 @unnumberedsubsec Q4.7.3: There are bugs in the gutter or widgets. | |
6129 | |
6130 #### Write me. | |
6131 | |
6132 @node Q4.7.4, , Q4.7.3, Display | |
6133 @unnumberedsubsec Q4.7.4: How can I customize the gutter or gutter tabs? | |
6134 | |
6135 #### Write me. | |
6136 | |
6137 @node External Subsystems, Internet, Display, Top | |
6138 @unnumbered 5 Interfacing with the Operating System and External Devices | |
6139 | |
6140 This is part 5 of the XEmacs Frequently Asked Questions list. This | |
2417 | 6141 section is devoted to the various ways that XEmacs interfaces with the |
6142 operating system, with other processes and with external devices such | |
6143 as speakers and the printer. | |
428 | 6144 |
6145 @menu | |
2459 | 6146 5.0: X Window System and Resources |
6147 * Q5.0.1:: Where is a list of X resources? | |
6148 * Q5.0.2:: How can I detect a color display? | |
6149 * Q5.0.3:: How can I get the icon to just say @samp{XEmacs}? | |
6150 * Q5.0.4:: How can I have the window title area display the full path? | |
6151 * Q5.0.5:: @samp{xemacs -name junk} doesn't work? | |
6152 * Q5.0.6:: @samp{-iconic} doesn't work. | |
4505
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6153 * Q5.0.7:: How can I use antialiased fonts under X11? |
2459 | 6154 |
6155 5.1: Microsoft Windows | |
6156 * Q5.1.1:: Does XEmacs rename all the @samp{win32-*} symbols to @samp{w32-*}? | |
6157 * Q5.1.2:: How do I get Windows Explorer to associate a file type with XEmacs? | |
6158 | |
6159 5.2: Printing | |
6160 * Q5.2.1:: What do I need to change to make printing work? | |
6161 * Q5.2.2:: How can I print WYSIWYG a font-locked buffer? | |
6162 * Q5.2.3:: Getting @kbd{M-x lpr} to work with postscript printer. | |
6163 * Q5.2.4:: Can you print under MS Windows? | |
6164 | |
6165 5.3: Sound | |
6166 * Q5.3.1:: How do I turn off the sound? | |
6167 * Q5.3.2:: How do I get funky sounds instead of a boring beep? | |
6168 * Q5.3.3:: What are NAS and ESD (EsounD)? | |
6169 * Q5.3.4:: Sunsite sounds don't play. | |
6170 | |
6171 5.4: Running an Interior Shell, Invoking Subprocesses | |
6172 * Q5.4.1:: What is an interior shell? | |
6173 * Q5.4.2:: How do I start up a second shell buffer? | |
6174 * Q5.4.3:: Telnet from shell filters too much | |
6175 * Q5.4.4:: Strange things are happening in Shell Mode. | |
6176 * Q5.4.5:: XEmacs complains "No such file or directory, diff" | |
2995 | 6177 * Q5.4.6:: Cygwin error "fork_copy: linked dll/bss pass 0 failed" |
2459 | 6178 |
6179 5.5: Multiple Device Support | |
6180 * Q5.5.1:: How do I open a frame on another screen of my multi-headed display? | |
6181 * Q5.5.2:: Can I really connect to a running XEmacs after calling up over a modem? How? | |
6182 * Q5.5.3:: How do I disable gnuserv from opening a new frame? | |
6183 * Q5.5.4:: How do I start gnuserv so that each subsequent XEmacs is a client? | |
6184 * Q5.5.5:: Is there a way to start a new XEmacs if there's no gnuserv running, and otherwise use gnuclient? | |
428 | 6185 @end menu |
6186 | |
2459 | 6187 @unnumberedsec 5.0: X Window System and Resources |
6188 | |
6189 @node Q5.0.1, Q5.0.2, External Subsystems, External Subsystems | |
6190 @unnumberedsubsec Q5.0.1: Where is a list of X resources? | |
2417 | 6191 |
6192 Search through the @file{NEWS} file for @samp{X Resources}. A fairly | |
6193 comprehensive list is given after it. | |
6194 | |
6195 In addition, an @file{app-defaults} file @file{etc/Emacs.ad} is | |
6196 supplied, listing the defaults. The file @file{etc/sample.Xresources} | |
6197 gives a different set of defaults that you might consider for | |
6198 installation in your @file{~/.Xresources} file. It is nearly the same | |
6199 as @file{etc/Emacs.ad}, but a few entries are altered. Be careful about | |
6200 installing the contents of this file into your @file{.Xresources} (or | |
6201 legacy @file{.Xdefaults}) file if you use GNU Emacs under X11 as well. | |
6202 | |
2459 | 6203 @node Q5.0.2, Q5.0.3, Q5.0.1, External Subsystems |
6204 @unnumberedsubsec Q5.0.2: How can I detect a color display? | |
2417 | 6205 |
6206 You can test the return value of the function @code{(device-class)}, as | |
6207 in: | |
6208 | |
6209 @lisp | |
6210 (when (eq (device-class) 'color) | |
6211 (set-face-foreground 'font-lock-comment-face "Grey") | |
6212 (set-face-foreground 'font-lock-string-face "Red") | |
6213 .... | |
6214 ) | |
6215 @end lisp | |
6216 | |
2459 | 6217 @node Q5.0.3, Q5.0.4, Q5.0.2, External Subsystems |
6218 @unnumberedsubsec Q5.0.3: How can I get the icon to just say @samp{XEmacs}? | |
2417 | 6219 |
6220 I'd like the icon to just say @samp{XEmacs}, and not include the name of | |
6221 the current file in it. | |
6222 | |
6223 Add the following line to your @file{init.el}: | |
6224 | |
6225 @lisp | |
6226 (setq frame-icon-title-format "XEmacs") | |
6227 @end lisp | |
6228 | |
2459 | 6229 @node Q5.0.4, Q5.0.5, Q5.0.3, External Subsystems |
6230 @unnumberedsubsec Q5.0.4: How can I have the window title area display the full path? | |
2417 | 6231 |
6232 I'd like to have the window title area display the full directory/name | |
6233 of the current buffer file and not just the name. | |
6234 | |
6235 Add the following line to your @file{init.el}: | |
6236 | |
6237 @lisp | |
6238 (setq frame-title-format "%S: %f") | |
6239 @end lisp | |
6240 | |
6241 A more sophisticated title might be: | |
6242 | |
6243 @lisp | |
6244 (setq frame-title-format | |
6245 '("%S: " (buffer-file-name "%f" | |
6246 (dired-directory dired-directory "%b")))) | |
6247 @end lisp | |
6248 | |
6249 That is, use the file name, or the dired-directory, or the buffer name. | |
6250 | |
2459 | 6251 @node Q5.0.5, Q5.0.6, Q5.0.4, External Subsystems |
6252 @unnumberedsubsec Q5.0.5: @samp{xemacs -name junk} doesn't work? | |
2417 | 6253 |
6254 When I run @samp{xterm -name junk}, I get an xterm whose class name | |
6255 according to xprop, is @samp{junk}. This is the way it's supposed to | |
6256 work, I think. When I run @samp{xemacs -name junk} the class name is | |
6257 not set to @samp{junk}. It's still @samp{emacs}. What does | |
6258 @samp{xemacs -name} really do? The reason I ask is that my window | |
6259 manager (fvwm) will make a window sticky and I use XEmacs to read my | |
6260 mail. I want that XEmacs window to be sticky, without having to use the | |
6261 window manager's function to set the window sticky. What gives? | |
6262 | |
6263 @samp{xemacs -name} sets the application name for the program (that is, | |
6264 the thing which normally comes from @samp{argv[0]}). Using @samp{-name} | |
6265 is the same as making a copy of the executable with that new name. The | |
6266 @code{WM_CLASS} property on each frame is set to the frame-name, and the | |
6267 application-class. So, if you did @samp{xemacs -name FOO} and then | |
6268 created a frame named @var{BAR}, you'd get an X window with WM_CLASS = | |
6269 @code{( "BAR", "Emacs")}. However, the resource hierarchy for this | |
6270 widget would be: | |
6271 | |
6272 @example | |
6273 Name: FOO .shell .container .BAR | |
6274 Class: Emacs .TopLevelEmacsShell.EmacsManager.EmacsFrame | |
6275 @end example | |
6276 | |
6277 instead of the default | |
6278 | |
6279 @example | |
6280 Name: xemacs.shell .container .emacs | |
6281 Class: Emacs .TopLevelEmacsShell.EmacsManager.EmacsFrame | |
6282 @end example | |
6283 | |
6284 | |
6285 It is arguable that the first element of WM_CLASS should be set to the | |
6286 application-name instead of the frame-name, but I think that's less | |
6287 flexible, since it does not give you the ability to have multiple frames | |
6288 with different WM_CLASS properties. Another possibility would be for | |
6289 the default frame name to come from the application name instead of | |
6290 simply being @samp{emacs}. However, at this point, making that change | |
6291 would be troublesome: it would mean that many users would have to make | |
6292 yet another change to their resource files (since the default frame name | |
6293 would suddenly change from @samp{emacs} to @samp{xemacs}, or whatever | |
6294 the executable happened to be named), so we'd rather avoid it. | |
6295 | |
6296 To make a frame with a particular name use: | |
6297 | |
6298 @lisp | |
6299 (make-frame '((name . "the-name"))) | |
6300 @end lisp | |
6301 | |
4505
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6302 @node Q5.0.6, Q5.0.7, Q5.0.5, External Subsystems |
2459 | 6303 @unnumberedsubsec Q5.0.6: @samp{-iconic} doesn't work. |
2417 | 6304 |
6305 When I start up XEmacs using @samp{-iconic} it doesn't work right. | |
6306 Using @samp{-unmapped} on the command line, and setting the | |
6307 @code{initiallyUnmapped} X Resource don't seem to help much either... | |
6308 | |
6309 @email{ben@@xemacs.org, Ben Wing} writes: | |
6310 | |
6311 @quotation | |
6312 Ugh, this stuff is such an incredible mess that I've about given up | |
6313 getting it to work. The principal problem is numerous window-manager | |
6314 bugs... | |
6315 @end quotation | |
6316 | |
4505
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6317 @node Q5.0.7, Q5.1.1, Q5.0.6, External Subsystems |
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6318 @unnumberedsubsec Q5.0.7: How can I use antialiased fonts under X11? |
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6319 |
4509
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6320 The X11 version of XEmacs can use antialiased fonts via the Xft, |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6321 fontconfig, and freetype libraries. To configure this you need a recent |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6322 beta version (at least 21.5.24); the more recent, the better. This is |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6323 beta software, the usual caveats apply. Rebuild xemacs using the |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6324 following configure options, plus any others you normally use: |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6325 |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6326 @samp{--enable-mule --with-xft=emacs,menubars} |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6327 |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6328 Xft @emph{may} work without Mule but the developers working on the Xft |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6329 code invariably build with Mule. The tab control also supports Xft, and |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6330 at some date the progress gauge will as well. If they are configured in |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6331 to XEmacs, you may add @samp{tabs} and @samp{gauges} to the value of the |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6332 @samp{--with-xft} option (with a comma separating each value from the |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6333 previous ones). For further details on the XEmacs widgets that support |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6334 XFT, see the output of @code{./configure --help}. If you use a package |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6335 manager from your OS distribution, you may need to install development |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6336 packages for @file{fontconfig} and @file{Xft}, and possibly for their |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6337 prequisites. |
4505
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6338 |
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6339 To specify a particular antialiased font, put something like the |
4509
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6340 following lines in your @file{~/.Xdefaults} or @file{~/.Xresources}: |
4505
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6341 |
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6342 @example |
4509
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6343 XEmacs.default.attributeFont: monospace-12 |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6344 XEmacs.bold.attributeFont: monospace-12:style=Bold |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6345 XEmacs.italic.attributeFont: monospace-12:style=Oblique |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6346 XEmacs.bold-italic.attributeFont: monospace-12:style=Bold Oblique |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6347 XEmacs.modeline.attributeFont: sans-serif-11 |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6348 XEmacs.menubar.xftFont: sans-serif-11 |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6349 XEmacs*XftFont: sans-serif-11 |
4505
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6350 @end example |
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6351 |
4509
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6352 @strong{Warning}: These resource naming conventions are just hacks to |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6353 get the code running; you should expect them to change. (Sorry about |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6354 that, but this @emph{is} beta software!) |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6355 |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6356 Then run @code{xrdb -merge} before starting the new, XFT-enabled |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6357 xemacs. You can choose the available fonts from the list given by |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6358 @code{fc-list}; try @code{xfd -fa FONTNAME-SIZE} to preview a given |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6359 font. Note that ``monospace'' and ``sans-serif'' are generic aliases |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6360 defined by fontconfig which may correspond to any of many real fonts |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6361 based on local configuration and availability of the aliased fonts, |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6362 and so are likely to give good results in a well-set-up system. |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6363 |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6364 Although Customize does not yet handle fontconfig fontspecs, you can |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6365 pass them as strings directly to @samp{set-face-font} to set fonts from |
dd12adb12b8f
Fix broken Xft FAQ.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4505
diff
changeset
|
6366 Lisp. |
4505
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6367 |
2459 | 6368 @unnumberedsec 5.1: Microsoft Windows |
6369 | |
4505
a5f1da0eb001
Document XFT support in the FAQ, better describe XEmacs pronunciation.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4311
diff
changeset
|
6370 @node Q5.1.1, Q5.1.2, Q5.0.7, External Subsystems |
2459 | 6371 @unnumberedsubsec Q5.1.1: Does XEmacs rename all the @samp{win32-*} symbols to @samp{w32-*}? |
2417 | 6372 |
6373 In his flavor of Emacs 20, Richard Stallman has renamed all the @samp{win32-*} | |
6374 symbols to @samp{w32-*}. Does XEmacs do the same? | |
6375 | |
6376 We consider such a move counter-productive, thus we do not use the | |
6377 @samp{w32} prefix. (His rather questionable justification was that he | |
6378 did not consider Windows to be a "winning" platform.) However, the name | |
6379 @samp{Win32} is not particularly descriptive outside the Windows world, | |
6380 and using just @samp{windows-} would be too generic. So we chose a | |
6381 compromise, the prefix @samp{mswindows-} for Windows-related variables | |
6382 and functions. | |
6383 | |
6384 Thus all the XEmacs variables and functions directly related to either | |
6385 the Windows GUI or OS are prefixed @samp{mswindows-} (except for a | |
6386 couple of debugging variables, prefixed @samp{debug-mswindows-}). From | |
6387 an architectural perspective, however, we believe that this is mostly a | |
6388 non-issue because there should be a very small number of | |
6389 window-systems-specific variables anyway. Whenever possible, we try to | |
6390 provide generic interfaces that apply to all window systems. | |
6391 | |
6392 @c not true: | |
6393 @c The user variables | |
6394 @c that share functionality with existing NT Emacs variables are be named | |
6395 @c with our convention, but we provide the GNU Emacs names as | |
6396 @c compatibility aliases. | |
6397 | |
2459 | 6398 @node Q5.1.2, Q5.2.1, Q5.1.1, External Subsystems |
6399 @unnumberedsubsec Q5.1.2: How do I get Windows Explorer to associate a file type with XEmacs? | |
2417 | 6400 |
6401 @unnumberedsubsubsec Associating a new file type with XEmacs. | |
6402 | |
6403 In Explorer select @samp{View->Options->File Types}, press @samp{[New | |
6404 Type...]} and fill in the dialog box, e.g.: | |
6405 | |
6406 @example | |
6407 Description of type: Emacs Lisp source | |
6408 Associated extension: el | |
6409 Content Type (MIME): text/plain | |
6410 @end example | |
6411 | |
6412 then press @samp{[New...]} and fill in the @samp{Action} dialog box as | |
6413 follows: | |
6414 | |
6415 @example | |
6416 Action: | |
6417 Open | |
6418 | |
6419 Application used to perform action: | |
6420 D:\Full\path\for\xemacs.exe "%1" | |
6421 | |
6422 [x] Use DDE | |
6423 | |
6424 DDE Message: | |
6425 open("%1") | |
6426 | |
6427 Application: | |
6428 <leave blank> | |
6429 | |
6430 DDE Application Not Running: | |
6431 <leave blank> | |
6432 | |
6433 Topic: | |
6434 <leave blank> | |
6435 @end example | |
6436 | |
6437 @unnumberedsubsubsec Associating an existing file type with XEmacs. | |
6438 | |
6439 In Explorer select @samp{View->Options->File Types}. Click on the file | |
6440 type in the list and press @samp{[Edit...]}. If the file type already | |
6441 has an @samp{Open} action, double click on it and fill in the | |
6442 @samp{Action} dialog box as described above; otherwise create a new | |
6443 action. | |
6444 | |
6445 If the file type has more than one action listed, you probably want to | |
6446 make the @samp{Open} action that you just edited the default by clicking on | |
6447 it and pressing @samp{Set Default}. | |
6448 | |
6449 Note for Windows 2000 users: Under Windows 2000, get to @samp{File Types} | |
6450 using @samp{Control Panel->Folder Options->File Types}. | |
6451 | |
2459 | 6452 @unnumberedsec 5.2: Printing |
6453 | |
6454 @node Q5.2.1, Q5.2.2, Q5.1.2, External Subsystems | |
6455 @unnumberedsubsec Q5.2.1: What do I need to change to make printing work? | |
2417 | 6456 |
6457 For regular printing there are two variables that can be customized. | |
6458 | |
6459 @table @code | |
6460 @item lpr-command | |
6461 This should be set to a command that takes standard input and sends | |
6462 it to a printer. Something like: | |
6463 | |
6464 @lisp | |
6465 (setq lpr-command "lp") | |
6466 @end lisp | |
6467 | |
6468 @item lpr-switches | |
6469 This should be set to a list that contains whatever the print command | |
6470 requires to do its job. Something like: | |
6471 | |
6472 @lisp | |
6473 (setq lpr-switches '("-depson")) | |
6474 @end lisp | |
6475 @end table | |
6476 | |
6477 For postscript printing there are three analogous variables to | |
6478 customize. | |
6479 | |
6480 @table @code | |
6481 @item ps-lpr-command | |
6482 This should be set to a command that takes postscript on standard input | |
6483 and directs it to a postscript printer. | |
6484 | |
6485 @item ps-lpr-switches | |
6486 This should be set to a list of switches required for | |
6487 @code{ps-lpr-command} to do its job. | |
6488 | |
6489 @item ps-print-color-p | |
6490 This boolean variable should be set @code{t} if printing will be done in | |
6491 color, otherwise it should be set to @code{nil}. | |
6492 @end table | |
6493 | |
6494 NOTE: It is an undocumented limitation in XEmacs that postscript | |
6495 printing (the @code{Pretty Print Buffer} menu item) @strong{requires} a | |
6496 window system environment. It cannot be used outside of X11. | |
6497 | |
2459 | 6498 @node Q5.2.2, Q5.2.3, Q5.2.1, External Subsystems |
6499 @unnumberedsubsec Q5.2.2: How can I print WYSIWYG a font-locked buffer? | |
2417 | 6500 |
6501 Font-lock looks nice. How can I print (WYSIWYG) the highlighted | |
6502 document? | |
6503 | |
6504 The package @code{ps-print}, which is now included with XEmacs, provides | |
6505 the ability to do this. The source code contains complete instructions | |
6506 on its use, in | |
6507 @file{$prefix/lib/xemacs/xemacs-packages/lisp/ps-print/ps-print.el}, | |
6508 being the default location of an installed ps-print package. | |
6509 | |
2459 | 6510 @node Q5.2.3, Q5.2.4, Q5.2.2, External Subsystems |
6511 @unnumberedsubsec Q5.2.3: Getting @kbd{M-x lpr} to work with postscript printer. | |
2417 | 6512 |
6513 My printer is a Postscript printer and @code{lpr} only works for | |
6514 Postscript files, so how do I get @kbd{M-x lpr-region} and @kbd{M-x | |
6515 lpr-buffer} to work? | |
6516 | |
6517 Put something like this in your @file{init.el}: | |
428 | 6518 |
6519 @lisp | |
2417 | 6520 (setq lpr-command "a2ps") |
6521 (setq lpr-switches '("-p" "-1")) | |
6522 @end lisp | |
6523 | |
6524 If you don't use a2ps to convert ASCII to postscript (why not, it's | |
6525 free?), replace with the command you do use. Note also that some | |
6526 versions of a2ps require a @samp{-Pprinter} to ensure spooling. | |
6527 | |
2459 | 6528 @node Q5.2.4, Q5.3.1, Q5.2.3, External Subsystems |
6529 @unnumberedsubsec Q5.2.4: Can you print under MS Windows? | |
2417 | 6530 |
6531 As of 21.4, printing works on Windows, using simply | |
6532 @samp{File->Print BUFFER...}, and can be configured with | |
6533 @samp{File->Page Setup...}. | |
6534 | |
6535 Prior to 21.4, there is no built-in support, but there are some clever | |
6536 hacks out there. If you know how, please let us know and we'll put it | |
6537 here. | |
6538 | |
2459 | 6539 @unnumberedsec 5.3: Sound |
6540 | |
6541 @node Q5.3.1, Q5.3.2, Q5.2.4, External Subsystems | |
6542 @unnumberedsubsec Q5.3.1: How do I turn off the sound? | |
2417 | 6543 |
6544 Add the following line to your @file{init.el}: | |
6545 | |
6546 @lisp | |
6547 (setq bell-volume 0) | |
6548 (setq sound-alist nil) | |
6549 @end lisp | |
6550 | |
6551 That will make your XEmacs totally silent---even the default ding sound | |
6552 (TTY beep on TTY-s) will be gone. | |
6553 | |
6554 You can also change these with Customize. Select from the | |
6555 @code{Options} menu @code{Advanced | |
6556 (Customize)->Emacs->Environment->Sound->Sound...} or type @kbd{M-x | |
6557 customize @key{RET} sound @key{RET}}. | |
6558 | |
6559 | |
2459 | 6560 @node Q5.3.2, Q5.3.3, Q5.3.1, External Subsystems |
6561 @unnumberedsubsec Q5.3.2: How do I get funky sounds instead of a boring beep? | |
2417 | 6562 |
6563 Make sure your XEmacs was compiled with sound support, and then put this | |
6564 in your @file{init.el}: | |
6565 | |
6566 @lisp | |
6567 (load-default-sounds) | |
6568 @end lisp | |
6569 | |
2459 | 6570 @node Q5.3.3, Q5.3.4, Q5.3.2, External Subsystems |
6571 @unnumberedsubsec Q5.3.3: What are NAS and ESD (EsounD)? | |
6572 | |
6573 @dfn{Network Audio System} (NAS) is a client-server sound library for X. | |
6574 | |
6575 @uref{http://radscan.com/nas.html}. | |
6576 | |
3018 | 6577 To build XEmacs with it, use the @file{configure} flag |
6578 @samp{--with-sound=nas} (@samp{--enable-sound=nas} in 21.5 or later). | |
2459 | 6579 |
6580 @dfn{Enlightened Sound Daemon} (ESD or EsounD) is yet another sound system. | |
6581 | |
6582 @uref{http://www.tux.org/~ricdude/EsounD.html}. | |
6583 | |
3018 | 6584 To build XEmacs with it, use the @file{configure} flag |
6585 @samp{--with-sound=esd} (@samp{--enable-sound=esd} in 21.5 or later). | |
6586 | |
6587 You can specify support for both with a flag like | |
6588 @samp{--with-sound=nas,esd} (@samp{--enable-sound=nas,esd} in 21.5 or | |
6589 later). | |
2459 | 6590 |
6591 @node Q5.3.4, Q5.4.1, Q5.3.3, External Subsystems | |
6592 @unnumberedsubsec Q5.3.4: Sunsite sounds don't play. | |
2417 | 6593 |
6594 I'm having some trouble with sounds I've downloaded from sunsite. They | |
6595 play when I run them through @code{showaudio} or cat them directly to | |
6596 @file{/dev/audio}, but XEmacs refuses to play them. | |
6597 | |
6598 @email{gutschk@@uni-muenster.de, Markus Gutschke} writes: | |
6599 | |
6600 @quotation | |
6601 [Many of] These files have an (erroneous) 24byte header that tells about | |
6602 the format that they have been recorded in. If you cat them to | |
6603 @file{/dev/audio}, the header will be ignored and the default behavior | |
6604 for /dev/audio will be used. This happens to be 8kHz uLaw. It is | |
6605 probably possible to fix the header by piping through @code{sox} and | |
6606 passing explicit parameters for specifying the sampling format; you then | |
6607 need to perform a 'null' conversion from SunAudio to SunAudio. | |
6608 @end quotation | |
6609 | |
2459 | 6610 @unnumberedsec 5.4: Running an Interior Shell, Invoking Subprocesses |
6611 | |
6612 @node Q5.4.1, Q5.4.2, Q5.3.4, External Subsystems | |
6613 @unnumberedsubsec Q5.4.1: What is an interior shell? | |
2417 | 6614 |
6615 #### Write me. | |
6616 | |
2459 | 6617 @node Q5.4.2, Q5.4.3, Q5.4.1, External Subsystems |
6618 @unnumberedsubsec Q5.4.2: How do I start up a second shell buffer? | |
2417 | 6619 |
6620 In the @code{*shell*} buffer: | |
6621 | |
6622 @lisp | |
6623 M-x rename-buffer @key{RET} *shell-1* @key{RET} | |
6624 M-x shell RET | |
6625 @end lisp | |
6626 | |
6627 This will then start a second shell. The key is that no buffer named | |
6628 @samp{*shell*} can exist. It might be preferable to use @kbd{M-x | |
6629 rename-uniquely} to rename the @code{*shell*} buffer instead of @kbd{M-x | |
6630 rename-buffer}. | |
6631 | |
6632 Alternately, you can set the variable @code{shell-multiple-shells}. | |
6633 If the value of this variable is non-nil, each time shell mode is invoked, | |
6634 a new shell is made | |
6635 | |
2459 | 6636 @node Q5.4.3, Q5.4.4, Q5.4.2, External Subsystems |
6637 @unnumberedsubsec Q5.4.3: Telnet from shell filters too much | |
2417 | 6638 |
6639 I'm using the Emacs @kbd{M-x shell} function, and I would like to invoke | |
6640 and use a telnet session within it. Everything works fine except that | |
6641 now all @samp{^M}'s are filtered out by Emacs. Fixes? | |
6642 | |
6643 Use @kbd{M-x rsh} or @kbd{M-x telnet} to open remote sessions rather | |
6644 than doing rsh or telnet within the local shell buffer. You can also | |
6645 use @kbd{M-x ssh} to open secure remote session if you have @code{ssh} | |
6646 installed. | |
6647 | |
2459 | 6648 @node Q5.4.4, Q5.4.5, Q5.4.3, External Subsystems |
6649 @unnumberedsubsec Q5.4.4: Strange things are happening in Shell Mode. | |
2417 | 6650 |
6651 Sometimes (i.e. it's not repeatable, and I can't work out why it | |
6652 happens) when I'm typing into shell mode, I hit return and only a | |
6653 portion of the command is given to the shell, and a blank prompt is | |
6654 returned. If I hit return again, the rest of the previous command is | |
6655 given to the shell. | |
6656 | |
6657 @email{martin@@xemacs.org, Martin Buchholz} writes: | |
6658 | |
6659 @quotation | |
6660 There is a known problem with interaction between @code{csh} and the | |
6661 @code{filec} option and XEmacs. You should add the following to your | |
6662 @file{.cshrc}: | |
6663 | |
6664 @example | |
6665 if ( "$TERM" == emacs || "$TERM" == unknown ) unset filec | |
6666 @end example | |
6667 @end quotation | |
6668 | |
2995 | 6669 @node Q5.4.5, Q5.4.6, Q5.4.4, External Subsystems |
2459 | 6670 @unnumberedsubsec Q5.4.5: XEmacs complains "No such file or directory, diff" |
2417 | 6671 |
6672 or "ispell" or other commands that seem related to whatever you just | |
6673 tried to do (M-x ediff or M-$, for example). | |
6674 | |
6675 There are a large number of common (in the sense that "everyone has | |
6676 these, they really do") Unix utilities that are not provided with | |
6677 XEmacs. The GNU Project's implementations are available for Windows in | |
6678 the the Cygwin distribution (@uref{http://www.cygwin.com/}), which also | |
6679 provides a complete Unix emulation environment (and thus makes ports of | |
6680 Unix utilities nearly trivial). Another implementation is that from | |
6681 MinGW (@uref{http://www.mingw.org/msys.shtml}). If you know of others, | |
6682 please let us know! | |
6683 | |
2995 | 6684 @node Q5.4.6, Q5.5.1, Q5.4.5, External Subsystems |
6685 @unnumberedsubsec Q5.4.6: Cygwin error "fork_copy: linked dll/bss pass 0 failed" | |
6686 | |
6687 If you are getting an error like | |
6688 | |
6689 @example | |
6690 17797832 [main] bash 3468 fork_copy: linked dll/bss pass 0 failed, | |
6691 0x675000..0x6756A0, done 0, windows pid 2708, Win 32 error 487 | |
6692 bash: fork: resource temporarily unavailable | |
6693 @end example | |
6694 | |
6695 when trying to run bash using @kbd{M-x shell}, then you need to rebase | |
6696 your Cygwin DLL's. This is a known problem with Cygwin. To fix: | |
6697 | |
6698 @enumerate | |
6699 @item | |
6700 Download the @file{rebase} utility from Cygwin setup (it's under | |
6701 @samp{System}). | |
6702 @item | |
6703 Kill @strong{all} of your Cygwin processes, including all of your | |
6704 shells and all background processes. Use @code{ps -a} to list all the | |
6705 processes you need to kill. | |
6706 @item | |
6707 From a DOS prompt, run @file{ash} (@strong{not} @file{bash}, | |
6708 @file{tcsh} or @file{zsh}). Do not try to be clever and @code{exec | |
6709 /bin/ash} from your last shell; it won't work. | |
6710 @item | |
6711 Type @code{/bin/rebaseall -v}. | |
6712 @end enumerate | |
6713 | |
6714 The problem should now be fixed -- at least, until you install another | |
6715 Cygwin package with DLL's, in which case you may have to repeat the | |
6716 procedure. | |
6717 | |
2459 | 6718 @unnumberedsec 5.5: Multiple Device Support |
6719 | |
2995 | 6720 @node Q5.5.1, Q5.5.2, Q5.4.6, External Subsystems |
2459 | 6721 @unnumberedsubsec Q5.5.1: How do I open a frame on another screen of my multi-headed display? |
2417 | 6722 |
6723 Use the command @kbd{M-x make-frame-on-display}. This command is also | |
6724 on the File menu in the menubar. | |
6725 | |
6726 The command @code{make-frame-on-tty} also exists, which will establish a | |
6727 connection to any tty-like device. Opening the TTY devices should be | |
6728 left to @code{gnuclient}, though. | |
6729 | |
2459 | 6730 @node Q5.5.2, Q5.5.3, Q5.5.1, External Subsystems |
6731 @unnumberedsubsec Q5.5.2: Can I really connect to a running XEmacs after calling up over a modem? How? | |
6732 | |
6733 Yes. Use @code{gnuclient -nw}. | |
6734 | |
6735 Also see @ref{Q5.5.3, How do I disable gnuserv from opening a new frame?}. | |
6736 | |
6737 @node Q5.5.3, Q5.5.4, Q5.5.2, External Subsystems | |
6738 @unnumberedsubsec Q5.5.3: How do I disable gnuserv from opening a new frame? | |
2417 | 6739 |
6740 If you set the @code{gnuserv-frame} variable to the frame that should be | |
6741 used to display buffers that are pulled up, a new frame will not be | |
6742 created. For example, you could put | |
6743 | |
6744 @lisp | |
6745 (setq gnuserv-frame (selected-frame)) | |
428 | 6746 @end lisp |
6747 | |
2417 | 6748 early on in your @file{init.el}, to ensure that the first frame created |
6749 is the one used for your gnuserv buffers. | |
6750 | |
6751 There is an option to set the gnuserv target to the current frame. See | |
6752 @code{Options->Display->"Other Window" Location->Make Current Frame Gnuserv Target} | |
6753 | |
6754 You can also change this with Customize. Select from the | |
6755 @code{Options} menu @code{Advanced | |
6756 (Customize)->Emacs->Environment->Gnuserv->Gnuserv Frame...} or type | |
6757 @kbd{M-x customize @key{RET} gnuserv @key{RET}}. | |
6758 | |
6759 | |
2459 | 6760 @node Q5.5.4, Q5.5.5, Q5.5.3, External Subsystems |
6761 @unnumberedsubsec Q5.5.4: How do I start gnuserv so that each subsequent XEmacs is a client? | |
2417 | 6762 |
6763 Put the following in your @file{init.el} file to start the server: | |
6764 | |
6765 @lisp | |
6766 (gnuserv-start) | |
6767 @end lisp | |
6768 | |
6769 Start your first XEmacs as usual. After that, you can do: | |
6770 | |
6771 @example | |
6772 gnuclient randomfilename | |
6773 @end example | |
6774 | |
6775 from the command line to get your existing XEmacs process to open a new | |
6776 frame and visit randomfilename in that window. When you're done editing | |
6777 randomfilename, hit @kbd{C-x #} to kill the buffer and get rid of the | |
6778 frame. | |
6779 | |
6780 See also man page of gnuclient. | |
6781 | |
2459 | 6782 @node Q5.5.5, , Q5.5.4, External Subsystems |
6783 @unnumberedsubsec Q5.5.5: Is there a way to start a new XEmacs if there's no gnuserv running, and otherwise use gnuclient? | |
2417 | 6784 |
6785 @email{vroonhof@@math.ethz.ch, Jan Vroonhof} writes: | |
6786 @quotation | |
6787 Here is one of the solutions, we have this in a script called | |
6788 @file{etc/editclient.sh}. | |
6789 @example | |
6790 #!/bin/sh | |
6791 if gnuclient -batch -eval t >/dev/null 2>&1 | |
6792 then | |
6793 exec gnuclient $@{1+"$@@"@} | |
6794 else | |
6795 xemacs -unmapped -f gnuserv-start & | |
6796 until gnuclient -batch -eval t >/dev/null 2>&1 | |
6797 do | |
6798 sleep 1 | |
6799 done | |
6800 exec gnuclient $@{1+"$@@"@} | |
6801 fi | |
6802 @end example | |
6803 | |
6804 Note that there is a known problem when running XEmacs and 'gnuclient | |
6805 -nw' on the same TTY. | |
6806 @end quotation | |
6807 | |
2459 | 6808 @node Internet, Advanced, External Subsystems, Top |
6809 @unnumbered 6 Connecting to the Internet | |
6810 | |
6811 This is part 6 of the XEmacs Frequently Asked Questions list. This | |
6812 section is devoted connecting to the Internet. | |
6813 | |
6814 @menu | |
6815 6.0: General Mail and News | |
6816 * Q6.0.1:: What are the various packages for reading mail? | |
6817 * Q6.0.2:: How can I send mail? | |
6818 * Q6.0.3:: How do I get my outgoing mail archived? | |
6819 * Q6.0.4:: How can I read and/or compose MIME messages? | |
6820 * Q6.0.5:: How do I customize the From line? | |
6821 * Q6.0.6:: How do I get my MUA to filter mail for me? | |
6822 * Q6.0.7:: Remote mail reading with an MUA. | |
6823 * Q6.0.8:: An MUA gets an error incorporating new mail. | |
6824 * Q6.0.9:: Why isn't @file{movemail} working? | |
6825 * Q6.0.10:: How do I make my MUA display graphical smilies? | |
6826 * Q6.0.11:: How can I get those oh-so-neat X-Face lines? | |
6827 | |
6828 6.1: Reading Mail with VM | |
6829 * Q6.1.1:: How do I set up VM to retrieve mail from a remote site using POP? | |
6830 * Q6.1.2:: How can I get VM to automatically check for new mail? | |
6831 * Q6.1.3:: I have various addresses at which I receive mail. How can I tell VM to ignore them when doing a "reply-all"? | |
6832 * Q6.1.4:: Is there a mailing list or FAQ for VM? | |
6833 * Q6.1.5:: How do I make VM stay in a single frame? | |
6834 * Q6.1.6:: Customization of VM not covered in the manual, or here. | |
6835 | |
6836 6.2: Reading Netnews and Mail with Gnus | |
6837 * Q6.2.1:: GNUS, (ding) Gnus, Gnus 5, September Gnus, Red Gnus, Quassia Gnus, argh! | |
6838 * Q6.2.2:: How do I make Gnus stay within a single frame? | |
6839 | |
6840 6.3: FTP Access | |
6841 * Q6.3.1:: Can I edit files on other hosts? | |
6842 * Q6.3.2:: What is EFS? | |
6843 | |
6844 6.4: Web Browsing with W3 | |
6845 * Q6.4.1:: What is W3? | |
6846 * Q6.4.2:: How do I run W3 from behind a firewall? | |
6847 * Q6.4.3:: Is it true that W3 supports style sheets and tables? | |
6848 @end menu | |
6849 | |
6850 @unnumberedsec 6.0: General Mail and News | |
6851 | |
6852 @node Q6.0.1, Q6.0.2, Internet, Internet | |
6853 @unnumberedsubsec Q6.0.1: What are the various packages for reading mail? | |
6854 | |
6855 #### Write me. | |
6856 | |
6857 @node Q6.0.2, Q6.0.3, Q6.0.1, Internet | |
6858 @unnumberedsubsec Q6.0.2: How can I send mail? | |
6859 | |
6860 Under Unix and Mac OS X, the @samp{sendmail} package is normally used | |
6861 for this. | |
6862 #### Write me. | |
6863 | |
6864 Under Windows, you need to use @samp{smtpmail}, which communicates | |
6865 directly with the mail server, as there is no @file{sendmail} program | |
6866 running. To get it working, use code like the following in your | |
6867 @file{init.el} file: | |
6868 | |
6869 @lisp | |
6870 ;; Get mail working under Windows. | |
6871 (setq message-send-mail-function 'smtpmail-send-it) ; for message/Gnus | |
6872 (setq send-mail-function 'smtpmail-send-it) ; for C-x m, etc. | |
6873 ;; the following ensures that mail problems can be debugged: it logs a trace | |
6874 ;; of the SMTP conversation to *trace of SMTP session to <somewhere>*. | |
6875 (setq smtpmail-debug-info t) | |
6876 ;; Substitute your info here. | |
6877 ;(setq user-mail-address "ben@@xemacs.org") | |
6878 ;(setq user-full-name "Ben Wing") | |
6879 ;(setq smtpmail-default-smtp-server "smtp.myserver.myisp.com") | |
6880 ;; The following two aren't completely necessary but may help. | |
6881 ;(setq smtpmail-local-domain "666.com") | |
6882 ;(setq smtpmail-sendto-domain "666.com") | |
6883 ;; If your SMTP server requires a username/password to authenticate, as | |
6884 ;; many do nowadays, set them like this: | |
6885 ;(setq smtpmail-auth-credentials ; or use ~/.authinfo | |
6886 ; '(("smtp.myserver.myisp.com" 25 "USER@@SOMEWHERE" "PASSWORD"))) | |
6887 | |
6888 ;; Other possibilities for getting smtpmail to work: | |
6889 ;; | |
6890 ;; If for some reason you need to authenticate using the STARTTLS protocol | |
6891 ;; (don't look into this unless you know what it is), use | |
6892 ;; (setq smtpmail-starttls-credentials | |
6893 ;; '(("YOUR SMTP HOST" 25 "~/.my_smtp_tls.key" "~/.my_smtp_tls.cert"))) | |
6894 ;; Requires external program | |
6895 ;; ftp://ftp.opaopa.org/pub/elisp/starttls-*.tar.gz. | |
6896 ;; See http://www.ietf.org/rfc/rfc2246.txt, | |
6897 ;; http://www.ietf.org/rfc/rfc2487.txt | |
6898 @end lisp | |
6899 | |
6900 The lines you need to care about are those that set | |
6901 @code{user-mail-address}, @code{user-full-name}, | |
6902 @code{smtpmail-default-smtp-server}, and | |
6903 @code{smtpmail-auth-credentials}. You need to set these with, | |
6904 respectively, your email address, your full name, the SMTP server you | |
6905 use for outgoing mail, and the username and password you need to log | |
6906 in to your SMTP server. (If for some reason your SMTP server doesn't | |
6907 require logging in to send mail, don't uncomment this last line.) | |
6908 | |
6909 The other settings may be useful in specific cases, but you should know what | |
6910 you're doing before enabling them. | |
6911 | |
6912 @node Q6.0.3, Q6.0.4, Q6.0.2, Internet | |
6913 @unnumberedsubsec Q6.0.3: How do I get my outgoing mail archived? | |
6914 | |
6915 @lisp | |
6916 (setq mail-archive-file-name "~/outbox") | |
6917 @end lisp | |
6918 | |
6919 @node Q6.0.4, Q6.0.5, Q6.0.3, Internet | |
6920 @unnumberedsubsec Q6.0.4: How can I read and/or compose MIME messages? | |
6921 | |
6922 VM, MH-E and GNUS support MIME natively. Other MUAs may or may not | |
6923 have MIME support; refer to their documentation and other resources, | |
6924 such as web pages and mailing lists. Packages like SEMI/WEMI may be | |
6925 useful in connection with MUAs like mew and Wanderlust. | |
6926 | |
6927 @node Q6.0.5, Q6.0.6, Q6.0.4, Internet | |
6928 @unnumberedsubsec Q6.0.5: How do I customize the From line? | |
6929 | |
6930 How do I change the @samp{From:} line? I have set gnus-user-from-line | |
6931 to | |
6932 @example | |
6933 Gail Gurman <gail.gurman@@sybase.com> | |
6934 @end example | |
6935 @noindent , but XEmacs Gnus doesn't use | |
6936 it. [This should apply to all MUA's. --ed] Instead it uses | |
6937 @example | |
6938 Gail Mara Gurman @email{gailg@@deall} | |
6939 @end example | |
6940 @noindent and then complains | |
6941 that it's incorrect. Also, as you perhaps can see, my Message-ID is | |
6942 screwy. How can I change that? | |
6943 | |
6944 @email{larsi@@ifi.uio.no, Lars Magne Ingebrigtsen} writes: | |
6945 | |
6946 @quotation | |
6947 Set @code{user-mail-address} to @samp{gail.gurman@@sybase.com} or | |
6948 @code{mail-host-address} to @samp{sybase.com}. | |
6949 @end quotation | |
6950 | |
6951 @node Q6.0.6, Q6.0.7, Q6.0.5, Internet | |
6952 @unnumberedsubsec Q6.0.6: How do I get my MUA to filter mail for me? | |
6953 | |
6954 One possibility is to use procmail to split your mail before it gets to | |
6955 the MUA. I prefer this personally, since there are many strange and | |
6956 wonderful things one can do with procmail. Procmail may be found at | |
6957 @uref{http://www.procmail.org/}. | |
6958 | |
6959 Also see the Mail Filtering FAQ at: | |
6960 @iftex | |
6961 @* | |
6962 @end iftex | |
6963 @uref{http://www.faqs.org/faqs/mail/filtering-faq/}. | |
6964 | |
6965 @node Q6.0.7, Q6.0.8, Q6.0.6, Internet | |
6966 @unnumberedsubsec Q6.0.7: Remote mail reading with an MUA. | |
6967 | |
6968 My mailbox lives at the office on a big honkin server. My regular INBOX | |
6969 lives on my honkin desktop machine. I now can PPP to the office from | |
6970 home which is far from honking... I'd like to be able to read mail at | |
6971 home without storing it here and I'd like to use xemacs and the MUA at | |
6972 home... Is there a recommended setup? | |
6973 | |
6974 @email{nuspl@@nvwls.cc.purdue.edu, Joseph J. Nuspl Jr.} writes: | |
6975 | |
6976 @quotation | |
6977 There are several ways to do this. | |
6978 | |
6979 @enumerate | |
6980 @item | |
6981 Set your display to your home machine and run dxpc or one of the other X | |
6982 compressors. | |
6983 | |
6984 @item | |
6985 NFS mount your desktop machine on your home machine and modify your pop | |
6986 command on your home machine to rsh to your desktop machine and actually | |
6987 do the pop get's. | |
6988 | |
6989 @item | |
6990 Run a POP server on your desktop machine as well and do a sort of two | |
6991 tiered POP get. | |
6992 @end enumerate | |
6993 @end quotation | |
6994 | |
6995 @email{wmperry@@monolith.spry.com, William Perry} adds: | |
6996 | |
6997 @quotation | |
6998 Or you could run a pop script periodically on your desktop machine, and | |
6999 just use ange-ftp or NFS to get to your mailbox. I used to do this all | |
7000 the time back at IU. | |
7001 @end quotation | |
7002 | |
7003 @node Q6.0.8, Q6.0.9, Q6.0.7, Internet | |
7004 @unnumberedsubsec Q6.0.8: An MUA gets an error incorporating new mail. | |
7005 | |
7006 rmail and VM, and probably other MUA's as well, get new mail from | |
7007 your mailbox (called @file{/var/mail/$USER} or @file{/var/spool/mail/$USER} | |
7008 or something similar) using a program called @code{movemail}. | |
7009 This program interlocks with @code{/bin/mail} using the protocol | |
7010 defined by @code{/bin/mail}. | |
7011 | |
7012 There are various different protocols in general use, which you need to | |
3018 | 7013 specify using the @samp{--mail-locking} option |
7014 (@samp{--with-mail-locking} in 21.5 or later) to @file{configure}: | |
2459 | 7015 |
7016 @table @samp | |
7017 @item lockf | |
7018 POSIX file locking with @code{lockf()} | |
7019 @item flock | |
7020 BSD file locking with @code{flock()} | |
7021 @item dot | |
7022 To manipulate mail file @file{foo}, first create file @file{foo.lock} | |
7023 @item locking | |
7024 Use @code{locking()}, Microsoft's renamed @code{flock()} | |
7025 @item mmdf | |
7026 Use @code{lk_open()} and @code{lk_close()} as defined by the Multi-channel | |
7027 Memo Distribution Facility | |
7028 @item pop | |
7029 Retrieve mail using POP (the Post Office Protocol). This is the | |
7030 default for Cygwin/MinGW. | |
7031 @end table | |
7032 | |
7033 @strong{IF YOU DON'T USE THE FORM OF INTERLOCKING THAT IS NORMAL ON YOUR | |
7034 SYSTEM, YOU CAN LOSE MAIL!} | |
7035 | |
7036 Usually the value is correctly determined automatically: | |
7037 @file{configure} tries to detect the method in use, and defaults exist | |
7038 on systems for which this doesn't work. | |
7039 | |
7040 However, if you run into problems incorporating new mail, it may be | |
7041 because an incorrect method is being used. | |
7042 | |
7043 If your system uses the lock file protocol, and permissions are set | |
7044 so that ordinary users cannot write lock files in the mail spool | |
7045 directory, you may need to make @file{movemail} setgid to a | |
7046 suitable group such as @samp{mail}. You can use these commands (as | |
7047 root): | |
7048 | |
7049 @example | |
7050 chgrp mail movemail | |
7051 chmod 2755 movemail | |
7052 @end example | |
7053 | |
7054 If you are using the @samp{pop} locking method, @file{movemail} must | |
7055 be setuid root. | |
7056 | |
7057 Installation normally copies movemail from the build directory to an | |
7058 installation directory which is usually under @file{/usr/local/lib}. | |
7059 The installed copy of @file{movemail} is usually in the directory | |
7060 @file{/usr/local/lib/xemacs-VERSION/TARGET} (for example, | |
7061 @file{/usr/local/lib/xemacs-21.4.15/i686-pc-cygwin}). You must change | |
7062 the group and mode of the installed copy; changing the group and mode | |
7063 of the build directory copy is ineffective. | |
7064 | |
7065 @node Q6.0.9, Q6.0.10, Q6.0.8, Internet | |
7066 @unnumberedsubsec Q6.0.9: Why isn't @file{movemail} working? | |
7067 | |
7068 @xref{Q6.0.8}. | |
7069 | |
7070 Note also that older versions of Mozilla came with a @file{movemail} | |
7071 program that is @strong{not} compatible with XEmacs. Do not use it. | |
7072 Always use the @file{movemail} installed with your XEmacs. Failure to | |
7073 do so can result in lost mail. | |
7074 | |
7075 @node Q6.0.10, Q6.0.11, Q6.0.9, Internet | |
7076 @unnumberedsubsec Q6.0.10: How do I make my MUA display graphical smilies? | |
7077 For mh-e use the following: | |
7078 | |
7079 @lisp | |
7080 (add-hook 'mh-show-mode-hook '(lambda () | |
7081 (smiley-region (point-min) | |
7082 (point-max)))) | |
7083 @end lisp | |
7084 | |
7085 @email{bill@@carpenter.ORG, WJCarpenter} writes: | |
7086 For VM use the following: | |
7087 @lisp | |
7088 (autoload 'smiley-region "smiley" nil t) | |
7089 (add-hook 'vm-select-message-hook | |
7090 '(lambda () | |
7091 (smiley-region (point-min) | |
7092 (point-max)))) | |
7093 @end lisp | |
7094 | |
7095 For tm use the following: | |
7096 @lisp | |
7097 (autoload 'smiley-buffer "smiley" nil t) | |
7098 (add-hook 'mime-viewer/plain-text-preview-hook 'smiley-buffer) | |
7099 @end lisp | |
7100 | |
7101 @node Q6.0.11, Q6.1.1, Q6.0.10, Internet | |
7102 @unnumberedsubsec Q6.0.11: How can I get those oh-so-neat X-Face lines? | |
7103 | |
7104 Firstly there is an ftp site which describes X-faces and has the | |
7105 associated tools mentioned below, at | |
7106 @uref{http://ftp.cs.indiana.edu/pub/faces/}. | |
7107 | |
7108 Then the steps are | |
7109 | |
7110 @enumerate | |
7111 @item | |
7112 Create 48x48x1 bitmap with your favorite tool | |
7113 | |
7114 @item | |
7115 Convert to "icon" format using one of xbm2ikon, pbmtoicon, etc., | |
7116 and then compile the face. | |
7117 | |
7118 @item | |
7119 @example | |
7120 cat file.xbm | xbm2ikon |compface > file.face | |
7121 @end example | |
7122 | |
7123 @item | |
7124 Then be sure to quote things that are necessary for emacs strings: | |
7125 | |
7126 @example | |
7127 cat ./file.face | sed 's/\\/\\\\/g' | |
7128 @iftex | |
7129 \ @* | |
7130 @end iftex | |
7131 | sed 's/\"/\\\"/g' > ./file.face.quoted | |
7132 @end example | |
7133 | |
7134 @item | |
7135 Then set up emacs to include the file as a mail header - there were a | |
7136 couple of suggestions here---either something like: | |
7137 | |
7138 @lisp | |
7139 (setq mail-default-headers | |
7140 "X-Face: @email{Ugly looking text string here}") | |
7141 @end lisp | |
7142 | |
7143 Or, alternatively, as: | |
7144 | |
7145 @lisp | |
7146 (defun mail-insert-x-face () | |
7147 (save-excursion | |
7148 (goto-char (point-min)) | |
7149 (search-forward mail-header-separator) | |
7150 (beginning-of-line) | |
7151 (insert "X-Face:") | |
7152 (insert-file-contents "~/.face"))) | |
7153 | |
7154 (add-hook 'mail-setup-hook 'mail-insert-x-face) | |
7155 @end lisp | |
7156 @end enumerate | |
7157 | |
7158 However, 2 things might be wrong: | |
7159 | |
7160 Some versions of pbmtoicon produces some header lines that is not | |
7161 expected by the version of compface that I grabbed. So I found I had to | |
7162 include a @code{tail +3} in the pipeline like this: | |
7163 | |
7164 @example | |
7165 cat file.xbm | xbm2ikon | tail +3 |compface > file.face | |
7166 @end example | |
7167 | |
7168 Some people have also found that if one uses the @code{(insert-file)} | |
7169 method, one should NOT quote the face string using the sed script . | |
7170 | |
7171 It might also be helpful to use @email{stig@@hackvan.com, Stig's} script | |
7172 xbm2face (included in the compface distribution at XEmacs.org) to do the | |
7173 conversion. | |
7174 | |
7175 Contributors for this item: | |
7176 | |
7177 Paul Emsley, | |
7178 Ricardo Marek, | |
7179 Amir J. Katz, | |
7180 Glen McCort, | |
7181 Heinz Uphoff, | |
7182 Peter Arius, | |
7183 Paul Harrison, and | |
7184 Vegard Vesterheim | |
7185 | |
7186 @unnumberedsec 6.1: Reading Mail with VM | |
7187 | |
7188 @node Q6.1.1, Q6.1.2, Q6.0.11, Internet | |
7189 @unnumberedsubsec Q6.1.1: How do I set up VM to retrieve mail from a remote site using POP? | |
7190 | |
7191 Use @code{vm-spool-files}, like this for example: | |
7192 | |
7193 @lisp | |
7194 (setq vm-spool-files '("/var/spool/mail/wing" | |
7195 "netcom23.netcom.com:110:pass:wing:MYPASS")) | |
7196 @end lisp | |
7197 | |
7198 Of course substitute your actual password for MYPASS. | |
7199 | |
7200 @node Q6.1.2, Q6.1.3, Q6.1.1, Internet | |
7201 @unnumberedsubsec Q6.1.2: How can I get VM to automatically check for new mail? | |
7202 | |
7203 @email{turner@@lanl.gov, John Turner} writes: | |
7204 | |
7205 @quotation | |
7206 Use the following: | |
7207 | |
7208 @lisp | |
7209 (setq vm-auto-get-new-mail 60) | |
7210 @end lisp | |
7211 @end quotation | |
7212 | |
7213 @node Q6.1.3, Q6.1.4, Q6.1.2, Internet | |
7214 @unnumberedsubsec Q6.1.3: I have various addresses at which I receive mail. How can I tell VM to ignore them when doing a "reply-all"? | |
7215 | |
7216 Set @code{vm-reply-ignored-addresses} to a list, like | |
7217 | |
7218 @lisp | |
7219 (setq vm-reply-ignored-addresses | |
7220 '("wing@@nuspl@@nvwls.cc.purdue.edu,netcom[0-9]*.netcom.com" | |
7221 "wing@@netcom.com" "wing@@xemacs.org")) | |
7222 @end lisp | |
7223 | |
7224 Note that each string is a regular expression. | |
7225 | |
7226 @node Q6.1.4, Q6.1.5, Q6.1.3, Internet | |
7227 @unnumberedsubsec Q6.1.4: Is there a mailing list or FAQ for VM? | |
7228 | |
7229 A FAQ for VM exists at @uref{http://www.wonderworks.com/vm/FAQ.html}. | |
7230 | |
7231 VM has its own newsgroups gnu.emacs.vm.info and gnu.emacs.vm.bug. | |
7232 | |
7233 @node Q6.1.5, Q6.1.6, Q6.1.4, Internet | |
7234 @unnumberedsubsec Q6.1.5: How do I make VM stay in a single frame? | |
7235 | |
7236 John.@email{Cooper@@Eng.Sun.COM, John S Cooper} writes: | |
7237 | |
7238 @quotation | |
7239 @lisp | |
7240 ; Don't use multiple frames | |
7241 (setq vm-frame-per-composition nil) | |
7242 (setq vm-frame-per-folder nil) | |
7243 (setq vm-frame-per-edit nil) | |
7244 (setq vm-frame-per-summary nil) | |
7245 @end lisp | |
7246 @end quotation | |
7247 | |
7248 @node Q6.1.6, Q6.2.1, Q6.1.5, Internet | |
7249 @unnumberedsubsec Q6.1.6: Customization of VM not covered in the manual, or here. | |
7250 | |
4311 | 7251 @email{boffi@@hp735.stru.polimi.it, Giacomo Boffi} writes: |
2459 | 7252 |
7253 @quotation | |
7254 The meta-answer is to look into the file @file{vm-vars.el}, in the vm | |
7255 directory of the lisp library. | |
7256 | |
7257 @file{vm-vars.el} contains, initializes and carefully describes, with | |
7258 examples of usage, the plethora of user options that @emph{fully} | |
7259 control VM's behavior. | |
7260 | |
7261 Enter vm-vars, @code{forward-search} for toolbar, find the variables | |
7262 that control the toolbar placement, appearance, existence, copy to your | |
7263 @file{init.el} or @file{.vm} and modify according to the | |
7264 detailed instructions. | |
7265 | |
7266 The above also applies to all the various features of VM: search for | |
7267 some keywords, maybe the first you conjure isn't appropriate, find the | |
7268 appropriate variables, copy and experiment. | |
7269 @end quotation | |
7270 | |
7271 @unnumberedsec 6.2: Reading Netnews and Mail with Gnus | |
7272 | |
7273 @node Q6.2.1, Q6.2.2, Q6.1.6, Internet | |
7274 @unnumberedsubsec Q6.2.1: GNUS, (ding) Gnus, Gnus 5, September Gnus, Red Gnus, Quassia Gnus, argh! | |
7275 | |
7276 The Gnus numbering issues are not meant for mere mortals to know them. | |
7277 If you feel you @emph{must} enter the muddy waters of Gnus, visit the | |
7278 excellent FAQ, maintained by Justin Sheehy, at: | |
7279 | |
7280 @example | |
7281 @uref{http://my.gnus.org/FAQ/} | |
7282 @end example | |
7283 | |
7284 See also Gnus home page | |
7285 @example | |
7286 @uref{http://www.gnus.org/} | |
7287 @end example | |
7288 | |
7289 @node Q6.2.2, Q6.3.1, Q6.2.1, Internet | |
7290 @unnumberedsubsec Q6.2.2: How do I make Gnus stay within a single frame? | |
7291 | |
7292 The toolbar code to start Gnus opens the new frame---and it's a feature | |
7293 rather than a bug. If you don't like it, but would still like to click | |
7294 on the seemly icon, use the following code: | |
7295 | |
7296 @lisp | |
7297 (defun toolbar-news () | |
7298 (gnus)) | |
7299 @end lisp | |
7300 | |
7301 It will redefine the callback function of the icon to just call | |
7302 @code{gnus}, without all the fancy frame stuff. | |
7303 | |
7304 @unnumberedsec 6.3: FTP Access | |
7305 | |
7306 @node Q6.3.1, Q6.3.2, Q6.2.2, Internet | |
7307 @unnumberedsubsec Q6.3.1: Can I edit files on other hosts? | |
7308 | |
7309 Yes. Of course XEmacs can use any network file system (such as NFS or | |
7310 Windows file sharing) you have available, and includes some | |
7311 optimizations and safety features appropriate to those environments. | |
7312 | |
7313 It is also possible to transparently edit files via FTP, ssh, or rsh. That | |
7314 is, XEmacs makes a local copy using the transport in the background, and | |
7315 automatically refreshes the remote original from that copy when you save | |
7316 it. XEmacs also is capable of doing file system manipulations like | |
7317 creating and removing directories and files. The FTP interface is | |
7318 provided by the standard @samp{efs} package @ref{Top, EFS, , efs}. The | |
7319 ssh/rsh interface is provided by the optional @samp{tramp} package | |
7320 @ref{Top, TRAMP, , tramp}. | |
7321 | |
7322 @node Q6.3.2, Q6.4.1, Q6.3.1, Internet | |
7323 @unnumberedsubsec Q6.3.2: What is EFS? | |
7324 | |
7325 #### Write me. | |
7326 | |
7327 @unnumberedsec 6.4: Web Browsing with W3 | |
7328 | |
7329 @node Q6.4.1, Q6.4.2, Q6.3.2, Internet | |
7330 @unnumberedsubsec Q6.4.1: What is W3? | |
7331 | |
7332 W3 is an advanced graphical browser written in Emacs lisp that runs on | |
7333 XEmacs. It has full support for cascaded style sheets, and more... | |
7334 | |
7335 It has a home web page at | |
7336 @uref{http://www.cs.indiana.edu/elisp/w3/docs.html}. | |
7337 | |
7338 @node Q6.4.2, Q6.4.3, Q6.4.1, Internet | |
7339 @unnumberedsubsec Q6.4.2: How do I run W3 from behind a firewall? | |
7340 | |
7341 There is a long, well-written, detailed section in the W3 manual that | |
7342 describes how to do this. Look in the section entitled "Firewalls". | |
7343 | |
7344 @node Q6.4.3, , Q6.4.2, Internet | |
7345 @unnumberedsubsec Q6.4.3: Is it true that W3 supports style sheets and tables? | |
7346 | |
7347 Yes, and much more. W3, as distributed with the latest XEmacs is a | |
7348 full-featured web browser. | |
7349 | |
7350 @node Advanced, Other Packages, Internet, Top | |
7351 @unnumbered 7 Advanced Customization Using XEmacs Lisp | |
7352 | |
7353 This is part 7 of the XEmacs Frequently Asked Questions list. This | |
7354 section is devoted to advanced customization using XEmacs Lisp. | |
7355 | |
7356 @menu | |
2537 | 7357 7.0: Emacs Lisp and @file{init.el} |
7358 * Q7.0.1:: What version of Emacs am I running? | |
7359 * Q7.0.2:: How can I evaluate Emacs-Lisp expressions? | |
7360 * Q7.0.3:: @code{(setq tab-width 6)} behaves oddly. | |
7361 * Q7.0.4:: How can I add directories to the @code{load-path}? | |
7362 * Q7.0.5:: How to check if a lisp function is defined? | |
7363 * Q7.0.6:: Can I force the output of @code{(face-list)} to a buffer? | |
7364 | |
7365 7.1: Emacs Lisp Programming Techniques | |
7366 * Q7.1.1:: What is the difference in key sequences between XEmacs and GNU Emacs? | |
7367 * Q7.1.2:: Can I generate "fake" keyboard events? | |
7368 * Q7.1.3:: Could you explain @code{read-kbd-macro} in more detail? | |
7369 * Q7.1.4:: What is the performance hit of @code{let}? | |
7370 * Q7.1.5:: What is the recommended use of @code{setq}? | |
7371 * Q7.1.6:: What is the typical misuse of @code{setq}? | |
7372 * Q7.1.7:: I like the @code{do} form of cl, does it slow things down? | |
7373 * Q7.1.8:: I like recursion, does it slow things down? | |
7374 * Q7.1.9:: How do I put a glyph as annotation in a buffer? | |
7375 * Q7.1.10:: @code{map-extents} won't traverse all of my extents! | |
7376 * Q7.1.11:: My elisp program is horribly slow. Is there an easy way to find out where it spends time? | |
7377 | |
7378 7.2: Mathematics | |
7379 * Q7.2.1:: What are bignums, ratios, and bigfloats in Lisp? | |
7380 * Q7.2.2:: XEmacs segfaults when I use very big numbers! | |
7381 * Q7.2.3:: Bignums are really slow! | |
7382 * Q7.2.4:: Equal bignums don't compare as equal! What gives? | |
2459 | 7383 @end menu |
7384 | |
2537 | 7385 @unnumberedsec 7.0: Emacs Lisp and @file{init.el} |
2459 | 7386 |
7387 @node Q7.0.1, Q7.0.2, Advanced, Advanced | |
2537 | 7388 @unnumberedsubsec Q7.0.1: What version of Emacs am I running? |
2459 | 7389 |
7390 How can @file{init.el} determine which of the family of | |
7391 Emacsen I am using? | |
7392 | |
7393 To determine if you are currently running GNU Emacs 18, GNU Emacs 19, | |
7394 XEmacs 19, XEmacs 20, or Epoch, and use appropriate code, check out the | |
7395 example given in @file{etc/sample.init.el} (@file{etc/sample.emacs} in | |
7396 XEmacs versions prior to 21.4). There are other nifty things in there | |
7397 as well! | |
7398 | |
7399 For all new code, all you really need to do is: | |
7400 | |
7401 @lisp | |
7402 (defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version)) | |
7403 @end lisp | |
7404 | |
2537 | 7405 @node Q7.0.2, Q7.0.3, Q7.0.1, Advanced |
7406 @unnumberedsubsec Q7.0.2: How can I evaluate Emacs-Lisp expressions? | |
2459 | 7407 |
7408 I know I can evaluate Elisp expressions from @code{*scratch*} buffer | |
7409 with @kbd{C-j} after the expression. How do I do it from another | |
7410 buffer? | |
7411 | |
7412 Press @kbd{M-:} (the default binding of @code{eval-expression}), and | |
7413 enter the expression to the minibuffer. | |
7414 | |
2537 | 7415 @node Q7.0.3, Q7.0.4, Q7.0.2, Advanced |
7416 @unnumberedsubsec Q7.0.3: @code{(setq tab-width 6)} behaves oddly. | |
2459 | 7417 |
7418 If you put @code{(setq tab-width 6)} in your | |
7419 @file{init.el} file it does not work! Is there a reason | |
7420 for this? If you do it at the EVAL prompt it works fine!! How strange. | |
7421 | |
7422 Use @code{setq-default} instead, since @code{tab-width} is | |
7423 all-buffer-local. | |
7424 | |
2537 | 7425 @node Q7.0.4, Q7.0.5, Q7.0.3, Advanced |
7426 @unnumberedsubsec Q7.0.4: How can I add directories to the @code{load-path}? | |
2459 | 7427 |
7428 Here are two ways to do that, one that puts your directories at the | |
7429 front of the load-path, the other at the end: | |
7430 | |
7431 @lisp | |
7432 ;;; Add things at the beginning of the load-path, do not add | |
7433 ;;; duplicate directories: | |
7434 (pushnew "bar" load-path :test 'equal) | |
7435 | |
7436 (pushnew "foo" load-path :test 'equal) | |
7437 | |
7438 ;;; Add things at the end, unconditionally | |
7439 (setq load-path (nconc load-path '("foo" "bar"))) | |
7440 @end lisp | |
7441 | |
4311 | 7442 @email{keithh@@nortel.ca, Keith (k.p.) Hanlan} writes: |
2459 | 7443 |
7444 @quotation | |
7445 To add directories using Unix shell metacharacters use | |
7446 @file{expand-file-name} like this: | |
7447 | |
7448 @lisp | |
7449 (push (expand-file-name "~keithh/.emacsdir") load-path) | |
7450 @end lisp | |
7451 @end quotation | |
7452 | |
2537 | 7453 @node Q7.0.5, Q7.0.6, Q7.0.4, Advanced |
7454 @unnumberedsubsec Q7.0.5: How to check if a lisp function is defined? | |
2459 | 7455 |
7456 Use the following elisp: | |
7457 | |
7458 @lisp | |
7459 (fboundp 'foo) | |
7460 @end lisp | |
7461 | |
7462 It's almost always a mistake to test @code{emacs-version} or any similar | |
7463 variables. | |
7464 | |
7465 Instead, use feature-tests, such as @code{featurep}, @code{boundp}, | |
7466 @code{fboundp}, or even simple behavioral tests, eg.: | |
7467 | |
7468 @lisp | |
7469 (defvar foo-old-losing-code-p | |
7470 (condition-case nil (progn (losing-code t) nil) | |
7471 (wrong-number-of-arguments t))) | |
7472 @end lisp | |
7473 | |
7474 There is an incredible amount of broken code out there which could work | |
7475 much better more often in more places if it did the above instead of | |
7476 trying to divine its environment from the value of one variable. | |
7477 | |
2537 | 7478 @node Q7.0.6, Q7.1.1, Q7.0.5, Advanced |
7479 @unnumberedsubsec Q7.0.6: Can I force the output of @code{(face-list)} to a buffer? | |
2459 | 7480 |
7481 It would be good having it in a buffer, as the output of | |
7482 @code{(face-list)} is too wide to fit to a minibuffer. | |
7483 | |
7484 Evaluate the expression in the @samp{*scratch*} buffer with point after | |
7485 the rightmost paren and typing @kbd{C-j}. | |
7486 | |
7487 If the minibuffer smallness is the only problem you encounter, you can | |
7488 simply press @kbd{C-h l} to get the former minibuffer contents in a | |
7489 buffer. | |
7490 | |
2537 | 7491 @unnumberedsec 7.1: Emacs Lisp Programming Techniques |
7492 | |
7493 @node Q7.1.1, Q7.1.2, Q7.0.6, Advanced | |
7494 @unnumberedsubsec Q7.1.1: What is the difference in key sequences between XEmacs and GNU Emacs? | |
2459 | 7495 |
7496 @email{clerik@@naggum.no, Erik Naggum} writes; | |
7497 | |
7498 @quotation | |
7499 Emacs has a legacy of keyboards that produced characters with modifier | |
7500 bits, and therefore map a variety of input systems into this scheme even | |
7501 today. XEmacs is instead optimized for X events. This causes an | |
7502 incompatibility in the way key sequences are specified, but both Emacs | |
7503 and XEmacs will accept a key sequence as a vector of lists of modifiers | |
7504 that ends with a key, e.g., to bind @kbd{M-C-a}, you would say | |
7505 @code{[(meta control a)]} in both Emacsen. XEmacs has an abbreviated | |
7506 form for a single key, just (meta control a). Emacs has an abbreviated | |
7507 form for the Control and the Meta modifiers to string-characters (the | |
7508 ASCII characters), as in @samp{\M-\C-a}. XEmacs users need to be aware | |
7509 that the abbreviated form works only for one-character key sequences, | |
7510 while Emacs users need to be aware that the string-character is rather | |
7511 limited. Specifically, the string-character can accommodate only 256 | |
7512 different values, 128 of which have the Meta modifier and 128 of which | |
7513 have not. In each of these blocks, only 32 characters have the Control | |
7514 modifier. Whereas @code{[(meta control A)]} differs from @code{[(meta | |
7515 control a)]} because the case differs, @samp{\M-\C-a} and @samp{\M-\C-A} | |
7516 do not. Programmers are advised to use the full common form, both | |
7517 because it is more readable and less error-prone, and because it is | |
7518 supported by both Emacsen. | |
7519 @end quotation | |
7520 | |
7521 Another (even safer) way to be sure of the key-sequences is to use the | |
7522 @code{read-kbd-macro} function, which takes a string like @samp{C-c | |
7523 <up>}, and converts it to the internal key representation of the Emacs | |
7524 you use. The function is available both on XEmacs and GNU Emacs. | |
7525 | |
2537 | 7526 @node Q7.1.2, Q7.1.3, Q7.1.1, Advanced |
7527 @unnumberedsubsec Q7.1.2: Can I generate "fake" keyboard events? | |
2459 | 7528 |
7529 I wonder if there is an interactive function that can generate | |
7530 @dfn{fake} keyboard events. This way, I could simply map them inside | |
7531 XEmacs. | |
7532 | |
7533 This seems to work: | |
7534 | |
7535 @lisp | |
7536 (defun cg--generate-char-event (ch) | |
7537 "Generate an event, as if ch has been typed" | |
7538 (dispatch-event (character-to-event ch))) | |
7539 | |
7540 ;; Backspace and Delete stuff | |
7541 (global-set-key [backspace] | |
7542 (lambda () (interactive) (cg--generate-char-event 127))) | |
7543 (global-set-key [unknown_keysym_0x4] | |
7544 (lambda () (interactive) (cg--generate-char-event 4))) | |
7545 @end lisp | |
7546 | |
2537 | 7547 @node Q7.1.3, Q7.1.4, Q7.1.2, Advanced |
7548 @unnumberedsubsec Q7.1.3: Could you explain @code{read-kbd-macro} in more detail? | |
2459 | 7549 |
7550 The @code{read-kbd-macro} function returns the internal Emacs | |
7551 representation of a human-readable string (which is its argument). | |
7552 Thus: | |
7553 | |
7554 @lisp | |
7555 (read-kbd-macro "C-c C-a") | |
7556 @result{} [(control ?c) (control ?a)] | |
7557 | |
7558 (read-kbd-macro "C-c C-. <up>") | |
7559 @result{} [(control ?c) (control ?.) up] | |
7560 @end lisp | |
7561 | |
7562 In GNU Emacs the same forms will be evaluated to what GNU Emacs | |
7563 understands internally---the sequences @code{"\C-x\C-c"} and @code{[3 | |
7564 67108910 up]}, respectively. | |
7565 | |
7566 The exact @dfn{human-readable} syntax is defined in the docstring of | |
7567 @code{edmacro-mode}. I'll repeat it here, for completeness. | |
7568 | |
7569 @quotation | |
7570 Format of keyboard macros during editing: | |
7571 | |
7572 Text is divided into @dfn{words} separated by whitespace. Except for | |
7573 the words described below, the characters of each word go directly as | |
7574 characters of the macro. The whitespace that separates words is | |
7575 ignored. Whitespace in the macro must be written explicitly, as in | |
7576 @kbd{foo @key{SPC} bar @key{RET}}. | |
7577 | |
7578 @itemize @bullet | |
7579 @item | |
7580 The special words @kbd{RET}, @kbd{SPC}, @kbd{TAB}, @kbd{DEL}, @kbd{LFD}, | |
7581 @kbd{ESC}, and @kbd{NUL} represent special control characters. The | |
7582 words must be written in uppercase. | |
7583 | |
7584 @item | |
7585 A word in angle brackets, e.g., @code{<return>}, @code{<down>}, or | |
7586 @code{<f1>}, represents a function key. (Note that in the standard | |
7587 configuration, the function key @code{<return>} and the control key | |
7588 @key{RET} are synonymous.) You can use angle brackets on the words | |
7589 @key{RET}, @key{SPC}, etc., but they are not required there. | |
7590 | |
7591 @item | |
7592 Keys can be written by their @sc{ascii} code, using a backslash followed | |
7593 by up to six octal digits. This is the only way to represent keys with | |
7594 codes above \377. | |
7595 | |
7596 @item | |
7597 One or more prefixes @kbd{M-} (meta), @kbd{C-} (control), @kbd{S-} | |
7598 (shift), @kbd{A-} (alt), @kbd{H-} (hyper), and @kbd{s-} (super) may | |
7599 precede a character or key notation. For function keys, the prefixes | |
7600 may go inside or outside of the brackets: @code{C-<down>} @equiv{} | |
7601 @code{<C-down>}. The prefixes may be written in any order: @kbd{M-C-x} | |
7602 @equiv{} @kbd{C-M-x}. | |
7603 | |
7604 Prefixes are not allowed on multi-key words, e.g., @kbd{C-abc}, except | |
7605 that the Meta prefix is allowed on a sequence of digits and optional | |
7606 minus sign: @kbd{M--123} @equiv{} @kbd{M-- M-1 M-2 M-3}. | |
7607 | |
7608 @item | |
7609 The @code{^} notation for control characters also works: @kbd{^M} | |
7610 @equiv{} @kbd{C-m}. | |
7611 | |
7612 @item | |
7613 Double angle brackets enclose command names: @code{<<next-line>>} is | |
7614 shorthand for @kbd{M-x next-line @key{RET}}. | |
7615 | |
7616 @item | |
7617 Finally, @code{REM} or @code{;;} causes the rest of the line to be | |
7618 ignored as a comment. | |
7619 @end itemize | |
7620 | |
7621 Any word may be prefixed by a multiplier in the form of a decimal number | |
7622 and @code{*}: @code{3*<right>} @equiv{} @code{<right> <right> <right>}, | |
7623 and @code{10*foo} @equiv{} | |
7624 @iftex | |
7625 @* | |
7626 @end iftex | |
7627 @code{foofoofoofoofoofoofoofoofoofoo}. | |
7628 | |
7629 Multiple text keys can normally be strung together to form a word, but | |
7630 you may need to add whitespace if the word would look like one of the | |
7631 above notations: @code{; ; ;} is a keyboard macro with three semicolons, | |
7632 but @code{;;;} is a comment. Likewise, @code{\ 1 2 3} is four keys but | |
7633 @code{\123} is a single key written in octal, and @code{< right >} is | |
7634 seven keys but @code{<right>} is a single function key. When in doubt, | |
7635 use whitespace. | |
7636 @end quotation | |
7637 | |
2537 | 7638 @node Q7.1.4, Q7.1.5, Q7.1.3, Advanced |
7639 @unnumberedsubsec Q7.1.4: What is the performance hit of @code{let}? | |
2459 | 7640 |
7641 In most cases, not noticeable. Besides, there's no avoiding | |
7642 @code{let}---you have to bind your local variables, after all. Some | |
7643 pose a question whether to nest @code{let}s, or use one @code{let} per | |
7644 function. I think because of clarity and maintenance (and possible | |
7645 future implementation), @code{let}-s should be used (nested) in a way to | |
7646 provide the clearest code. | |
7647 | |
2537 | 7648 @node Q7.1.5, Q7.1.6, Q7.1.4, Advanced |
7649 @unnumberedsubsec Q7.1.5: What is the recommended use of @code{setq}? | |
2459 | 7650 |
7651 @itemize @bullet | |
7652 @item Global variables | |
7653 | |
7654 You will typically @code{defvar} your global variable to a default | |
7655 value, and use @code{setq} to set it later. | |
7656 | |
7657 It is never a good practice to @code{setq} user variables (like | |
7658 @code{case-fold-search}, etc.), as it ignores the user's choice | |
7659 unconditionally. Note that @code{defvar} doesn't change the value of a | |
7660 variable if it was bound previously. If you wish to change a | |
7661 user-variable temporarily, use @code{let}: | |
7662 | |
7663 @lisp | |
7664 (let ((case-fold-search nil)) | |
7665 ... ; code with searches that must be case-sensitive | |
7666 ...) | |
7667 @end lisp | |
7668 | |
7669 You will notice the user-variables by their docstrings beginning with an | |
7670 asterisk (a convention). | |
7671 | |
7672 @item Local variables | |
7673 | |
7674 Bind them with @code{let}, which will unbind them (or restore their | |
7675 previous value, if they were bound) after exiting from the @code{let} | |
7676 form. Change the value of local variables with @code{setq} or whatever | |
7677 you like (e.g. @code{incf}, @code{setf} and such). The @code{let} form | |
7678 can even return one of its local variables. | |
7679 | |
7680 Typical usage: | |
7681 | |
7682 @lisp | |
7683 ;; iterate through the elements of the list returned by | |
7684 ;; `hairy-function-that-returns-list' | |
7685 (let ((l (hairy-function-that-returns-list))) | |
7686 (while l | |
7687 ... do something with (car l) ... | |
7688 (setq l (cdr l)))) | |
7689 @end lisp | |
7690 | |
7691 Another typical usage includes building a value simply to work with it. | |
7692 | |
7693 @lisp | |
7694 ;; Build the mode keymap out of the key-translation-alist | |
7695 (let ((inbox (file-truename (expand-file-name box))) | |
7696 (i 0)) | |
7697 ... code dealing with inbox ... | |
7698 inbox) | |
7699 @end lisp | |
7700 | |
7701 This piece of code uses the local variable @code{inbox}, which becomes | |
7702 unbound (or regains old value) after exiting the form. The form also | |
7703 returns the value of @code{inbox}, which can be reused, for instance: | |
7704 | |
7705 @lisp | |
7706 (setq foo-processed-inbox | |
7707 (let .....)) | |
7708 @end lisp | |
7709 @end itemize | |
7710 | |
2537 | 7711 @node Q7.1.6, Q7.1.7, Q7.1.5, Advanced |
7712 @unnumberedsubsec Q7.1.6: What is the typical misuse of @code{setq}? | |
2459 | 7713 |
7714 A typical misuse is probably @code{setq}ing a variable that was meant to | |
7715 be local. Such a variable will remain bound forever, never to be | |
7716 garbage-collected. For example, the code doing: | |
7717 | |
7718 @lisp | |
7719 (defun my-function (whatever) | |
7720 (setq a nil) | |
7721 ... build a large list ... | |
7722 ... and exit ...) | |
7723 @end lisp | |
7724 | |
7725 does a bad thing, as @code{a} will keep consuming memory, never to be | |
7726 unbound. The correct thing is to do it like this: | |
7727 | |
7728 @lisp | |
7729 (defun my-function (whatever) | |
7730 (let (a) ; default initialization is to nil | |
7731 ... build a large list ... | |
7732 ... and exit, unbinding `a' in the process ...) | |
7733 @end lisp | |
7734 | |
7735 Not only is this prettier syntactically, but it makes it possible for | |
7736 Emacs to garbage-collect the objects which @code{a} used to reference. | |
7737 | |
7738 Note that even global variables should not be @code{setq}ed without | |
7739 @code{defvar}ing them first, because the byte-compiler issues warnings. | |
7740 The reason for the warning is the following: | |
7741 | |
7742 @lisp | |
7743 (defun flurgoze nil) ; ok, global internal variable | |
7744 ... | |
7745 | |
7746 (setq flurghoze t) ; ops! a typo, but semantically correct. | |
7747 ; however, the byte-compiler warns. | |
7748 | |
7749 While compiling toplevel forms: | |
7750 ** assignment to free variable flurghoze | |
7751 @end lisp | |
7752 | |
2537 | 7753 @node Q7.1.7, Q7.1.8, Q7.1.6, Advanced |
7754 @unnumberedsubsec Q7.1.7: I like the @code{do} form of cl, does it slow things down? | |
2459 | 7755 |
7756 It shouldn't. Here is what Dave Gillespie has to say about cl.el | |
7757 performance: | |
7758 | |
7759 @quotation | |
7760 Many of the advanced features of this package, such as @code{defun*}, | |
7761 @code{loop}, and @code{setf}, are implemented as Lisp macros. In | |
7762 byte-compiled code, these complex notations will be expanded into | |
7763 equivalent Lisp code which is simple and efficient. For example, the | |
7764 forms | |
7765 | |
7766 @lisp | |
7767 (incf i n) | |
7768 (push x (car p)) | |
7769 @end lisp | |
7770 | |
7771 are expanded at compile-time to the Lisp forms | |
7772 | |
7773 @lisp | |
7774 (setq i (+ i n)) | |
7775 (setcar p (cons x (car p))) | |
7776 @end lisp | |
7777 | |
7778 which are the most efficient ways of doing these respective operations | |
7779 in Lisp. Thus, there is no performance penalty for using the more | |
7780 readable @code{incf} and @code{push} forms in your compiled code. | |
7781 | |
7782 @emph{Interpreted} code, on the other hand, must expand these macros | |
7783 every time they are executed. For this reason it is strongly | |
4905
755ae5b97edb
Change "special form" to "special operator" in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4759
diff
changeset
|
7784 recommended that code making heavy use of macros be compiled. A loop |
755ae5b97edb
Change "special form" to "special operator" in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4759
diff
changeset
|
7785 using @code{incf} a hundred times will execute considerably faster if |
755ae5b97edb
Change "special form" to "special operator" in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4759
diff
changeset
|
7786 compiled, and will also garbage-collect less because the macro expansion |
755ae5b97edb
Change "special form" to "special operator" in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4759
diff
changeset
|
7787 will not have to be generated, used, and thrown away a hundred times. |
2459 | 7788 |
7789 You can find out how a macro expands by using the @code{cl-prettyexpand} | |
7790 function. | |
7791 @end quotation | |
7792 | |
2537 | 7793 @node Q7.1.8, Q7.1.9, Q7.1.7, Advanced |
7794 @unnumberedsubsec Q7.1.8: I like recursion, does it slow things down? | |
2459 | 7795 |
7796 Yes. The Emacs byte-compiler cannot do much to optimize recursion. But | |
7797 think well whether this is a real concern in Emacs. Much of the Emacs | |
7798 slowness comes from internal mechanisms such as redisplay, or from the | |
7799 fact that it is an interpreter. | |
7800 | |
7801 Please try not to make your code much uglier to gain a very small speed | |
7802 gain. It's not usually worth it. | |
7803 | |
2537 | 7804 @node Q7.1.9, Q7.1.10, Q7.1.8, Advanced |
7805 @unnumberedsubsec Q7.1.9: How do I put a glyph as annotation in a buffer? | |
2459 | 7806 |
7807 Here is a solution that will insert the glyph annotation at the | |
7808 beginning of buffer: | |
7809 | |
7810 @lisp | |
7811 (make-annotation (make-glyph '([FORMAT :file FILE] | |
7812 [string :data "fallback-text"])) | |
7813 (point-min) | |
7814 'text | |
7815 (current-buffer)) | |
7816 @end lisp | |
7817 | |
7818 Replace @samp{FORMAT} with an unquoted symbol representing the format of | |
7819 the image (e.g. @code{xpm}, @code{xbm}, @code{gif}, @code{jpeg}, etc.) | |
7820 Instead of @samp{FILE}, use the image file name | |
7821 (e.g. | |
7822 @iftex | |
7823 @* | |
7824 @end iftex | |
7825 @file{/usr/local/lib/xemacs-21.4/etc/recycle.xpm}). | |
7826 | |
7827 You can turn this to a function (that optionally prompts you for a file | |
7828 name), and inserts the glyph at @code{(point)} instead of | |
7829 @code{(point-min)}. | |
7830 | |
2537 | 7831 @node Q7.1.10, Q7.1.11, Q7.1.9, Advanced |
7832 @unnumberedsubsec Q7.1.10: @code{map-extents} won't traverse all of my extents! | |
2459 | 7833 |
7834 I tried to use @code{map-extents} to do an operation on all the extents | |
7835 in a region. However, it seems to quit after processing a random number | |
7836 of extents. Is it buggy? | |
7837 | |
7838 No. The documentation of @code{map-extents} states that it will iterate | |
7839 across the extents as long as @var{function} returns @code{nil}. | |
7840 Unexperienced programmers often forget to return @code{nil} explicitly, | |
7841 which results in buggy code. For instance, the following code is | |
7842 supposed to delete all the extents in a buffer, and issue as many | |
7843 @samp{fubar!} messages. | |
7844 | |
7845 @lisp | |
7846 (map-extents (lambda (ext ignore) | |
7847 (delete-extent ext) | |
7848 (message "fubar!"))) | |
7849 @end lisp | |
7850 | |
7851 Instead, it will delete only the first extent, and stop right there -- | |
7852 because @code{message} will return a non-nil value. The correct code | |
7853 is: | |
7854 | |
7855 @lisp | |
7856 (map-extents (lambda (ext ignore) | |
7857 (delete-extent ext) | |
7858 (message "fubar!") | |
7859 nil)) | |
7860 @end lisp | |
7861 | |
2537 | 7862 @node Q7.1.11, Q7.2.1, Q7.1.10, Advanced |
7863 @unnumberedsubsec Q7.1.11: My elisp program is horribly slow. Is there an easy way to find out where it spends time? | |
2459 | 7864 @c New |
7865 | |
7866 @email{hniksic@@xemacs.org, Hrvoje Niksic} writes: | |
7867 @quotation | |
7868 Under XEmacs 20.4 and later you can use @kbd{M-x profile-key-sequence}, | |
7869 press a key (say @key{RET} in the Gnus Group buffer), and get the | |
7870 results using @kbd{M-x profile-results}. It should give you an idea of | |
7871 where the time is being spent. | |
7872 @end quotation | |
7873 | |
2537 | 7874 @unnumberedsec 7.2: Mathematics |
7875 | |
7876 @node Q7.2.1, Q7.2.2, Q7.1.11, Advanced | |
7877 @unnumberedsubsec Q7.2.1: What are bignums, ratios, and bigfloats in Lisp? | |
2459 | 7878 |
7879 Thanks to @email{james@@xemacs.org, Jerry James}, XEmacs 21.5.18 and | |
7880 later can use the capabilities of multiple-precision libraries that may | |
7881 be available for your platform. The GNU Multiple Precision (GMP) and | |
7882 BSD Multiple Precision (MP) libraries are partially supported. GMP | |
7883 gives you @dfn{bignums} (arbitrary precision integers), @dfn{ratios} | |
7884 (arbitrary precision fractions), and @dfn{bigfloats} (arbitrary | |
7885 precision floating point numbers). GNU MP is better-supported by XEmacs | |
7886 at the time of writing (2004-04-06). BSD MP support does not include | |
7887 ratios or bigfloats, and it throws errors that aren't understood. | |
7888 | |
7889 In most cases, bignum support should be transparent to users and Lisp | |
7890 programmers. A bignum-enabled XEmacs will automatically convert from | |
7891 fixnums to bignums and back in pure integer arithmetic, and for GNU MP, | |
7892 from floats to bigfloats. (Bigfloats must be explicitly coerced to | |
7893 other types, even if they are exactly representable by less precise | |
7894 types.) The Lisp reader and printer have been enhanced to handle | |
7895 bignums, as have the mathematical functions. Rationals (fixnums, | |
7896 bignums, and ratios) are printed using the @samp{%d}, @samp{%o}, | |
7897 @samp{%x}, and @samp{%u} format conversions. The read syntax for ratios | |
7898 is @samp{3/5}. | |
7899 | |
7900 User-visible changes in behavior include (in probable order of annoyance) | |
7901 | |
7902 @itemize | |
7903 @item | |
7904 Arithmetic can cause a segfault, depending on your MP library | |
2537 | 7905 @ref{Q7.2.2, XEmacs segfaults when I use very big numbers!}. |
2459 | 7906 |
7907 @item | |
7908 Terminology is not Common-Lisp-conforming. For example, ``integer'' for | |
7909 Emacs Lisp means what Common Lisp calls ``fixnum''. This issue is being | |
7910 investigated, but the use of ``integer'' for fixnum is pervasive and may | |
7911 cause backward-compatibility and GNU-Emacs-compatibility problems. | |
7912 | |
7913 @item | |
7914 Many operations that used to cause a range error now succeed, with | |
7915 intermediate results and return values coerced to bignums as needed. | |
7916 | |
7917 @item | |
7918 An atom with ratio read syntax now returns a number, not a symbol. | |
7919 | |
7920 @item | |
7921 The @samp{%u} format conversion will now give an error if its argument | |
7922 is negative. (Without MP, it prints a number which Lisp can't read.) | |
7923 @end itemize | |
7924 | |
7925 @emph{Surgeon General's Warning}: The automatic conversions cannot be | |
7926 disabled at runtime. New functions have been added which produce | |
7927 ratios, so there should be few surprises with type conflicts, but they | |
7928 can't be ruled out. ``Arbitrary'' precision means precisely what it | |
7929 says. If you work with extremely large numbers, your machine may | |
7930 arbitrarily decide to hand you an unpleasant surprise rather than a | |
2537 | 7931 bignum @ref{Q7.2.2, XEmacs segfaults when I use very big numbers!}. |
2459 | 7932 |
3018 | 7933 To configure with GNU MP, add @samp{--use-number-lib=gmp} |
7934 (@samp{--enable-bignum=gmp} in 21.5 or later) to your invocation of | |
7935 @file{configure}. For BSD MP, use @samp{--use-number-lib=mp} | |
7936 (@samp{--enable-bignum=mp} for 21.5). | |
2459 | 7937 |
7938 If you would like to help with bignum support, especially on BSD MP, | |
7939 please subscribe to the @uref{http://www.xemacs.org/Lists/#xemacs-beta, | |
7940 XEmacs Beta mailing list}, and book up on @file{number-gmp.h} and | |
7941 @file{number-mp.h}. Jerry has promised to write internals documentation | |
7942 eventually, but if your skills run more to analysis and documentation | |
7943 than to writing new code, feel free to fill in the gap! | |
7944 | |
7945 | |
2537 | 7946 @node Q7.2.2, Q7.2.3, Q7.2.1, Advanced |
7947 @unnumberedsubsec Q7.2.2: XEmacs segfaults when I use very big numbers! | |
2459 | 7948 |
7949 GMP by default allocates temporaries on the stack. If you run out of | |
7950 stack space, you're dead; there is no way that we know of to reliably | |
7951 detect this condition, because @samp{alloca} is typically implemented to | |
7952 be @emph{fast} rather than robust. If you just need a little more | |
7953 oomph, use a bigger stack (@emph{e.g.}, the @file{ulimit -s} command in | |
7954 bash(1)). If you want robustness at the cost of speed, configure GMP | |
7955 with @samp{--disable-alloca} and rebuild the GMP library. | |
7956 | |
7957 We do not know whether BSD MP uses @samp{alloca} or not. Please send | |
7958 any information you have as a bug report (@kbd{M-x report-xemacs-bug | |
7959 @key{RET}}), which will give us platform information. (We do know that | |
7960 BSD MP implementations vary across vendors, but how much, we do not know | |
7961 yet.) | |
7962 | |
7963 | |
2537 | 7964 @node Q7.2.3, Q7.2.4, Q7.2.2, Advanced |
7965 @unnumberedsubsec Q7.2.3: Bignums are really slow! | |
2459 | 7966 |
7967 Many Linux distributions compile all their packages for the i386, and | |
7968 this is costly. An optimized version can give you two or three orders | |
7969 of magnitude better performance for a Pentium III or IV. (Yes, really. | |
7970 See @uref{http://www.swox.com/gmp/gmp-speed.html}.) | |
7971 | |
7972 | |
2537 | 7973 @node Q7.2.4, , Q7.2.3, Advanced |
7974 @unnumberedsubsec Q7.2.4: Equal bignums don't compare as equal! What gives? | |
2459 | 7975 |
7976 Ah, Grasshopper, I see you are using @code{(eq x y)}. The Bodhisattva | |
7977 CLTL2 warned of the illusion that equal numbers would be @samp{eq}! | |
7978 Meditate on the deeper truths of @samp{eql}, in which numbers of the same | |
7979 type which have equal values compare equal, and @samp{=}, which does any | |
7980 necessary type coercions before comparing for equality. | |
7981 | |
7982 Yeah, yeah, it has always worked for integer types, because fixnums and | |
7983 characters have an immediate representation. Sorry about that; | |
7984 arbitrary precision obviously requires consing new objects because the | |
7985 objects are ``large'' and of variable size, and the definition of | |
7986 @samp{eq} does not permit different objects to compare as equal. | |
7987 | |
7988 @node Other Packages, Current Events, Advanced, Top | |
7989 @unnumbered 8 Other External Packages | |
7990 | |
7991 This is part 8 of the XEmacs Frequently Asked Questions list. This | |
7992 section is devoted to miscellaneous external packages not covered | |
7993 elsewhere in XEmacs. | |
7994 | |
7995 @menu | |
2537 | 7996 8.0: TeX |
2459 | 7997 * Q8.0.1:: Is there something better than LaTeX mode? |
7998 * Q8.0.2:: What is AUCTeX? Where do you get it? | |
7999 * Q8.0.3:: Problems installing AUCTeX. | |
8000 * Q8.0.4:: How do I turn off current chapter from AUCTeX modeline? | |
8001 | |
8002 8.1: Other Unbundled Packages | |
8003 * Q8.1.1:: Is there a reason for an Emacs package not to be included in XEmacs? | |
8004 * Q8.1.2:: Are there any Emacs Lisp Spreadsheets? | |
8005 * Q8.1.3:: Is there a MatLab mode? | |
8006 | |
8007 8.2: Environments Built Around XEmacs | |
8008 * Q8.2.1:: What are SPARCworks, EOS, and WorkShop? | |
8009 * Q8.2.2:: How do I start the Sun Workshop support in XEmacs 21? | |
8010 * Q8.2.3:: What is/was Energize? | |
8011 * Q8.2.4:: What is Infodock? | |
8012 @end menu | |
8013 | |
8014 @unnumberedsec 8.0: TeX | |
8015 | |
8016 @node Q8.0.1, Q8.0.2, Other Packages, Other Packages | |
8017 @unnumberedsubsec Q8.0.1: Is there something better than LaTeX mode? | |
2417 | 8018 |
8019 @email{dak@@fsnif.neuroinformatik.ruhr-uni-bochum.de, David Kastrup} writes: | |
8020 | |
8021 @quotation | |
8022 The standard TeX modes leave much to be desired, and are somewhat | |
2459 | 8023 leniently maintained. Serious TeX users use AUCTeX (@pxref{Q8.0.2, |
2417 | 8024 What is AUCTeX? Where do you get it?}). |
8025 @end quotation | |
8026 | |
2459 | 8027 @node Q8.0.2, Q8.0.3, Q8.0.1, Other Packages |
8028 @unnumberedsubsec Q8.0.2: What is AUCTeX? Where do you get it? | |
2417 | 8029 |
8030 AUCTeX is a complex and sophisticated editing package dedicated to TeX | |
8031 and related text formatting languages, including LaTeX and Texinfo. | |
8032 It provides support for running TeX on a file or part of a file, | |
8033 include files, and of course shortcuts for entering common TeX macros, | |
8034 LaTeX environments, etc, and for fontlock. | |
8035 | |
8036 AUCTeX is a standard package provided by XEmacs. You can get it as | |
8037 usual through the @kbd{M-x list-packages} interface. It is also | |
8038 included in the (non-Mule) SUMO package. The AUCTeX XEmacs package is | |
8039 maintained by Uwe Brauer <GET MAIL ADDRESS>. | |
8040 | |
8041 AUCTeX is extremely complicated, and its developers primarily | |
8042 use GNU Emacs. Not all features of the bleeding edge version | |
8043 of AUCTeX are immediately ported to XEmacs; if you need | |
8044 these, you may be better off getting the most recent versions | |
8045 from the GNU AUCTeX project on @uref{http://savannah.gnu.org}. | |
8046 | |
2459 | 8047 @node Q8.0.3, Q8.0.4, Q8.0.2, Other Packages |
8048 @unnumberedsubsec Q8.0.3: Problems installing AUCTeX. | |
2417 | 8049 |
8050 @email{vroonhof@@math.ethz.ch, Jan Vroonhof} writes: | |
8051 | |
8052 @quotation | |
8053 AUCTeX works fine on both stock Emacs and XEmacs has been doing so for | |
8054 a very very long time. This is mostly due to the work of | |
8055 @email{abraham@@dina.kvl.dk, Per Abrahamsen} (clap clap) in particular his @file{easymenu} | |
8056 package. Which leads to what is probably the problem... | |
8057 @end quotation | |
8058 | |
8059 Most problems with AUCTeX are one of two things: | |
8060 | |
8061 @itemize @bullet | |
8062 @item | |
8063 The TeX-lisp-directory in @file{tex-site.el} and the makefile don't | |
8064 match. | |
8065 | |
8066 Fix: make sure you configure AUCTeX properly @strong{before} installing. | |
8067 | |
8068 @item | |
8069 You have an old version of easymenu.el in your path. | |
8070 | |
8071 Fix: use @code{locate-library} and remove old versions to make sure it | |
8072 @strong{only} finds the one that came with XEmacs. | |
8073 @end itemize | |
8074 | |
2459 | 8075 @node Q8.0.4, Q8.1.1, Q8.0.3, Other Packages |
8076 @unnumberedsubsec Q8.0.4: How do I turn off current chapter from AUCTeX modeline? | |
2417 | 8077 |
8078 With AUCTeX, fast typing is hard because the current chapter, section | |
8079 etc. are given in the modeline. How can I turn this off? | |
8080 | |
8081 It's not AUCTeX, it comes from @code{func-menu} in @file{func-menu.el}. | |
8082 | |
8083 @c Add this code to your @file{init.el} to turn it off: | |
8084 @c | |
8085 @c @lisp | |
8086 @c (setq fume-display-in-modeline-p nil) | |
8087 @c @end lisp | |
8088 @c | |
8089 @c Or just add a hook to @code{TeX-mode-hook} to turn it off only for TeX | |
8090 @c mode: | |
8091 @c | |
8092 @c @lisp | |
8093 @c (add-hook 'TeX-mode-hook | |
8094 @c '(lambda () (setq fume-display-in-modeline-p nil))) | |
8095 @c @end lisp | |
8096 @c | |
8097 @email{dhughes@@origin-at.co.uk, David Hughes} writes: | |
8098 | |
8099 @quotation | |
8100 Try this; you'll still get the function name displayed in the modeline, | |
8101 but it won't attempt to keep track when you modify the file. To refresh | |
8102 when it gets out of synch, you simply need click on the @samp{Rescan | |
8103 Buffer} option in the function-menu. | |
8104 | |
8105 @lisp | |
8106 (setq-default fume-auto-rescan-buffer-p nil) | |
8107 @end lisp | |
8108 @end quotation | |
8109 | |
2459 | 8110 @unnumberedsec 8.1: Other Unbundled Packages |
8111 | |
8112 @node Q8.1.1, Q8.1.2, Q8.0.4, Other Packages | |
8113 @unnumberedsubsec Q8.1.1: Is there a reason for an Emacs package not to be included in XEmacs? | |
2417 | 8114 |
8115 The reason for an Emacs package not to be included in XEmacs is | |
8116 usually one or more of the following: | |
8117 | |
8118 @enumerate | |
8119 @item | |
8120 The package has not been ported to XEmacs. This will typically happen | |
8121 when it uses GNU-Emacs-specific features, which make it fail under | |
8122 XEmacs. | |
8123 | |
8124 Porting a package to XEmacs can range from a trivial amount of change to | |
8125 a partial or full rewrite. Fortunately, the authors of modern packages | |
8126 usually choose to support both Emacsen themselves. | |
8127 | |
8128 @item | |
8129 The package has been decided not to be appropriate for XEmacs. It may | |
8130 have an equivalent or better replacement within XEmacs, in which case | |
8131 the developers may choose not to burden themselves with supporting an | |
8132 additional package. | |
8133 | |
8134 Each package bundled with XEmacs means more work for the maintainers, | |
8135 whether they want it or not. If you are ready to take over the | |
8136 maintenance responsibilities for the package you port, be sure to say | |
8137 so---we will more likely include it. | |
8138 | |
8139 @item | |
8140 The package simply hasn't been noted by the XEmacs development. If | |
8141 that's the case, the messages like yours are very useful for attracting | |
8142 our attention. | |
8143 | |
8144 @item | |
8145 The package was noted by the developers, but they simply haven't yet | |
8146 gotten around to including/porting it. Wait for the next release or, | |
8147 even better, offer your help. It will be gladly accepted and | |
8148 appreciated. | |
8149 @end enumerate | |
8150 | |
2459 | 8151 @node Q8.1.2, Q8.1.3, Q8.1.1, Other Packages |
8152 @unnumberedsubsec Q8.1.2: Are there any Emacs Lisp Spreadsheets? | |
2417 | 8153 |
8154 Yes. Check out @dfn{dismal} (which stands for Dis' Mode Ain't Lotus) at | |
428 | 8155 @iftex |
8156 @* | |
8157 @end iftex | |
2459 | 8158 @uref{http://acs.ist.psu.edu/dismal/dismal.html}. |
8159 | |
8160 @node Q8.1.3, Q8.2.1, Q8.1.2, Other Packages | |
8161 @unnumberedsubsec Q8.1.3: Is there a MatLab mode? | |
2417 | 8162 |
8163 Yes, a matlab mode and other items are available at the | |
2459 | 8164 @uref{http://www.mathworks.com/matlabcentral/files/104/matlab.el}. |
8165 | |
8166 @unnumberedsec 8.2: Environments Built Around XEmacs | |
8167 | |
8168 @node Q8.2.1, Q8.2.2, Q8.1.3, Other Packages | |
8169 @unnumberedsubsec Q8.2.1: What are SPARCworks, EOS, and WorkShop? | |
2417 | 8170 |
8171 SPARCworks was a development environment from Sun (circa 1993-1996) | |
8172 and consisted of compilers (C, C++, FORTRAN 77, Fortran 90, Ada, and | |
8173 Pascal), a debugger, and other tools such as TeamWare (for | |
8174 configuration management), MakeTool, etc. | |
428 | 8175 |
8176 EOS is the integration of XEmacs with the SPARCworks debugger. It | |
8177 allows one to use an XEmacs frame to view code (complete with | |
8178 fontification, etc.), set breakpoints, print variables, etc., while | |
2417 | 8179 using the SPARCworks debugger. |
8180 | |
8181 EOS stands for "Era on SPARCworks"; Era stood for "Emacs Rewritten | |
8182 Again" and was the name used by Sun for its modified version of Lucid | |
8183 Emacs (later XEmacs) in the early-mid 90's. This is documented in | |
8184 more detail in the history section of the XEmacs About page. | |
8185 | |
8186 EOS was replaced around 1996 with a newer graphical development | |
8187 environment called Sun WorkShop. The current status of this is | |
8188 unknown. | |
8189 | |
2459 | 8190 @node Q8.2.2, Q8.2.3, Q8.2.1, Other Packages |
8191 @unnumberedsubsec Q8.2.2: How do I start the Sun Workshop support in XEmacs 21? | |
428 | 8192 |
8193 Add the switch ---with-workshop to the configure command when building | |
8194 XEmacs and put the following in one of your startup files | |
8195 (e.g. site-start.el or .emacs): | |
8196 | |
8197 @lisp | |
8198 (when (featurep 'tooltalk) | |
8199 (load "tooltalk-macros") | |
8200 (load "tooltalk-util") | |
8201 (load "tooltalk-init")) | |
8202 (when (featurep 'sparcworks) | |
8203 (load "sunpro-init") | |
8204 (load "ring") | |
8205 (load "comint") | |
8206 (load "annotations") | |
8207 (sunpro-startup)) | |
8208 @end lisp | |
8209 | |
8210 If you are not using the latest Workshop (5.0) you have to apply the | |
8211 following patch: | |
8212 | |
8213 @format | |
8214 --- /opt/SUNWspro/lib/eserve.el.ORIG Fri May 14 15:23:26 1999 | |
8215 +++ /opt/SUNWspro/lib/eserve.el Fri May 14 15:24:54 1999 | |
8216 @@@@ -42,7 +42,7 @@@@ | |
8217 (defvar running-xemacs nil "t if we're running XEmacs") | |
8218 (defvar running-emacs nil "t if we're running GNU Emacs 19") | |
438 | 8219 |
428 | 8220 -(if (string-match "^\\(19\\|20\\)\..*\\(XEmacs\\|Lucid\\)" emacs-version) |
8221 +(if (string-match "\\(XEmacs\\|Lucid\\)" emacs-version) | |
8222 (setq running-xemacs t) | |
8223 (setq running-emacs t)) | |
438 | 8224 @end format |
428 | 8225 |
2459 | 8226 @node Q8.2.3, Q8.2.4, Q8.2.2, Other Packages |
8227 @unnumberedsubsec Q8.2.3: What is/was Energize? | |
2417 | 8228 |
8229 The "Energize Programming System" was a C and C++ development environment | |
8230 sold by Lucid, Inc. It was the reason why Lucid Emacs, now XEmacs, was | |
8231 created in the first place. Unfortunately, Lucid went out of business in | |
8232 1994. The rights to sell it in Japan were purchased by INS | |
8233 Engineering (which briefly employed Stig Hackvan aka Jonathan | |
8234 Stigelman to work on Japanese support for XEmacs, in late 1994 and | |
8235 early 1995) and Tartan bought the rights to sell it in the rest of the | |
8236 world. However, INS is not selling Energize at this point and may or | |
8237 may not have ever done so; Tartan certainly never did. | |
8238 | |
2459 | 8239 @node Q8.2.4, , Q8.2.3, Other Packages |
8240 @unnumberedsubsec Q8.2.4: What is Infodock? | |
428 | 8241 |
660 | 8242 @uref{http://sourceforge.net/projects/infodock/, InfoDock} is an |
8243 integrated productivity toolset, mainly aimed at technical people, | |
8244 hosted at SourceForge. | |
428 | 8245 |
8246 InfoDock is built atop the XEmacs variant of GNU Emacs and so has all of | |
8247 the power of Emacs, but with an easier to use and more comprehensive | |
8248 menu-based user interface. The bottom portion of this text describes | |
8249 how it differs from XEmacs and GNU Emacs from the Free Software | |
8250 Foundation. | |
8251 | |
8252 InfoDock is aimed at people who want a free, turn-key productivity | |
8253 environment. Although InfoDock is customizable, it is not intended for | |
8254 people who like basic versions of Emacs which need to be customized | |
8255 extensively for local use; standard Emacs distributions are better for | |
8256 such uses. InfoDock is for those people who want a complete, | |
8257 pre-customized environment in one package, which they need not touch | |
8258 more than once or twice a year to update to new revisions. | |
8259 | |
8260 InfoDock is pre-built for SPARC SunOS/Solaris systems, PA-RISC HP-UX, | |
8261 and Intel Linux systems. It is intended for use on a color display, | |
8262 although most features will work on monochrome monitors. Simply unpack | |
8263 InfoDock according to the instructions in the ID-INSTALL file and you | |
8264 are ready to run. | |
8265 | |
8266 The InfoDock Manual is concise, yet sufficient as a user guide for users | |
8267 who have never used an Emacs-type editor before. For users who are | |
8268 already familiar with Emacs, it supplements the information in the GNU | |
8269 Emacs Manual. | |
8270 | |
8271 InfoDock menus are much more extensive and more mature than standard | |
8272 Emacs menus. Each menu offers a @samp{Manual} item which displays | |
8273 documentation associated with the menu's functions. | |
8274 | |
8275 @noindent | |
8276 Four types of menubars are provided: | |
8277 @enumerate | |
8278 @item | |
8279 An extensive menubar providing access to global InfoDock commands. | |
8280 @item | |
8281 Mode-specific menubars tailored to the current major mode. | |
8282 @item | |
8283 A simple menubar for basic editing to help novices get started with InfoDock. | |
8284 @item | |
8285 The standard XEmacs menubar. | |
8286 @end enumerate | |
8287 | |
8288 Most modes also include mode-specific popup menus. Additionally, region and | |
8289 rectangle popup menus are included. | |
8290 | |
8291 @samp{Hyperbole}, the everyday information manager, is a core part of | |
8292 InfoDock. This provides context-sensitive mouse keys, a rolodex-type | |
8293 contact manager, programmable hypertext buttons, and an autonumbered | |
8294 outliner with embedded hyperlink anchors. | |
8295 | |
8296 The @samp{OO-Browser}, a multi-language object-oriented code browser, is a | |
8297 standard part of InfoDock. | |
8298 | |
8299 InfoDock saves a more extensive set of user options than other Emacs | |
8300 versions. | |
8301 | |
8302 InfoDock inserts a useful file header in many file types, showing the | |
8303 author, summary, and last modification time of each file. A summary | |
8304 program can then be used to summarize all of the files in a directory, | |
8305 for easy MANIFEST file creation. | |
8306 | |
8307 Your working set of buffers is automatically saved and restored (if you | |
8308 answer yes to a prompt) between InfoDock sessions. | |
8309 | |
8310 Refined color choices for code highlighting are provided for both dark and | |
8311 light background display frames. | |
8312 | |
8313 The @kbd{C-z} key prefix performs frame-based commands which parallel the | |
8314 @kbd{C-x} key prefix for window-based commands. | |
8315 | |
8316 The Smart Menu system is included for producing command menus on dumb | |
8317 terminals. | |
8318 | |
8319 Lisp libraries are better categorized according to function. | |
8320 | |
8321 Extensions and improvements to many areas of Emacs are included, such as: | |
8322 paragraph filling, mail reading with Rmail, shell handling, outlining, code | |
8323 highlighting and browsing, and man page browsing. | |
8324 | |
8325 InfoDock questions, answers and discussion should go to the mail list | |
8326 @iftex | |
8327 @* | |
8328 @end iftex | |
8329 @email{infodock@@infodock.com}. Use | |
8330 @email{infodock-request@@infodock.com} to be added or removed from the | |
8331 list. Always include your InfoDock version number when sending help | |
8332 requests. | |
8333 | |
2459 | 8334 @node Current Events, Legacy Versions, Other Packages, Top |
8335 @unnumbered 9 What the Future Holds | |
8336 | |
8337 This is part 9 of the XEmacs Frequently Asked Questions list. This | |
611 | 8338 section will change frequently, and (in theory) should contain any |
8339 interesting items that have transpired recently. (But in practice it's | |
8340 not getting updated like this.) | |
8341 | |
8342 This section also contains descriptions of the new features in all the | |
8343 recent releases of XEmacs. For the most part, the information below is | |
8344 a synopsis of the more complete information that can be found in the | |
8345 file @file{NEWS} in the @file{etc} directory of the XEmacs distribution. | |
8346 You can view this file in XEmacs using @kbd{C-h n} or the @samp{Help} | |
8347 menu. | |
8348 | |
8349 Information on older versions of XEmacs can be find in @file{ONEWS} in | |
8350 the same directory, or @file{OONEWS} for really old versions. | |
8351 | |
428 | 8352 @menu |
2537 | 8353 9.0: Changes |
2459 | 8354 * Q9.0.1:: What new features will be in XEmacs soon? |
8355 * Q9.0.2:: What's new in XEmacs 21.4? | |
8356 * Q9.0.3:: What's new in XEmacs 21.1? | |
8357 * Q9.0.4:: What's new in XEmacs 20.4? | |
8358 * Q9.0.5:: What's new in XEmacs 20.3? | |
8359 * Q9.0.6:: What's new in XEmacs 20.2? | |
428 | 8360 @end menu |
8361 | |
2459 | 8362 @unnumberedsec 9.0: Changes |
8363 | |
8364 @node Q9.0.1, Q9.0.2, Current Events, Current Events | |
8365 @unnumberedsubsec Q9.0.1: What new features will be in XEmacs soon? | |
611 | 8366 |
2417 | 8367 #### Write me. |
428 | 8368 |
2459 | 8369 @node Q9.0.2, Q9.0.3, Q9.0.1, Current Events |
8370 @unnumberedsubsec Q9.0.2: What's new in XEmacs 21.4? | |
611 | 8371 |
8372 21.4 was the "stable" version of the 21.2 series, which was considered | |
8373 "experimental" throughout its life; thus there were no "official" | |
8374 releases at all. In essence, XEmacs is now following the "alternating" | |
8375 scheme of Linux, where at any point there are at least two different | |
8376 development branches, one "stable" and one "experimental". Periodic | |
8377 releases happen in both branches, but those in the experimental branch | |
8378 are not tested as well, and there's no guarantee they will work at all. | |
4311 | 8379 The experimental branch is open to any and all code that's acceptable |
611 | 8380 to the developers; the stable branch, however, is in general limited |
8381 only to bug fixes, and all contributions are carefully reviewed to make | |
8382 sure they will increase and not decrease stability. | |
8383 | |
8384 21.3 never existed at all; it was decided to follow the Linux scheme | |
8385 exactly, where odd-numbered series are experimental and even-numbered | |
8386 ones stable. | |
8387 | |
8388 The following lists summarizes the essential changes made in this | |
8389 version. For a fuller list, see the @file{NEWS} in the @file{etc} | |
8390 directory of the XEmacs distribution, or use @kbd{C-h n} or the | |
8391 @samp{Help} menu to view this file inside of XEmacs. | |
8392 | |
676 | 8393 @unnumberedsubsubsec User-visible changes in XEmacs 21.4 |
611 | 8394 |
8395 @itemize @bullet | |
8396 | |
8397 @item | |
8398 The delete key now deletes forward by default. | |
8399 @item | |
8400 Shifted motion keys now select text by default. | |
8401 @item | |
8402 You can now build XEmacs with support for GTK+ widget set. | |
8403 @item | |
8404 ~/.xemacs/init.el is now the preferred location for the init | |
8405 file. (XEmacs now supports a `~/.xemacs/init.el' startup file. Custom | |
8406 file will move to ~/.xemacs/custom.el.) | |
8407 @item | |
8408 Much-improved sample init.el, showing how to use many useful features. | |
8409 @item | |
8410 XEmacs support for menu accelerators has been much improved. | |
8411 @item | |
8412 Default menubar improvements. (Default menubar has many new commands and | |
8413 better organization. The font-menu is now available under MS Windows.) | |
8414 @item | |
2417 | 8415 Dialog box improvements, including a real file dialog box. (XEmacs now |
8416 has a proper file dialog box under MS Windows (and GTK)! The old | |
8417 clunky file dialog box is improved. Keyboard traversal now works | |
8418 correctly in MS Windows dialog boxes. There is a Search dialog box | |
8419 available from @samp{Edit->Find...}) | |
611 | 8420 @item |
8421 New buffer tabs. | |
8422 @item | |
8423 There is a new MS Windows installer, netinstall, ported from Cygwin. | |
8424 @item | |
8425 The subprocess quote-handling mechanism under Windows is much improved. | |
8426 @item | |
8427 Printing support now available under MS Windows. | |
8428 @item | |
8429 Selection improvements. (Kill and yank now interact with the clipboard under Windows. MS Windows support for selection is now much more robust. Motif selection support is now more correct (but slower).) | |
8430 @item | |
8431 Mail spool locking now works correctly. | |
8432 @item | |
8433 International support changes. (The default coding-priority-list is now | |
8434 safer. International keysyms are now supported under X. MS Windows | |
8435 1251 code page now supported. Czech, Thai, Cyrillic-KOI8, Vietnamese, | |
8436 Ethiopic now supported. Proper support for words in Latin 3 and Latin | |
8437 4.) | |
8438 @item | |
8439 Help buffers contain hyperlinks, and other changes. | |
8440 @item | |
8441 The modeline's text is now scrollable. | |
8442 @item | |
8443 The mouse wheel under MS Windows now functions correctly. | |
8444 @item | |
8445 Interactive searching and matching case improvements. (Incremental search will now highlight all visible matches. Interactive searches always respect uppercase characters.) | |
8446 @item | |
8447 Rectangle functions rewritten to avoid inserting extra spaces. | |
8448 @item | |
8449 New command `kill-entire-line' that always kills the entire line. | |
8450 @item | |
8451 Default values correctly stored in minibuffer histories. | |
8452 @item | |
8453 You can now create "indirect buffers", like in GNU Emacs. | |
8454 @item | |
8455 Pixel-based scrolling has been implemented. | |
8456 @item | |
8457 Operation progress can be displayed using graphical widgets. | |
8458 @item | |
8459 User names following a tilde can now be completed at file name prompts. | |
8460 @item | |
8461 XEmacs can now play sound using Enlightenment Sound Daemon (ESD). | |
8462 @item | |
8463 X-Face support is now available under MS Windows. | |
8464 @item | |
8465 The PostgreSQL Relational Database Management System is now supported. | |
8466 @item | |
8467 Indentation no longer indents comments that begin at column zero. | |
8468 @item | |
8469 Face and variable settings can have comments in Customize. | |
8470 @item | |
8471 New locations for early package hierarchies. | |
8472 @item | |
8473 The `auto-save' library has been greatly improved. | |
8474 @item | |
8475 New variable `mswindows-alt-by-itself-activates-menu'. | |
8476 @item | |
8477 Other init-file-related changes. (Init file in your home directory may be called `.emacs.el'. New command-line switches -user-init-file and -user-init-directory.) | |
8478 @item | |
8479 Etags changes. See @file{NEWS} for full details. | |
8480 @end itemize | |
8481 | |
676 | 8482 @unnumberedsubsubsec Lisp and internal changes in XEmacs 21.4 |
611 | 8483 |
8484 Not yet written. | |
8485 | |
661 | 8486 @c APA: Texi2html produces invalid HTML from an empty list of bullets! |
8487 @c Please uncomment following list when it does contain bullets. | |
8488 @c @itemize @bullet | |
8489 @c @end itemize | |
611 | 8490 |
2459 | 8491 @node Q9.0.3, Q9.0.4, Q9.0.2, Current Events |
8492 @unnumberedsubsec Q9.0.3: What's new in XEmacs 21.1? | |
611 | 8493 |
8494 21.1 was the "stable" version of "experimental" 21.0 series. | |
2459 | 8495 @xref{Q9.0.2, What's new in XEmacs 21.4?}. |
611 | 8496 |
8497 The following lists summarizes the essential changes made in this | |
8498 version. For a fuller list, see the @file{NEWS} in the @file{etc} | |
8499 directory of the XEmacs distribution, or use @kbd{C-h n} or the | |
8500 @samp{Help} menu to view this file inside of XEmacs. | |
8501 | |
676 | 8502 @unnumberedsubsubsec User-visible changes in XEmacs 21.1 |
611 | 8503 |
8504 @itemize @bullet | |
8505 | |
8506 @item | |
2459 | 8507 XEmacs is now supported under Microsoft Windows 95/98 and Windows |
2417 | 8508 NT/2000/XP operating systems. To discuss Windows-specific issues, |
8509 subscribe to the mailing list at | |
8510 @email{xemacs-winnt-request@@xemacs.org}. | |
611 | 8511 |
8512 @item | |
8513 XEmacs has been unbundled into constituent installable packages. | |
8514 | |
8515 @item | |
8516 @strong{Other notable changes}: The @samp{Options} menu has been ported to | |
8517 Custom; XEmacs now is able to choose X visuals and use private | |
8518 colormaps; You can drag the vertical divider of "horizontally" | |
8519 (side-by-side) split windows. | |
8520 | |
8521 @item | |
8522 @strong{Building changes}: XEmacs can be built with support for 31-bit Lisp | |
8523 integers and 32-bit pointers (previously, it was 28-bit integers and | |
8524 pointers); XEmacs can be built with LDAP support; @file{dir} files can be | |
8525 removed in the Info subsystem, and will be regenerated on-the-fly. | |
8526 | |
8527 @item | |
8528 @strong{New packages}: @file{imenu}, @file{popper}, @file{gdb-highlight} | |
8529 | |
8530 @item | |
8531 @strong{Package changes}: Many changes to @file{cc-mode}, @file{gnus}, | |
8532 @file{gnuclient}. See @file{NEWS} for full details. | |
8533 | |
8534 @item | |
8535 @strong{New commands, variables and functions}: | |
8536 @code{center-to-window-line} (like @code{recenter} but doesn't force a | |
8537 redisplay); variable @code{user-full-name} (customize what your full | |
8538 name looks like in mail); @kbd{M-x customize-changed-options} (customize | |
8539 options whose default values changes because you upgraded your XEmacs); | |
8540 @kbd{M-x add-log-convert} (converts an old-style ChangeLog buffer to | |
8541 new-style); @kbd{M-x zap-up-to-char} (like @code{zap-to-char} but | |
8542 doesn't delete the char searched for); commands to store, retrieve and | |
8543 increment numbers in registers, useful for macros. | |
8544 | |
8545 @item | |
8546 @strong{Changes to commands, variables, and functions}: @kbd{M-x | |
8547 query-replace} and friends operate only on the region when it's active; | |
8548 @code{echo-keystrokes} can now be a floating-point number; @kbd{M-.} | |
8549 searches exact tag matches before inexact ones; function | |
8550 @code{user-full-name} with no arguments returns the var | |
8551 @code{user-full-name}; a prefix arg to @kbd{M-:} and @kbd{C-h c} inserts | |
8552 the result in the current buffer. | |
1138 | 8553 |
611 | 8554 @item |
8555 @strong{Other changes}: Under X, new application class @samp{XEmacs}; | |
8556 byte-compilation of user-specs now works. | |
8557 | |
8558 @item | |
8559 @strong{XEmacs/Mule (internationalization) changes}: Mule support now | |
8560 works on TTY's; Egg/SJ3 input method now officially supported (Quail and | |
8561 Egg/Skk already available through LEIM since 20.3); localized Japanese | |
8562 menubars if XEmacs is built with the right support. | |
8563 | |
8564 @end itemize | |
8565 | |
676 | 8566 @unnumberedsubsubsec Lisp and internal changes in XEmacs 21.1 |
611 | 8567 |
8568 @itemize @bullet | |
8569 | |
8570 @item | |
8571 @strong{Specifier changes}: The window locale now has a higher | |
8572 precedence than the buffer locale when instantiating; new macro | |
8573 @code{let-specifier}; new specifiers | |
8574 @code{vertical-scrollbar-visible-p}, horizontal-scrollbar-visible-p', | |
8575 @code{scrollbar-on-left-p}, @code{scrollbar-on-top-p}, | |
8576 @code{vertical-divider-always-visible-p}, | |
8577 @code{vertical-divider-shadow-thickness}, | |
8578 @code{vertical-divider-line-width}, @code{vertical-divider-spacing}; | |
8579 specifiers and symbols whose value is a specifier allowed as modeline | |
8580 specifications. | |
8581 | |
8582 @item | |
8583 @strong{Frame focus changes}: @code{focus-follows-mouse} works like FSF, | |
8584 prevents any attempt to permanently change the selected frame; new | |
8585 function @code{focus-frame} sets the window system focus a frame; new | |
4905
755ae5b97edb
Change "special form" to "special operator" in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4759
diff
changeset
|
8586 macros @code{save-selected-frame} and @code{with-selected-frame}. |
611 | 8587 |
8588 @item | |
8589 @strong{Window function changes}: @code{select-window} now has optional | |
8590 argument @var{NORECORD} to inhibit recording a buffer change; | |
8591 @code{vertical-motion} now correctly handles optional @var{WINDOW} | |
8592 argument and has new optional argument @var{PIXELS}, to have the | |
8593 returned values be in pixels; new function | |
8594 @code{vertical-motion-pixels}; new functions | |
8595 @code{window-text-area-pixel-@{width,height,edges@}}; new functions | |
8596 @code{shrink-window-pixels} and @code{enlarge-window-pixels}; new | |
8597 function @code{window-displayed-text-pixel-height}. | |
8598 | |
8599 @item | |
8600 @strong{Other function changes}: Arithmetic comparison functions | |
8601 @code{<}, @code{>}, @code{=}, @code{/=} now accept a variable number of | |
8602 arguments; hashtables now have a consistent read/print syntax; keyword | |
8603 symbols cannot be set to a value other than themselves; @code{concat} no | |
8604 longer accepts integer arguments; new function @code{string}, like | |
8605 @code{list}, @code{vector}, etc.; new function @code{temp-directory} | |
8606 (OS-independent way to get a temp directory); @code{load-average} has | |
8607 optional argument @var{USE-FLOATS}; @code{make-event} implemented | |
8608 completely; new function @code{function-interactive} (returns a | |
8609 function's interactive spec); new functions @code{lmessage}, | |
8610 @code{lwarn} (printf-like versions of @code{display-wessage}, | |
8611 @code{display-warning}); new keyword @code{:version} to | |
8612 @code{defcustom}. | |
8613 | |
8614 @item | |
8615 @strong{Performance}: when the new GNU Malloc aka Doug Lea Malloc is | |
8616 available, it will be used (better performance on libc6 Linux systems); | |
8617 tracking line-numbers in modeline is now efficient; profiling records a | |
8618 call-count of all called functions, retrievable through | |
8619 @code{profile-call-count-results}. | |
8620 | |
8621 @item | |
8622 @strong{Startup and path searching}: code to assemble paths at startup | |
8623 rewritten for new package system; new function @code{split-path} (splits | |
8624 by @code{path-separator}); @code{Info-default-directory-list} obsolete, | |
8625 use @code{Info-directory-list} instead; site-lisp is deprecated and no | |
8626 longer on the load-path by default. | |
8627 | |
8628 @end itemize | |
8629 | |
2459 | 8630 @node Q9.0.4, Q9.0.5, Q9.0.3, Current Events |
8631 @unnumberedsubsec Q9.0.4: What's new in XEmacs 20.4? | |
611 | 8632 |
8633 XEmacs 20.4 is a bugfix release with no user-visible changes. | |
8634 @c Filled in from NEWS file of 20.5-b33 | |
8635 | |
2459 | 8636 @node Q9.0.5, Q9.0.6, Q9.0.4, Current Events |
8637 @unnumberedsubsec Q9.0.5: What's new in XEmacs 20.3? | |
428 | 8638 |
8639 XEmacs 20.3 was released in November 1997. It contains many bugfixes, | |
8640 and a number of new features, including Autoconf 2 based configuration, | |
8641 additional support for Mule (Multi-language extensions to Emacs), many | |
8642 more customizations, multiple frames on TTY-s, support for multiple info | |
8643 directories, an enhanced gnuclient, improvements to regexp matching, | |
8644 increased MIME support, and many, many synches with GNU Emacs 20. | |
8645 | |
8646 The XEmacs/Mule support has been only seriously tested in a Japanese | |
8647 locale, and no doubt many problems still remain. The support for | |
8648 ISO-Latin-1 and Japanese is fairly strong. MULE support comes at a | |
440 | 8649 price---about a 30% slowdown from 19.16. We're making progress on |
428 | 8650 improving performance and XEmacs 20.3 compiled without Mule (which is |
8651 the default) is definitely faster than XEmacs 19.16. | |
8652 | |
8653 XEmacs 20.3 is the first non-beta v20 release, and will be the | |
8654 basis for all further development. | |
8655 | |
2459 | 8656 @node Q9.0.6, , Q9.0.5, Current Events |
8657 @unnumberedsubsec Q9.0.6: What's new in XEmacs 20.2? | |
611 | 8658 |
8659 The biggest changes in 20.2 include integration of EFS (the next | |
8660 generation of ange-ftp) and AUC Tex (the Emacs subsystem that includes a | |
8661 major mode for editing Tex and LaTeX, and a lot of other stuff). Many | |
8662 bugs from 20.0 have been fixed for this release. 20.2 also contains a | |
8663 new system for customizing XEmacs options, invoked via @kbd{M-x | |
8664 customize}. | |
8665 | |
8666 XEmacs 20.2 is the development release (20.0 was beta), and is no longer | |
8667 considered unstable. | |
8668 | |
8669 For older news, see the file @file{ONEWS} in the @file{etc} directory of | |
8670 the XEmacs distribution. | |
428 | 8671 |
2417 | 8672 @node Legacy Versions, , Current Events, Top |
2459 | 8673 @unnumbered 10 New information about old XEmacsen |
8674 | |
8675 This is part 10 of the XEmacs Frequently Asked Questions list. It will | |
1495 | 8676 occasionally be updated to reflect new information about versions which |
8677 are no longer being revised by the XEmacs Project. The primary purpose | |
8678 is advice on compatibility of older XEmacsen with new packages and | |
8679 updated versions of packages, but bug fixes (which will not be applied | |
8680 to released XEmacsen, but users can apply themselves) are also accepted. | |
8681 | |
8682 @menu | |
2537 | 8683 10.0: XEmacs 21.1 |
2459 | 8684 * Q10.0.1:: Gnus 5.10 won't display smileys in XEmacs 21.1. |
2559 | 8685 * Q10.0.2:: XEmacs won't start on Windows in XEmacs 21.1. |
1495 | 8686 @end menu |
8687 | |
2459 | 8688 @unnumberedsec 10.0: XEmacs 21.1 |
8689 | |
2559 | 8690 @node Q10.0.1, Q10.0.2, Legacy Versions, Legacy Versions |
2459 | 8691 @unnumberedsubsec Q10.0.1: Gnus 5.10 won't display smileys in XEmacs 21.1. |
1495 | 8692 |
8693 @email{eeide@@cs.utah.edu, Eric Eide} wrote: | |
8694 | |
8695 @quotation | |
8696 Previously I wrote: | |
8697 | |
8698 Eric> Summary: with Gnus 5.10.1 in XEmacs 21.1.14, I don't see | |
8699 Eric> any smileys :-(. | |
8700 | |
8701 After a bit of sleuthing, I discovered the essence of the problem. | |
8702 For me, the form: | |
8703 | |
8704 @lisp | |
8705 (with-temp-buffer | |
8706 (insert-file-contents "foo.xpm") | |
8707 (buffer-string)) | |
8708 @end lisp | |
8709 | |
8710 returns the empty string. This is because something somewhere | |
8711 replaces the XPM data with a glyph --- I haven't figured out where | |
8712 this occurs. | |
8713 @end quotation | |
8714 | |
8715 @email{kyle_jones@@wonderworks.com, Kyle Jones} replies: | |
8716 | |
8717 @quotation | |
8718 Do this: | |
8719 | |
8720 @lisp | |
8721 (setq format-alist nil) | |
8722 @end lisp | |
8723 | |
8724 The image-mode stuff is gone from format-alist in the 21.4 | |
8725 branch, praise be. | |
8726 @end quotation | |
8727 | |
2559 | 8728 @node Q10.0.2, , Q10.0.1, Legacy Versions |
8729 @unnumberedsubsec Q10.0.2: XEmacs won't start on Windows in XEmacs 21.1. | |
8730 | |
8731 XEmacs relies on a process called "dumping" to generate a working | |
8732 executable. Under MS-Windows this process effectively fixes the memory | |
8733 addresses of information in the executable. When XEmacs starts up it tries | |
8734 to reserve these memory addresses so that the dumping process can be | |
8735 reversed -- putting the information back at the correct addresses. | |
8736 Unfortunately some .DLLs (for instance the soundblaster driver) occupy | |
8737 memory addresses that can conflict with those needed by the dumped XEmacs | |
8738 executable. In this instance XEmacs will fail to start without any | |
8739 explanation. Note that this is extremely machine specific. | |
8740 | |
8741 21.1.10 includes a fix for this that makes more intelligent guesses | |
8742 about which memory addresses will be free, and this should cure the | |
8743 problem for most people. 21.4 implements "portable dumping", which | |
8744 eliminates the problem altogether. We recommend you use the 21.4 | |
8745 binaries, but you can use the 21.1 binaries if you are very paranoid | |
8746 about stability. @xref{Q1.1.2, Are binaries available?}. | |
8747 | |
428 | 8748 @bye |