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-18.z / emacs-18
Encoding:
GNU Info File  |  1994-08-02  |  33.8 KB  |  932 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: Ordinary Arguments,  Next: Initial Options,  Up: Command Arguments
  6.  
  7. Ordinary Arguments
  8. ==================
  9.  
  10.    Here is a table of the ordinary arguments and options:
  11.  
  12. `FILE'
  13.      Visit FILE using `find-file'.  *Note Visiting::.
  14.  
  15. `+LINENUM FILE'
  16.      Visit FILE using `find-file', then go to line number LINENUM in it.
  17.  
  18. `-l FILE'
  19. `-load FILE'
  20.      Load a file FILE of Lisp code with the function `load'.  *Note
  21.      Lisp Libraries::.
  22.  
  23. `-f FUNCTION'
  24. `-funcall FUNCTION'
  25.      Call Lisp function FUNCTION with no arguments.
  26.  
  27. `-insert FILE'
  28.      Insert the contents of FILE into the current buffer.  This is like
  29.      what `M-x insert-buffer' does; *Note Misc File Ops::.
  30.  
  31. `-kill'
  32.      Exit from Emacs without asking for confirmation.
  33.  
  34. 
  35. File: emacs,  Node: Initial Options,  Next: Command Example,  Prev: Ordinary Arguments,  Up: Command Arguments
  36.  
  37. Initial Options
  38. ===============
  39.  
  40.    The initial options are recognized only at the beginning of the
  41. command line.  If you use more than one of them, they must appear in the
  42. order that they appear in this table.
  43.  
  44. `-t DEVICE'
  45.      Use DEVICE as the device for terminal input and output.
  46.  
  47. `-d DISPLAY'
  48.      When running with the X Window System, use the display named
  49.      DISPLAY to make the window that serves as Emacs's terminal.
  50.  
  51. `-nw'
  52.      Don't communicate directly with X, disregarding the `DISPLAY'
  53.      environment variable even if it is set.  `-nw' stands for
  54.      "non-window."
  55.  
  56. `-batch'
  57.      Run Emacs in "batch mode", which means that the text being edited
  58.      is not displayed and the standard Unix interrupt characters such
  59.      as `C-z' and `C-c' continue to have their normal effect.  Emacs in
  60.      batch mode outputs to `stdout' only what would normally be printed
  61.      in the echo area under program control.
  62.  
  63.      Batch mode is used for running programs written in Emacs Lisp from
  64.      shell scripts, makefiles, and so on.  Normally the `-l' option or
  65.      `-f' option will be used as well, to invoke a Lisp program to do
  66.      the batch processing.
  67.  
  68.      `-batch' implies `-q' (do not load an init file).  It also causes
  69.      Emacs to kill itself after all command options have been
  70.      processed.  In addition, auto-saving is not done except in buffers
  71.      for which it has been explicitly requested.
  72.  
  73. `-q'
  74. `-no-init-file'
  75.      Do not load your Emacs init file `~/.emacs'.
  76.  
  77. `-u USER'
  78. `-user USER'
  79.      Load USER's Emacs init file `~USER/.emacs' instead of your own.
  80.  
  81.    The init file can get access to the values of the command line
  82. arguments as the elements of a list in the variable
  83. `command-line-args'.  (The list contains only the arguments from the
  84. first table above.  Emacs processes the arguments from the second table
  85. before building the list.)  The init file can override the normal
  86. processing of the other arguments by setting this variable.
  87.  
  88. 
  89. File: emacs,  Node: Command Example,  Next: Resume Arguments,  Prev: Initial Options,  Up: Command Arguments
  90.  
  91. Command Argument Example
  92. ========================
  93.  
  94.    Here is an example of using Emacs with arguments and options.  It
  95. assumes you have a Lisp program file called `hack-c.el' which, when
  96. loaded, performs some useful operation on current buffer, expected to be
  97. a C program.
  98.  
  99.      emacs -batch foo.c -l hack-c -f save-buffer -kill > log
  100.  
  101. This says to visit `foo.c', load `hack-c.el' (which makes changes in
  102. the visited file), save `foo.c' (note that `save-buffer' is the
  103. function that `C-x C-s' is bound to), and then exit to the shell that
  104. this command was done with.  The initial option `-batch' guarantees
  105. there will be no problem redirecting output to `log', because Emacs
  106. will not assume that it has a display terminal to work with.
  107.  
  108. 
  109. File: emacs,  Node: Resume Arguments,  Next: Display X,  Prev: Command Example,  Up: Command Arguments
  110.  
  111. Resuming Emacs with Arguments
  112. =============================
  113.  
  114.    You can specify ordinary arguments for Emacs when you resume it after
  115. a suspension.  To prepare for this, put the following code in your
  116. `.emacs' file (*note Hooks::.):
  117.  
  118.      (add-hook 'suspend-hook 'resume-suspend-hook)
  119.  
  120.    As further preparation, you must execute the shell script
  121. `emacs.csh' (if you use CSH as your shell) or `emacs.bash' (if you use
  122. BASH as your shell).  These scripts define an alias named `edit', which
  123. will resume Emacs giving it new command line arguments such as files to
  124. visit.
  125.  
  126.    Only ordinary arguments work properly when you resume Emacs.  Initial
  127. arguments are not recognized.  It's too late to execute them anyway.
  128.  
  129.    Note that resuming Emacs (with or without arguments) must be done
  130. from within the shell that is the parent of the Emacs job.  This is why
  131. `edit' is an alias rather than a program or a shell script.  It is not
  132. possible to implement a resumption command that could be run from other
  133. subjobs of the shell; no way to define a command that could be made the
  134. value of `EDITOR', for example.  Therefore, this feature does not take
  135. the place of the the Emacs Server feature.  *Note Emacs Server::.
  136.  
  137.    The aliases use the Emacs Server feature if you appear to have a
  138. server Emacs running.  However, they cannot determine this with complete
  139. accuracy.  They may think that a server is still running when in
  140. actuality you have killed that Emacs, because the file `/tmp/.esrv...'
  141. still exists.  If this happens, find that file and delete it.
  142.  
  143. 
  144. File: emacs,  Node: Display X,  Next: Font X,  Prev: Resume Arguments,  Up: Command Arguments
  145.  
  146. Specifying the Display Name
  147. ===========================
  148.  
  149.    The environment variable `DISPLAY' tells all X clients where to
  150. display their windows.  Its value is set up by default in ordinary
  151. circumstances, when you start an X server and run jobs locally.
  152. Occasionally you may need to specify the display yourself; for example,
  153. if you do a remote login and want to run a client program remotely,
  154. displaying on your local screen.
  155.  
  156.    With Emacs, the main reason people change the default display is to
  157. let them log into another system, run Emacs on that system, but have the
  158. window displayed at their local terminal.  You might need to use login
  159. to another system because the files you want to edit are there, or
  160. because the Emacs executable file you want to run is there.
  161.  
  162.    The syntax of the `DISPLAY' environment variable is:
  163.  
  164.      HOST:DISPLAY.SCREEN
  165.  
  166. where HOST is the host name of the X Window System server machine,
  167. DISPLAY is an arbitrarily-assigned number that distinguishes your
  168. server (X terminal) from other servers on the same machine, and SCREEN
  169. is a rarely-used field that allows an X server to control multiple
  170. terminal screens.  The period and the SCREEN field are optional.  If
  171. included, SCREEN is usually zero.
  172.  
  173.    If your host is named `glasperle' and your server is the first (or
  174. perhaps the only) server listed in the configuration, your `DISPLAY' is
  175. `glasperle:0.0'.
  176.  
  177.    You can specify the display name explicitly when you run Emacs,
  178. either by changing the `DISPLAY' variable, or with the option `-d
  179. DISPLAY' or `-display DISPLAY'.  These are initial options; they must
  180. come at the beginning of the command line.  *Note Initial Options::.
  181. Here is an example:
  182.  
  183.      emacs -display glasperle:0 &
  184.  
  185.    You can inhibit the direct use of X with the `-nw' option.  This is
  186. also an initial option.  This option tells Emacs to display using
  187. ordinary ASCII on its controlling terminal.
  188.  
  189.    Sometimes, security arrangements prevent a program on a remote system
  190. from displaying on your local system.  In this case, trying to run Emacs
  191. produces messages like:
  192.  
  193.      Xlib:  connection to "glasperle:0.0" refused by server
  194.  
  195.    You might be able to overcome this problem by using the `xhost'
  196. command on the local system to give permission for access from your
  197. remote machine.
  198.  
  199. 
  200. File: emacs,  Node: Font X,  Next: Colors X,  Prev: Display X,  Up: Command Arguments
  201.  
  202. Font Specification Options
  203. ==========================
  204.  
  205.    By default, Emacs displays text in the font named `9x15', which
  206. makes each character nine pixels wide and fifteen pixels high.  You can
  207. specify a different font on your command line through the option `-fn
  208. NAME'.  The `-font' option is a synonym for `-fn'.
  209.  
  210.    Here is how to specify the font `6x13':
  211.  
  212.      emacs -fn 6x13 &
  213.  
  214. You can also do this in your `.Xdefaults' file:
  215.  
  216.      emacs.font:      6x13
  217.  
  218.    Use only fixed width fonts--that is, fonts in which all characters
  219. have the same width.  Emacs cannot yet handle display properly for
  220. variable width fonts.  Fixed width fonts include the one named `fixed',
  221. and fonts with names in the form NxN, such as `6x13', `8x13', and
  222. `9x15'.  Under the font-naming conventions in X11 Release 4 or later,
  223. any font with `m' or `c' in the eleventh field of the name is a fixed
  224. width font.
  225.  
  226.    Here's how to use the `xlsfonts' program to list all the fixed width
  227. fonts available on your system:
  228.  
  229.      xlsfonts -fn '*x*'
  230.      xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-m*'
  231.      xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-c*'
  232.  
  233. To see what a particular font looks like, use the `xfd' command.  For
  234. example:
  235.  
  236.      xfd -fn 6x13
  237.  
  238. displays the entire font `6x13'.
  239.  
  240.    While running Emacs, you can set the font of the current frame
  241. (*note Frame Parameters::.) or for a specific kind of text (*note
  242. Faces::.).
  243.  
  244. 
  245. File: emacs,  Node: Colors X,  Next: Window Size X,  Prev: Font X,  Up: Command Arguments
  246.  
  247. Window Color Options
  248. ====================
  249.  
  250.    On a color display, you can specify which color to use for various
  251. parts of the Emacs display.  To find out what colors are available on
  252. your system, look at the `/usr/lib/X11/rgb.txt' file.  If you do not
  253. specify colors, the default for the background is white and the default
  254. for all other colors is black.
  255.  
  256.    On a monochrome (black and white) display, the foreground is black,
  257. the background is white, and the border is grey.  You can reverse the
  258. foreground and background colors through the `-r' option or the
  259. `reverseVideo' resource.
  260.  
  261.    Here is a list of the options for specifying colors:
  262.  
  263. `-fg COLOR'
  264.      Specify the foreground color.
  265.  
  266. `-bg COLOR'
  267.      Specify the background color.
  268.  
  269. `-bd COLOR'
  270.      Specify the color of the border of the X window.
  271.  
  272. `-cr COLOR'
  273.      Specify the color of the Emacs cursor which indicates where point
  274.      is.
  275.  
  276. `-ms COLOR'
  277.      Specify the color for the mouse cursor when the mouse is in the
  278.      Emacs window.
  279.  
  280.    For example, to use a coral mouse cursor and a slate blue text
  281. cursor, enter:
  282.  
  283.      emacs -ms coral -cr 'slate blue' &
  284.  
  285. 
  286. File: emacs,  Node: Window Size X,  Next: Borders X,  Prev: Colors X,  Up: Command Arguments
  287.  
  288. Options for Window Geometry
  289. ===========================
  290.  
  291.    The `-geometry' option controls the size and position of the initial
  292. Emacs frame.  Here is the format for specifying the window geometry:
  293.  
  294.      WIDTHxHEIGHT{+-}XOFFSET{+-}YOFFSET
  295.  
  296. where WIDTH specifies the number of characters displayed on a line,
  297. HEIGHT specifies the number of lines displayed, a positive XOFFSET
  298. specifies the distance from the left side of the screen, a negative
  299. XOFFSET specifies the distance from the right side of the screen, a
  300. positive YOFFSET specifies the distance from the top of the screen, and
  301. a negative YOFFSET specifies the distance from the bottom of the screen.
  302.  
  303.    Emacs uses the same units as `xterm' does to interpret the geometry.
  304. The WIDTH and HEIGHT are measured in characters, so a large font
  305. creates a larger frame than a small font.  The XOFFSET and YOFFSET are
  306. measured in pixels.
  307.  
  308.    Since the mode line and the echo area occupy the last 2 lines of the
  309. frame, the height of the initial text window is 2 less than the height
  310. specified in your geometry.
  311.  
  312.    You do not have to specify all of the fields in the geometry
  313. specification.  The default width for Emacs is 80 characters and the
  314. default height is 24 characters.  You can omit either the width or the
  315. height or both.
  316.  
  317.    If you omit both XOFFSET nor YOFFSET, the window manager decides
  318. where to put the Emacs frame, possibly by letting you place it with the
  319. mouse.  For example, `164x55' specifies a window 164 columns wide,
  320. enough for two ordinary width windows side by side, and 55 lines tall.
  321.  
  322.    If you start the geometry with an integer, Emacs interprets it as the
  323. width.  If you start with an `x' followed by an integer, Emacs
  324. interprets it as the height.  Thus, `81' specifies just the width;
  325. `x45' specifies just the height.
  326.  
  327.    If you start with `+' or `-', that introduces an offset, which means
  328. both sizes are omitted.  Thus, `-3' specifies the XOFFSET only.  (If
  329. you give just one offset, it is always XOFFSET.)  `+3-3' specifies both
  330. the XOFFSET and the YOFFSET, placing the frame near the bottom left of
  331. the screen.
  332.  
  333.    You can specify a default for any or all of the fields in
  334. `.Xdefaults' file, and then override selected fields through a
  335. `-geometry' option.
  336.  
  337. 
  338. File: emacs,  Node: Borders X,  Next: Icons X,  Prev: Window Size X,  Up: Command Arguments
  339.  
  340. Internal and External Borders
  341. =============================
  342.  
  343.    An Emacs frame has an internal border and an external border.  The
  344. internal border is an extra strip of the background color around all
  345. four edges of the frame.  Emacs itself adds the internal border.  The
  346. external border is added by the window manager outside the internal
  347. border; it may contain various boxes you can click on to move or iconify
  348. the window.
  349.  
  350.    When you specify the size of the frame, that does not count the
  351. borders.  The frame's position is measured from the outside edge of the
  352. external border.
  353.  
  354.    Use the `-ib N' option to specify an internal border N pixels wide.
  355. The default is 1.  Use `-bw N' to specify the width of the external
  356. border (though the window manager may not pay attention to what you
  357. specify).  The default width of the external border is 2.
  358.  
  359. 
  360. File: emacs,  Node: Icons X,  Next: Resources X,  Prev: Borders X,  Up: Command Arguments
  361.  
  362. Icons
  363. =====
  364.  
  365.    Most window managers allow the user to "iconify" a frame, removing
  366. it from sight, and leaving a small, distinctive "icon" window in its
  367. place.  Clicking on the icon window will make the original frame visible
  368. again.  If a user has many clients running at once, they can avoid
  369. cluttering up their screen by iconifying all but the clients currently
  370. in use.
  371.  
  372.    The `-i' and `-itype' option tells Emacs to use an icon window
  373. containing a picture of the GNU gnu.  If omitted, Emacs lets the window
  374. manager choose what sort of icon to use -- usually just a small
  375. rectangle containing the frame's title.
  376.  
  377.    The `-iconic' option tells Emacs to begin running as an icon, rather
  378. than opening a frame right away.  In this situation, the icon window
  379. provides only indication that Emacs has started; the usual text frame
  380. doesn't appear until you de-iconify it.
  381.  
  382. 
  383. File: emacs,  Node: Resources X,  Prev: Icons X,  Up: Command Arguments
  384.  
  385. X Resources
  386. ===========
  387.  
  388.    Programs running under the X Window System organize their user
  389. options under a hierarchy of classes and resources.  You can specify
  390. default values for these options in your X resources file, usually named
  391. `~/.Xdefaults'.
  392.  
  393.    Each line in the file specifies a value for one option or for a
  394. collection of related options, for one program or for several programs
  395. (perhaps even all programs).
  396.  
  397.    Programs define named resources with particular meanings.  They also
  398. define how to group resources into named classes.  For instance, in
  399. Emacs, the `internalBorder' resource controls the width of the internal
  400. border, and the `borderWidth' resource controls the width of the
  401. external border.  Both of these resources are part of the `BorderWidth'
  402. class.  Case distinctions are significant in these names.
  403.  
  404.    In `~/.Xdefaults', you can specify a value for a single resource on
  405. one line, like this:
  406.  
  407.      emacs.borderWidth: 2
  408.  
  409. Or you can use a class name to specify the same value for all resources
  410. in that class.  Here's an example:
  411.  
  412.      emacs.BorderWidth: 2
  413.  
  414.    If you specify a value for a class, it becomes the default for all
  415. resources in that class.  You can specify values for individual
  416. resources as well; these override the class value, for those particular
  417. resources.  Thus, this example specifies 2 as the default width for all
  418. borders, but overrides this value with 4 for the external border:
  419.  
  420.      emacs.Borderwidth: 2
  421.      emacs.borderwidth: 4
  422.  
  423.    The order in which the lines appear in the file does not matter.
  424. Also, command-line options always override the X resources file.
  425.  
  426.    The string `emacs' in the examples above is also a resource name.
  427. It actually represents the name of the executable file that you invoke
  428. to run Emacs.  If Emacs is installed under a different name, it look
  429. for resources under that name instead of `emacs'.
  430.  
  431.    You can tell Emacs to use a different name instead of the name of the
  432. executable file, with the option `-name NAME'.  Then that Emacs job
  433. uses NAME instead of `Emacs' to look up all of its option values in the
  434. X resource file.  This option also specifies the title for the initial
  435. frame.
  436.  
  437.    The resources that name Emacs invocations also belong to a class; its
  438. name is `Emacs'.  To specify options for all Emacs jobs, no matter what
  439. name is used to run them, write `Emacs' instead of `emacs', like this:
  440.  
  441.      Emacs.BorderWidth: 2
  442.      Emacs.borderWidth: 4
  443.  
  444.    You can specify a string of additional resource values for Emacs to
  445. use with the command line option `-xrm DATA'.  The text DATA should
  446. have the same format that you would use inside a file of X resources.
  447. Resources specified this way take precedence over all others.
  448.  
  449.    The following table lists the resource names that designate options
  450. for Emacs, each with the class that it belongs to:
  451.  
  452. `background' (class `Background')
  453.      Background color name.
  454.  
  455. `bitmapIcon' (class `BitmapIcon')
  456.      Use a bitmap icon (a picture of a GNU) if `on', let the window
  457.      manager choose an icon if `off'.
  458.  
  459. `borderColor' (class `BorderColor')
  460.      Color name for external border.
  461.  
  462. `borderWidth' (class `BorderWidth')
  463.      Width in pixels of external border.
  464.  
  465. `cursorColor' (class `Foreground')
  466.      Color name for text cursor (point).
  467.  
  468. `font' (class `Font')
  469.      Font name for text.
  470.  
  471. `foreground' (class `Foreground')
  472.      Color name for text.
  473.  
  474. `geometry' (class `Geometry')
  475.      Window size and position.
  476.  
  477. `iconName' (class `Title')
  478.      Name to display in icon.
  479.  
  480. `internalBorder' (class `BorderWidth')
  481.      Width in pixels of internal border.
  482.  
  483. `paneFont' (class `Font')
  484.      Font name for menu pane titles.
  485.  
  486. `pointerColor' (class `Foreground')
  487.      Color of mouse cursor.
  488.  
  489. `reverseVideo' (class `ReverseVideo')
  490.      Switch foreground and background default colors if `on', use
  491.      colors as specified if `off'.
  492.  
  493. `selectionFont' (class `Font')
  494.      Font name for menu items.
  495.  
  496. `title' (class `Title')
  497.      Name to display in title bar of initial Emacs frame.
  498.  
  499. 
  500. File: emacs,  Node: Antinews,  Next: Manifesto,  Prev: Command Arguments,  Up: Top
  501.  
  502. Emacs 18 Antinews
  503. *****************
  504.  
  505.    For those users who live backwards in time, here is information about
  506. downgrading to Emacs version 18.  We hope you will enjoy the greater
  507. simplicity that results from the absence of many Emacs 19 features.
  508.  
  509. Packages Removed
  510. ================
  511.  
  512.    To reduce the size of the distribution, we have eliminated numerous
  513. packages including GNUS, VC (version control), Hexl (for editing binary
  514. files), Edebug, Emerge, Mpuz, Spook, and Gomoku.
  515.  
  516.    Major modes removed in Emacs 18 include C++ mode, Awk mode, Icon
  517. mode, Asm mode, Makefile mode, Perl mode and SGML mode.
  518.  
  519.    The function `enable-flow-control' does not exist; see the file
  520. `PROBLEMS' in the Emacs distribution for directions for coping with
  521. flow control.
  522.  
  523.    The Calendar feature provided is a very simple one.  All it can do is
  524. display three months, by default centered around the current month.  If
  525. you give it a numeric argument, that specifies the number of months
  526. forward or back.
  527.  
  528. Fundamental Changes
  529. ===================
  530.  
  531.    Auto save and garbage collection happen only while you are typing,
  532. never while you are idle.  This is to make them more like affectionate
  533. pets.  Think of them as cats that like to sit on your terminal only
  534. when you are working there.
  535.  
  536.    Transient Mark mode and Line Number mode are absent in Emacs 18.  If
  537. you are an Emacs user, you are smart enough to keep track of the mark
  538. in your head, and you don't need line numbers because you can search
  539. for precisely the text you want.
  540.  
  541.    There are no menu bars or scroll bars; no faces, text properties or
  542. overlays.
  543.  
  544.    There are no minibuffer history commands.
  545.  
  546.    There is only one frame, so the Emacs 19 `C-x 5' command series is
  547. meaningless.  Instead, `C-x 5' in Emacs 18 splits the selected window
  548. horizontally (like `C-x 3' in Emacs 19).
  549.  
  550.    Another simplification in Emacs 18 is that all input events are
  551. characters.  Function keys and arrow keys are represented as sequences
  552. of characters; the terminal-specific Emacs Lisp file for your terminal
  553. is responsible for defining them.  Mouse buttons are defined by a
  554. special keymap, `mouse-map'.  See the file `x-mouse.el' for how to bind
  555. mouse clicks.
  556.  
  557.    Character codes 128 and above always display using `\NNN' notation.
  558. For codes 0 through 31, you can choose between `\NNN' and `^C' by
  559. setting the variable `ctl-arrow'; but that is the only thing you can
  560. specify about how character codes should display.
  561.  
  562.    You can't refer to files on other machines using special "magic"
  563. file names.  Instead, you must use the `ftp' library with commands such
  564. as `M-x ftp-find-file' and `M-x ftp-write-file'.
  565.  
  566.    The character for terminating an incremental search is now ESC, not
  567. RET as in Emacs 19.  If you type RET, that searches for a newline;
  568. thus, you can insert a newline in the search string just as you would
  569. insert it in the text.
  570.  
  571. Key Binding Changes
  572. ===================
  573.  
  574.    The key for `backward-paragraph' is now `M-['.  The key for
  575. `forward-paragraph' is now `M-]'.
  576.  
  577.    The command `repeat-complex-command' is now on `C-x ESC'.
  578.  
  579.    The register commands have different key bindings:
  580.  
  581. `C-x /'
  582.      `point-to-register'
  583.  
  584. `C-x j'
  585.      `jump-to-register'
  586.  
  587. `C-x x'
  588.      `copy-to-register'
  589.  
  590. `C-x g'
  591.      `insert-register'
  592.  
  593. `C-x r'
  594.      `copy-rectangle-to-register'
  595.  
  596.    The narrowing commands have also been moved:
  597.  
  598. `C-x n'
  599.      `narrow-to-region'
  600.  
  601. `C-x p'
  602.      `narrow-to-page'
  603.  
  604. `C-x w'
  605.      `widen'
  606.  
  607.    And the abbrev commands as well:
  608.  
  609. `C-x C-a'
  610.      `add-mode-abbrev'
  611.  
  612. `C-x +'
  613.      `add-global-abbrev'
  614.  
  615. `C-x C-h'
  616.      `inverse-add-mode-abbrev'
  617.  
  618. `C-x -'
  619.      `inverse-add-global-abbrev'
  620.  
  621. `C-x `'
  622.      `expand-abbrev'
  623.  
  624.    There are no key bindings for the rectangle commands.
  625.  
  626.    `C-x a' now runs the command `append-to-buffer'.
  627.  
  628.    The key bindings `C-x 4 r' and `C-x 4 C-o' do not exist.
  629.  
  630.    The help commands `C-h C-f', `C-h C-k' and `C-h p' do not exist in
  631. Emacs 18.
  632.  
  633.    The command `C-M-l' (`reposition-window') is absent.  Likewise
  634. `C-M-r' (`isearch-backward-regexp').
  635.  
  636.    The "two column" commands starting with `C-x 6' don't exist in Emacs
  637. 18.
  638.  
  639.    The TeX mode bindings of `C-c {' and `C-c }' have been moved to
  640. `M-{' and `M-}'.  (These commands are `up-list' and
  641. `tex-insert-braces'; they are the TeX equivalents of `M-(' and `M-)'.)
  642.  
  643. Incremental Search Changes
  644. ==========================
  645.  
  646.    As mentioned above, the character for terminating an incremental
  647. search is now ESC, not RET as in Emacs 19.  If you type RET, that
  648. searches for a newline; thus, you can insert a newline in the search
  649. string just as you would insert it in the text.
  650.  
  651.    There is no ring of previous search strings in Emacs 18.  You can
  652. reuse the most recent search string, but that's all.
  653.  
  654.    If `case-fold-search' is non-`nil', then incremental search is
  655. *always* case-insensitive.  Typing an upper-case letter in the search
  656. string has no effect on this.
  657.  
  658.    Spaces in the incremental search string match only spaces.
  659.  
  660.    The meanings of the special search characters are no longer
  661. controlled by a keymap.  Instead, particular variables named
  662. `search-...-char' specify the character that should have a particular
  663. function.  For example, `C-s' repeats the search because the value of
  664. `search-repeat-char' is `?\C-s'.
  665.  
  666. Editing Command Changes
  667. =======================
  668.  
  669.    `C-n' (`next-line') does not check the variable
  670. `next-line-add-newlines'.
  671.  
  672.    The sexp commands such as `C-M-f' no longer know anything about
  673. comments, in modes such as Lisp mode where the end of a comment is the
  674. end of the line.  They treat the text inside a comment as if it were
  675. actual code.  If comments containing unbalanced parentheses cause
  676. trouble, you can use the commands `C-M-n' and `C-M-p', which do ignore
  677. comments.
  678.  
  679.    You can't store file names in registers, and there are no frame
  680. configurations at all.  The command `M-x string-rectangle' does not
  681. exist either.
  682.  
  683.    The undo command in Emacs 18 is not careful about where to leave
  684. point when you undo a deletion.  It ends up at one end or the other of
  685. the text just undeleted.  You must be on the lookout for this, and move
  686. point appropriately.
  687.  
  688.    Kill commands do nothing useful in read-only buffers.  They just
  689. beep.
  690.  
  691.    `M-z C' in Emacs 18 kills up to but not including the first
  692. occurrence of C.  If C does not occur in the buffer after point, `M-z'
  693. kills the whole rest of the buffer.
  694.  
  695.    The function `erase-buffer' is not a command in Emacs 18.  You can
  696. call it from a Lisp program, but not interactively.  The motivation for
  697. this is to protect you from accidentally deleting (not killing) the
  698. entire text of a buffer that you want to keep.  With subsequent changes
  699. in even earlier Emacs versions (such as version 18.54), you might be
  700. unable to undo the `erase-buffer'.
  701.  
  702.    `M-x fill-nonuniform-paragraphs' and Adaptive Fill mode do not exist.
  703.  
  704. Other Brief Notes
  705. =================
  706.  
  707.    Outline mode exists only as a major mode, not as a minor mode.
  708.  
  709.    `M-!' (`shell-command') always runs the command synchronously, even
  710. if the command ends with `&'.
  711.  
  712.    Emacs 18 has no special mode for change log files.  It is a good idea
  713. to use Indented Text mode, and specify 8 as the value of the variable
  714. `left-margin'.
  715.  
  716.    The command `M-x comment-region' does not exist.  The command `M-x
  717. super-apropos' does not exist.
  718.  
  719.    `C-x q' (`kbd-macro-query') now uses `C-d' to terminate all
  720. iterations of the keyboard macro, rather than ESC.
  721.  
  722.    The `M-x setenv' command is missing in Emacs 18.
  723.  
  724.    `M-$' now uses the Unix spell program instead of the GNU program
  725. Ispell.  If the word around point is a misspelling, it asks you for a
  726. replacement.
  727.  
  728.    To check spelling of larger units of text, use `M-x spell-region' or
  729. `M-x spell-buffer'.  These commands check all words in the specified
  730. piece of text.  For each word that is not correct, they ask you to
  731. specify a replacement, and then replace each occurrence.
  732.  
  733.    `M-x gdb' still exists in Emacs 18.  `M-x dbx' exists, but is
  734. somewhat different (use `C-h m' to find the details).  `M-x sdb' does
  735. not exist at all, but who wants to use SDB?
  736.  
  737.    In Buffer Menu mode, the commands `%' and `C-o' don't work in Emacs
  738. 18.  The `v' command has been eliminated and merged with the `q'
  739. command, which now exits the buffer menu, displaying all the buffers
  740. that you have marked.
  741.  
  742.    The View commands (such as `M-x view-buffer' and `M-x view-file')
  743. now use recursive edits.  When you exit viewing, the recursive edit
  744. returns to its caller.
  745.  
  746.    Emacs 18, like most programs, interprets command line options only
  747. when it is started-not later on.
  748.  
  749.    The variable to control whether files can set local variables is
  750. called `inhibit-local-variables'.  A non-`nil' value means ask the user
  751. before obeying any local variables lists.
  752.  
  753.    The user option for controlling use of the `eval' local variable is
  754. now called `inhibit-local-eval'.  A non-`nil' value means to ask the
  755. user before obeying any `eval' local variable.
  756.  
  757. File Handling Changes
  758. =====================
  759.  
  760.    As mentioned above, you can't refer to files on other machines using
  761. special "magic" file names.  Instead, you must use the `ftp' library
  762. with commands such as `M-x ftp-find-file' and `M-x ftp-write-file'.
  763.  
  764.    When you run `M-x revert-buffer' with no prefix argument, if the
  765. buffer has an auto save file more recent that the visited file,
  766. `revert-buffer' asks whether to revert from the auto save file instead.
  767.  
  768.    When `C-x s' (`save-some-buffers') offers to save each buffer, you
  769. have only two choices: save it, or don't save it.
  770.  
  771.    `M-x recover-file' turns off Auto Save mode in the current buffer.
  772. To turn it on again, use `M-x auto-save-mode'.
  773.  
  774.    The command `M-x rename-uniquely' does not exist; instead, use `M-x
  775. rename-buffer' and try various names until you find one that isn't in
  776. use.  Completion can make this easier.
  777.  
  778.    The directory name abbreviation feature is gone in Emacs 18.
  779.  
  780.    Emacs 18 has no idea of file truenames, and does not try to detect
  781. when you visit a file via a symbolic link.  You should check manually
  782. when you visit a file, so as to edit it in the directory where it is
  783. actually stored.  This way you can make sure that backup files and
  784. change log entries go in the proper directory.
  785.  
  786.    `M-x compare-windows' ignores any prefix argument and always
  787. considers case and whitespace differences significant.  As for the
  788. other ways of comparing files, `M-x diff' and `M-x diff-backup', they
  789. don't exist at all.
  790.  
  791. Mail Changes
  792. ============
  793.  
  794.    `%' is now a word-component character in Mail mode.  This is to be
  795. compatible with Text mode.
  796.  
  797.    The variable `mail-signature' is not meaningful; if you wish to
  798. insert your signature in a mail message, you must type `C-c C-w'.
  799.  
  800.    Mail aliases expand only when you send the message--never when you
  801. type them in.
  802.  
  803.    Rmail now gets new mail into your primary mail file from `~/mbox' as
  804. well as from your system inbox file.  This is handy if you occasionally
  805. check your newest mail with the `mail' program; whatever you have
  806. looked at and saved with `mail' will be brought into Rmail the next
  807. time you run Rmail.
  808.  
  809.    The Rmail summary buffer is now much simpler.  Only a few special
  810. commands are available there: `n', `p', and `j' for motion, `d' and `u'
  811. for deletion, and SPC and DEL for scrolling the message.  To do
  812. anything else, you must go to the Rmail buffer.  Also, changes in the
  813. Rmail buffer don't update the summary; to do that, you must make a new
  814. summary.
  815.  
  816.    The Rmail command `rmail-resend' (accessible via `f' with a prefix
  817. argument in Emacs 19) does not exist in Emacs 18.  Neither does
  818. `rmail-retry-failure' (`M-m' in Emacs 19).
  819.  
  820.    The `e' command is now "expunge", just like `x'.  To edit the
  821. current message, type `w', which works in Emacs 19 as well.  If you
  822. type `e' meaning to edit, and it expunges instead--well, you shouldn't
  823. have deleted those messages if you still wanted them.
  824.  
  825.    The `<' and `b' commands have been removed in Emacs 18.  Likewise
  826. `C-M-t' (`rmail-summarize-by-topic') and `M-x unrmail'.  Rmail in Emacs
  827. 18 is so good, that we can't imagine anyone who has tried it would ever
  828. wish to use another mail reader.
  829.  
  830.    The default output file for `o' is now always the last file that you
  831. used with `o'.  The variable `rmail-output-file-alist' has no special
  832. meaning.
  833.  
  834.    Emacs 18 Rmail does not know anything about Content Length fields in
  835. messages.
  836.  
  837. C Mode Changes
  838. ==============
  839.  
  840.    In C mode, the keys `M-a' and `M-e' now have their usual meanings:
  841. motion by sentences.  This is useful while editing the comments in a C
  842. program, but not useful for editing code.  We hope this will encourage
  843. you to write lots of comments.
  844.  
  845.    The commands `M-x c-up-conditional' and `M-x c-backslash-region' have
  846. been removed entirely in Emacs 18.
  847.  
  848. Compilation Changes
  849. ===================
  850.  
  851.    `M-x compile' now has a much simpler and faster parser for error
  852. messages.  However, it understands fewer different formats for error
  853. messages, and is not as easy to customize.
  854.  
  855.    There is no special mode for compilation buffers.  When you select
  856. the compilation buffer itself, it is just ordinary text.
  857.  
  858.    Speaking of selecting the compilation buffer, you do need to do that
  859. from time to time to see whether the compilation has finished, because
  860. Emacs 18 does not display `Compiling' in the mode line to tell you the
  861. compilation is still going.
  862.  
  863. Shell Mode
  864. ==========
  865.  
  866.    Shell mode in Emacs 18 does nothing special for the keys TAB, `M-?',
  867. `C-a', `C-d'.  The commands `M-x dirs' and `M-x send-invisible' are
  868. also gone.
  869.  
  870.    The history commands `M-p' and so on are not available either;
  871. instead, use `C-c C-y' (`copy-last-shell-input').  This copies the
  872. previous bunch of shell input, and inserts it into the buffer before
  873. point.  No final newline is inserted, and the input copied is not
  874. resubmitted until you type RET.
  875.  
  876.    Use `C-c C-d' to send an "end of file" to the shell process.
  877.  
  878. Dired Changes
  879. =============
  880.  
  881.    For simplicity, Dired in Emacs 18 supports just one kind of mark: the
  882. deletion flag, `*'.  The Emacs 19 Dired commands for flagging files do
  883. work in Emacs 18, but all the other mark-related commands do not.
  884.  
  885.    The Dired subdirectory commands don't exist in Emacs 18.  A Dired
  886. buffer can contain only one directory.  In particular, this means that
  887. the variable `dired-listing-switches' must not contain the `R' option.
  888. (The `F' option is also not allowed.)
  889.  
  890.    The commands for using `find' with Dired have been removed for
  891. simplicity, also.
  892.  
  893.    Emacs 18 Dired provides the following commands for manipulating files
  894. immediately, and no others.  All of these commands apply to the file
  895. listed on the current line.
  896.  
  897. `c'
  898.      Copies the file described on the current line.  You must supply a
  899.      file name to copy to, using the minibuffer.
  900.  
  901. `f'
  902.      Visits the file described on the current line.  It is just like
  903.      typing `C-x C-f' and supplying that file name.  If the file on
  904.      this line is a subdirectory, `f' actually causes Dired to be
  905.      invoked on that subdirectory.
  906.  
  907. `G'
  908.      Change the group of the file described on the current line.
  909.  
  910. `M'
  911.      Change the file mode of the file described on the current line.
  912.  
  913. `o'
  914.      Like `f', but uses another window to display the file's buffer.
  915.      The Dired buffer remains visible in the first window.  This is
  916.      like using `C-x 4 C-f' to visit the file.
  917.  
  918. `O'
  919.      Change the owner of the file described on the current line.  (On
  920.      most systems, you must be a superuser to do this.)
  921.  
  922. `r'
  923.      Renames the file described on the current line.  You must supply a
  924.      file name to rename to, using the minibuffer.
  925.  
  926. `v'
  927.      Views the file described on this line using `M-x view-file'.
  928.      Viewing a file is like visiting it, but is slanted toward moving
  929.      around in the file conveniently and does not allow changing the
  930.      file.
  931.  
  932.