home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / GNU / emacs.inst / emacs19.idb / usr / gnu / info / emacs-17.z / emacs-17
Encoding:
GNU Info File  |  1994-08-02  |  48.3 KB  |  1,138 lines

  1. This is Info file ../info/emacs, produced by Makeinfo-1.54 from the
  2. input file emacs.texi.
  3.  
  4. 
  5. File: emacs,  Node: Disabling,  Prev: Mouse Buttons,  Up: Key Bindings
  6.  
  7. Disabling Commands
  8. ------------------
  9.  
  10.    Disabling a command marks the command as requiring confirmation
  11. before it can be executed.  The purpose of disabling a command is to
  12. prevent beginning users from executing it by accident and being
  13. confused.
  14.  
  15.    Attempting to invoke a disabled command interactively in Emacs
  16. causes the display of a window containing the command's name, its
  17. documentation, and some instructions on what to do immediately; then
  18. Emacs asks for input saying whether to execute the command as
  19. requested, enable it and execute, or cancel it.  If you decide to
  20. enable the command, you are asked whether to do this permanently or
  21. just for the current session.  Enabling permanently works by
  22. automatically editing your `.emacs' file.
  23.  
  24.    The direct mechanism for disabling a command is to have a non-`nil'
  25. `disabled' property on the Lisp symbol for the command.  Here is the
  26. Lisp program to do this:
  27.  
  28.      (put 'delete-region 'disabled t)
  29.  
  30.    If the value of the `disabled' property is a string, that string is
  31. included in the message printed when the command is used:
  32.  
  33.      (put 'delete-region 'disabled
  34.           "Text deleted this way cannot be yanked back!\n")
  35.  
  36.    You can make a command disabled either by editing the `.emacs' file
  37. directly or with the command `M-x disable-command', which edits the
  38. `.emacs' file for you.  Likewise, `M-x enable-command' edits `.emacs'
  39. to enable a command permanently.  *Note Init File::.
  40.  
  41.    Whether a command is disabled is independent of what key is used to
  42. invoke it; it also applies if the command is invoked using `M-x'.
  43. Disabling a command has no effect on calling it as a function from Lisp
  44. programs.
  45.  
  46. 
  47. File: emacs,  Node: Keyboard Translations,  Next: Syntax,  Prev: Key Bindings,  Up: Customization
  48.  
  49. Keyboard Translations
  50. =====================
  51.  
  52.    Some keyboards do not make it convenient to send all the special
  53. characters that Emacs uses.  The most common problem case is the DEL
  54. character.  Some keyboards provide no convenient way to type this very
  55. important character--usually because they were designed to expect the
  56. character `C-h' to be used for deletion.  On these keyboard, if you
  57. press the key normally used for deletion, Emacs handles the `C-h' as a
  58. prefix character and offers you a list of help options, which is not
  59. what you want.
  60.  
  61.    You can work around this problem within Emacs by setting up keyboard
  62. translations to turn `C-h' into DEL and DEL into `C-h', as follows:
  63.  
  64.      ;; Translate `C-h' to DEL.
  65.      (keyboard-translate ?\C-h ?\C-?)
  66.      ;; Translate DEL to `C-h'.
  67.      (keyboard-translate ?\C-? ?\C-h)
  68.  
  69.    Keyboard translations are not the same as key bindings in keymaps
  70. (*note Keymaps::.).  Emacs contains numerous keymaps that apply in
  71. different situations, but there is only one set of keyboard
  72. translations, and it applies to every character that Emacs reads from
  73. the terminal.  Keyboard translations take place at the lowest level of
  74. input processing; the keys that are looked up in keymaps contain the
  75. characters that result from keyboard translation.
  76.  
  77.    For full information about how to use keyboard translations, see
  78. *Note Translating Input: (elisp)Translating Input.
  79.  
  80. 
  81. File: emacs,  Node: Syntax,  Next: Init File,  Prev: Keyboard Translations,  Up: Customization
  82.  
  83. The Syntax Table
  84. ================
  85.  
  86.    All the Emacs commands which parse words or balance parentheses are
  87. controlled by the "syntax table".  The syntax table says which
  88. characters are opening delimiters, which are parts of words, which are
  89. string quotes, and so on.  Each major mode has its own syntax table
  90. (though sometimes related major modes use the same one) which it
  91. installs in each buffer that uses that major mode.  The syntax table
  92. installed in the current buffer is the one that all commands use, so we
  93. call it "the" syntax table.  A syntax table is a Lisp object, a vector
  94. of length 256 whose elements are numbers.
  95.  
  96.    To display a description of the contents of the current syntax table,
  97. type `C-h s' (`describe-syntax').  The description of each character
  98. includes both the string you would have to give to
  99. `modify-syntax-entry' to set up that character's current syntax, and
  100. some English to explain that string if necessary.
  101.  
  102.    For full information on the syntax table, see *Note Syntax Table:
  103. (elisp)Syntax Table.
  104.  
  105. 
  106. File: emacs,  Node: Init File,  Prev: Syntax,  Up: Customization
  107.  
  108. The Init File, `~/.emacs'
  109. =========================
  110.  
  111.    When Emacs is started, it normally loads a Lisp program from the file
  112. `.emacs' in your home directory.  We call this file your "init file"
  113. because it specifies how to initialize Emacs for you.  You can use the
  114. command line switches `-q' and `-u' to tell Emacs whether to load an
  115. init file, and which one (*note Entering Emacs::.).
  116.  
  117.    There can also be a "default init file", which is the library named
  118. `default.el', found via the standard search path for libraries.  The
  119. Emacs distribution contains no such library; your site may create one
  120. for local customizations.  If this library exists, it is loaded
  121. whenever you start Emacs (except when you specify `-q').  But your init
  122. file, if any, is loaded first; if it sets `inhibit-default-init'
  123. non-`nil', then `default' is not loaded.
  124.  
  125.    If you have a large amount of code in your `.emacs' file, you should
  126. move it into another file such as `~/SOMETHING.el', byte-compile it,
  127. and make your `.emacs' file load it with `(load "~/SOMETHING")'.  *Note
  128. Byte Compilation: (elisp)Byte Compilation, for more information about
  129. compiling Emacs Lisp programs.
  130.  
  131. * Menu:
  132.  
  133. * Init Syntax::     Syntax of constants in Emacs Lisp.
  134. * Init Examples::   How to do some things with an init file.
  135. * Terminal Init::   Each terminal type can have an init file.
  136. * Find Init::        How Emacs finds the init file.
  137.  
  138. 
  139. File: emacs,  Node: Init Syntax,  Next: Init Examples,  Up: Init File
  140.  
  141. Init File Syntax
  142. ----------------
  143.  
  144.    The `.emacs' file contains one or more Lisp function call
  145. expressions.  Each of these consists of a function name followed by
  146. arguments, all surrounded by parentheses.  For example, `(setq
  147. fill-column 60)' calls the function `setq' to set the variable
  148. `fill-column' (*note Filling::.) to 60.
  149.  
  150.    The second argument to `setq' is an expression for the new value of
  151. the variable.  This can be a constant, a variable, or a function call
  152. expression.  In `.emacs', constants are used most of the time.  They
  153. can be:
  154.  
  155. Numbers:
  156.      Numbers are written in decimal, with an optional initial minus
  157.      sign.
  158.  
  159. Strings:
  160.      Lisp string syntax is the same as C string syntax with a few extra
  161.      features.  Use a double-quote character to begin and end a string
  162.      constant.
  163.  
  164.      In a string, you can include newlines and special characters
  165.      literally.  But often it is cleaner to use backslash sequences for
  166.      them: `\n' for newline, `\b' for backspace, `\r' for carriage
  167.      return, `\t' for tab, `\f' for formfeed (control-L), `\e' for
  168.      escape, `\\' for a backslash, `\"' for a double-quote, or `\OOO'
  169.      for the character whose octal code is OOO.  Backslash and
  170.      double-quote are the only characters for which backslash sequences
  171.      are mandatory.
  172.  
  173.      `\C-' can be used as a prefix for a control character, as in
  174.      `\C-s' for ASCII control-S, and `\M-' can be used as a prefix for
  175.      a Meta character, as in `\M-a' for `Meta-A' or `\M-\C-a' for
  176.      `Control-Meta-A'.
  177.  
  178. Characters:
  179.      Lisp character constant syntax consists of a `?' followed by
  180.      either a character or an escape sequence starting with `\'.
  181.      Examples: `?x', `?\n', `?\"', `?\)'.  Note that strings and
  182.      characters are not interchangeable in Lisp; some contexts require
  183.      one and some contexts require the other.
  184.  
  185. True:
  186.      `t' stands for `true'.
  187.  
  188. False:
  189.      `nil' stands for `false'.
  190.  
  191. Other Lisp objects:
  192.      Write a single-quote (') followed by the Lisp object you want.
  193.  
  194. 
  195. File: emacs,  Node: Init Examples,  Next: Terminal Init,  Prev: Init Syntax,  Up: Init File
  196.  
  197. Init File Examples
  198. ------------------
  199.  
  200.    Here are some examples of doing certain commonly desired things with
  201. Lisp expressions:
  202.  
  203.    * Make TAB in C mode just insert a tab if point is in the middle of a
  204.      line.
  205.  
  206.           (setq c-tab-always-indent nil)
  207.  
  208.      Here we have a variable whose value is normally `t' for `true' and
  209.      the alternative is `nil' for `false'.
  210.  
  211.    * Make searches case sensitive by default (in all buffers that do not
  212.      override this).
  213.  
  214.           (setq-default case-fold-search nil)
  215.  
  216.      This sets the default value, which is effective in all buffers
  217.      that do not have local values for the variable.  Setting
  218.      `case-fold-search' with `setq' affects only the current buffer's
  219.      local value, which is not what you probably want to do in an init
  220.      file.
  221.  
  222.    * Make Text mode the default mode for new buffers.
  223.  
  224.           (setq default-major-mode 'text-mode)
  225.  
  226.      Note that `text-mode' is used because it is the command for
  227.      entering Text mode.  The single-quote before it makes the symbol a
  228.      constant; otherwise, `text-mode' would be treated as a variable
  229.      name.
  230.  
  231.    * Turn on Auto Fill mode automatically in Text mode and related
  232.      modes.
  233.  
  234.           (add-hook 'text-mode-hook
  235.             '(lambda () (auto-fill-mode 1)))
  236.  
  237.      This shows how to add a hook function to a normal hook variable
  238.      (*note Hooks::.).  The function we supply is a list starting with
  239.      `lambda', with a single-quote in front of it to make it a list
  240.      constant rather than an expression.
  241.  
  242.      It's beyond the scope of this manual to explain Lisp functions,
  243.      but for this example it is enough to know that the effect is to
  244.      execute `(auto-fill-mode 1)' when Text mode is entered.  You can
  245.      replace it with any other expression that you like, or with
  246.      several expressions in a row.
  247.  
  248.      Emacs comes with a function named `turn-on-auto-fill' whose
  249.      definition is `(lambda () (auto-fill-mode 1))'.  Thus, a simpler
  250.      way to write the above example is as follows:
  251.  
  252.           (add-hook 'text-mode-hook 'turn-on-auto-fill)
  253.  
  254.    * Load the installed Lisp library named `foo' (actually a file
  255.      `foo.elc' or `foo.el' in a standard Emacs directory).
  256.  
  257.           (load "foo")
  258.  
  259.      When the argument to `load' is a relative file name, not starting
  260.      with `/' or `~', `load' searches the directories in `load-path'
  261.      (*note Lisp Libraries::.).
  262.  
  263.    * Load the compiled Lisp file `foo.elc' from your home directory.
  264.  
  265.           (load "~/foo.elc")
  266.  
  267.      Here an absolute file name is used, so no searching is done.
  268.  
  269.    * Rebind the key `C-x l' to run the function `make-symbolic-link'.
  270.  
  271.           (global-set-key "\C-xl" 'make-symbolic-link)
  272.  
  273.      or
  274.  
  275.           (define-key global-map "\C-xl" 'make-symbolic-link)
  276.  
  277.      Note once again the single-quote used to refer to the symbol
  278.      `make-symbolic-link' instead of its value as a variable.
  279.  
  280.    * Do the same thing for C mode only.
  281.  
  282.           (define-key c-mode-map "\C-xl" 'make-symbolic-link)
  283.  
  284.    * Redefine all keys which now run `next-line' in Fundamental mode so
  285.      that they run `forward-line' instead.
  286.  
  287.           (substitute-key-definition 'next-line 'forward-line
  288.                                      global-map)
  289.  
  290.    * Make `C-x C-v' undefined.
  291.  
  292.           (global-unset-key "\C-x\C-v")
  293.  
  294.      One reason to undefine a key is so that you can make it a prefix.
  295.      Simply defining `C-x C-v ANYTHING' will make `C-x C-v' a prefix,
  296.      but `C-x C-v' must first be freed of its usual non-prefix
  297.      definition.
  298.  
  299.    * Make `$' have the syntax of punctuation in Text mode.  Note the
  300.      use of a character constant for `$'.
  301.  
  302.           (modify-syntax-entry ?\$ "." text-mode-syntax-table)
  303.  
  304.    * Enable the use of the command `eval-expression' without
  305.      confirmation.
  306.  
  307.           (put 'eval-expression 'disabled nil)
  308.  
  309. 
  310. File: emacs,  Node: Terminal Init,  Next: Find Init,  Prev: Init Examples,  Up: Init File
  311.  
  312. Terminal-specific Initialization
  313. --------------------------------
  314.  
  315.    Each terminal type can have a Lisp library to be loaded into Emacs
  316. when it is run on that type of terminal.  For a terminal type named
  317. TERMTYPE, the library is called `term/TERMTYPE' and it is found by
  318. searching the directories `load-path' as usual and trying the suffixes
  319. `.elc' and `.el'.  Normally it appears in the subdirectory `term' of
  320. the directory where most Emacs libraries are kept.
  321.  
  322.    The usual purpose of the terminal-specific library is to define the
  323. escape sequences used by the terminal's function keys using the library
  324. `keypad.el'.  See the file `term/vt100.el' for an example of how this
  325. is done.
  326.  
  327.    When the terminal type contains a hyphen, only the part of the name
  328. before the first hyphen is significant in choosing the library name.
  329. Thus, terminal types `aaa-48' and `aaa-30-rv' both use the library
  330. `term/aaa'.  The code in the library can use `(getenv "TERM")' to find
  331. the full terminal type name.
  332.  
  333.    The library's name is constructed by concatenating the value of the
  334. variable `term-file-prefix' and the terminal type.  Your `.emacs' file
  335. can prevent the loading of the terminal-specific library by setting
  336. `term-file-prefix' to `nil'.
  337.  
  338.    Emacs runs the hook `term-setup-hook' at the end of initialization,
  339. after both your `.emacs' file and any terminal-specific library have
  340. been read in.  Add hook functions to this hook if you wish to override
  341. part of any of the terminal-specific libraries and to define
  342. initializations for terminals that do not have a library.  *Note
  343. Hooks::.
  344.  
  345. 
  346. File: emacs,  Node: Find Init,  Prev: Terminal Init,  Up: Init File
  347.  
  348. How Emacs Finds Your Init File
  349. ------------------------------
  350.  
  351.    Normally Emacs uses the environment variable `HOME' to find
  352. `.emacs'; that's what `~' means in a file name.  But if you have done
  353. `su', Emacs tries to find your own `.emacs', not that of the user you
  354. are currently pretending to be.  The idea is that you should get your
  355. own editor customizations even if you are running as the super user.
  356.  
  357.    More precisely, Emacs first determines which user's init file to use.
  358. It gets the user name from the environment variables `USER' and
  359. `LOGNAME'; if neither of those exists, it uses effective user-ID.  If
  360. that user name matches the real user-ID, then Emacs uses `HOME';
  361. otherwise, it looks up the home directory corresponding to that user
  362. name in the system's data base of users.
  363.  
  364. 
  365. File: emacs,  Node: Quitting,  Next: Lossage,  Prev: Customization,  Up: Top
  366.  
  367. Quitting and Aborting
  368. =====================
  369.  
  370. `C-g'
  371.      Quit.  Cancel running or partially typed command.
  372.  
  373. `C-]'
  374.      Abort innermost recursive editing level and cancel the command
  375.      which invoked it (`abort-recursive-edit').
  376.  
  377. `M-x top-level'
  378.      Abort all recursive editing levels that are currently executing.
  379.  
  380. `C-x u'
  381.      Cancel an already-executed command, usually (`undo').
  382.  
  383.    There are two ways of cancelling commands which are not finished
  384. executing: "quitting" with `C-g', and "aborting" with `C-]' or `M-x
  385. top-level'.  Quitting cancels a partially typed command or one which is
  386. already running.  Aborting exits a recursive editing level and cancels
  387. the command that invoked the recursive edit.  (*Note Recursive Edit::.)
  388.  
  389.    Quitting with `C-g' is used for getting rid of a partially typed
  390. command, or a numeric argument that you don't want.  It also stops a
  391. running command in the middle in a relatively safe way, so you can use
  392. it if you accidentally give a command which takes a long time.  In
  393. particular, it is safe to quit out of killing; either your text will
  394. *all* still be in the buffer, or it will *all* be in the kill ring (or
  395. maybe both).  Quitting an incremental search does special things
  396. documented under searching; in general, it may take two successive
  397. `C-g' characters to get out of a search.
  398.  
  399.    `C-g' works by setting the variable `quit-flag' to `t' the instant
  400. `C-g' is typed; Emacs Lisp checks this variable frequently and quits if
  401. it is non-`nil'.  `C-g' is only actually executed as a command if you
  402. type it while Emacs is waiting for input.
  403.  
  404.    If you quit with `C-g' a second time before the first `C-g' is
  405. recognized, you activate the "emergency escape" feature and return to
  406. the shell.  *Note Emergency Escape::.
  407.  
  408.    There may be times when you cannot quit.  When Emacs is waiting for
  409. the operating system to do something, quitting is impossible unless
  410. special pains are taken for the particular system call within Emacs
  411. where the waiting occurs.  We have done this for the system calls that
  412. users are likely to want to quit from, but it's possible you will find
  413. another.  In one very common case--waiting for file input or output
  414. using NFS--Emacs itself knows how to quit, but most NFS implementations
  415. simply do not allow user programs to stop waiting for NFS when the NFS
  416. server is hung.
  417.  
  418.    Aborting with `C-]' (`abort-recursive-edit') is used to get out of a
  419. recursive editing level and cancel the command which invoked it.
  420. Quitting with `C-g' does not do this, and could not do this, because it
  421. is used to cancel a partially typed command *within* the recursive
  422. editing level.  Both operations are useful.  For example, if you are in
  423. a recursive edit and type `C-u 8' to enter a numeric argument, you can
  424. cancel that argument with `C-g' and remain in the recursive edit.
  425.  
  426.    The command `M-x top-level' is equivalent to "enough" `C-]' commands
  427. to get you out of all the levels of recursive edits that you are in.
  428. `C-]' gets you out one level at a time, but `M-x top-level' goes out
  429. all levels at once.  Both `C-]' and `M-x top-level' are like all other
  430. commands, and unlike `C-g', in that they are effective only when Emacs
  431. is ready for a command.  `C-]' is an ordinary key and has its meaning
  432. only because of its binding in the keymap.  *Note Recursive Edit::.
  433.  
  434.    `C-x u' (`undo') is not strictly speaking a way of cancelling a
  435. command, but you can think of it as cancelling a command already
  436. finished executing.  *Note Undo::.
  437.  
  438. 
  439. File: emacs,  Node: Lossage,  Next: Bugs,  Prev: Quitting,  Up: Top
  440.  
  441. Dealing with Emacs Trouble
  442. ==========================
  443.  
  444.    This section describes various conditions in which Emacs fails to
  445. work normally, and how to recognize them and correct them.
  446.  
  447. * Menu:
  448.  
  449. * DEL Gets Help::       What to do if DEL doesn't delete.
  450. * Stuck Recursive::     `[...]' in mode line around the parentheses.
  451. * Screen Garbled::      Garbage on the screen.
  452. * Text Garbled::        Garbage in the text.
  453. * Unasked-for Search::  Spontaneous entry to incremental search.
  454. * Emergency Escape::    Emergency escape--
  455.                           What to do if Emacs stops responding.
  456. * Total Frustration::   When you are at your wits' end.
  457.  
  458. 
  459. File: emacs,  Node: DEL Gets Help,  Next: Stuck Recursive,  Up: Lossage
  460.  
  461. If DEL Fails to Delete
  462. ----------------------
  463.  
  464.    If you find that DEL enters Help like `Control-h' instead of
  465. deleting a character, your terminal is sending the wrong code for DEL.
  466. You can work around this problem by changing the keyboard translation
  467. table (*note Keyboard Translations::.).
  468.  
  469. 
  470. File: emacs,  Node: Stuck Recursive,  Next: Screen Garbled,  Prev: DEL Gets Help,  Up: Lossage
  471.  
  472. Recursive Editing Levels
  473. ------------------------
  474.  
  475.    Recursive editing levels are important and useful features of Emacs,
  476. but they can seem like malfunctions to the user who does not understand
  477. them.
  478.  
  479.    If the mode line has square brackets `[...]' around the parentheses
  480. that contain the names of the major and minor modes, you have entered a
  481. recursive editing level.  If you did not do this on purpose, or if you
  482. don't understand what that means, you should just get out of the
  483. recursive editing level.  To do so, type `M-x top-level'.  This is
  484. called getting back to top level.  *Note Recursive Edit::.
  485.  
  486. 
  487. File: emacs,  Node: Screen Garbled,  Next: Text Garbled,  Prev: Stuck Recursive,  Up: Lossage
  488.  
  489. Garbage on the Screen
  490. ---------------------
  491.  
  492.    If the data on the screen looks wrong, the first thing to do is see
  493. whether the text is really wrong.  Type `C-l', to redisplay the entire
  494. screen.  If the screen appears correct after this, the problem was
  495. entirely in the previous screen update.
  496.  
  497.    Display updating problems often result from an incorrect termcap
  498. entry for the terminal you are using.  The file `etc/TERMS' in the Emacs
  499. distribution gives the fixes for known problems of this sort.
  500. `INSTALL' contains general advice for these problems in one of its
  501. sections.  Very likely there is simply insufficient padding for certain
  502. display operations.  To investigate the possibility that you have this
  503. sort of problem, try Emacs on another terminal made by a different
  504. manufacturer.  If problems happen frequently on one kind of terminal
  505. but not another kind, it is likely to be a bad termcap entry, though it
  506. could also be due to a bug in Emacs that appears for terminals that
  507. have or that lack specific features.
  508.  
  509. 
  510. File: emacs,  Node: Text Garbled,  Next: Unasked-for Search,  Prev: Screen Garbled,  Up: Lossage
  511.  
  512. Garbage in the Text
  513. -------------------
  514.  
  515.    If `C-l' shows that the text is wrong, try undoing the changes to it
  516. using `C-x u' until it gets back to a state you consider correct.  Also
  517. try `C-h l' to find out what command you typed to produce the observed
  518. results.
  519.  
  520.    If a large portion of text appears to be missing at the beginning or
  521. end of the buffer, check for the word `Narrow' in the mode line.  If it
  522. appears, the text is still present, but temporarily off-limits.  To
  523. make it accessible again, type `C-x n w'.  *Note Narrowing::.
  524.  
  525. 
  526. File: emacs,  Node: Unasked-for Search,  Next: Emergency Escape,  Prev: Text Garbled,  Up: Lossage
  527.  
  528. Spontaneous Entry to Incremental Search
  529. ---------------------------------------
  530.  
  531.    If Emacs spontaneously displays `I-search:' at the bottom of the
  532. screen, it means that the terminal is sending `C-s' and `C-q' according
  533. to the poorly designed xon/xoff "flow control" protocol.
  534.  
  535.    If this happens to you, your best recourse is to put the terminal in
  536. a mode where it will not use flow control, or give it so much padding
  537. that it will never send a `C-s'.  (One way to increase the amount of
  538. padding is to set the variable `baud-rate' to a larger value.  Its
  539. value is the terminal output speed, measured in the conventional units
  540. of baud.)
  541.  
  542.    If you don't succeed in turning off flow control, the next best thing
  543. is to tell Emacs to cope with it.  To do this, call the function
  544. `enable-flow-control'.
  545.  
  546.    Typically there are particular terminal types with which you must use
  547. flow control.  You can conveniently ask for flow control on those
  548. terminal types only, using `enable-flow-control-on'.  For example, if
  549. you find you must use flow control on VT-100 and H19 terminals, put the
  550. following in your `.emacs' file:
  551.  
  552.      (enable-flow-control-on "vt100" "h19")
  553.  
  554.    When flow control is enabled, you must type `C-\' to get the effect
  555. of a `C-s', and type `C-^' to get the effect of a `C-q'.  (These
  556. aliases work by means of keyboard translations; see *Note Keyboard
  557. Translations::.)
  558.  
  559. 
  560. File: emacs,  Node: Emergency Escape,  Next: Total Frustration,  Prev: Unasked-for Search,  Up: Lossage
  561.  
  562. Emergency Escape
  563. ----------------
  564.  
  565.    Because at times there have been bugs causing Emacs to loop without
  566. checking `quit-flag', a special feature causes Emacs to be suspended
  567. immediately if you type a second `C-g' while the flag is already set,
  568. so you can always get out of GNU Emacs.  Normally Emacs recognizes and
  569. clears `quit-flag' (and quits!) quickly enough to prevent this from
  570. happening.
  571.  
  572.    When you resume Emacs after a suspension caused by multiple `C-g', it
  573. asks two questions before going back to what it had been doing:
  574.  
  575.      Auto-save? (y or n)
  576.      Abort (and dump core)? (y or n)
  577.  
  578. Answer each one with `y' or `n' followed by RET.
  579.  
  580.    Saying `y' to `Auto-save?' causes immediate auto-saving of all
  581. modified buffers in which auto-saving is enabled.
  582.  
  583.    Saying `y' to `Abort (and dump core)?' causes an illegal instruction
  584. to be executed, dumping core.  This is to enable a wizard to figure out
  585. why Emacs was failing to quit in the first place.  Execution does not
  586. continue after a core dump.  If you answer `n', execution does
  587. continue.  With luck, GNU Emacs will ultimately check `quit-flag' and
  588. quit normally.  If not, and you type another `C-g', it is suspended
  589. again.
  590.  
  591.    If Emacs is not really hung, just slow, you may invoke the double
  592. `C-g' feature without really meaning to.  Then just resume and answer
  593. `n' to both questions, and you will arrive at your former state.
  594. Presumably the quit you requested will happen soon.
  595.  
  596.    The double-`C-g' feature is turned off when Emacs is running under
  597. the X Window System, since the you can use the window manager to kill
  598. Emacs or to create another window and run another program.
  599.  
  600. 
  601. File: emacs,  Node: Total Frustration,  Prev: Emergency Escape,  Up: Lossage
  602.  
  603. Help for Total Frustration
  604. --------------------------
  605.  
  606.    If using Emacs (or something else) becomes terribly frustrating and
  607. none of the techniques described above solve the problem, Emacs can
  608. still help you.
  609.  
  610.    First, if the Emacs you are using is not responding to commands, type
  611. `C-g C-g' to get out of it and then start a new one.
  612.  
  613.    Second, type `M-x doctor RET'.
  614.  
  615.    The doctor will help you feel better.  Each time you say something to
  616. the doctor, you must end it by typing RET RET.  This lets the doctor
  617. know you are finished.
  618.  
  619. 
  620. File: emacs,  Node: Bugs,  Next: Service,  Prev: Lossage,  Up: Top
  621.  
  622. Reporting Bugs
  623. ==============
  624.  
  625.    Sometimes you will encounter a bug in Emacs.  Although we cannot
  626. promise we can or will fix the bug, and we might not even agree that it
  627. is a bug, we want to hear about bugs you encounter in case we do want
  628. to fix them.
  629.  
  630.    To make it possible for us to fix a bug, you must report it.  In
  631. order to do so effectively, you must know when and how to do it.
  632.  
  633. * Menu:
  634.  
  635. * Criteria:  Bug Criteria.     Have you really found a bug?
  636. * Understanding Bug Reporting::     How to report a bug effectively.
  637. * Checklist::             Steps to follow for a good bug report.
  638. * Sending Patches::         How to send a patch for GNU Emacs.
  639.  
  640. 
  641. File: emacs,  Node: Bug Criteria,  Next: Understanding Bug Reporting,  Up: Bugs
  642.  
  643. When Is There a Bug
  644. -------------------
  645.  
  646.    If Emacs executes an illegal instruction, or dies with an operating
  647. system error message that indicates a problem in the program (as
  648. opposed to something like "disk full"), then it is certainly a bug.
  649.  
  650.    If Emacs updates the display in a way that does not correspond to
  651. what is in the buffer, then it is certainly a bug.  If a command seems
  652. to do the wrong thing but the problem corrects itself if you type
  653. `C-l', it is a case of incorrect display updating.
  654.  
  655.    Taking forever to complete a command can be a bug, but you must make
  656. certain that it was really Emacs's fault.  Some commands simply take a
  657. long time.  Type `C-g' and then `C-h l' to see whether the input Emacs
  658. received was what you intended to type; if the input was such that you
  659. *know* it should have been processed quickly, report a bug.  If you
  660. don't know whether the command should take a long time, find out by
  661. looking in the manual or by asking for assistance.
  662.  
  663.    If a command you are familiar with causes an Emacs error message in a
  664. case where its usual definition ought to be reasonable, it is probably a
  665. bug.
  666.  
  667.    If a command does the wrong thing, that is a bug.  But be sure you
  668. know for certain what it ought to have done.  If you aren't familiar
  669. with the command, or don't know for certain how the command is supposed
  670. to work, then it might actually be working right.  Rather than jumping
  671. to conclusions, show the problem to someone who knows for certain.
  672.  
  673.    Finally, a command's intended definition may not be best for editing
  674. with.  This is a very important sort of problem, but it is also a
  675. matter of judgment.  Also, it is easy to come to such a conclusion out
  676. of ignorance of some of the existing features.  It is probably best not
  677. to complain about such a problem until you have checked the
  678. documentation in the usual ways, feel confident that you understand it,
  679. and know for certain that what you want is not available.  If you are
  680. not sure what the command is supposed to do after a careful reading of
  681. the manual, check the index and glossary for any terms that may be
  682. unclear.
  683.  
  684.    If you still do not understand, that indicates a bug in the manual,
  685. which you should report.  The manual's job is to make everything clear
  686. to people who are not Emacs experts--including you.  It is just as
  687. important to report documentation bugs as program bugs.
  688.  
  689.    If the on-line documentation string of a function or variable
  690. disagrees with the manual, one of them must be wrong; that is a bug.
  691.  
  692. 
  693. File: emacs,  Node: Understanding Bug Reporting,  Next: Checklist,  Prev: Bug Criteria,  Up: Bugs
  694.  
  695. Understanding Bug Reporting
  696. ---------------------------
  697.  
  698.    When you decide that there is a bug, it is important to report it
  699. and to report it in a way which is useful.  What is most useful is an
  700. exact description of what commands you type, starting with the shell
  701. command to run Emacs, until the problem happens.
  702.  
  703.    The most important principle in reporting a bug is to report *facts*,
  704. not hypotheses or categorizations.  It is always easier to report the
  705. facts, but people seem to prefer to strain to posit explanations and
  706. report them instead.  If the explanations are based on guesses about
  707. how Emacs is implemented, they will be useless; we will have to try to
  708. figure out what the facts must have been to lead to such speculations.
  709. Sometimes this is impossible.  But in any case, it is unnecessary work
  710. for us.
  711.  
  712.    For example, suppose that you type `C-x C-f /glorp/baz.ugh RET',
  713. visiting a file which (you know) happens to be rather large, and Emacs
  714. prints out `I feel pretty today'.  The best way to report the bug is
  715. with a sentence like the preceding one, because it gives all the facts
  716. and nothing but the facts.
  717.  
  718.    Do not assume that the problem is due to the size of the file and
  719. say, "When I visit a large file, Emacs prints out `I feel pretty
  720. today'." This is what we mean by "guessing explanations".  The problem
  721. is just as likely to be due to the fact that there is a `z' in the file
  722. name.  If this is so, then when we got your report, we would try out
  723. the problem with some "large file", probably with no `z' in its name,
  724. and not find anything wrong.  There is no way in the world that we
  725. could guess that we should try visiting a file with a `z' in its name.
  726.  
  727.    Alternatively, the problem might be due to the fact that the file
  728. starts with exactly 25 spaces.  For this reason, you should make sure
  729. that you inform us of the exact contents of any file that is needed to
  730. reproduce the bug.  What if the problem only occurs when you have typed
  731. the `C-x C-a' command previously?  This is why we ask you to give the
  732. exact sequence of characters you typed since starting to use Emacs.
  733.  
  734.    You should not even say "visit a file" instead of `C-x C-f' unless
  735. you *know* that it makes no difference which visiting command is used.
  736. Similarly, rather than saying "if I have three characters on the line,"
  737. say "after I type `RET A B C RET C-p'," if that is the way you entered
  738. the text.
  739.  
  740. 
  741. File: emacs,  Node: Checklist,  Next: Sending Patches,  Prev: Understanding Bug Reporting,  Up: Bugs
  742.  
  743. Checklist for Bug Reports
  744. -------------------------
  745.  
  746.    The best way to send a bug report is to mail it electronically to the
  747. Emacs maintainers at `bug-gnu-emacs@prep.ai.mit.edu'.
  748.  
  749.    If you'd like to read the bug reports, you can find them on the
  750. repeater newsgroup `gnu.emacs.bugs'; keep in mind, however, that as a
  751. spectator you should not criticize anything about what you see there.
  752. The purpose of bug reports is to give information to the Emacs
  753. maintainers.  Spectators are welcome only as long as they do not
  754. interfere with this.
  755.  
  756.    Please do not post bug reports using netnews; mail is more reliable
  757. than netnews about reporting your correct address, which we may need in
  758. order to ask you for more information.
  759.  
  760.    If you can't send electronic mail, then mail the bug report on paper
  761. to this address:
  762.  
  763. GNU Emacs Bugs
  764. Free Software Foundation
  765. 675 Mass Ave
  766. Cambridge, MA 02139
  767.  
  768.    We do not promise to fix the bug; but if the bug is serious, or
  769. ugly, or easy to fix, chances are we will want to.
  770.  
  771.    To enable maintainers to investigate a bug, your report should
  772. include all these things:
  773.  
  774.    * The version number of Emacs.  Without this, we won't know whether
  775.      there is any point in looking for the bug in the current version
  776.      of GNU Emacs.
  777.  
  778.      You can get the version number by typing `M-x emacs-version RET'.
  779.      If that command does not work, you probably have something other
  780.      than GNU Emacs, so you will have to report the bug somewhere else.
  781.  
  782.    * The type of machine you are using, and the operating system name
  783.      and version number.
  784.  
  785.    * The operands you gave to the `configure' command when you installed
  786.      Emacs.
  787.  
  788.    * A complete list of any modifications you have made to the Emacs
  789.      source.  (We may not have time to investigate the bug unless it
  790.      happens in an unmodified Emacs.  But if you've made modifications
  791.      and don't tell us, then you are sending us on a wild goose chase.)
  792.  
  793.      Be precise about these changes.  A description in English is not
  794.      enough--send a context diff for them.
  795.  
  796.      Adding files of your own (such as a machine description for a
  797.      machine we don't support) is a modification of the source.
  798.  
  799.    * Details of any other deviations from the standard procedure for
  800.      installing GNU Emacs.
  801.  
  802.    * The complete text of any files needed to reproduce the bug.
  803.  
  804.      If you can tell us a way to cause the problem without visiting any
  805.      files, please do so.  This makes it much easier to debug.  If you
  806.      do need files, make sure you arrange for us to see their exact
  807.      contents.  For example, it can often matter whether there are
  808.      spaces at the ends of lines, or a newline after the last line in
  809.      the buffer (nothing ought to care whether the last line is
  810.      terminated, but try telling the bugs that).
  811.  
  812.    * The precise commands we need to type to reproduce the bug.
  813.  
  814.      The easy way to record the input to Emacs precisely is to to write
  815.      a dribble file.  To start the file, execute the Lisp expression
  816.  
  817.           (open-dribble-file "~/dribble")
  818.  
  819.      using `M-ESC' or from the `*scratch*' buffer just after starting
  820.      Emacs.  From then on, Emacs copies all your input to the specified
  821.      dribble file until the Emacs process is killed.
  822.  
  823.    * For possible display bugs, the terminal type (the value of
  824.      environment variable `TERM'), the complete termcap entry for the
  825.      terminal from `/etc/termcap' (since that file is not identical on
  826.      all machines), and the output that Emacs actually sent to the
  827.      terminal.
  828.  
  829.      The way to collect the terminal output is to execute the Lisp
  830.      expression
  831.  
  832.           (open-termscript "~/termscript")
  833.  
  834.      using `M-ESC' or from the `*scratch*' buffer just after starting
  835.      Emacs.  From then on, Emacs copies all terminal output to the
  836.      specified termscript file as well, until the Emacs process is
  837.      killed.  If the problem happens when Emacs starts up, put this
  838.      expression into your `.emacs' file so that the termscript file
  839.      will be open when Emacs displays the screen for the first time.
  840.  
  841.      Be warned: it is often difficult, and sometimes impossible, to fix
  842.      a terminal-dependent bug without access to a terminal of the type
  843.      that stimulates the bug.
  844.  
  845.    * A description of what behavior you observe that you believe is
  846.      incorrect.  For example, "The Emacs process gets a fatal signal,"
  847.      or, "The resulting text is as follows, which I think is wrong."
  848.  
  849.      Of course, if the bug is that Emacs gets a fatal signal, then one
  850.      can't miss it.  But if the bug is incorrect text, the maintainer
  851.      might fail to notice what is wrong.  Why leave it to chance?
  852.  
  853.      Even if the problem you experience is a fatal signal, you should
  854.      still say so explicitly.  Suppose something strange is going on,
  855.      such as, your copy of the source is out of sync, or you have
  856.      encountered a bug in the C library on your system.  (This has
  857.      happened!)  Your copy might crash and the copy here would not.  If
  858.      you *said* to expect a crash, then when Emacs here fails to crash,
  859.      we would know that the bug was not happening.  If you don't say to
  860.      expect a crash, then we would not know whether the bug was
  861.      happening.  We would not be able to draw any conclusion from our
  862.      observations.
  863.  
  864.      If the manifestation of the bug is an Emacs error message, it is
  865.      important to report not just the text of the error message but a
  866.      backtrace showing how the Lisp program in Emacs arrived at the
  867.      error.  To make the backtrace, execute the Lisp expression `(setq
  868.      debug-on-error t)' before the error happens (that is to say, you
  869.      must execute that expression and then make the bug happen).  This
  870.      causes the Lisp debugger to run, showing you a backtrace.  Copy
  871.      the text of the debugger's backtrace into the bug report.
  872.  
  873.      This use of the debugger is possible only if you know how to make
  874.      the bug happen again.  Do note the error message the first time
  875.      the bug happens, so if you can't make it happen again, you can
  876.      report at least the error message.
  877.  
  878.    * Check whether any programs you have loaded into the Lisp world,
  879.      including your `.emacs' file, set any variables that may affect the
  880.      functioning of Emacs.  Also, see whether the problem happens in a
  881.      freshly started Emacs without loading your `.emacs' file (start
  882.      Emacs with the `-q' switch to prevent loading the init file.)  If
  883.      the problem does *not* occur then, you must report the precise
  884.      contents of any programs that you must load into the Lisp world in
  885.      order to cause the problem to occur.
  886.  
  887.    * If the problem does depend on an init file or other Lisp programs
  888.      that are not part of the standard Emacs system, then you should
  889.      make sure it is not a bug in those programs by complaining to
  890.      their maintainers first.  After they verify that they are using
  891.      Emacs in a way that is supposed to work, they should report the
  892.      bug.
  893.  
  894.    * If you wish to mention something in the GNU Emacs source, show the
  895.      portion in its context.  Don't just give a line number.
  896.  
  897.      The line numbers in the development sources don't match those in
  898.      your sources.  It would take extra work for the maintainers to
  899.      determine what code is in your version at a given line number, and
  900.      we could not be certain.
  901.  
  902.    * Additional information from a debugger might enable someone to
  903.      find a problem on a machine which he does not have available.
  904.      However, you need to think when you collect this information if
  905.      you want it to be useful.
  906.  
  907.      For example, many people send just a backtrace, but that is never
  908.      useful by itself.  A simple backtrace with arguments conveys
  909.      little about what is happening inside GNU Emacs, because most of
  910.      the arguments listed in the backtrace are pointers to Lisp
  911.      objects.  The numeric values of these pointers have no
  912.      significance whatever; all that matters is the contents of the
  913.      objects they point to (and most of the contents are themselves
  914.      pointers).
  915.  
  916.      To provide useful information, you need to show the values of Lisp
  917.      objects in Lisp notation.  Do this for each variable which is a
  918.      Lisp object, in several stack frames near the bottom of the stack.
  919.      Look at the source to see which variables are Lisp objects,
  920.      because the debugger thinks of them as integers.
  921.  
  922.      To show a variable's value in Lisp syntax, first print its value,
  923.      then use the GDB command `pr' to print the Lisp object in Lisp
  924.      syntax.  (If you must use another debugger, call the function
  925.      `debug_print' with the object as an argument.)  The `pr' command
  926.      is defined by the file `src/.gdbinit' in the Emacs distribution,
  927.      and it works only if you are debugging a running process (not with
  928.      a core dump).
  929.  
  930.    Here are some things that are not necessary:
  931.  
  932.    * A description of the envelope of the bug--this is not necessary
  933.      for a reproducible bug.
  934.  
  935.      Often people who encounter a bug spend a lot of time investigating
  936.      which changes to the input file will make the bug go away and which
  937.      changes will not affect it.
  938.  
  939.      This is often time consuming and not very useful, because the way
  940.      we will find the bug is by running a single example under the
  941.      debugger with breakpoints, not by pure deduction from a series of
  942.      examples.  You might as well save time by not doing this.
  943.  
  944.      Of course, if you can find a simpler example to report *instead* of
  945.      the original one, that is a convenience.  Errors in the output
  946.      will be easier to spot, running under the debugger will take less
  947.      time, etc.
  948.  
  949.      However, simplification is not vital; if you don't want to do this,
  950.      please report the bug with your original test case.
  951.  
  952.    * A patch for the bug.
  953.  
  954.      A patch for the bug is useful if it is a good one.  But don't omit
  955.      the necessary information, such as the test case, on the
  956.      assumption that a patch is all we need.  We might see problems
  957.      with your patch and decide to fix the problem another way, or we
  958.      might not understand it at all.
  959.  
  960.      And if we can't understand what bug you are trying to fix, or why
  961.      your patch should be an improvement, we mustn't install it.  A
  962.      test case will help us to understand.
  963.  
  964.      *Note Sending Patches::, for guidelines on how to make it easy for
  965.      us to understand and install your patches.
  966.  
  967.    * A guess about what the bug is or what it depends on.
  968.  
  969.      Such guesses are usually wrong.  Even experts can't guess right
  970.      about such things without first using the debugger to find the
  971.      facts.
  972.  
  973. 
  974. File: emacs,  Node: Sending Patches,  Prev: Checklist,  Up: Bugs
  975.  
  976. Sending Patches for GNU Emacs
  977. -----------------------------
  978.  
  979.    If you would like to write bug fixes or improvements for GNU Emacs,
  980. that is very helpful.  When you send your changes, please follow these
  981. guidelines to make it easy for the maintainers to use them.
  982.  
  983.    If you don't follow these guidelines, your information might still be
  984. useful, but using it will take extra work.  Maintaining GNU Emacs is a
  985. lot of work in the best of circumstances, and we can't keep up unless
  986. you do your best to help.
  987.  
  988.    * Send an explanation with your changes of what problem they fix or
  989.      what improvement they bring about.  For a bug fix, just include a
  990.      copy of the bug report, and explain why the change fixes the bug.
  991.  
  992.      (Referring to a bug report is not as good as including it, because
  993.      then we will have to look it up, and we have probably already
  994.      deleted it if we've already fixed the bug.)
  995.  
  996.    * Always include a proper bug report for the problem you think you
  997.      have fixed.  We need to convince ourselves that the change is
  998.      right before installing it.  Even if it is correct, we might have
  999.      trouble understanding it if we don't have a way to reproduce the
  1000.      problem.
  1001.  
  1002.    * Include all the comments that are appropriate to help people
  1003.      reading the source in the future understand why this change was
  1004.      needed.
  1005.  
  1006.    * Don't mix together changes made for different reasons.  Send them
  1007.      *individually*.
  1008.  
  1009.      If you make two changes for separate reasons, then we might not
  1010.      want to install them both.  We might want to install just one.  If
  1011.      you send them all jumbled together in a single set of diffs, we
  1012.      have to do extra work to disentangle them--to figure out which
  1013.      parts of the change serve which purpose.  If we don't have time
  1014.      for this, we might have to ignore your changes entirely.
  1015.  
  1016.      If you send each change as soon as you have written it, with its
  1017.      own explanation, then the two changes never get tangled up, and we
  1018.      can consider each one properly without any extra work to
  1019.      disentangle them.
  1020.  
  1021.    * Send each change as soon as that change is finished.  Sometimes
  1022.      people think they are helping us by accumulating many changes to
  1023.      send them all together.  As explained above, this is absolutely
  1024.      the worst thing you could do.
  1025.  
  1026.      Since you should send each change separately, you might as well
  1027.      send it right away.  That gives us the option of installing it
  1028.      immediately if it is important.
  1029.  
  1030.    * Use `diff -c' to make your diffs.  Diffs without context are hard
  1031.      to install reliably.  More than that, they are hard to study; we
  1032.      must always study a patch to decide whether we want to install it.
  1033.      Unidiff format is better than contextless diffs, but not as easy
  1034.      to read as `-c' format.
  1035.  
  1036.      If you have GNU diff, use `diff -cp', which shows the name of the
  1037.      function that each change occurs in.
  1038.  
  1039.    * Write the change log entries for your changes.  This is both to
  1040.      save us the extra work of writing them, and to help explain your
  1041.      changes so we can understand them.
  1042.  
  1043.      The purpose of the change log is to show people where to find what
  1044.      was changed.  So you need to be specific about what functions you
  1045.      changed; in large functions, it's often helpful to indicate where
  1046.      within the function the change was.
  1047.  
  1048.      On the other hand, once you have shown people where to find the
  1049.      change, you need not explain its purpose. Thus, if you add a new
  1050.      function, all you need to say about it is that it is new.  If you
  1051.      feel that the purpose needs explaining, it probably does--but the
  1052.      explanation will be much more useful if you put it in comments in
  1053.      the code.
  1054.  
  1055.      Please read the `ChangeLog' file to see what sorts of information
  1056.      to put in, and to learn the style that we use.  If you would like
  1057.      your name to appear in the header line showing who made the
  1058.      change, send us the header line.
  1059.  
  1060.    * When you write the fix, keep in mind that we can't install a
  1061.      change that would break other systems.  Please think about what
  1062.      effect your change will have if compiled on another type of system.
  1063.  
  1064.      Sometimes people send fixes that *might* be an improvement in
  1065.      general--but it is hard to be sure of this.  It's hard to install
  1066.      such changes because we have to study them very carefully.  Of
  1067.      course, a good explanation of the reasoning by which you concluded
  1068.      the change was correct can help convince us.
  1069.  
  1070.      The safest changes are changes to the configuration files for a
  1071.      particular machine.  These are safe because they can't create new
  1072.      bugs on other machines.
  1073.  
  1074.      Please help us keep up with the workload by designing the patch in
  1075.      a form that is clearly safe to install.
  1076.  
  1077. 
  1078. File: emacs,  Node: Service,  Next: Command Arguments,  Prev: Bugs,  Up: Top
  1079.  
  1080. How To Get Help with GNU Emacs
  1081. ==============================
  1082.  
  1083.    If you need help installing, using or changing GNU Emacs, there are
  1084. two ways to find it:
  1085.  
  1086.    * Send a message to a suitable network mailing list.  First try
  1087.      `bug-gnu-emacs@prep.ai.mit.edu', and if that brings no response,
  1088.      try `help-gnu-emacs@prep.ai.mit.edu'.
  1089.  
  1090.    * Look in the service directory for someone who might help you for a
  1091.      fee.  The service directory is found in the file named
  1092.      `etc/SERVICE' in the Emacs distribution.
  1093.  
  1094. 
  1095. File: emacs,  Node: Command Arguments,  Next: Antinews,  Prev: Service,  Up: Top
  1096.  
  1097. Command Line Options and Arguments
  1098. **********************************
  1099.  
  1100.    GNU Emacs supports command line arguments to request various actions
  1101. when invoking Emacs.  These are for compatibility with other editors and
  1102. for sophisticated activities.  We don't recommend using them for
  1103. ordinary editing.
  1104.  
  1105.    Arguments that are not options specify files to visit.  Emacs visits
  1106. the specified files while it starts up.  (The last file name on your
  1107. command line is the one you see displayed, but the rest are all there in
  1108. other buffers.)
  1109.  
  1110.    You can use options to specify other things, such as the size and
  1111. position of the Emacs window if you are running it under the X Window
  1112. System.  A few arguments support advanced usage, like running Lisp
  1113. functions on files in batch mode.
  1114.  
  1115.    There are two kinds of options: "ordinary options" and "initial
  1116. options".  Ordinary options can appear in any order and can be
  1117. intermixed with file names to visit.  These and file names are called
  1118. "ordinary arguments".  Emacs processes all of these in the order they
  1119. are written.  Initial options must come at the beginning of the command
  1120. line.
  1121.  
  1122. * Menu:
  1123.  
  1124. * Ordinary Arguments::    Arguments to visit files, load libraries,
  1125.               and call functions.
  1126. * Initial Options::     Arguments that must come at the start of the command.
  1127. * Command Example::     Examples of using command line arguments.
  1128. * Resume Arguments::    Specifying arguments when you resume a running Emacs.
  1129.  
  1130. * Display X::           Changing the default display and using remote login.
  1131. * Font X::            Choosing a font for text, under X.
  1132. * Colors X::            Choosing colors, under X.
  1133. * Window Size X::       Start-up window size, under X.
  1134. * Borders X::            Internal and external borders, under X.
  1135. * Icons X::             Choosing what sort of icon to use, under X.
  1136. * Resources X::         Advanced use of classes and resources, under X.
  1137.  
  1138.