Sync with r21-2-26.
[chise/xemacs-chise.git-] / info / xemacs-faq.info-4
1 This is Info file ../info/xemacs-faq.info, produced by Makeinfo version
2 1.68 from the input file xemacs-faq.texi.
3
4 INFO-DIR-SECTION XEmacs Editor
5 START-INFO-DIR-ENTRY
6 * FAQ: (xemacs-faq).            XEmacs FAQ.
7 END-INFO-DIR-ENTRY
8
9 \1f
10 File: xemacs-faq.info,  Node: Q3.10.1,  Next: Q3.10.2,  Prev: Q3.9.4,  Up: Customization
11
12 3.10: Text Selections
13 =====================
14
15 Q3.10.1: How can I turn off or change highlighted selections?
16 -------------------------------------------------------------
17
18    The `zmacs' mode allows for what some might call gratuitous
19 highlighting for selected regions (either by setting mark or by using
20 the mouse).  This is the default behavior.  To turn off, add the
21 following line to your `.emacs' file:
22
23      (setq zmacs-regions nil)
24
25    Starting with XEmacs-20.2 you can also change this with Customize.
26 Select from the `Options' menu `Customize->Emacs->Editing->Basics->Zmacs
27 Regions' or type `M-x customize <RET> editing-basics <RET>'.
28
29    To change the face for selection, look at `Options->Customize' on
30 the menubar.
31
32 \1f
33 File: xemacs-faq.info,  Node: Q3.10.2,  Next: Q3.10.3,  Prev: Q3.10.1,  Up: Customization
34
35 Q3.10.2: How do I get that typing on an active region removes it?
36 -----------------------------------------------------------------
37
38    I want to change things so that if I select some text and start
39 typing, the typed text replaces the selected text, similar to Motif.
40
41    You want to use something called "pending delete".  Pending delete
42 is what happens when you select a region (with the mouse or keyboard)
43 and you press a key to replace the selected region by the key you typed.
44 Usually backspace kills the selected region.
45
46    To get this behavior, add the following line to your `.emacs':
47
48      (turn-on-pending-delete)
49
50    Note that this will work with both Backspace and Delete.
51
52 \1f
53 File: xemacs-faq.info,  Node: Q3.10.3,  Next: Q3.10.4,  Prev: Q3.10.2,  Up: Customization
54
55 Q3.10.3: Can I turn off the highlight during isearch?
56 -----------------------------------------------------
57
58    I do not like my text highlighted while I am doing isearch as I am
59 not able to see what's underneath.  How do I turn it off?
60
61    Put the following in your `.emacs':
62
63      (setq isearch-highlight nil)
64
65    Starting with XEmacs-20.2 you can also change this with Customize.
66 Type `M-x customize-variable <RET> isearch-highlight <RET>'.
67
68    Note also that isearch-highlight affects query-replace and ispell.
69 Instead of disabling isearch-highlight you may find that a better
70 solution consists of customizing the `isearch' face.
71
72 \1f
73 File: xemacs-faq.info,  Node: Q3.10.4,  Next: Q3.10.5,  Prev: Q3.10.3,  Up: Customization
74
75 Q3.10.4: How do I turn off highlighting after `C-x C-p' (mark-page)?
76 --------------------------------------------------------------------
77
78    Put this in your `.emacs':
79
80      (setq zmacs-regions nil)
81
82    *Warning: This command turns off all region highlighting.*
83
84    Also *Note Q3.10.1::.
85
86 \1f
87 File: xemacs-faq.info,  Node: Q3.10.5,  Prev: Q3.10.4,  Up: Customization
88
89 Q3.10.5: The region disappears when I hit the end of buffer while scrolling.
90 ----------------------------------------------------------------------------
91
92    This has been fixed by default starting with XEmacs-20.3.
93
94    With older versions you can turn this feature (if it indeed is a
95 feature) off like this:
96
97      (defadvice scroll-up (around scroll-up freeze)
98        (interactive "_P")
99        (let ((zmacs-region-stays t))
100          (if (interactive-p)
101         (condition-case nil
102             ad-do-it
103           (end-of-buffer (goto-char (point-max))))
104            ad-do-it)))
105      
106      (defadvice scroll-down (around scroll-down freeze)
107        (interactive "_P")
108        (let ((zmacs-region-stays t))
109          (if (interactive-p)
110         (condition-case nil
111             ad-do-it
112           (beginning-of-buffer (goto-char (point-min))))
113            ad-do-it)))
114
115    Thanks to T. V. Raman <raman@adobe.com> for assistance in deriving
116 this answer.
117
118 \1f
119 File: xemacs-faq.info,  Node: Subsystems,  Next: Miscellaneous,  Prev: Customization,  Up: Top
120
121 4 Major Subsystems
122 ******************
123
124    This is part 4 of the XEmacs Frequently Asked Questions list.  This
125 section is devoted to major XEmacs subsystems.
126
127 * Menu:
128
129 Reading Mail with VM:
130 * Q4.0.1::      How do I set up VM to retrieve remote mail using POP?
131 * Q4.0.2::      How do I get VM to filter mail for me?
132 * Q4.0.3::      How can I get VM to automatically check for new mail?
133 * Q4.0.4::      [This question intentionally left blank]
134 * Q4.0.5::      How do I get my outgoing mail archived?
135 * Q4.0.6::      I have various addresses at which I receive mail.  How can I tell VM to ignore them when doing a "reply-all"?
136 * Q4.0.7::      Is there a mailing list or FAQ for VM?
137 * Q4.0.8::      Remote mail reading with VM.
138 * Q4.0.9::      rmail or VM gets an error incorporating new mail.
139 * Q4.0.10::     How do I make VM stay in a single frame?
140 * Q4.0.11::     How do I make VM or mh-e display graphical smilies?
141 * Q4.0.12::     Customization of VM not covered in the manual or here.
142
143 Web browsing with W3:
144 * Q4.1.1::      What is W3?
145 * Q4.1.2::      How do I run W3 from behind a firewall?
146 * Q4.1.3::      Is it true that W3 supports style sheets and tables?
147
148 Reading Netnews and Mail with Gnus:
149 * Q4.2.1::      GNUS, (ding) Gnus, Gnus 5, September Gnus, Red Gnus,argh!
150 * Q4.2.2::      [This question intentionally left blank]
151 * Q4.2.3::      How do I make Gnus stay within a single frame?
152 * Q4.2.4::      How do I customize the From: line?
153
154 Other Mail & News:
155 * Q4.3.1::      How can I read and/or compose MIME messages?
156 * Q4.3.2::      What is TM and where do I get it?
157 * Q4.3.3::      Why isn't this `movemail' program working?
158 * Q4.3.4::      Movemail is also distributed by Netscape?  Can that cause problems?
159 * Q4.3.5::      Where do I find pstogif (required by tm)?
160
161 Sparcworks, EOS, and WorkShop:
162 * Q4.4.1::      What is SPARCworks, EOS, and WorkShop
163 * Q4.4.2::      How do I start the Sun Workshop support in XEmacs 21?
164
165 Energize:
166 * Q4.5.1::      What is/was Energize?
167
168 Infodock:
169 * Q4.6.1::      What is Infodock?
170
171 Other Unbundled Packages:
172 * Q4.7.1::      What is AUC TeX?  Where do you get it?
173 * Q4.7.2::      Are there any Emacs Lisp Spreadsheets?
174 * Q4.7.3::      Byte compiling AUC TeX on XEmacs 19.14
175 * Q4.7.4::      Problems installing AUC TeX
176 * Q4.7.5::      Is there a reason for an Emacs package not to be included in XEmacs?
177 * Q4.7.6::      Is there a MatLab mode?
178
179 \1f
180 File: xemacs-faq.info,  Node: Q4.0.1,  Next: Q4.0.2,  Prev: Subsystems,  Up: Subsystems
181
182 4.0: Reading Mail with VM
183 =========================
184
185 Q4.0.1: How do I set up VM to retrieve mail from a remote site using POP?
186 -------------------------------------------------------------------------
187
188    Use `vm-spool-files', like this for example:
189
190      (setq vm-spool-files '("/var/spool/mail/wing"
191                             "netcom23.netcom.com:110:pass:wing:MYPASS"))
192
193    Of course substitute your actual password for MYPASS.
194
195 \1f
196 File: xemacs-faq.info,  Node: Q4.0.2,  Next: Q4.0.3,  Prev: Q4.0.1,  Up: Subsystems
197
198 Q4.0.2: How do I get VM to filter mail for me?
199 ----------------------------------------------
200
201    One possibility is to use procmail to split your mail before it gets
202 to VM.  I prefer this personally, since there are many strange and
203 wonderful things one can do with procmail.  Procmail may be found at
204 `ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/'.
205
206    Also see the Mail Filtering FAQ at:
207 `ftp://rtfm.mit.edu/pub/usenet/news.answers/mail/filtering-faq'.
208
209 \1f
210 File: xemacs-faq.info,  Node: Q4.0.3,  Next: Q4.0.4,  Prev: Q4.0.2,  Up: Subsystems
211
212 Q4.0.3: How can I get VM to automatically check for new mail?
213 -------------------------------------------------------------
214
215    John Turner <turner@lanl.gov> writes:
216
217      Use the following:
218
219           (setq vm-auto-get-new-mail 60)
220
221 \1f
222 File: xemacs-faq.info,  Node: Q4.0.4,  Next: Q4.0.5,  Prev: Q4.0.3,  Up: Subsystems
223
224 Q4.0.4: [This question intentionally left blank]
225 ------------------------------------------------
226
227    Obsolete question, left blank to avoid renumbering.
228
229 \1f
230 File: xemacs-faq.info,  Node: Q4.0.5,  Next: Q4.0.6,  Prev: Q4.0.4,  Up: Subsystems
231
232 Q4.0.5: How do I get my outgoing mail archived?
233 -----------------------------------------------
234
235      (setq mail-archive-file-name "~/outbox")
236
237 \1f
238 File: xemacs-faq.info,  Node: Q4.0.6,  Next: Q4.0.7,  Prev: Q4.0.5,  Up: Subsystems
239
240 Q4.0.6: I have various addresses at which I receive mail.  How can I tell VM to ignore them when doing a "reply-all"?
241 ---------------------------------------------------------------------------------------------------------------------
242
243    Set `vm-reply-ignored-addresses' to a list, like
244
245      (setq vm-reply-ignored-addresses
246            '("wing@nuspl@nvwls.cc.purdue.edu,netcom[0-9]*.netcom.com"
247         "wing@netcom.com" "wing@xemacs.org"))
248
249    Note that each string is a regular expression.
250
251 \1f
252 File: xemacs-faq.info,  Node: Q4.0.7,  Next: Q4.0.8,  Prev: Q4.0.6,  Up: Subsystems
253
254 Q4.0.7: Is there a mailing list or FAQ for VM?
255 ----------------------------------------------
256
257    A FAQ for VM exists at `http://www.cyberpass.net/~gorkab/vmfaq.htm'.
258
259    VM has its own newsgroups gnu.emacs.vm.info and gnu.emacs.vm.bug.
260
261 \1f
262 File: xemacs-faq.info,  Node: Q4.0.8,  Next: Q4.0.9,  Prev: Q4.0.7,  Up: Subsystems
263
264 Q4.0.8: Remote mail reading with VM.
265 ------------------------------------
266
267    My mailbox lives at the office on a big honkin server.  My regular
268 INBOX lives on my honkin desktop machine.  I now can PPP to the office
269 from home which is far from honking...  I'd like to be able to read
270 mail at home without storing it here and I'd like to use xemacs and VM
271 at home...  Is there a recommended setup?
272
273    Joseph J. Nuspl Jr. <nuspl@nvwls.cc.purdue.edu> writes:
274
275      There are several ways to do this.
276
277        1. Set your display to your home machine and run dxpc or one of
278           the other X compressors.
279
280        2. NFS mount your desktop machine on your home machine and
281           modify your pop command on your home machine to rsh to your
282           desktop machine and actually do the pop get's.
283
284        3. Run a POP server on your desktop machine as well and do a
285           sort of two tiered POP get.
286
287    William Perry <wmperry@monolith.spry.com> adds:
288
289      Or you could run a pop script periodically on your desktop
290      machine, and just use ange-ftp or NFS to get to your mailbox.  I
291      used to do this all the time back at IU.
292
293 \1f
294 File: xemacs-faq.info,  Node: Q4.0.9,  Next: Q4.0.10,  Prev: Q4.0.8,  Up: Subsystems
295
296 Q4.0.9: rmail or VM gets an error incorporating new mail.
297 ---------------------------------------------------------
298
299    Quoting the XEmacs PROBLEMS file:
300
301      rmail and VM get new mail from `/usr/spool/mail/$USER' using a
302      program called `movemail'.  This program interlocks with
303      `/bin/mail' using the protocol defined by `/bin/mail'.
304
305      There are two different protocols in general use.  One of them
306      uses the `flock' system call.  The other involves creating a lock
307      file; `movemail' must be able to write in `/usr/spool/mail' in
308      order to do this.  You control which one is used by defining, or
309      not defining, the macro `MAIL_USE_FLOCK' in `config.h' or the m-
310      or s- file it includes.
311
312      *IF YOU DON'T USE THE FORM OF INTERLOCKING THAT IS NORMAL ON YOUR
313      SYSTEM, YOU CAN LOSE MAIL!*
314
315      If your system uses the lock file protocol, and fascist
316      restrictions prevent ordinary users from writing the lock files in
317      `/usr/spool/mail', you may need to make `movemail' setgid to a
318      suitable group such as `mail'.  You can use these commands (as
319      root):
320
321           chgrp mail movemail
322           chmod 2755 movemail
323
324      If your system uses the lock file protocol, and fascist
325      restrictions prevent ordinary users from writing the lock files in
326      `/usr/spool/mail', you may need to make `movemail' setgid to a
327      suitable group such as `mail'.  To do this, use the following
328      commands (as root) after doing the make install.
329
330           chgrp mail movemail
331           chmod 2755 movemail
332
333      Installation normally copies movemail from the build directory to
334      an installation directory which is usually under `/usr/local/lib'.
335      The installed copy of `movemail' is usually in the directory
336      `/usr/local/lib/emacs/VERSION/TARGET'.  You must change the group
337      and mode of the installed copy; changing the group and mode of the
338      build directory copy is ineffective.
339
340 \1f
341 File: xemacs-faq.info,  Node: Q4.0.10,  Next: Q4.0.11,  Prev: Q4.0.9,  Up: Subsystems
342
343 Q4.0.10: How do I make VM stay in a single frame?
344 -------------------------------------------------
345
346    John.John S Cooper <Cooper@Eng.Sun.COM> writes:
347
348                                                 ; Don't use multiple frames
349           (setq vm-frame-per-composition nil)
350           (setq vm-frame-per-folder nil)
351           (setq vm-frame-per-edit nil)
352           (setq vm-frame-per-summary nil)
353
354 \1f
355 File: xemacs-faq.info,  Node: Q4.0.11,  Next: Q4.0.12,  Prev: Q4.0.10,  Up: Subsystems
356
357 Q4.0.11: How do I make VM or mh-e display graphical smilies?
358 ------------------------------------------------------------
359
360    For mh-e use the following:
361
362      (add-hook 'mh-show-mode-hook '(lambda ()
363                                 (smiley-region (point-min)
364                                                     (point-max))))
365
366    WJCarpenter <bill@carpenter.ORG> writes: For VM use the following:
367             (autoload 'smiley-region "smiley" nil t)
368             (add-hook 'vm-select-message-hook
369                       '(lambda ()
370                          (smiley-region (point-min)
371                                         (point-max))))
372
373    For tm use the following:
374      (autoload 'smiley-buffer "smiley" nil t)
375      (add-hook 'mime-viewer/plain-text-preview-hook 'smiley-buffer)
376
377 \1f
378 File: xemacs-faq.info,  Node: Q4.0.12,  Next: Q4.1.1,  Prev: Q4.0.11,  Up: Subsystems
379
380 Q4.0.12: Customization of VM not covered in the manual, or here.
381 ----------------------------------------------------------------
382
383    giacomo boffi <boffi@hp735.stru.polimi.it> writes:
384
385      The meta-answer is to look into the file `vm-vars.el', in the vm
386      directory of the lisp library.
387
388      `vm-vars.el' contains, initializes and carefully describes, with
389      examples of usage, the plethora of user options that *fully*
390      control VM's behavior.
391
392      Enter vm-vars, `forward-search' for toolbar, find the variables
393      that control the toolbar placement, appearance, existence, copy to
394      your `.emacs' or `.vm' and modify according to the detailed
395      instructions.
396
397      The above also applies to all the various features of VM: search
398      for some keywords, maybe the first you conjure isn't appropriate,
399      find the appropriate variables, copy and experiment.
400
401 \1f
402 File: xemacs-faq.info,  Node: Q4.1.1,  Next: Q4.1.2,  Prev: Q4.0.12,  Up: Subsystems
403
404 4.1: Web browsing with W3
405 =========================
406
407 Q4.1.1: What is W3?
408 -------------------
409
410    W3 is an advanced graphical browser written in Emacs lisp that runs
411 on XEmacs.  It has full support for cascaded style sheets, and more...
412
413    It has a home web page at
414 `http://www.cs.indiana.edu/elisp/w3/docs.html'.
415
416 \1f
417 File: xemacs-faq.info,  Node: Q4.1.2,  Next: Q4.1.3,  Prev: Q4.1.1,  Up: Subsystems
418
419 Q4.1.2: How do I run W3 from behind a firewall?
420 -----------------------------------------------
421
422    There is a long, well-written, detailed section in the W3 manual that
423 describes how to do this.  Look in the section entitled "Firewalls".
424
425 \1f
426 File: xemacs-faq.info,  Node: Q4.1.3,  Next: Q4.2.1,  Prev: Q4.1.2,  Up: Subsystems
427
428 Q4.1.3: Is it true that W3 supports style sheets and tables?
429 ------------------------------------------------------------
430
431    Yes, and much more.  W3, as distributed with the latest XEmacs is a
432 full-featured web browser.
433
434 \1f
435 File: xemacs-faq.info,  Node: Q4.2.1,  Next: Q4.2.2,  Prev: Q4.1.3,  Up: Subsystems
436
437 4.2: Reading Netnews and Mail with Gnus
438 =======================================
439
440 Q4.2.1: GNUS, (ding) Gnus, Gnus 5, September Gnus, Red Gnus, Quassia Gnus, argh!
441 --------------------------------------------------------------------------------
442
443    The Gnus numbering issues are not meant for mere mortals to know
444 them.  If you feel you *must* enter the muddy waters of Gnus, visit the
445 excellent FAQ, maintained by Justin Sheehy, at:
446
447      `http://www.ccs.neu.edu/software/contrib/gnus/'
448
449    See also Gnus home page
450      `http://www.gnus.org/'
451
452 \1f
453 File: xemacs-faq.info,  Node: Q4.2.2,  Next: Q4.2.3,  Prev: Q4.2.1,  Up: Subsystems
454
455 Q4.2.2: This question intentionally left blank.
456 -----------------------------------------------
457
458    Obsolete question, left blank to avoid renumbering.
459
460 \1f
461 File: xemacs-faq.info,  Node: Q4.2.3,  Next: Q4.2.4,  Prev: Q4.2.2,  Up: Subsystems
462
463 Q4.2.3: How do I make Gnus stay within a single frame?
464 ------------------------------------------------------
465
466    The toolbar code to start Gnus opens the new frame--and it's a
467 feature rather than a bug.  If you don't like it, but would still like
468 to click on the seemly icon, use the following code:
469
470      (defun toolbar-news ()
471        (gnus))
472
473    It will redefine the callback function of the icon to just call
474 `gnus', without all the fancy frame stuff.
475
476 \1f
477 File: xemacs-faq.info,  Node: Q4.2.4,  Next: Q4.3.1,  Prev: Q4.2.3,  Up: Subsystems
478
479 Q4.2.4: How do I customize the From: line?
480 ------------------------------------------
481
482    How do I change the `From:' line?  I have set gnus-user-from-line to
483      Gail Gurman <gail.gurman@sybase.com>
484     , but XEmacs Gnus doesn't use it. Instead it uses
485      Gail Mara Gurman <gailg@deall>
486  and then complains that it's incorrect. Also, as you perhaps can see,
487 my Message-ID is screwy. How can I change that?
488
489 Lars Magne Ingebrigtsen <larsi@ifi.uio.no> writes:
490
491      Set `user-mail-address' to `gail.gurman@sybase.com' or
492      `mail-host-address' to `sybase.com'.
493
494 \1f
495 File: xemacs-faq.info,  Node: Q4.3.1,  Next: Q4.3.2,  Prev: Q4.2.4,  Up: Subsystems
496
497 4.3: Other Mail & News
498 ======================
499
500 Q4.3.1: How can I read and/or compose MIME messages?
501 ----------------------------------------------------
502
503    VM supports MIME natively.
504
505    You probably want to use the Tools for MIME (tm).  *Note Q4.3.2::,
506 for details.
507
508    Trey Jackson <trey@cs.berkeley.edu> has an Emacs & MIME web page at
509 `http://bmrc.berkeley.edu/~trey/emacs/mime.html'.
510
511    Another possibility is RMIME.  You may find RMIME at
512 `http://www.cinti.net/~rmoody/rmime/index.html'.
513
514 \1f
515 File: xemacs-faq.info,  Node: Q4.3.2,  Next: Q4.3.3,  Prev: Q4.3.1,  Up: Subsystems
516
517 Q4.3.2: What is TM and where do I get it?
518 -----------------------------------------
519
520    TM stands for "Tools for MIME" and not Tiny MIME.  TM integrates
521 with all major XEmacs packages like Gnus (all flavors), VM, MH-E, and
522 mailcrypt.  It provides totally transparent and trouble-free MIME
523 support.  When appropriate a message will be decoded in place in an
524 XEmacs buffer.
525
526    TM now comes as a package with XEmacs 19.16 and XEmacs 20.2.
527
528    TM was written by MORIOKA Tomohiko <morioka@jaist.ac.jp> and
529 KOBAYASHI Shuhei <shuhei-k@jaist.ac.jp>.
530
531    It is based on the work of UMEDA Masanobu
532 <umerin@mse.kyutech.ac.jp>, the original writer of GNUS.
533
534    The following information is from the `README':
535
536    "tm" is a MIME package for GNU Emacs.  tm has following functions:
537
538    * MIME style multilingual header.
539
540    * MIME message viewer (mime/viewer-mode).
541
542    * MIME message composer (mime/editor-mode).
543
544    * MIME extenders for mh-e, GNUS, RMAIL and VM.
545
546    tm is available from following anonymous ftp sites:
547    * `ftp://ftp.unicamp.br/pub/mail/mime/tm/' (Brasil).
548
549    * `ftp://ftp.th-darmstadt.de/pub/editors/GNU-Emacs/lisp/mime/'
550      (Germany).
551
552    * `ftp://ftp.tnt.uni-hannover.de/pub/editors/xemacs/contrib/'
553      (Germany).
554
555    Don't let the installation procedure & instructions stop you from
556 trying this package out--it's much simpler than it looks, and once
557 installed, trivial to use.
558
559 \1f
560 File: xemacs-faq.info,  Node: Q4.3.3,  Next: Q4.3.4,  Prev: Q4.3.2,  Up: Subsystems
561
562 Q4.3.3: Why isn't this `movemail' program working?
563 --------------------------------------------------
564
565    Ben Wing <ben@xemacs.org> writes:
566
567      It wasn't chown'ed/chmod'd correctly.
568
569 \1f
570 File: xemacs-faq.info,  Node: Q4.3.4,  Next: Q4.3.5,  Prev: Q4.3.3,  Up: Subsystems
571
572 Q4.3.4: Movemail is also distributed by Netscape?  Can that cause problems?
573 ---------------------------------------------------------------------------
574
575    Steve Baur <steve@xemacs.org> writes:
576
577      Yes.  Always use the movemail installed with your XEmacs.  Failure
578      to do so can result in lost mail.
579
580    Please refer to Jamie Zawinski's <jwz@jwz.org> notes at
581 `http://home.netscape.com/eng/mozilla/2.0/relnotes/demo/movemail.html'.
582 In particular, this document will show you how to make Netscape use the
583 version of movemail configured for your system by the person who built
584 XEmacs.
585
586 \1f
587 File: xemacs-faq.info,  Node: Q4.3.5,  Next: Q4.4.1,  Prev: Q4.3.4,  Up: Subsystems
588
589 Q4.3.5: Where do I find pstogif (required by tm)?
590 -------------------------------------------------
591
592    pstogif is part of the latex2html package.
593
594    Jan Vroonhof <vroonhof@math.ethz.ch> writes:
595
596    latex2html is best found at the CTAN hosts and their mirrors in
597 `tex-archive/support/latex2html'.
598
599    CTAN hosts are:
600
601    * `ftp://ftp.tex.ac.uk/tex-archive/support/latex2html/'.
602
603    * `ftp://ftp.dante.de/tex-archive/support/latex2html/'.
604
605    There is a good mirror at ftp.cdrom.com;
606 `ftp://ftp.cdrom.com/pub/tex/ctan/support/latex2html/'.
607
608 \1f
609 File: xemacs-faq.info,  Node: Q4.4.1,  Next: Q4.4.2,  Prev: Q4.3.5,  Up: Subsystems
610
611 4.4: Sparcworks, EOS, and WorkShop
612 ==================================
613
614 Q4.4.1: What is SPARCworks, EOS, and WorkShop?
615 ----------------------------------------------
616
617    John Turner <turner@lanl.gov> writes:
618
619      SPARCworks is SunSoft's development environment, comprising
620      compilers (C, C++, FORTRAN 77, Fortran 90, Ada, and Pascal), a
621      debugger, and other tools such as TeamWare (for configuration
622      management), MakeTool, etc.
623
624    See `http://www.sun.com/software/Developer-products/' for more info.
625
626    EOS stands for "Era on SPARCworks", but I don't know what Era stands
627 for.
628
629    EOS is the integration of XEmacs with the SPARCworks debugger.  It
630 allows one to use an XEmacs frame to view code (complete with
631 fontification, etc.), set breakpoints, print variables, etc., while
632 using the SPARCworks debugger.  It works very well and I use it all the
633 time.
634
635    Chuck Thompson <cthomp@xemacs.org> writes:
636
637      Era stood for "Emacs Rewritten Again".  It was what we were
638      calling the modified version of Lucid Emacs for Sun when I was
639      dragged, er, allowed to work on this wonderful editor.
640
641    Martin Buchholz <martin@xemacs.org> writes:
642
643      EOS is being replaced with a new graphical development environment
644      called Sun WorkShop, which is currently (07/96) in Alpha Test.
645      For more details, check out
646      `http://www.sun.com/software/Products/Developer-products'.
647
648 \1f
649 File: xemacs-faq.info,  Node: Q4.4.2,  Next: Q4.5.1,  Prev: Q4.4.1,  Up: Subsystems
650
651 Q4.4.2: How do I start the Sun Workshop support in XEmacs 21?
652 -------------------------------------------------------------
653
654    Add the switch --with-workshop to the configure command when building
655 XEmacs and put the following in one of your startup files (e.g.
656 site-start.el or .emacs):
657
658      (when (featurep 'tooltalk)
659        (load "tooltalk-macros")
660        (load "tooltalk-util")
661        (load "tooltalk-init"))
662      (when (featurep 'sparcworks)
663        (load "sunpro-init")
664        (load "ring")
665        (load "comint")
666        (load "annotations")
667        (sunpro-startup))
668
669    If you are not using the latest Workshop (5.0) you have to apply the
670 following patch:
671
672 --- /opt/SUNWspro/lib/eserve.el.ORIG    Fri May 14 15:23:26 1999
673 +++ /opt/SUNWspro/lib/eserve.el Fri May 14 15:24:54 1999
674 @@ -42,7 +42,7 @@
675  (defvar running-xemacs nil "t if we're running XEmacs")
676  (defvar running-emacs  nil "t if we're running GNU Emacs 19")
677
678 -(if (string-match "^\\(19\\|20\\)\..*\\(XEmacs\\|Lucid\\)" emacs-version)
679 +(if (string-match "\\(XEmacs\\|Lucid\\)" emacs-version)
680      (setq running-xemacs t)
681      (setq running-emacs  t))
682
683 \1f
684 File: xemacs-faq.info,  Node: Q4.5.1,  Next: Q4.6.1,  Prev: Q4.4.2,  Up: Subsystems
685
686 4.5: Energize
687 =============
688
689 Q4.5.1: What is/was Energize?
690 -----------------------------
691
692    David N Gray <gray@meteor.harlequin.com> writes:
693      The files in `lisp/energize' are to enable Emacs to interface with
694      the "Energize Programming System", a C and C++ development
695      environment, which was a product of Lucid, Inc.  Tragically, Lucid
696      went out of business in 1994, so although Energize is still a
697      great system, if you don't already have it, there isn't any way to
698      get it now.  (Unless you happen to be in Japan; INS Engineering
699      may still be selling it there.  Tartan bought the rights to sell
700      it in the rest of the world, but never did so.)
701
702 \1f
703 File: xemacs-faq.info,  Node: Q4.6.1,  Next: Q4.7.1,  Prev: Q4.5.1,  Up: Subsystems
704
705 4.6: Infodock
706 =============
707
708 Q4.6.1: What is Infodock?
709 -------------------------
710
711    InfoDock is an integrated productivity toolset, mainly aimed at
712 technical people.  It is developed and supported by InfoDock
713 Associates, a firm that offers custom support and development for
714 InfoDock, XEmacs and GNU Emacs.  ( `http://www.infodock.com',
715 <info@infodock.com>, +1 408 243 3300).
716
717    InfoDock is built atop the XEmacs variant of GNU Emacs and so has
718 all of the power of Emacs, but with an easier to use and more
719 comprehensive menu-based user interface.  The bottom portion of this
720 text describes how it differs from XEmacs and GNU Emacs from the Free
721 Software Foundation.
722
723    InfoDock is aimed at people who want a free, turn-key productivity
724 environment.  Although InfoDock is customizable, it is not intended for
725 people who like basic versions of Emacs which need to be customized
726 extensively for local use; standard Emacs distributions are better for
727 such uses.  InfoDock is for those people who want a complete,
728 pre-customized environment in one package, which they need not touch
729 more than once or twice a year to update to new revisions.
730
731    InfoDock is pre-built for SPARC SunOS/Solaris systems, PA-RISC HP-UX,
732 and Intel Linux systems.  It is intended for use on a color display,
733 although most features will work on monochrome monitors.  Simply unpack
734 InfoDock according to the instructions in the ID-INSTALL file and you
735 are ready to run.
736
737    The InfoDock Manual is concise, yet sufficient as a user guide for
738 users who have never used an Emacs-type editor before.  For users who
739 are already familiar with Emacs, it supplements the information in the
740 GNU Emacs Manual.
741
742    InfoDock menus are much more extensive and more mature than standard
743 Emacs menus.  Each menu offers a `Manual' item which displays
744 documentation associated with the menu's functions.
745
746 Four types of menubars are provided:
747   1. An extensive menubar providing access to global InfoDock commands.
748
749   2. Mode-specific menubars tailored to the current major mode.
750
751   3. A simple menubar for basic editing to help novices get started
752      with InfoDock.
753
754   4. The standard XEmacs menubar.
755
756    Most modes also include mode-specific popup menus.  Additionally,
757 region and rectangle popup menus are included.
758
759    `Hyperbole', the everyday information manager, is a core part of
760 InfoDock.  This provides context-sensitive mouse keys, a rolodex-type
761 contact manager, programmable hypertext buttons, and an autonumbered
762 outliner with embedded hyperlink anchors.
763
764    The `OO-Browser', a multi-language object-oriented code browser, is a
765 standard part of InfoDock.
766
767    InfoDock saves a more extensive set of user options than other Emacs
768 versions.
769
770    InfoDock inserts a useful file header in many file types, showing the
771 author, summary, and last modification time of each file.  A summary
772 program can then be used to summarize all of the files in a directory,
773 for easy MANIFEST file creation.
774
775    Your working set of buffers is automatically saved and restored (if
776 you answer yes to a prompt) between InfoDock sessions.
777
778    Refined color choices for code highlighting are provided for both
779 dark and light background display frames.
780
781    The `C-z' key prefix performs frame-based commands which parallel the
782 `C-x' key prefix for window-based commands.
783
784    The Smart Menu system is included for producing command menus on dumb
785 terminals.
786
787    Lisp libraries are better categorized according to function.
788
789    Extensions and improvements to many areas of Emacs are included,
790 such as: paragraph filling, mail reading with Rmail, shell handling,
791 outlining, code highlighting and browsing, and man page browsing.
792
793    InfoDock questions, answers and discussion should go to the mail list
794 <infodock@infodock.com>.  Use <infodock-request@infodock.com> to be
795 added or removed from the list.  Always include your InfoDock version
796 number when sending help requests.
797
798    InfoDock is available across the Internet via anonymous FTP.  To get
799 it, first move to a directory into which you want the InfoDock archive
800 files placed.  We will call this <DIST-DIR>.
801
802         cd <DIST-DIR>
803
804    Ftp to ftp.xemacs.org  (Internet Host ID = 128.174.252.16):
805
806         prompt> ftp ftp.xemacs.org
807
808    Login as `anonymous' with your own <user-id>@<site-name> as a
809 password.
810
811         Name (ftp.xemacs.org): anonymous
812         331 Guest login ok, send your complete e-mail address as password.
813         Password: -<your-user-id>@<your-domain>
814         230 Guest login ok, access restrictions apply.
815
816    Move to the location of the InfoDock archives:
817
818         ftp> cd pub/infodock
819
820    Set your transfer mode to binary:
821
822         ftp> bin
823         200 Type set to I.
824
825    Turn off prompting:
826
827         ftp> prompt
828         Interactive mode off.
829
830    Retrieve the InfoDock archives that you want, either by using a `get
831 <file>' for each file you want or by using the following to get a
832 complete distribution, including all binaries:
833
834         ftp> mget ID-INSTALL
835         ftp> mget id-*
836
837    Close the FTP connection:
838
839         ftp> quit
840         221 Goodbye.
841
842    Read the `ID-INSTALL' file which you just retrieved for step-by-step
843 installation instructions.
844
845 \1f
846 File: xemacs-faq.info,  Node: Q4.7.1,  Next: Q4.7.2,  Prev: Q4.6.1,  Up: Subsystems
847
848 4.7: Other Unbundled Packages
849 =============================
850
851 Q4.7.1: What is AUC TeX?  Where do you get it?
852 ----------------------------------------------
853
854    AUC TeX is a package written by Per Abrahamsen <abraham@dina.kvl.dk>.
855 Starting with XEmacs 19.16, AUC TeX is bundled with XEmacs.  The
856 following information is from the `README' and website.
857
858    AUC TeX is an extensible package that supports writing and formatting
859 TeX files for most variants of GNU Emacs. Many different macro packages
860 are supported, including AMS TeX, LaTeX, and TeXinfo.
861
862    The most recent version is always available by ftp at
863 `ftp://sunsite.auc.dk/packages/auctex/auctex.tar.gz'.
864
865    In case you don't have access to anonymous ftp, you can get it by an
866 email request to <ftpmail@decwrl.dec.com>.
867
868    WWW users may want to check out the AUC TeX page at
869 `http://sunsite.auc.dk/auctex/'.
870
871 \1f
872 File: xemacs-faq.info,  Node: Q4.7.2,  Next: Q4.7.3,  Prev: Q4.7.1,  Up: Subsystems
873
874 Q4.7.2: Are there any Emacs Lisp Spreadsheets?
875 ----------------------------------------------
876
877    Yes.  Check out "dismal" (which stands for Dis' Mode Ain't Lotus) at
878 `ftp://cs.nyu.edu/pub/local/fox/dismal/'.
879
880 \1f
881 File: xemacs-faq.info,  Node: Q4.7.3,  Next: Q4.7.4,  Prev: Q4.7.2,  Up: Subsystems
882
883 Q4.7.3: Byte compiling AUC TeX on XEmacs 19.14.
884 -----------------------------------------------
885
886    Georges Brun-Cottan <bruncott@dormeur.inria.fr> writes:
887
888      When byte compiling auctex-9.4g, you must use the command:
889
890           xemacs -batch -l lpath.el
891
892 \1f
893 File: xemacs-faq.info,  Node: Q4.7.4,  Next: Q4.7.5,  Prev: Q4.7.3,  Up: Subsystems
894
895 Q4.7.4: Problems installing AUC TeX.
896 ------------------------------------
897
898    Jan Vroonhof <vroonhof@math.ethz.ch> writes:
899
900      AUC TeX works fine on both stock Emacs and XEmacs has been doing
901      so for a very very long time. This is mostly due to the work of
902      Per Abrahamsen <abraham@dina.kvl.dk> (clap clap) in particular his
903      `easymenu' package.  Which leads to what is probably the problem...
904
905    Most problems with AUC TeX are one of two things:
906
907    * The TeX-lisp-directory in `tex-site.el' and the makefile don't
908      match.
909
910      Fix: make sure you configure AUC TeX properly *before* installing.
911
912    * You have an old version of easymenu.el in your path.
913
914      Fix: use `locate-library' and remove old versions to make sure it
915      *only* finds the one that came with XEmacs.
916
917 \1f
918 File: xemacs-faq.info,  Node: Q4.7.5,  Next: Q4.7.6,  Prev: Q4.7.4,  Up: Subsystems
919
920 Q4.7.5: Is there a reason for an Emacs package not to be included in XEmacs?
921 ----------------------------------------------------------------------------
922
923    The reason for an Emacs package not to be included in XEmacs is
924 usually one or more of the following:
925
926   1. The package has not been ported to XEmacs.  This will typically
927      happen when it uses GNU-Emacs-specific features, which make it
928      fail under XEmacs.
929
930      Porting a package to XEmacs can range from a trivial amount of
931      change to a partial or full rewrite.  Fortunately, the authors of
932      modern packages usually choose to support both Emacsen themselves.
933
934   2. The package has been decided not to be appropriate for XEmacs.  It
935      may have an equivalent or better replacement within XEmacs, in
936      which case the developers may choose not to burden themselves with
937      supporting an additional package.
938
939      Each package bundled with XEmacs means more work for the
940      maintainers, whether they want it or not.  If you are ready to
941      take over the maintenance responsibilities for the package you
942      port, be sure to say so - we will more likely include it.
943
944   3. The package simply hasn't been noted by the XEmacs development.  If
945      that's the case, the messages like yours are very useful for
946      attracting our attention.
947
948   4. The package was noted by the developers, but they simply haven't
949      yet gotten around to including/porting it.  Wait for the next
950      release or, even better, offer your help.  It will be gladly
951      accepted and appreciated.
952
953 \1f
954 File: xemacs-faq.info,  Node: Q4.7.6,  Prev: Q4.7.5,  Up: Subsystems
955
956 Q4.7.5: Is there a MatLab mode?
957 -------------------------------
958
959    Yes, a matlab mode and other items are available at the
960 MathWorks' emacs_add_ons ftp directory (ftp://ftp.mathworks.com/pub/contrib/emacs_add_ons).
961
962 \1f
963 File: xemacs-faq.info,  Node: Miscellaneous,  Next: MS Windows,  Prev: Subsystems,  Up: Top
964
965 5 The Miscellaneous Stuff
966 *************************
967
968    This is part 5 of the XEmacs Frequently Asked Questions list.  This
969 section is devoted to anything that doesn't fit neatly into the other
970 sections.
971
972 * Menu:
973
974 Major & Minor Modes:
975 * Q5.0.1::      How can I do source code highlighting using font-lock?
976 * Q5.0.2::      I do not like cc-mode.  How do I use the old c-mode?
977 * Q5.0.3::      How do I get `More' Syntax Highlighting on by default?
978 * Q5.0.4::      How can I enable auto-indent?
979 * Q5.0.5::      How can I get XEmacs to come up in text/auto-fill mode by default?
980 * Q5.0.6::      How do I start up a second shell buffer?
981 * Q5.0.7::      Telnet from shell filters too much.
982 * Q5.0.8::      Why does edt emulation not work?
983 * Q5.0.9::      How can I emulate VI and use it as my default mode?
984 * Q5.0.10::     [This question intentionally left blank]
985 * Q5.0.11::     Filladapt doesn't work in 19.15?
986 * Q5.0.12::     How do I disable gnuserv from opening a new frame?
987 * Q5.0.13::     How do I start gnuserv so that each subsequent XEmacs is a client?
988 * Q5.0.14::     Strange things are happening in Shell Mode.
989 * Q5.0.15::     Where do I get the latest CC Mode?
990 * Q5.0.16::     I find auto-show-mode disconcerting.  How do I turn it off?
991 * Q5.0.17::     How can I get two instances of info?
992 * Q5.0.18::     I upgraded to XEmacs 19.14 and gnuserv stopped working
993 * Q5.0.19::     Is there something better than LaTeX mode?
994 * Q5.0.20::     Is there a way to start a new XEmacs if there's no gnuserv running, and otherwise use gnuclient?
995
996 Emacs Lisp Programming Techniques:
997 * Q5.1.1::      The difference in key sequences between XEmacs and GNU Emacs?
998 * Q5.1.2::      Can I generate "fake" keyboard events?
999 * Q5.1.3::      Could you explain `read-kbd-macro' in more detail?
1000 * Q5.1.4::      What is the performance hit of `let'?
1001 * Q5.1.5::      What is the recommended use of `setq'?
1002 * Q5.1.6::      What is the typical misuse of `setq'?
1003 * Q5.1.7::      I like the the `do' form of cl, does it slow things down?
1004 * Q5.1.8::      I like recursion, does it slow things down?
1005 * Q5.1.9::      How do I put a glyph as annotation in a buffer?
1006 * Q5.1.10::     `map-extents' won't traverse all of my extents!
1007 * Q5.1.11::     My elisp program is horribly slow.  Is there an easy way to find out where it spends time?
1008
1009 Sound:
1010 * Q5.2.1::      How do I turn off the sound?
1011 * Q5.2.2::      How do I get funky sounds instead of a boring beep?
1012 * Q5.2.3::      What's NAS, how do I get it?
1013 * Q5.2.4::      Sunsite sounds don't play.
1014
1015 Miscellaneous:
1016 * Q5.3.1::      How do you make XEmacs indent CL if-clauses correctly?
1017 * Q5.3.2::      Fontifying hangs when editing a postscript file.
1018 * Q5.3.3::      How can I print WYSIWYG a font-locked buffer?
1019 * Q5.3.4::      Getting `M-x lpr' to work with postscript printer.
1020 * Q5.3.5::      How do I specify the paths that XEmacs uses for finding files?
1021 * Q5.3.6::      [This question intentionally left blank]
1022 * Q5.3.7::      Can I have the end of the buffer delimited in some way?
1023 * Q5.3.8::      How do I insert today's date into a buffer?
1024 * Q5.3.9::      Are only certain syntactic character classes available for abbrevs?
1025 * Q5.3.10::     How can I get those oh-so-neat X-Face lines?
1026 * Q5.3.11::     How do I add new Info directories?
1027 * Q5.3.12::     What do I need to change to make printing work?
1028
1029 \1f
1030 File: xemacs-faq.info,  Node: Q5.0.1,  Next: Q5.0.2,  Prev: Miscellaneous,  Up: Miscellaneous
1031
1032 5.0: Major & Minor Modes
1033 ========================
1034
1035 Q5.0.1: How can I do source code highlighting using font-lock?
1036 --------------------------------------------------------------
1037
1038    For most modes, font-lock is already set up and just needs to be
1039 turned on.  This can be done by `M-x font-lock-mode', or by having
1040 XEmacs automatically start it by adding lines like:
1041
1042      (add-hook 'emacs-lisp-mode-hook    'turn-on-font-lock)
1043      (add-hook 'dired-mode-hook 'turn-on-font-lock)
1044
1045    to your `.emacs'.  See the file `etc/sample.emacs' for more examples.
1046
1047    See also `Syntax Highlighting' from the `Options' menu.  Remember to
1048 save options.
1049
1050 \1f
1051 File: xemacs-faq.info,  Node: Q5.0.2,  Next: Q5.0.3,  Prev: Q5.0.1,  Up: Miscellaneous
1052
1053 Q5.0.2: I do not like cc-mode.  How do I use the old c-mode?
1054 ------------------------------------------------------------
1055
1056    Well, first off, consider if you really want to do this.  cc-mode is
1057 much more powerful than the old c-mode.  If you're having trouble
1058 getting your old offsets to work, try using `c-set-offset' instead.
1059 You might also consider using the package `cc-compat'.
1060
1061    But, if you still insist, add the following lines to your `.emacs':
1062
1063      (fmakunbound 'c-mode)
1064      (makunbound 'c-mode-map)
1065      (fmakunbound 'c++-mode)
1066      (makunbound 'c++-mode-map)
1067      (makunbound 'c-style-alist)
1068      (load-library "old-c-mode")
1069      (load-library "old-c++-mode")
1070
1071    This must be done before any other reference is made to either
1072 c-mode or c++-mode.
1073
1074 \1f
1075 File: xemacs-faq.info,  Node: Q5.0.3,  Next: Q5.0.4,  Prev: Q5.0.2,  Up: Miscellaneous
1076
1077 Q5.0.3: How do I get `More' Syntax Highlighting on by default?
1078 --------------------------------------------------------------
1079
1080    Use the following code in your `.emacs':
1081
1082      (setq-default font-lock-maximum-decoration t)
1083
1084    In versions of XEmacs prior to 19.14, you had to use a kludgy
1085 solution like this:
1086
1087      (setq c-font-lock-keywords c-font-lock-keywords-2
1088            c++-font-lock-keywords c++-font-lock-keywords-2
1089            lisp-font-lock-keywords lisp-font-lock-keywords-2)
1090
1091    It will work for C, C++ and Lisp.
1092
1093    See also `Syntax Highlighting' from the `Options' menu.  Remember to
1094 save options.
1095
1096 \1f
1097 File: xemacs-faq.info,  Node: Q5.0.4,  Next: Q5.0.5,  Prev: Q5.0.3,  Up: Miscellaneous
1098
1099 Q5.0.4: How can I enable auto-indent?
1100 -------------------------------------
1101
1102    Put the following line in your `.emacs':
1103
1104      (setq indent-line-function 'indent-relative-maybe)
1105
1106    If you want to get fancy, try the `filladapt' package available
1107 standard with XEmacs.  Put this into your `.emacs':
1108
1109      (require 'filladapt)
1110      (add-hook 'text-mode-hook    'turn-on-filladapt-mode)
1111      ;;; and others ...
1112
1113    You can customize filling and adaptive filling with Customize.
1114 Select from the `Options' menu
1115 `Customize->Emacs->->Editing->Fill->Fill...'  or type `M-x customize
1116 <RET> fill <RET>'.
1117
1118    Note that well-behaving text-lookalike modes will run
1119 `text-mode-hook' by default (e.g. that's what Message does).  For the
1120 nasty ones, you'll have to provide the `add-hook's yourself.
1121
1122    Please note that the `fa-extras' package is no longer useful.
1123
1124 \1f
1125 File: xemacs-faq.info,  Node: Q5.0.5,  Next: Q5.0.6,  Prev: Q5.0.4,  Up: Miscellaneous
1126
1127 Q5.0.5: How can I get XEmacs to come up in text/auto-fill mode by default?
1128 --------------------------------------------------------------------------
1129
1130    Try the following lisp in your `.emacs':
1131
1132      (setq default-major-mode 'text-mode)
1133      (setq text-mode-hook 'turn-on-auto-fill)
1134
1135    *WARNING*: note that changing the value of `default-major-mode' from
1136 `fundamental-mode' can break a large amount of built-in code that
1137 expects newly created buffers to be in `fundamental-mode'.  (Changing
1138 from `fundamental-mode' to `text-mode' might not wreak too much havoc,
1139 but changing to something more exotic like a lisp-mode would break many
1140 Emacs packages).
1141
1142    Note that Emacs by default starts up in buffer `*scratch*' in
1143 `initial-major-mode', which defaults to `lisp-interaction-mode'. Thus
1144 adding the following form to your Emacs init file will cause the
1145 initial `*scratch*' buffer to be put into auto-fill'ed `text-mode':
1146
1147      (setq initial-major-mode
1148            (lambda ()
1149              (text-mode)
1150              (turn-on-auto-fill)))
1151
1152    Note that after your init file is loaded, if
1153 `inhibit-startup-message' is `nil' (the default) and the startup buffer
1154 is `*scratch*' then the startup message will be inserted into
1155 `*scratch*'; it will be removed after a timeout by erasing the entire
1156 `*scratch*' buffer.  Keep in mind this default usage of `*scratch*' if
1157 you desire any prior manipulation of `*scratch*' from within your Emacs
1158 init file. In particular, anything you insert into `*scratch*' from
1159 your init file will be later erased. Also, if you change the mode of
1160 the `*scratch*' buffer, be sure that this will not interfere with
1161 possible later insertion of the startup message (e.g. if you put
1162 `*scratch*' into a nonstandard mode that has automatic font lock rules,
1163 then the startup message might get fontified in a strange foreign
1164 manner, e.g. as code in some programming language).
1165
1166 \1f
1167 File: xemacs-faq.info,  Node: Q5.0.6,  Next: Q5.0.7,  Prev: Q5.0.5,  Up: Miscellaneous
1168
1169 Q5.0.6: How do I start up a second shell buffer?
1170 ------------------------------------------------
1171
1172    In the `*shell*' buffer:
1173
1174      M-x rename-buffer <RET> *shell-1* <RET>
1175      M-x shell RET
1176
1177    This will then start a second shell.  The key is that no buffer named
1178 `*shell*' can exist.  It might be preferable to use `M-x
1179 rename-uniquely' to rename the `*shell*' buffer instead of `M-x
1180 rename-buffer'.
1181
1182    Alternately, you can set the variable `shell-multiple-shells'.  If
1183 the value of this variable is non-nil, each time shell mode is invoked,
1184 a new shell is made
1185
1186 \1f
1187 File: xemacs-faq.info,  Node: Q5.0.7,  Next: Q5.0.8,  Prev: Q5.0.6,  Up: Miscellaneous
1188
1189 Q5.0.7: Telnet from shell filters too much
1190 ------------------------------------------
1191
1192    I'm using the Emacs `M-x shell' function, and I would like to invoke
1193 and use a telnet session within it.  Everything works fine except that
1194 now all `^M''s are filtered out by Emacs.  Fixes?
1195
1196    Use `M-x rsh' or `M-x telnet' to open remote sessions rather than
1197 doing rsh or telnet within the local shell buffer.  Starting with
1198 XEmacs-20.3 you can also use `M-x ssh' to open secure remote session if
1199 you have `ssh' installed.
1200
1201 \1f
1202 File: xemacs-faq.info,  Node: Q5.0.8,  Next: Q5.0.9,  Prev: Q5.0.7,  Up: Miscellaneous
1203
1204 Q5.0.8: Why does edt emulation not work?
1205 ----------------------------------------
1206
1207    We don't know, but you can use tpu-edt emulation instead, which works
1208 fine and is a little fancier than the standard edt emulation.  To do
1209 this, add the following line to your `.emacs':
1210
1211      (tpu-edt)
1212
1213    If you don't want it to replace `C-h' with an edt-style help menu
1214 add this as well:
1215
1216      (global-set-key [(control h)] 'help-for-help)
1217
1218 \1f
1219 File: xemacs-faq.info,  Node: Q5.0.9,  Next: Q5.0.10,  Prev: Q5.0.8,  Up: Miscellaneous
1220
1221 Q5.0.9: How can I emulate VI and use it as my default mode?
1222 -----------------------------------------------------------
1223
1224    Our recommended VI emulator is viper. To make viper-mode the default,
1225 add this to your `.emacs':
1226
1227      (viper-mode)
1228
1229    Michael Kifer <kifer@CS.SunySB.EDU> writes:
1230
1231      This should be added as close to the top of `.emacs' as you can get
1232      it, otherwise some minor modes may not get viper-ized.
1233
1234 \1f
1235 File: xemacs-faq.info,  Node: Q5.0.10,  Next: Q5.0.11,  Prev: Q5.0.9,  Up: Miscellaneous
1236
1237 Q5.0.10: [This question intentionally left blank]
1238 -------------------------------------------------
1239
1240    Obsolete question, left blank to avoid renumbering
1241
1242 \1f
1243 File: xemacs-faq.info,  Node: Q5.0.11,  Next: Q5.0.12,  Prev: Q5.0.10,  Up: Miscellaneous
1244
1245 Q5.0.11: Filladapt doesn't work in 19.15
1246 ----------------------------------------
1247
1248    Filladapt 2.x is included in 19.15.  In it filladapt is now a minor
1249 mode and minor modes are traditionally off by default.  The following
1250 added to your `.emacs' will turn it on for all buffers:
1251
1252      (setq-default filladapt-mode t)
1253
1254    Use `turn-on-filladapt-mode' to turn Filladapt on in particular
1255 major modes, like this:
1256
1257      (add-hook 'text-mode-hook 'turn-on-filladapt-mode)
1258
1259 \1f
1260 File: xemacs-faq.info,  Node: Q5.0.12,  Next: Q5.0.13,  Prev: Q5.0.11,  Up: Miscellaneous
1261
1262 Q5.0.12: How do I disable gnuserv from opening a new frame?
1263 -----------------------------------------------------------
1264
1265    If you set the `gnuserv-frame' variable to the frame that should be
1266 used to display buffers that are pulled up, a new frame will not be
1267 created. For example, you could put
1268
1269      (setq gnuserv-frame (selected-frame))
1270
1271    early on in your `.emacs', to ensure that the first frame created is
1272 the one used for your gnuserv buffers.
1273
1274    Starting in 19.15, there is an option to set the gnuserv target to
1275 the current frame.  See `Options->"Other Window" Location->Make current
1276 frame gnuserv target'
1277
1278    Starting with XEmacs-20.3 you can also change this with Customize.
1279 Select from the `Options' menu
1280 `Customize->Emacs->Environment->Gnuserv->Gnuserv Frame...' or type `M-x
1281 customize <RET> gnuserv <RET>'.
1282
1283 \1f
1284 File: xemacs-faq.info,  Node: Q5.0.13,  Next: Q5.0.14,  Prev: Q5.0.12,  Up: Miscellaneous
1285
1286 Q5.0.13: How do I start gnuserv so that each subsequent XEmacs is a client?
1287 ---------------------------------------------------------------------------
1288
1289    Put the following in your `.emacs' file to start the server:
1290
1291      (gnuserv-start)
1292
1293    Start your first XEmacs as usual.  After that, you can do:
1294
1295      gnuclient randomfilename
1296
1297    from the command line to get your existing XEmacs process to open a
1298 new frame and visit randomfilename in that window. When you're done
1299 editing randomfilename, hit `C-x #' to kill the buffer and get rid of
1300 the frame.
1301
1302    See also man page of gnuclient.
1303
1304 \1f
1305 File: xemacs-faq.info,  Node: Q5.0.14,  Next: Q5.0.15,  Prev: Q5.0.13,  Up: Miscellaneous
1306
1307 Q5.0.14: Strange things are happening in Shell Mode.
1308 ----------------------------------------------------
1309
1310    Sometimes (i.e. it's not repeatable, and I can't work out why it
1311 happens) when I'm typing into shell mode, I hit return and only a
1312 portion of the command is given to the shell, and a blank prompt is
1313 returned.  If I hit return again, the rest of the previous command is
1314 given to the shell.
1315
1316    Martin Buchholz <martin@xemacs.org> writes:
1317
1318      There is a known problem with interaction between `csh' and the
1319      `filec' option and XEmacs.  You should add the following to your
1320      `.cshrc':
1321
1322           if ( "$TERM" == emacs || "$TERM" == unknown ) unset filec
1323
1324 \1f
1325 File: xemacs-faq.info,  Node: Q5.0.15,  Next: Q5.0.16,  Prev: Q5.0.14,  Up: Miscellaneous
1326
1327 Q5.0.15: Where do I get the latest CC Mode?
1328 -------------------------------------------
1329
1330    Barry A. Warsaw <bwarsaw@cnri.reston.va.us> writes:
1331
1332      This can be had from `http://www.python.org/emacs/'.
1333
1334 \1f
1335 File: xemacs-faq.info,  Node: Q5.0.16,  Next: Q5.0.17,  Prev: Q5.0.15,  Up: Miscellaneous
1336
1337 Q5.0.16: I find auto-show-mode disconcerting.  How do I turn it off?
1338 --------------------------------------------------------------------
1339
1340    `auto-show-mode' controls whether or not a horizontal scrollbar
1341 magically appears when a line is too long to be displayed.  This is
1342 enabled by default.  To turn it off, put the following in your `.emacs':
1343
1344      (setq auto-show-mode nil)
1345      (setq-default auto-show-mode nil)
1346
1347 \1f
1348 File: xemacs-faq.info,  Node: Q5.0.17,  Next: Q5.0.18,  Prev: Q5.0.16,  Up: Miscellaneous
1349
1350 Q5.0.17: How can I get two instances of info?
1351 ---------------------------------------------
1352
1353    You can't.  The `info' package does not provide for multiple info
1354 buffers.
1355