home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / emacs-19.000 / emacs-19 / usr / local / info / emacs-8 < prev    next >
Encoding:
GNU Info File  |  1995-09-11  |  47.4 KB  |  1,187 lines

  1. This is Info file ../info/emacs, produced by Makeinfo-1.55 from the
  2. input file emacs.texi.
  3.  
  4. 
  5. File: emacs,  Node: Several Buffers,  Next: Indirect Buffers,  Prev: Kill Buffer,  Up: Buffers
  6.  
  7. Operating on Several Buffers
  8. ============================
  9.  
  10.    The "buffer-menu" facility is like a "Dired for buffers"; it allows
  11. you to request operations on various Emacs buffers by editing an Emacs
  12. buffer containing a list of them.  You can save buffers, kill them
  13. (here called "deleting" them, for consistency with Dired), or display
  14. them.
  15.  
  16. `M-x buffer-menu'
  17.      Begin editing a buffer listing all Emacs buffers.
  18.  
  19.    The command `buffer-menu' writes a list of all Emacs buffers into
  20. the buffer `*Buffer List*', and selects that buffer in Buffer Menu
  21. mode.  The buffer is read-only, and can be changed only through the
  22. special commands described in this section.  The usual Emacs cursor
  23. motion commands can be used in the `*Buffer List*' buffer.  The
  24. following commands apply to the buffer described on the current line.
  25.  
  26. `d'
  27.      Request to delete (kill) the buffer, then move down.  The request
  28.      shows as a `D' on the line, before the buffer name.  Requested
  29.      deletions take place when you type the `x' command.
  30.  
  31. `C-d'
  32.      Like `d' but move up afterwards instead of down.
  33.  
  34. `s'
  35.      Request to save the buffer.  The request shows as an `S' on the
  36.      line.  Requested saves take place when you type the `x' command.
  37.      You may request both saving and deletion for the same buffer.
  38.  
  39. `x'
  40.      Perform previously requested deletions and saves.
  41.  
  42. `u'
  43.      Remove any request made for the current line, and move down.
  44.  
  45. `DEL'
  46.      Move to previous line and remove any request made for that line.
  47.  
  48.    The `d', `C-d', `s' and `u' commands to add or remove flags also
  49. move down (or up) one line.  They accept a numeric argument as a repeat
  50. count.
  51.  
  52.    These commands operate immediately on the buffer listed on the
  53. current line:
  54.  
  55. `~'
  56.      Mark the buffer "unmodified".  The command `~' does this
  57.      immediately when you type it.
  58.  
  59. `%'
  60.      Toggle the buffer's read-only flag.  The command `%' does this
  61.      immediately when you type it.
  62.  
  63. `t'
  64.      Visit the buffer as a tags table.  *Note Select Tags Table::.
  65.  
  66.    There are also commands to select another buffer or buffers:
  67.  
  68. `q'
  69.      Quit the buffer menu--immediately display the most recent formerly
  70.      visible buffer in its place.
  71.  
  72. `RET'
  73. `f'
  74.      Immediately select this line's buffer in place of the `*Buffer
  75.      List*' buffer.
  76.  
  77. `o'
  78.      Immediately select this line's buffer in another window as if by
  79.      `C-x 4 b', leaving `*Buffer List*' visible.
  80.  
  81. `C-o'
  82.      Immediately display this line's buffer in another window, but don't
  83.      select the window.
  84.  
  85. `1'
  86.      Immediately select this line's buffer in a full-screen window.
  87.  
  88. `2'
  89.      Immediately set up two windows, with this line's buffer in one,
  90.      and the previously selected buffer (aside from the buffer `*Buffer
  91.      List*') in the other.
  92.  
  93. `m'
  94.      Mark this line's buffer to be displayed in another window if you
  95.      exit with the `v' command.  The request shows as a `>' at the
  96.      beginning of the line.  (A single buffer may not have both a delete
  97.      request and a display request.)
  98.  
  99. `v'
  100.      Immediately select this line's buffer, and also display in other
  101.      windows any buffers previously marked with the `m' command.  If
  102.      you have not marked any buffers, this command is equivalent to `1'.
  103.  
  104.    All that `buffer-menu' does directly is create and switch to a
  105. suitable buffer, and turn on Buffer Menu mode.  Everything else
  106. described above is implemented by the special commands provided in
  107. Buffer Menu mode.  One consequence of this is that you can switch from
  108. the `*Buffer List*' buffer to another Emacs buffer, and edit there.
  109. You can reselect the `*Buffer List*' buffer later, to perform the
  110. operations already requested, or you can kill it, or pay no further
  111. attention to it.
  112.  
  113.    The only difference between `buffer-menu' and `list-buffers' is that
  114. `buffer-menu' switches to the `*Buffer List*' buffer in the selected
  115. window; `list-buffers' displays it in another window.  If you run
  116. `list-buffers' (that is, type `C-x C-b') and select the buffer list
  117. manually, you can use all of the commands described here.
  118.  
  119.    The buffer `*Buffer List*' is not updated automatically when buffers
  120. are created and killed; its contents are just text.  If you have
  121. created, deleted or renamed buffers, the way to update `*Buffer List*'
  122. to show what you have done is to type `g' (`revert-buffer') or repeat
  123. the `buffer-menu' command.
  124.  
  125. 
  126. File: emacs,  Node: Indirect Buffers,  Prev: Several Buffers,  Up: Buffers
  127.  
  128. Indirect Buffers
  129. ================
  130.  
  131.    An "indirect buffer" shares the text of some other buffer, which is
  132. called the "base buffer" of the indirect buffer.  In some ways it is
  133. the analogue, for buffers, of a symbolic link between files.
  134.  
  135. `M-x make-indirect-buffer BASE-BUFFER RET INDIRECT-NAME RET'
  136.      Create an indirect buffer named INDIRECT-NAME whose base buffer is
  137.      BASE-BUFFER.
  138.  
  139.    The text of the indirect buffer is always identical to the text of
  140. its base buffer; changes made by editing either one are visible
  141. immediately in the other.  But in all other respects, the indirect
  142. buffer and its base buffer are completely separate.  They have
  143. different names, different values of point, different narrowing,
  144. different markers, different major modes, and different local variables.
  145.  
  146.    An indirect buffer cannot visit a file, but its base buffer can.  If
  147. you try to save the indirect buffer, that actually works by saving the
  148. base buffer.  Killing the base buffer effectively kills the indirect
  149. buffer, but killing an indirect buffer has no effect on its base buffer.
  150.  
  151.    One way to use indirect buffers is to display multiple views of an
  152. outline.  *Note Outline Views::.
  153.  
  154. 
  155. File: emacs,  Node: Windows,  Next: Frames,  Prev: Buffers,  Up: Top
  156.  
  157. Multiple Windows
  158. ****************
  159.  
  160.    Emacs can split a frame into two or many windows.  Multiple windows
  161. can display parts of different buffers, or different parts of one
  162. buffer.  Multiple frames always imply multiple windows, because each
  163. frame has its own set of windows.  Each window belongs to one and only
  164. one frame.
  165.  
  166. * Menu:
  167.  
  168. * Basic Window::       Introduction to Emacs windows.
  169. * Split Window::       New windows are made by splitting existing windows.
  170. * Other Window::       Moving to another window or doing something to it.
  171. * Pop Up Window::      Finding a file or buffer in another window.
  172. * Force Same Window::  Forcing certain buffers to appear in the selected
  173.                          window rather than in another window.
  174. * Change Window::      Deleting windows and changing their sizes.
  175.  
  176. 
  177. File: emacs,  Node: Basic Window,  Next: Split Window,  Up: Windows
  178.  
  179. Concepts of Emacs Windows
  180. =========================
  181.  
  182.    Each Emacs window displays one Emacs buffer at any time.  A single
  183. buffer may appear in more than one window; if it does, any changes in
  184. its text are displayed in all the windows where it appears.  But the
  185. windows showing the same buffer can show different parts of it, because
  186. each window has its own value of point.
  187.  
  188.    At any time, one of the windows is the "selected window"; the buffer
  189. this window is displaying is the current buffer.  The terminal's cursor
  190. shows the location of point in this window.  Each other window has a
  191. location of point as well, but since the terminal has only one cursor
  192. there is no way to show where those locations are.  When multiple
  193. frames are visible in X Windows, each frame has a cursor which appears
  194. in the frame's selected window.  The cursor in the selected frame is
  195. solid; the cursor in other frames is a hollow box.
  196.  
  197.    Commands to move point affect the value of point for the selected
  198. Emacs window only.  They do not change the value of point in any other
  199. Emacs window, even one showing the same buffer.  The same is true for
  200. commands such as `C-x b' to change the selected buffer in the selected
  201. window; they do not affect other windows at all.  However, there are
  202. other commands such as `C-x 4 b' that select a different window and
  203. switch buffers in it.  Also, all commands that display information in a
  204. window, including (for example) `C-h f' (`describe-function') and `C-x
  205. C-b' (`list-buffers'), work by switching buffers in a nonselected window
  206. without affecting the selected window.
  207.  
  208.    When multiple windows show the same buffer, they can have different
  209. regions, because they can have different values of point.  This means
  210. that in Transient Mark mode, each window highlights a different part of
  211. the buffer.  The part that is highlighted in the selected window is the
  212. region that editing commands use.
  213.  
  214.    Each window has its own mode line, which displays the buffer name,
  215. modification status and major and minor modes of the buffer that is
  216. displayed in the window.  *Note Mode Line::, for full details on the
  217. mode line.
  218.  
  219. 
  220. File: emacs,  Node: Split Window,  Next: Other Window,  Prev: Basic Window,  Up: Windows
  221.  
  222. Splitting Windows
  223. =================
  224.  
  225. `C-x 2'
  226.      Split the selected window into two windows, one above the other
  227.      (`split-window-vertically').
  228.  
  229. `C-x 3'
  230.      Split the selected window into two windows positioned side by side
  231.      (`split-window-horizontally').
  232.  
  233. `C-Mouse-2'
  234.      In the mode line or scroll bar of a window, split that window.
  235.  
  236.    The command `C-x 2' (`split-window-vertically') breaks the selected
  237. window into two windows, one above the other.  Both windows start out
  238. displaying the same buffer, with the same value of point.  By default
  239. the two windows each get half the height of the window that was split; a
  240. numeric argument specifies how many lines to give to the top window.
  241.  
  242.    `C-x 3' (`split-window-horizontally') breaks the selected window
  243. into two side-by-side windows.  A numeric argument specifies how many
  244. columns to give the one on the left.  A line of vertical bars separates
  245. the two windows.  Windows that are not the full width of the screen
  246. have mode lines, but they are truncated; also, they do not always
  247. appear in inverse video, because the Emacs display routines have not
  248. been taught how to display a region of inverse video that is only part
  249. of a line on the screen.
  250.  
  251.    You can split a window horizontally or vertically by clicking
  252. `C-Mouse-2' in the mode line or the scroll bar.  The line of splitting
  253. goes through the place where you click: if you click on the mode line,
  254. the new scroll bar goes above the spot; if you click in the scroll bar,
  255. the mode line of the split window is side by side with your click.
  256.  
  257.    When a window is less than the full width, text lines too long to
  258. fit are frequent.  Continuing all those lines might be confusing.  The
  259. variable `truncate-partial-width-windows' can be set non-`nil' to force
  260. truncation in all windows less than the full width of the screen,
  261. independent of the buffer being displayed and its value for
  262. `truncate-lines'.  *Note Continuation Lines::.
  263.  
  264.    Horizontal scrolling is often used in side-by-side windows.  *Note
  265. Display::.
  266.  
  267.    If `split-window-keep-point' is non-nil, `C-x 2' tries to avoid
  268. shifting any text on the screen by putting point in whichever window
  269. happens to contain the screen line the cursor is already on.  The
  270. default is that `split-window-keep-point' is non-nil on slow terminals.
  271.  
  272. 
  273. File: emacs,  Node: Other Window,  Next: Pop Up Window,  Prev: Split Window,  Up: Windows
  274.  
  275. Using Other Windows
  276. ===================
  277.  
  278. `C-x o'
  279.      Select another window (`other-window').  That is `o', not zero.
  280.  
  281. `C-M-v'
  282.      Scroll the next window (`scroll-other-window').
  283.  
  284. `M-x compare-windows'
  285.      Find next place where the text in the selected window does not
  286.      match the text in the next window.
  287.  
  288. `Mouse-1'
  289.      `Mouse-1', in a window's mode line, selects that window but does
  290.      not move point in it (`mouse-select-region').
  291.  
  292.    To select a different window, click with `Mouse-1' on its mode line.
  293. With the keyboard, you can switch windows by typing `C-x o'
  294. (`other-window').  That is an `o', for `other', not a zero.  When there
  295. are more than two windows, this command moves through all the windows
  296. in a cyclic order, generally top to bottom and left to right.  After
  297. the rightmost and bottommost window, it goes back to the one at the
  298. upper left corner.  A numeric argument means to move several steps in
  299. the cyclic order of windows.  A negative argument moves around the
  300. cycle in the opposite order.  When the minibuffer is active, the
  301. minibuffer is the last window in the cycle; you can switch from the
  302. minibuffer window to one of the other windows, and later switch back and
  303. finish supplying the minibuffer argument that is requested.  *Note
  304. Minibuffer Edit::.
  305.  
  306.    The usual scrolling commands (*note Display::.) apply to the selected
  307. window only, but there is one command to scroll the next window.
  308. `C-M-v' (`scroll-other-window') scrolls the window that `C-x o' would
  309. select.  It takes arguments, positive and negative, like `C-v'.  (In
  310. the minibuffer, `C-M-v' scrolls the window that contains the minibuffer
  311. help display, if any, rather than the next window in the standard
  312. cyclic order.)
  313.  
  314.    The command `M-x compare-windows' lets you compare two files or
  315. buffers visible in two windows, by moving through them to the next
  316. mismatch.  *Note Comparing Files::, for details.
  317.  
  318. 
  319. File: emacs,  Node: Pop Up Window,  Next: Force Same Window,  Prev: Other Window,  Up: Windows
  320.  
  321. Displaying in Another Window
  322. ============================
  323.  
  324.    `C-x 4' is a prefix key for commands that select another window
  325. (splitting the window if there is only one) and select a buffer in that
  326. window.  Different `C-x 4' commands have different ways of finding the
  327. buffer to select.
  328.  
  329. `C-x 4 b BUFNAME RET'
  330.      Select buffer BUFNAME in another window.  This runs
  331.      `switch-to-buffer-other-window'.
  332.  
  333. `C-x 4 C-o BUFNAME RET'
  334.      Display buffer BUFNAME in another window, but don't select that
  335.      buffer or that window.  This runs `display-buffer'.
  336.  
  337. `C-x 4 f FILENAME RET'
  338.      Visit file FILENAME and select its buffer in another window.  This
  339.      runs `find-file-other-window'.  *Note Visiting::.
  340.  
  341. `C-x 4 d DIRECTORY RET'
  342.      Select a Dired buffer for directory DIRECTORY in another window.
  343.      This runs `dired-other-window'.  *Note Dired::.
  344.  
  345. `C-x 4 m'
  346.      Start composing a mail message in another window.  This runs
  347.      `mail-other-window'; its same-window analogue is `C-x m' (*note
  348.      Sending Mail::.).
  349.  
  350. `C-x 4 .'
  351.      Find a tag in the current tags table, in another window.  This runs
  352.      `find-tag-other-window', the multiple-window variant of `M-.'
  353.      (*note Tags::.).
  354.  
  355. `C-x 4 r FILENAME RET'
  356.      Visit file FILENAME read-only, and select its buffer in another
  357.      window.  This runs `find-file-read-only-other-window'.  *Note
  358.      Visiting::.
  359.  
  360. 
  361. File: emacs,  Node: Force Same Window,  Next: Change Window,  Prev: Pop Up Window,  Up: Windows
  362.  
  363. Forcing Display in the Same Window
  364. ==================================
  365.  
  366.    Certain Emacs commands switch to a specific buffer with special
  367. contents.  For example, `M-x shell' switches to a buffer named
  368. `*Shell*'.  By convention, all these commands are written to pop up the
  369. buffer in a separate window.  But you can specify that certain of these
  370. buffers should appear in the selected window.
  371.  
  372.    If you add a buffer name to the list `same-window-buffer-names', the
  373. effect is that such commands display that particular buffer by
  374. switching to it in the selected window.  For example, if you add the
  375. element `"*grep*"' to the list, the `grep' command will display its
  376. output buffer in the selected window.
  377.  
  378.    The default value of `same-window-buffer-names' is not `nil'.  It
  379. specifies the buffers `*info*', `*mail*' and `*shell*'.  This is why
  380. `M-x shell' normally switches to the `*shell*' buffer in the selected
  381. window.  If you delete this element from the value of
  382. `same-window-buffer-names', the behavior of `M-x shell' will change--it
  383. will pop up the buffer in another window instead.
  384.  
  385.    You can specify these buffers more generally with the variable
  386. `same-window-regexps'.  Set it to a list of regular expressions; then
  387. any buffer whose name matches one of those regular expressions is
  388. displayed by switching to it in the selected window.  (Once again, this
  389. applies only to buffers that normally get displayed for you in a
  390. separate window.)  The default value of this variable specifies Telnet
  391. and rlogin buffers.
  392.  
  393.    An analogous feature lets you specify buffers which should be
  394. displayed in their own individual frames.  *Note Special Buffer
  395. Frames::.
  396.  
  397. 
  398. File: emacs,  Node: Change Window,  Prev: Force Same Window,  Up: Windows
  399.  
  400. Deleting and Rearranging Windows
  401. ================================
  402.  
  403. `C-x 0'
  404.      Delete the selected window (`delete-window').  That is a zero.
  405.  
  406. `C-x 1'
  407.      Delete all windows in the selected frame except the selected window
  408.      (`delete-other-windows').
  409.  
  410. `C-x ^'
  411.      Make selected window taller (`enlarge-window').
  412.  
  413. `C-x }'
  414.      Make selected window wider (`enlarge-window-horizontally').
  415.  
  416. `Drag-Mouse-1'
  417.      Dragging a window's mode line up or down with `Mouse-1' changes
  418.      window heights.
  419.  
  420. `Mouse-2'
  421.      `Mouse-2' in a window's mode line deletes all other windows in the
  422.      frame (`mouse-delete-other-windows').
  423.  
  424. `Mouse-3'
  425.      `Mouse-3' in a window's mode line deletes that window
  426.      (`mouse-delete-window').
  427.  
  428.    To delete a window, type `C-x 0' (`delete-window').  (That is a
  429. zero.)  The space occupied by the deleted window is given to an
  430. adjacent window (but not the minibuffer window, even if that is active
  431. at the time).  Once a window is deleted, its attributes are forgotten;
  432. only restoring a window configuration can bring it back.  Deleting the
  433. window has no effect on the buffer it used to display; the buffer
  434. continues to exist, and you can select it in any window with `C-x b'.
  435.  
  436.    `C-x 1' (`delete-other-windows') is more powerful than `C-x 0'; it
  437. deletes all the windows except the selected one (and the minibuffer);
  438. the selected window expands to use the whole frame except for the echo
  439. area.
  440.  
  441.    You can also delete a window by clicking on its mode line with
  442. `Mouse-2', and expand a window to fill its frame by clicking on its
  443. mode line with `Mouse-3'.
  444.  
  445.    The easiest way to adjust window heights is with a mouse.  If you
  446. press `Mouse-1' on a mode line, you can drag that mode line up or down,
  447. changing the heights of the windows above and below it.
  448.  
  449.    To readjust the division of space among vertically adjacent windows,
  450. use `C-x ^' (`enlarge-window').  It makes the currently selected window
  451. get one line bigger, or as many lines as is specified with a numeric
  452. argument.  With a negative argument, it makes the selected window
  453. smaller.  `C-x }' (`enlarge-window-horizontally') makes the selected
  454. window wider by the specified number of columns.  The extra screen
  455. space given to a window comes from one of its neighbors, if that is
  456. possible.  If this makes any window too small, it is deleted and its
  457. space is given to an adjacent window.  The minimum size is specified by
  458. the variables `window-min-height' and `window-min-width'.
  459.  
  460.    *Note Minibuffer Edit::, for information about the Resize-Minibuffer
  461. mode, which automatically changes the size of the minibuffer window to
  462. fit the text in the minibuffer.
  463.  
  464. 
  465. File: emacs,  Node: Frames,  Next: Major Modes,  Prev: Windows,  Up: Top
  466.  
  467. Frames and X Windows
  468. ********************
  469.  
  470.    When using the X Window System, you can create multiple windows at
  471. the X level in a single Emacs session.  Each X window that belongs to
  472. Emacs displays a "frame" which can contain one or several Emacs windows.
  473. A frame initially contains a single general-purpose Emacs window which
  474. you can subdivide vertically or horizontally into smaller windows.  A
  475. frame normally contains its own echo area and minibuffer, but you can
  476. make frames that don't have these--they use the echo area and
  477. minibuffer of another frame.
  478.  
  479.    Editing you do in one frame also affects the other frames.  For
  480. instance, if you put text in the kill ring in one frame, you can yank it
  481. in another frame.  If you exit Emacs through `C-x C-c' in one frame, it
  482. terminates all the frames.  To delete just one frame, use `C-x 5 0'.
  483.  
  484.    To avoid confusion, we reserve the word "window" for the
  485. subdivisions that Emacs implements, and never use it to refer to a
  486. frame.
  487.  
  488. * Menu:
  489.  
  490. * Mouse Commands::     Moving, cutting, and pasting, with the mouse.
  491. * Secondary Selection::Cutting without altering point and mark.
  492. * Mouse References::   Using the mouse to select an item from a list.
  493. * Menu Mouse Clicks::  Mouse clicks that bring up menus.
  494. * Mode Line Mouse::    Mouse clicks on the mode line.
  495. * Creating Frames::    Creating additional Emacs frames with various contents.
  496. * Multiple Displays::  How one Emacs job can talk to several displays.
  497. * Special Buffer Frames::  You can make certain buffers have their own frames.
  498. * Frame Parameters::   Changing the colors and other modes of frames.
  499. * Scroll Bars::           How to enable and disable scroll bars; how to use them.
  500. * Menu Bars::           Enabling and disabling the menu bar.
  501. * Faces::           How to change the display style using faces.
  502. * Modifying Faces::    How to change what a particular face looks like.
  503. * Misc X::           Iconifying and deleting frames.    Region highlighting.
  504.  
  505. 
  506. File: emacs,  Node: Mouse Commands,  Next: Secondary Selection,  Up: Frames
  507.  
  508. Mouse Commands for Editing
  509. ==========================
  510.  
  511.    The mouse commands for selecting and copying a region are mostly
  512. compatible with the `xterm' program.  You can use the same mouse
  513. commands for copying between Emacs and other X client programs.
  514.  
  515. `Mouse-1'
  516.      Move point to where you click (`mouse-set-point').  This is
  517.      normally the left button.
  518.  
  519. `Drag-Mouse-1'
  520.      Set the region to the text you select by dragging, and copy it to
  521.      the kill ring (`mouse-set-region').  You can specify both ends of
  522.      the region with this single command.
  523.  
  524.      If you move the mouse off the top or bottom of the window while
  525.      dragging, the window scrolls at a steady rate until you move the
  526.      mouse back into the window.  This way, you can select regions that
  527.      don't fit entirely on the screen.
  528.  
  529. `Mouse-2'
  530.      Yank the last killed text, where you click (`mouse-yank-at-click').
  531.      This is normally the middle button.
  532.  
  533. `Mouse-3'
  534.      This command, `mouse-save-then-kill', has several functions
  535.      depending on where you click and the status of the region.
  536.  
  537.      The most basic case is when you click `Mouse-1' in one place and
  538.      then `Mouse-3' in another.  This selects the text between those two
  539.      positions as the region.  It also copies the new region to the kill
  540.      ring, so that you can copy it to someplace else.
  541.  
  542.      If you click `Mouse-1', scroll with the scroll bar, and then click
  543.      `Mouse-3', it remembers where point was before scrolling (where you
  544.      put it with `Mouse-1'), and uses that position as the other end of
  545.      the region.  This is so that you can select a region that doesn't
  546.      fit entirely on the screen.
  547.  
  548.      More generally, if you do not have a highlighted region, `Mouse-3'
  549.      selects the text between point and the click position as the
  550.      region.  It does this by setting the mark where point was, and
  551.      moving point to where you click.
  552.  
  553.      If you have a highlighted region, or if the region was set just
  554.      before by dragging button 1, `Mouse-3' adjusts the nearer end of
  555.      the region by moving it to where you click.  The adjusted region's
  556.      text also replaces the old region's text in the kill ring.
  557.  
  558.      If you originally specified the region using a double or triple
  559.      `Mouse-1', so that the region is defined to consist of entire words
  560.      or lines, then adjusting the region with `Mouse-3' also proceeds by
  561.      entire words or lines.
  562.  
  563.      If you use `Mouse-3' a second time consecutively, at the same
  564.      place, that kills the region already selected.
  565.  
  566. `Double-Mouse-1'
  567.      This key sets the region around the word which you click on.
  568.  
  569. `Double-Drag-Mouse-1'
  570.      This key selects a region made up of the words that you drag
  571.      across.
  572.  
  573. `Triple-Mouse-1'
  574.      This key sets the region around the line which you click on.
  575.  
  576. `Triple-Drag-Mouse-1'
  577.      This key selects a region made up of the lines that you drag
  578.      across.
  579.  
  580.    The simplest way to kill text with the mouse is to press `Mouse-1'
  581. at one end, then press `Mouse-3' twice at the other end.  *Note
  582. Killing::.  To copy the text into the kill ring without deleting it
  583. from the buffer, press `Mouse-3' just once--or just drag across the
  584. text with `Mouse-1'.  Then you can copy it elsewhere by yanking it.
  585.  
  586.    To yank the killed or copied text somewhere else, move the mouse
  587. there and press `Mouse-2'.  *Note Yanking::.  However, if
  588. `mouse-yank-at-point' is non-`nil', `Mouse-2' yanks at point.  Then it
  589. does not matter precisely where you click; all that matters is which
  590. window you click on.  The default value is `nil'.  This variable also
  591. effects yanking the secondary selection.
  592.  
  593.    To copy text to another X window, kill it or save it in the kill
  594. ring.  Under X, this also sets the "primary selection".  Then use the
  595. "paste" or "yank" command of the program operating the other window to
  596. insert the text from the selection.
  597.  
  598.    To copy text from another X window, use the "cut" or "copy" command
  599. of the program operating the other window, to select the text you want.
  600. Then yank it in Emacs with `C-y' or `Mouse-2'.
  601.  
  602.    When Emacs puts text into the kill ring, or rotates text to the front
  603. of the kill ring, it sets the "primary selection" in the X server.
  604. This is how other X clients can access the text.  Emacs also stores the
  605. text in the cut buffer, but only if the text is short enough
  606. (`x-cut-buffer-max' specifies the maximum number of characters);
  607. putting long strings in the cut buffer can be slow.
  608.  
  609.    The commands to yank the first entry in the kill ring actually check
  610. first for a primary selection in another program; after that, they check
  611. for text in the cut buffer.  If neither of those sources provides text
  612. to yank, the kill ring contents are used.
  613.  
  614. 
  615. File: emacs,  Node: Secondary Selection,  Next: Mouse References,  Prev: Mouse Commands,  Up: Frames
  616.  
  617. Secondary Selection
  618. ===================
  619.  
  620.    The "secondary selection" is another way of selecting text using X.
  621. It does not use point or the mark, so you can use it to kill text
  622. without setting point or the mark.
  623.  
  624. `M-Drag-Mouse-1'
  625.      Set the secondary selection, with one end at the place where you
  626.      press down the button, and the other end at the place where you
  627.      release it (`mouse-set-secondary').  The highlighting appears and
  628.      changes as you drag.
  629.  
  630.      If you move the mouse off the top or bottom of the window while
  631.      dragging, the window scrolls at a steady rate until you move the
  632.      mouse back into the window.  This way, you can mark regions that
  633.      don't fit entirely on the screen.
  634.  
  635. `M-Mouse-1'
  636.      Set one endpoint for the "secondary selection"
  637.      (`mouse-start-secondary').
  638.  
  639. `M-Mouse-3'
  640.      Make a secondary selection, using the place specified with
  641.      `M-Mouse-1' as the other end (`mouse-secondary-save-then-kill').
  642.      A second click at the same place kills the secondary selection
  643.      just made.
  644.  
  645. `M-Mouse-2'
  646.      Insert the secondary selection where you click
  647.      (`mouse-kill-secondary').  This places point at the end of the
  648.      yanked text.
  649.  
  650.    Double or triple clicking of `M-Mouse-1' operates on words and
  651. lines, much like `Mouse-1'.
  652.  
  653.    If `mouse-yank-at-point' is non-`nil', `M-Mouse-2' yanks at point.
  654. Then it does not matter precisely where you click; all that matters is
  655. which window you click on.  *Note Mouse Commands::.
  656.  
  657. 
  658. File: emacs,  Node: Mouse References,  Next: Menu Mouse Clicks,  Prev: Secondary Selection,  Up: Frames
  659.  
  660. Following References with the Mouse
  661. ===================================
  662.  
  663.    Some Emacs buffers display lists of various sorts.  These include
  664. lists of files, of buffers, of possible completions, of matches for a
  665. pattern, and so on.
  666.  
  667.    Since yanking text into these buffers is not very useful, most of
  668. them define `Mouse-2' specially, as a command to use or view the item
  669. you click on.
  670.  
  671.    For example, if you click `Mouse-2' on a file name in a Dired
  672. buffer, you visit the that file.  If you click `Mouse-2' on an error
  673. message in the `*Compilation*' buffer, you go to the source code for
  674. that error message.  If you click `Mouse-2' on a completion in the
  675. `*Completions*' buffer, you choose that completion.
  676.  
  677.    You can usually tell when `Mouse-2' has this special sort of meaning
  678. because the sensitive text highlights when you move the mouse over it.
  679.  
  680. 
  681. File: emacs,  Node: Menu Mouse Clicks,  Next: Mode Line Mouse,  Prev: Mouse References,  Up: Frames
  682.  
  683. Mouse Clicks for Menus
  684. ======================
  685.  
  686.    Mouse clicks modified with the CONTROL bring up menus.
  687.  
  688. `C-Mouse-1'
  689.      This menu is for specifying the frame's default font.
  690.  
  691. `C-Mouse-2'
  692.      This menu is for specifying faces and other text properties for
  693.      editing formatted text.  *Note Formatted Text::.
  694.  
  695. `C-Mouse-3'
  696.      This menu is mode-specific.  For most modes, this menu has the same
  697.      items as all the mode-specific menu bar menus put together.  Some
  698.      modes may specify a different menu for this button.(1)
  699.  
  700.    ---------- Footnotes ----------
  701.  
  702.    (1)  Some systems use `Mouse-3' for a mode-specific menu.  We took a
  703. survey of users, and found they preferred to keep `Mouse-3' for
  704. selecting and killing regions.  Hence the decision to use `C-Mouse-3'
  705. for this menu.
  706.  
  707. 
  708. File: emacs,  Node: Mode Line Mouse,  Next: Creating Frames,  Prev: Menu Mouse Clicks,  Up: Frames
  709.  
  710. Mode Line Mouse Commands
  711. ========================
  712.  
  713.    You can use mouse clicks on window mode lines to select and
  714. manipulate windows.
  715.  
  716. `Mouse-1'
  717.      `Mouse-1' on a mode line selects the window above.  By dragging
  718.      `Mouse-1' on the mode line, you can move it, thus changing the
  719.      height of the windows above and below.
  720.  
  721. `Mouse-2'
  722.      `Mouse-2' on a mode line expands that window to fill its frame.
  723.  
  724. `Mouse-3'
  725.      `Mouse-3' on a mode line deletes the window above.
  726.  
  727. `C-Mouse-2'
  728.      `C-Mouse-2' on a mode line splits the window above horizontally,
  729.      above the place in the mode line where you click.
  730.  
  731.    `C-Mouse-2' on a scroll bar splits the corresponding window
  732. vertically.  *Note Split Window::.
  733.  
  734. 
  735. File: emacs,  Node: Creating Frames,  Next: Multiple Displays,  Prev: Mode Line Mouse,  Up: Frames
  736.  
  737. Creating Frames
  738. ===============
  739.  
  740.    The prefix key `C-x 5' is analogous to `C-x 4', with parallel
  741. subcommands.  The difference is that `C-x 5' commands create a new
  742. frame rather than just a new window in the selected frame  (*Note Pop
  743. Up Window::).  If an existing visible or iconified frame already
  744. displays the requested material, these commands use the existing frame,
  745. after raising or deiconifying as necessary.
  746.  
  747.    The various `C-x 5' commands differ in how they find or create the
  748. buffer to select:
  749.  
  750. `C-x 5 2'
  751.      Create a new frame (`make-frame').
  752.  
  753. `C-x 5 b BUFNAME RET'
  754.      Select buffer BUFNAME in another window.  This runs
  755.      `switch-to-buffer-other-frame'.
  756.  
  757. `C-x 5 f FILENAME RET'
  758.      Visit file FILENAME and select its buffer in another frame.  This
  759.      runs `find-file-other-frame'.  *Note Visiting::.
  760.  
  761. `C-x 5 d DIRECTORY RET'
  762.      Select a Dired buffer for directory DIRECTORY in another frame.
  763.      This runs `dired-other-frame'.  *Note Dired::.
  764.  
  765. `C-x 5 m'
  766.      Start composing a mail message in another frame.  This runs
  767.      `mail-other-frame'.  It is the other-frame variant of `C-x m'.
  768.      *Note Sending Mail::.
  769.  
  770. `C-x 5 .'
  771.      Find a tag in the current tag table in another frame.  This runs
  772.      `find-tag-other-frame', the multiple-frame variant of `M-.'.
  773.      *Note Tags::.
  774.  
  775. `C-x 5 r FILENAME RET'
  776.      Visit file FILENAME read-only, and select its buffer in another
  777.      frame.  This runs `find-file-read-only-other-frame'.  *Note
  778.      Visiting::.
  779.  
  780.    You can control the appearance of new frames you create by setting
  781. the frame parameters in `default-frame-alist'.  You can use the
  782. variable `initial-frame-alist' to specify parameters that affect only
  783. the initial frame.  *Note Initial Parameters: (elisp)Initial
  784. Parameters, for more information.
  785.  
  786. 
  787. File: emacs,  Node: Multiple Displays,  Next: Special Buffer Frames,  Prev: Creating Frames,  Up: Frames
  788.  
  789. Multiple Displays
  790. =================
  791.  
  792.    A single Emacs can talk to more than one X Windows display.
  793. Initially, Emacs uses just one display--the one specified with the
  794. `DISPLAY' environment variable or with the `--display' option (*note
  795. Initial Options::.).  To connect to another display, use the command
  796. `make-frame-on-display':
  797.  
  798. `M-x make-frame-on-display RET DISPLAY RET'
  799.      Create a new frame on display DISPLAY.
  800.  
  801.    A single X server can handle more than one screen.  When you open
  802. frames on two screens belonging to one server, Emacs knows they share a
  803. single keyboard, and it treats all the commands arriving from these
  804. screens as a single stream of input.
  805.  
  806.    When you open frames on different X servers, Emacs makes a separate
  807. input stream for each server.  This way, two users can type
  808. simultaneously on the two displays, and Emacs will not garble their
  809. input.  Each server also has its own selected frame.  The commands you
  810. enter with a particular X server apply to that server's selected frame.
  811.  
  812.    Despite these features, people using the same Emacs job from
  813. different displays can still interfere with each other if they are not
  814. careful.  For example, if any one types `C-x C-c', that exits the Emacs
  815. job for all of them!
  816.  
  817. 
  818. File: emacs,  Node: Special Buffer Frames,  Next: Frame Parameters,  Prev: Multiple Displays,  Up: Frames
  819.  
  820. Special Buffer Frames
  821. =====================
  822.  
  823.    You can make certain chosen buffers, for which Emacs normally creates
  824. a second window when you have just one window, appear in special frames
  825. of their own.  To do this, set the variable
  826. `special-display-buffer-names' to a list of buffer names; any buffer
  827. whose name is in that list automatically gets a special frame, when an
  828. Emacs command wants to display it "in another window."
  829.  
  830.    For example, if you set the variable this way,
  831.  
  832.      (setq special-display-buffer-names
  833.            '("*Completions*" "*grep*" "*tex-shell*"))
  834.  
  835. then completion lists, `grep' output and the TeX mode shell buffer get
  836. individual frames of their own.  These frames, and the windows in them,
  837. are never automatically split or reused for any other buffers.  They
  838. continue to show the buffers they were created for, unless you alter
  839. them by hand.  Killing the special buffer deletes its frame
  840. automatically.
  841.  
  842.    More generally, you can set `special-display-regexps' to a list of
  843. regular expressions; then a buffer gets its own frame if its name
  844. matches any of those regular expressions.  (Once again, this applies
  845. only to buffers that normally get displayed for you in a separate
  846. window.)
  847.  
  848.    The variable `special-display-frame-alist' specifies the frame
  849. parameters for these frames.  It has a default value, so you don't need
  850. to set it.
  851.  
  852.    For those who know Lisp, an element of
  853. `special-display-buffer-names' or `special-display-regexps' can also be
  854. a list.  Then the first element is the buffer name or regular
  855. expression; the rest of the list specifies how to create the frame.  It
  856. can be an association list specifying frame parameter values; these
  857. values take precedence over parameter values specified in
  858. `special-display-frame-alist'.  Alternatively, it can have this form:
  859.  
  860.      (FUNCTION ARGS...)
  861.  
  862. where FUNCTION is a symbol.  Then the frame is constructed by calling
  863. FUNCTION; its first argument is the buffer, and its remaining arguments
  864. are ARGS.
  865.  
  866. 
  867. File: emacs,  Node: Frame Parameters,  Next: Scroll Bars,  Prev: Special Buffer Frames,  Up: Frames
  868.  
  869. Setting Frame Parameters
  870. ========================
  871.  
  872.    This section describes commands for altering the display style and
  873. window management behavior of the selected frame.
  874.  
  875. `M-x set-foreground-color RET COLOR RET'
  876.      Specify color COLOR for the foreground of the selected frame.
  877.  
  878. `M-x set-background-color RET COLOR RET'
  879.      Specify color COLOR for the background of the selected frame.
  880.      This changes the foreground color of the `modeline' face also, so
  881.      that it remains in inverse video compared with the default.
  882.  
  883. `M-x set-cursor-color RET COLOR RET'
  884.      Specify color COLOR for the cursor of the selected frame.
  885.  
  886. `M-x set-mouse-color RET COLOR RET'
  887.      Specify color COLOR for the mouse cursor when it is over the
  888.      selected frame.
  889.  
  890. `M-x set-border-color RET COLOR RET'
  891.      Specify color COLOR for the border of the selected frame.
  892.  
  893. `M-x list-colors-display'
  894.      Display the defined color names and show what the colors look like.
  895.      This command is somewhat slow.
  896.  
  897. `M-x auto-raise-mode'
  898.      Toggle whether or not the selected frame should auto-raise.
  899.      Auto-raise means that every time you move the mouse onto the
  900.      frame, it raises the frame.
  901.  
  902.      Note that this auto-raise feature is implemented by Emacs itself.
  903.      Some window managers also implement auto-raise.  If you enable
  904.      auto-raise for Emacs frames in your X window manager, it should
  905.      work, but it is beyond Emacs's control and therefore
  906.      `auto-raise-mode' has no effect on it.
  907.  
  908. `M-x auto-lower-mode'
  909.      Toggle whether or not the selected frame should auto-lower.
  910.      Auto-lower means that every time you move the mouse off of the
  911.      frame, the frame moves to the bottom of the stack of X windows.
  912.  
  913.      The command `auto-lower-mode' has no effect on auto-lower
  914.      implemented by the X window manager.  To control that, you must use
  915.      the appropriate window manager features.
  916.  
  917. `M-x set-default-font RET FONT RET'
  918.      Specify font FONT as the default for the selected frame.  *Note
  919.      Font X::, for ways to list the available fonts on your system.
  920.  
  921.      You can also set a frame's default font through a pop-up menu.
  922.      Press `C-Mouse-1' to activate this menu.
  923.  
  924.    In Emacs versions that use an X toolkit, the color-setting and
  925. font-setting functions don't affect menus and the menu bar, since they
  926. are displayed by their own widget classes.  To change the appearance of
  927. the menus and menu bar, you must use X resources (*note Resources X::.).
  928. *Note Colors X::, regarding colors.  *Note Font X::, regarding choice of
  929. font.
  930.  
  931.    For information on frame parameters and customization, see *Note
  932. Frame Parameters: (elisp)Frame Parameters.
  933.  
  934. 
  935. File: emacs,  Node: Scroll Bars,  Next: Menu Bars,  Prev: Frame Parameters,  Up: Frames
  936.  
  937. Scroll Bars
  938. ===========
  939.  
  940.    When using X, Emacs normally makes a "scroll bar" at the right of
  941. each Emacs window.  The scroll bar runs the height of the window, and
  942. shows a moving rectangular inner box which represents the portion of the
  943. buffer currently displayed.  The entire height of the scroll bar
  944. represents the entire length of the buffer.
  945.  
  946.    You can use `Mouse-2' (normally, the middle button) in the scroll
  947. bar to move or drag the inner box up and down.  If you move it to the
  948. top of the scroll bar, you see the top of the buffer.  If you move it to
  949. the bottom of the scroll bar, you see the bottom of the buffer.
  950.  
  951.    The left and right buttons in the scroll bar scroll by controlled
  952. increments.  `Mouse-1' (normally, the left button) moves the line at
  953. the level where you click up to the top of the window.  `Mouse-3'
  954. (normally, the right button) moves the line at the top of the window
  955. down to the level where you click.  By clicking repeatedly in the same
  956. place, you can scroll by the same distance over and over.
  957.  
  958.    Aside from scrolling, you can also click `C-Mouse-2' in the scroll
  959. bar to split a window vertically.  The split occurs on the line where
  960. you click.
  961.  
  962.    You can enable or disable Scroll Bar mode with the command `M-x
  963. scroll-bar-mode'.  With no argument, it toggles the use of scroll bars.
  964. With an argument, it turns use of scroll bars on if and only if the
  965. argument is positive.  This command applies to all frames, including
  966. frames yet to be created.  You can use the X resource
  967. `verticalScrollBars' to control the initial setting of Scroll Bar mode.
  968. *Note Resources X::.
  969.  
  970.    To enable or disable scroll bars for just the selected frame, use the
  971. `M-x toggle-scroll-bar' command.
  972.  
  973. 
  974. File: emacs,  Node: Menu Bars,  Next: Faces,  Prev: Scroll Bars,  Up: Frames
  975.  
  976. Menu Bars
  977. =========
  978.  
  979.    By default, each Emacs frame has a menu bar at the top which you can
  980. use to perform certain common operations.  There's no need to describe
  981. them in detail here, as you can more easily see for yourself; also, we
  982. may change them and add to them in subsequent Emacs versions.
  983.  
  984.    Each of the operations in the menu bar is bound to an ordinary Emacs
  985. command which you can invoke equally well with `M-x' or with its own
  986. key bindings.  The menu lists one equivalent key binding (if the command
  987. has any) at the right margin.  To see the command's name and
  988. documentation, type `C-h k' and then select the menu bar item you are
  989. interested in.
  990.  
  991.    You can turn display of menu bars on or off with `M-x
  992. menu-bar-mode'.  With no argument, this command toggles Menu Bar mode, a
  993. minor mode.  With an argument, the command turns Menu Bar mode on if the
  994. argument is positive, off if the argument is not positive.  You can use
  995. the X resource `menuBarLines' to control the initial setting of Menu
  996. Bar mode.  *Note Resources X::.
  997.  
  998. 
  999. File: emacs,  Node: Faces,  Next: Modifying Faces,  Prev: Menu Bars,  Up: Frames
  1000.  
  1001. Using Multiple Typefaces
  1002. ========================
  1003.  
  1004.    When using Emacs with X, you can set up multiple styles of displaying
  1005. characters.  The aspects of style that you can control are the type
  1006. font, the foreground color, the background color, and whether to
  1007. underline.  Emacs 19.29 does not support faces on MS-DOS, but future
  1008. versions may support them partially (*note MS-DOS::.).
  1009.  
  1010.    The way you control display style is by defining named "faces".
  1011. Each face can specify a type font, a foreground color, a background
  1012. color, and an underline flag; but it does not have to specify all of
  1013. them.
  1014.  
  1015.    The style of display used for a given character in the text is
  1016. determined by combining several faces.  Any aspect of the display style
  1017. that isn't specified by overlays or text properties comes from the frame
  1018. itself.
  1019.  
  1020.    Enriched mode, the mode for editing formatted text, includes several
  1021. commands and menus for specifying faces.  *Note Format Faces::, for how
  1022. to specify the font for text in the buffer.  *Note Format Colors::, for
  1023. how to specify the foreground and background color.
  1024.  
  1025.    To see what faces are currently defined, and what they look like,
  1026. type `M-x list-faces-display'.  It's possible for a given face to look
  1027. different in different frames; this command shows the appearance in the
  1028. frame in which you type it.  Here's a list of the standardly defined
  1029. faces:
  1030.  
  1031. `default'
  1032.      This face is used for ordinary text that doesn't specify any other
  1033.      face.
  1034.  
  1035. `modeline'
  1036.      This face is used for mode lines.  By default, it's set up as the
  1037.      inverse of the default face.  *Note Display Vars::.
  1038.  
  1039. `highlight'
  1040.      This face is used for highlighting portions of text, in various
  1041.      modes.
  1042.  
  1043. `region'
  1044.      This face is used for displaying a selected region (when Transient
  1045.      Mark mode is enabled--see below).
  1046.  
  1047. `secondary-selection'
  1048.      This face is used for displaying a secondary selection (*note
  1049.      Secondary Selection::.).
  1050.  
  1051. `bold'
  1052.      This face uses a bold variant of the default font, if it has one.
  1053.  
  1054. `italic'
  1055.      This face uses an italic variant of the default font, if it has
  1056.      one.
  1057.  
  1058. `bold-italic'
  1059.      This face uses a bold italic variant of the default font, if it
  1060.      has one.
  1061.  
  1062. `underline'
  1063.      This face underlines text.
  1064.  
  1065.    When Transient Mark mode is enabled, the text of the region is
  1066. highlighted when the mark is active.  This uses the face named
  1067. `region'; you can control the style of highlighting by changing the
  1068. style of this face (*note Modifying Faces::.).  *Note Transient Mark::,
  1069. for more information about Transient Mark mode and activation and
  1070. deactivation of the mark.
  1071.  
  1072.    One easy way to use faces is to turn on Font-Lock mode.  This minor
  1073. mode, which is always local to a particular buffer, arranges to choose
  1074. faces according to the syntax of the text you are editing.  It can
  1075. recognize comments and strings in most languages; in several languages,
  1076. it can also recognize and properly highlight various other important
  1077. constructs--for example, names of functions being defined.
  1078.  
  1079.    Font-Lock mode is a minor mode.  The command `M-x font-lock-mode'
  1080. turns the mode on or off.  The function `turn-on-font-lock'
  1081. unconditionally enables Font-Lock mode.  This is useful in mode-hook
  1082. functions.  For example, to enable Font-Lock mode whenever you edit a C
  1083. file, you can do this:
  1084.  
  1085.      (add-hook 'c-mode-hook 'turn-on-font-lock)
  1086.  
  1087.    To get the full benefit of Font-Lock mode, you need to choose a
  1088. default font which has bold, italic, and bold-italic variants; or else
  1089. you need to have a color or grayscale screen.  The variable
  1090. `font-lock-display-type' specifies whether Font-Lock mode should use
  1091. font styles, colors, or shades of gray to distinguish the various kinds
  1092. of text.  Emacs chooses the default value according to the
  1093. characteristics of your display.
  1094.  
  1095. 
  1096. File: emacs,  Node: Modifying Faces,  Next: Misc X,  Prev: Faces,  Up: Frames
  1097.  
  1098. Modifying Faces
  1099. ===============
  1100.  
  1101.    Here are the commands for changing the font of a face:
  1102.  
  1103. `M-x set-face-font RET FACE RET FONT RET'
  1104.      Change face FACE to use font FONT.  *Note Font X::, for more
  1105.      information about font naming under X.
  1106.  
  1107. `M-x make-face-bold RET FACE RET'
  1108.      Convert face FACE to use a bold version of its current font.
  1109.  
  1110. `M-x make-face-italic RET FACE RET'
  1111.      Convert face FACE to use a italic version of its current font.
  1112.  
  1113. `M-x make-face-bold-italic RET FACE RET'
  1114.      Convert face FACE to use a bold-italic version of its current font.
  1115.  
  1116. `M-x make-face-unbold RET FACE RET'
  1117.      Convert face FACE to use a non-bold version of its current font.
  1118.  
  1119. `M-x make-face-unitalic RET FACE RET'
  1120.      Convert face FACE to use a non-italic version of its current font.
  1121.  
  1122.    Here are the commands for setting the colors and underline flag of a
  1123. face:
  1124.  
  1125. `M-x set-face-foreground RET FACE RET COLOR RET'
  1126.      Use color COLOR for the foreground of characters in face FACE.
  1127.  
  1128. `M-x set-face-background RET FACE RET COLOR RET'
  1129.      Use color COLOR for the background of characters in face FACE.
  1130.  
  1131.      On a black-and-white display, the colors you can use for the
  1132.      background are `black', `white', `gray', `gray1' and `gray3'.
  1133.      Emacs supports the gray colors by using background stipple
  1134.      patterns instead of a color.
  1135.  
  1136. `M-x set-face-stipple RET FACE RET PATTERN RET'
  1137.      Use stipple pattern PATTERN for the background of characters in
  1138.      face FACE.
  1139.  
  1140. `M-x list-colors-display'
  1141.      Display the defined color names and show what the colors look like.
  1142.  
  1143. `M-x set-face-underline-p RET FACE RET FLAG RET'
  1144.      Specify whether to underline characters in face FACE.
  1145.  
  1146. `M-x invert-face RET FACE RET'
  1147.      Swap the foreground and background colors of face FACE.
  1148.  
  1149. `M-x modify-face RET FACE RET ATTRIBUTES...'
  1150.      Change various attributes of face FACE.  This command prompts for
  1151.      all the attribute of the face, one attribute at a time.  For the
  1152.      color and stipple attributes, the attribute's current value is the
  1153.      default--type just RET if you don't want to change that attribute.
  1154.      Type `none' if you want to clear out the attribute.
  1155.  
  1156.    You can also use X resources to specify attributes of particular
  1157. faces.  *Note Resources X::.
  1158.  
  1159. 
  1160. File: emacs,  Node: Misc X,  Prev: Modifying Faces,  Up: Frames
  1161.  
  1162. Miscellaneous X Window Features
  1163. ===============================
  1164.  
  1165.    The following commands let you create, delete and operate on frames:
  1166.  
  1167. `C-z'
  1168.      To iconify the selected Emacs frame, type `C-z'
  1169.      (`iconify-or-deiconify-frame').  The normal meaning of `C-z', to
  1170.      suspend Emacs, is not useful under a window system, so it has a
  1171.      different binding in that case.
  1172.  
  1173.      If you type this command on an Emacs frame's icon, it deiconifies
  1174.      the frame.
  1175.  
  1176. `C-x 5 0'
  1177.      To delete the selected frame, type `C-x 5 0' (`delete-frame').
  1178.      This is not allowed if there is only one frame.
  1179.  
  1180. `M-x transient-mark-mode'
  1181.      Under X Windows, when Transient Mark mode is enabled, Emacs
  1182.      highlights the region when the mark is active.  This feature is
  1183.      the main motive for using Transient Mark mode.  To toggle the
  1184.      state of this mode, use the command `M-x transient-mark-mode'.
  1185.      *Note Mark::.
  1186.  
  1187.