Sync with r21-2-28.
[chise/xemacs-chise.git] / info / xemacs-faq.info-5
index a87a738..f5c6bcf 100644 (file)
-This is ../info/xemacs-faq.info, produced by makeinfo version 3.12s
-from xemacs-faq.texi.
+This is ../info/xemacs-faq.info, produced by makeinfo version 4.0 from
+xemacs-faq.texi.
 
 INFO-DIR-SECTION XEmacs Editor
 START-INFO-DIR-ENTRY
-* FAQ: (xemacs-faq).           XEmacs FAQ.
+* FAQ: (xemacs-faq).            XEmacs FAQ.
 END-INFO-DIR-ENTRY
 
 \1f
-File: xemacs-faq.info,  Node: Q5.0.18,  Next: Q5.0.19,  Prev: Q5.0.17,  Up: Miscellaneous
-
-Q5.0.18: I upgraded to XEmacs 19.14 and gnuserv stopped working.
-----------------------------------------------------------------
-
-   Mark Daku <daku@nortel.ca> writes:
-
-     It turns out I was using an older version of gnuserv.  The
-     installation didn't put the binary into the public bin directory.
-     It put it in `lib/xemacs-19.14/hppa1.1-hp-hpux9.05/gnuserv'.
-     Shouldn't it have been put in `bin/hppa1.1-hp-hpux9.0'?
-
-\1f
-File: xemacs-faq.info,  Node: Q5.0.19,  Next: Q5.0.20,  Prev: Q5.0.18,  Up: Miscellaneous
-
-Q5.0.19: Is there something better than LaTeX mode?
----------------------------------------------------
-
-   David Kastrup <dak@fsnif.neuroinformatik.ruhr-uni-bochum.de> writes:
-
-     The standard TeX modes leave much to be desired, and are somewhat
-     leniently maintained.  Serious TeX users use AUC TeX (*note
-     Q4.7.1::).
-
-\1f
-File: xemacs-faq.info,  Node: Q5.0.20,  Next: Q5.1.1,  Prev: Q5.0.19,  Up: Miscellaneous
-
-Q5.0.20: Is there a way to start a new XEmacs if there's no gnuserv running, and otherwise use gnuclient?
----------------------------------------------------------------------------------------------------------
-
-   Jan Vroonhof <vroonhof@math.ethz.ch> writes:
-     Here is one of the solutions, we have this in a script called
-     `etc/editclient.sh'.
-           #!/bin/sh
-           if gnuclient -batch -eval t >/dev/null 2>&1
-           then
-             exec gnuclient ${1+"$@"}
-           else
-             xemacs -unmapped -f gnuserv-start &
-             until gnuclient -batch -eval t >/dev/null 2>&1
-             do
-                sleep 1
-             done
-             exec gnuclient ${1+"$@"}
-           fi
-
-     Note that there is a known problem when running XEmacs and
-     'gnuclient -nw' on the same TTY.
-
-\1f
-File: xemacs-faq.info,  Node: Q5.1.1,  Next: Q5.1.2,  Prev: Q5.0.20,  Up: Miscellaneous
-
-5.1: Emacs Lisp Programming Techniques
-======================================
-
-Q5.1.1: What is the difference in key sequences between XEmacs and GNU Emacs?
------------------------------------------------------------------------------
-
-   Erik Naggum <clerik@naggum.no> writes;
-
-     Emacs has a legacy of keyboards that produced characters with
-     modifier bits, and therefore map a variety of input systems into
-     this scheme even today.  XEmacs is instead optimized for X events.
-     This causes an incompatibility in the way key sequences are
-     specified, but both Emacs and XEmacs will accept a key sequence as
-     a vector of lists of modifiers that ends with a key, e.g., to bind
-     `M-C-a', you would say `[(meta control a)]' in both Emacsen.
-     XEmacs has an abbreviated form for a single key, just (meta
-     control a).  Emacs has an abbreviated form for the Control and the
-     Meta modifiers to string-characters (the ASCII characters), as in
-     `\M-\C-a'.  XEmacs users need to be aware that the abbreviated
-     form works only for one-character key sequences, while Emacs users
-     need to be aware that the string-character is rather limited.
-     Specifically, the string-character can accommodate only 256
-     different values, 128 of which have the Meta modifier and 128 of
-     which have not.  In each of these blocks, only 32 characters have
-     the Control modifier.  Whereas `[(meta control A)]' differs from
-     `[(meta control a)]' because the case differs, `\M-\C-a' and
-     `\M-\C-A' do not.  Programmers are advised to use the full common
-     form, both because it is more readable and less error-prone, and
-     because it is supported by both Emacsen.
-
-   Another (even safer) way to be sure of the key-sequences is to use
-the `read-kbd-macro' function, which takes a string like `C-c <up>',
-and converts it to the internal key representation of the Emacs you
-use.  The function is available both on XEmacs and GNU Emacs.
-
-\1f
-File: xemacs-faq.info,  Node: Q5.1.2,  Next: Q5.1.3,  Prev: Q5.1.1,  Up: Miscellaneous
-
-Q5.1.2: Can I generate "fake" keyboard events?
-----------------------------------------------
-
-   I wonder if there is an interactive function that can generate
-"fake" keyboard events.  This way, I could simply map them inside
-XEmacs.
-
-   This seems to work:
-
-     (defun cg--generate-char-event (ch)
-       "Generate an event, as if ch has been typed"
-       (dispatch-event (character-to-event ch)))
-     
-     ;;  Backspace and Delete stuff
-     (global-set-key [backspace]
-       (lambda () (interactive) (cg--generate-char-event 127)))
-     (global-set-key [unknown_keysym_0x4]
-       (lambda () (interactive) (cg--generate-char-event 4)))
-
-\1f
 File: xemacs-faq.info,  Node: Q5.1.3,  Next: Q5.1.4,  Prev: Q5.1.2,  Up: Miscellaneous
 
 Q5.1.3: Could you explain `read-kbd-macro' in more detail?
@@ -224,7 +114,7 @@ Q5.1.5: What is the recommended use of `setq'?
      user-variable temporarily, use `let':
 
           (let ((case-fold-search nil))
-            ...                                        ; code with searches that must be case-sensitive
+            ...                                   ; code with searches that must be case-sensitive
             ...)
 
      You will notice the user-variables by their docstrings beginning
@@ -283,7 +173,7 @@ garbage-collected.  For example, the code doing:
 unbound.  The correct thing is to do it like this:
 
      (defun my-function (whatever)
-       (let (a)                                ; default initialization is to nil
+       (let (a)                              ; default initialization is to nil
          ... build a large list ...
          ... and exit, unbinding `a' in the process  ...)
 
@@ -294,11 +184,11 @@ Emacs to garbage-collect the objects which `a' used to reference.
 `defvar'ing them first, because the byte-compiler issues warnings.  The
 reason for the warning is the following:
 
-     (defun flurgoze nil)                      ; ok, global internal variable
+     (defun flurgoze nil)                    ; ok, global internal variable
      ...
      
-     (setq flurghoze t)                        ; ops!  a typo, but semantically correct.
-                                       ; however, the byte-compiler warns.
+     (setq flurghoze t)                      ; ops!  a typo, but semantically correct.
+                                             ; however, the byte-compiler warns.
      
      While compiling toplevel forms:
      ** assignment to free variable flurghoze
@@ -433,7 +323,7 @@ Q5.2.1: How do I turn off the sound?
      (setq bell-volume 0)
      (setq sound-alist nil)
 
-   That will make your XEmacs totally silent - even the default ding
+   That will make your XEmacs totally silent--even the default ding
 sound (TTY beep on TTY-s) will be gone.
 
    Starting with XEmacs-20.2 you can also change these with Customize.
@@ -534,7 +424,7 @@ alive again.
 expressions.  It was fixed in 19.13.  For earlier versions of XEmacs,
 have a look at your `.emacs' file.  You will probably have a line like:
 
-     (add-hook 'postscript-mode-hook   'turn-on-font-lock)
+     (add-hook 'postscript-mode-hook 'turn-on-font-lock)
 
    Take it out, restart XEmacs, and it won't try to fontify your
 postscript files anymore.
@@ -758,8 +648,8 @@ Q5.3.11: How do I add new Info directories?
    You use something like:
 
      (setq Info-directory-list (cons
-                          (expand-file-name "~/info")
-                          Info-default-directory-list))
+                                (expand-file-name "~/info")
+                                Info-default-directory-list))
 
    David Masterson <davidm@prism.kla.com> writes:
 
@@ -842,28 +732,28 @@ Windows port of XEmacs.
 
 
 General Info
-* Q6.0.1::     What is the status of the XEmacs port to Windows?
-* Q6.0.2::     What flavors of MS Windows are supported?
+* Q6.0.1::      What is the status of the XEmacs port to Windows?
+* Q6.0.2::      What flavors of MS Windows are supported?
 * Q6.0.3::      Where are the XEmacs on MS Windows binaries?
-* Q6.0.4::     Does XEmacs on MS Windows require an X server to run?
+* Q6.0.4::      Does XEmacs on MS Windows require an X server to run?
 
 Building XEmacs on MS Windows
-* Q6.1.1::     I decided to run with X.  Where do I get an X server?
-* Q6.1.2::     What compiler do I need to compile XEmacs?
-* Q6.1.3::     How do I compile for the native port?
-* Q6.1.4::     How do I compile for the X port?
-* Q6.1.5::     How do I compile for Cygnus' Cygwin?
-* Q6.1.6::     What do I need for Cygwin?
+* Q6.1.1::      I decided to run with X.  Where do I get an X server?
+* Q6.1.2::      What compiler do I need to compile XEmacs?
+* Q6.1.3::      How do I compile for the native port?
+* Q6.1.4::      How do I compile for the X port?
+* Q6.1.5::      How do I compile for Cygnus' Cygwin?
+* Q6.1.6::      What do I need for Cygwin?
 
 Customization and User Interface
-* Q6.2.1::     How will the port cope with differences in the Windows user interface?
-* Q6.2.2::     How do I change fonts in XEmacs on MS Windows?
-* Q6.2.3::     Where do I put my `.emacs' file?
+* Q6.2.1::      How will the port cope with differences in the Windows user interface?
+* Q6.2.2::      How do I change fonts in XEmacs on MS Windows?
+* Q6.2.3::      Where do I put my `.emacs' file?
 
 Miscellaneous
-* Q6.3.1::     Will XEmacs rename all the win32-* symbols to w32-*?
-* Q6.3.2::     What are the differences between the various MS Windows emacsen?
-* Q6.3.3::     What is the porting team doing at the moment?
+* Q6.3.1::      Will XEmacs rename all the win32-* symbols to w32-*?
+* Q6.3.2::      What are the differences between the various MS Windows emacsen?
+* Q6.3.3::      What is the porting team doing at the moment?
 
 \1f
 File: xemacs-faq.info,  Node: Q6.0.1,  Next: Q6.0.2,  Prev: MS Windows,  Up: MS Windows
@@ -917,7 +807,7 @@ Q6.0.4: Does XEmacs on MS Windows require an X server to run?
    Long answer: XEmacs can be built in several ways in the MS Windows
 environment, some of them requiring an X server and some not.
 
-   One is what we call the "X" port - it requires X libraries to build
+   One is what we call the "X" port--it requires X libraries to build
 and an X server to run.  Internally it uses the Xt event loop and makes
 use of X toolkits.  Its look is quite un-Windowsy, but it works
 reliably and supports all of the graphical features of Unix XEmacs.
@@ -935,7 +825,7 @@ advantage of Cygnus emulation library under Win32, which enables it to
 reuse much of the Unix XEmacs code base, such as processes and network
 support, or internal select() mechanisms.
 
-   Cygwin port supports all display types - TTY, X & MS gui, and can be
+   Cygwin port supports all display types--TTY, X & MS gui, and can be
 built with support for all three.  If you build with ms gui support
 then the Cygwin version uses the majority of the msw code, which is
 mostly related to display.  If you want to build with X support you
@@ -1079,8 +969,8 @@ File: xemacs-faq.info,  Node: Q6.2.2,  Next: Q6.2.3,  Prev: Q6.2.1,  Up: MS Wind
 Q6.2.2: How do I change fonts in XEmacs on MS Windows?
 ------------------------------------------------------
 
-   You can change font manually, but not from the menubar, yet. For
-example:
+   In 21.2.*, use the font menu.  In 21.1.*, you can change font
+manually. For example:
 
          (set-face-font 'default "Lucida Console:Regular:10")
          (set-face-font 'modeline "MS Sans Serif:Regular:10")
@@ -1255,7 +1145,7 @@ increased MIME support, and many, many synches with GNU Emacs 20.
    The XEmacs/Mule support has been only seriously tested in a Japanese
 locale, and no doubt many problems still remain.  The support for
 ISO-Latin-1 and Japanese is fairly strong.  MULE support comes at a
-price - about a 30% slowdown from 19.16.  We're making progress on
+price--about a 30% slowdown from 19.16.  We're making progress on
 improving performance and XEmacs 20.3 compiled without Mule (which is
 the default) is definitely faster than XEmacs 19.16.