aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChong Yidong2009-09-19 21:23:21 +0000
committerChong Yidong2009-09-19 21:23:21 +0000
commit8ba46c89bc0c2dccc9e51f1533dd127ecc125fbd (patch)
treeb2215fae9e6fec2bfa4d1bf25436bb7bf95bef6f /doc
parent547c692190b9d565e3b819f7a146c210fa062bbc (diff)
downloademacs-8ba46c89bc0c2dccc9e51f1533dd127ecc125fbd.tar.gz
emacs-8ba46c89bc0c2dccc9e51f1533dd127ecc125fbd.zip
* frames.texi (Frame Commands): C-z is now bound to suspend-frame.
* entering.texi (Exiting): C-z is now bound to suspend-frame. * custom.texi (Init Examples): Replace Rumseld with Cheny (Bug#3519). (Key Bindings): Reference Init Rebinding in introductory text. Shift some of the introduction to Keymaps node. (Keymaps): Simplify. (Local Keymaps): Simplify. Move binding example to Init Rebinding. (Minibuffer Maps): Remove mention of Mocklisp. (Init Rebinding): Move mode-local rebinding example here from Local Keymaps. (Modifier Keys): Clarify.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog16
-rw-r--r--doc/emacs/custom.texi223
-rw-r--r--doc/emacs/entering.texi21
-rw-r--r--doc/emacs/frames.texi6
4 files changed, 133 insertions, 133 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 07dc3f6f861..3f1a10bc44d 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,19 @@
12009-09-19 Chong Yidong <cyd@stupidchicken.com>
2
3 * frames.texi (Frame Commands): C-z is now bound to suspend-frame.
4
5 * entering.texi (Exiting): C-z is now bound to suspend-frame.
6
7 * custom.texi (Init Examples): Replace Rumseld with Cheny (Bug#3519).
8 (Key Bindings): Reference Init Rebinding in introductory text. Shift
9 some of the introduction to Keymaps node.
10 (Keymaps): Simplify.
11 (Local Keymaps): Simplify. Move binding example to Init Rebinding.
12 (Minibuffer Maps): Remove mention of Mocklisp.
13 (Init Rebinding): Move mode-local rebinding example here from Local
14 Keymaps.
15 (Modifier Keys): Clarify.
16
12009-09-13 Chong Yidong <cyd@stupidchicken.com> 172009-09-13 Chong Yidong <cyd@stupidchicken.com>
2 18
3 * misc.texi (Invoking emacsclient): Minor clarifications (Bug#4419). 19 * misc.texi (Invoking emacsclient): Minor clarifications (Bug#4419).
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi
index 9295d97b1cb..ed275286f56 100644
--- a/doc/emacs/custom.texi
+++ b/doc/emacs/custom.texi
@@ -1344,13 +1344,10 @@ unsafe file-local variables (@pxref{Safe File Variables}).
1344@section Customizing Key Bindings 1344@section Customizing Key Bindings
1345@cindex key bindings 1345@cindex key bindings
1346 1346
1347 This section describes @dfn{key bindings}, which map keys to commands, 1347 This section describes @dfn{key bindings}, which map keys to
1348and @dfn{keymaps}, which record key bindings. It also explains how 1348commands, and @dfn{keymaps}, which record key bindings. It also
1349to customize key bindings. 1349explains how to customize key bindings, which is done by editing your
1350 1350init file (@pxref{Init Rebinding}).
1351 Recall that a command is a Lisp function whose definition provides for
1352interactive use. Like every Lisp function, a command has a function
1353name, which usually consists of lower-case letters and hyphens.
1354 1351
1355@menu 1352@menu
1356* Keymaps:: Generalities. The global keymap. 1353* Keymaps:: Generalities. The global keymap.
@@ -1372,58 +1369,51 @@ name, which usually consists of lower-case letters and hyphens.
1372@subsection Keymaps 1369@subsection Keymaps
1373@cindex keymap 1370@cindex keymap
1374 1371
1375 The bindings between key sequences and command functions are recorded 1372 As described in @ref{Commands}, each Emacs command is a Lisp
1376in data structures called @dfn{keymaps}. Emacs has many of these, each 1373function whose definition provides for interactive use. Like every
1377used on particular occasions. 1374Lisp function, a command has a function name, which usually consists
1375of lower-case letters and hyphens.
1378 1376
1379 A @dfn{key sequence} (@dfn{key}, for short) is a sequence of 1377 A @dfn{key sequence} (@dfn{key}, for short) is a sequence of
1380@dfn{input events} that have a meaning as a unit. Input events 1378@dfn{input events} that have a meaning as a unit. Input events
1381include characters, function keys and mouse buttons---all the inputs 1379include characters, function keys and mouse buttons---all the inputs
1382that you can send to the computer with your terminal. A key sequence 1380that you can send to the computer. A key sequence gets its meaning
1383gets its meaning from its @dfn{binding}, which says what command it 1381from its @dfn{binding}, which says what command it runs.
1384runs. The role of keymaps is to record these bindings. 1382
1383 The bindings between key sequences and command functions are
1384recorded in data structures called @dfn{keymaps}. Emacs has many of
1385these, each used on particular occasions.
1385 1386
1386@cindex global keymap 1387@cindex global keymap
1387 The @dfn{global} keymap is the most important keymap because it is 1388 The @dfn{global} keymap is the most important keymap because it is
1388always in effect. The global keymap defines keys for Fundamental mode; 1389always in effect. The global keymap defines keys for Fundamental mode
1389most of these definitions are common to most or all major modes. Each 1390(@pxref{Major Modes}); most of these definitions are common to most or
1390major or minor mode can have its own keymap which overrides the global 1391all major modes. Each major or minor mode can have its own keymap
1391definitions of some keys. 1392which overrides the global definitions of some keys.
1392 1393
1393 For example, a self-inserting character such as @kbd{g} is 1394 For example, a self-inserting character such as @kbd{g} is
1394self-inserting because the global keymap binds it to the command 1395self-inserting because the global keymap binds it to the command
1395@code{self-insert-command}. The standard Emacs editing characters such 1396@code{self-insert-command}. The standard Emacs editing characters
1396as @kbd{C-a} also get their standard meanings from the global keymap. 1397such as @kbd{C-a} also get their standard meanings from the global
1397Commands to rebind keys, such as @kbd{M-x global-set-key}, actually work 1398keymap. Commands to rebind keys, such as @kbd{M-x global-set-key},
1398by storing the new binding in the proper place in the global map. 1399work by storing the new binding in the proper place in the global map
1399@xref{Rebinding}. 1400(@pxref{Rebinding}).
1400 1401
1401@cindex function key 1402@cindex function key
1402 Most modern keyboards have function keys as well as character keys. 1403 Most modern keyboards have function keys as well as character keys.
1403Function keys send input events just as character keys do, and keymaps 1404Function keys send input events just as character keys do, and keymaps
1404can have bindings for them. On text terminals, typing a function key 1405can have bindings for them. Key sequences can mix function keys and
1405actually sends the computer a sequence of characters; the precise 1406characters. For example, if your keyboard has a @key{Home} function
1406details of the sequence depends on which function key and on the model 1407key, Emacs can recognize key sequences like @kbd{C-x @key{Home}}. You
1407of terminal you are using. (Often the sequence starts with 1408can even mix mouse events with keyboard events, such as
1408@kbd{@key{ESC} [}.) If Emacs understands your terminal type properly, 1409@kbd{S-down-mouse-1}.
1409it recognizes the character sequences forming function keys wherever 1410
1410they occur in a key sequence. Thus, for most purposes, you can 1411 On text terminals, typing a function key actually sends the computer
1411pretend the function keys reach Emacs directly and ignore their 1412a sequence of characters; the precise details of the sequence depends
1412encoding as character sequences. 1413on the function key and on the terminal type. (Often the sequence
1413 1414starts with @kbd{@key{ESC} [}.) If Emacs understands your terminal
1414 Key sequences can mix function keys and characters. For example, if 1415type properly, it automatically handles such sequences as single input
1415your keyboard has a @key{Home} function key, Emacs also recognizes key 1416events.
1416sequences like @kbd{C-x @key{Home}}. You can even mix mouse events
1417with keyboard events, but we recommend against it, because such key
1418sequences are inconvenient to use.
1419
1420 As a user, you can redefine any key, but it is usually best to stick
1421to key sequences that consist of @kbd{C-c} followed by a letter (upper
1422or lower case). These keys are ``reserved for users,'' so they won't
1423conflict with any properly designed Emacs extension. The function
1424keys @key{F5} through @key{F9} are also reserved for users. If you
1425redefine some other key, your definition may be overridden by certain
1426extensions or major modes which redefine the same key.
1427 1417
1428@node Prefix Keymaps 1418@node Prefix Keymaps
1429@subsection Prefix Keymaps 1419@subsection Prefix Keymaps
@@ -1479,27 +1469,25 @@ characters are actually defined by this map.
1479@subsection Local Keymaps 1469@subsection Local Keymaps
1480 1470
1481@cindex local keymap 1471@cindex local keymap
1482 So far we have explained the ins and outs of the global map. Major
1483modes customize Emacs by providing their own key bindings in @dfn{local
1484keymaps}. For example, C mode overrides @key{TAB} to make it indent the
1485current line for C code. Portions of text in the buffer can specify
1486their own keymaps to substitute for the keymap of the buffer's major
1487mode.
1488
1489@cindex minor mode keymap 1472@cindex minor mode keymap
1490 Minor modes can also have local keymaps. Whenever a minor mode is 1473 So far, we have explained the ins and outs of the global map. Major
1491in effect, the definitions in its keymap override both the major 1474modes customize Emacs by providing their own key bindings in
1492mode's local keymap and the global keymap. 1475@dfn{local keymaps}. For example, C mode overrides @key{TAB} to make
1493 1476it indent the current line for C code. Minor modes can also have
1494 A local keymap can locally redefine a key as a prefix key by defining 1477local keymaps; whenever a minor mode is in effect, the definitions in
1495it as a prefix keymap. If the key is also defined globally as a prefix, 1478its keymap override both the major mode's local keymap and the global
1496then its local and global definitions (both keymaps) effectively 1479keymap. In addition, portions of text in the buffer can specify their
1497combine: both of them are used to look up the event that follows the 1480own keymaps, which override all other keymaps.
1498prefix key. Thus, if the mode's local keymap defines @kbd{C-c} as 1481
1499another keymap, and that keymap defines @kbd{C-z} as a command, this 1482 A local keymap can redefine a key as a prefix key by defining it as
1500provides a local meaning for @kbd{C-c C-z}. This does not affect other 1483a prefix keymap. If the key is also defined globally as a prefix, its
1501sequences that start with @kbd{C-c}; if those sequences don't have their 1484local and global definitions (both keymaps) effectively combine: both
1502own local bindings, their global bindings remain in effect. 1485definitions are used to look up the event that follows the prefix key.
1486For example, if a local keymap defines @kbd{C-c} as a prefix keymap,
1487and that keymap defines @kbd{C-z} as a command, this provides a local
1488meaning for @kbd{C-c C-z}. This does not affect other sequences that
1489start with @kbd{C-c}; if those sequences don't have their own local
1490bindings, their global bindings remain in effect.
1503 1491
1504 Another way to think of this is that Emacs handles a multi-event key 1492 Another way to think of this is that Emacs handles a multi-event key
1505sequence by looking in several keymaps, one by one, for a binding of the 1493sequence by looking in several keymaps, one by one, for a binding of the
@@ -1509,27 +1497,6 @@ it checks the global keymap. This is not precisely how key lookup
1509works, but it's good enough for understanding the results in ordinary 1497works, but it's good enough for understanding the results in ordinary
1510circumstances. 1498circumstances.
1511 1499
1512@cindex rebinding major mode keys
1513 Most major modes construct their keymaps when the mode is used for
1514the first time in a session. If you wish to change one of these
1515keymaps, you must use the major mode's @dfn{mode hook}
1516(@pxref{Hooks}).
1517
1518@findex define-key
1519 For example, the command @code{texinfo-mode} to select Texinfo mode
1520runs the hook @code{texinfo-mode-hook}. Here's how you can use the hook
1521to add local bindings (not very useful, we admit) for @kbd{C-c n} and
1522@kbd{C-c p} in Texinfo mode:
1523
1524@example
1525(add-hook 'texinfo-mode-hook
1526 '(lambda ()
1527 (define-key texinfo-mode-map "\C-cp"
1528 'backward-paragraph)
1529 (define-key texinfo-mode-map "\C-cn"
1530 'forward-paragraph)))
1531@end example
1532
1533@node Minibuffer Maps 1500@node Minibuffer Maps
1534@subsection Minibuffer Keymaps 1501@subsection Minibuffer Keymaps
1535 1502
@@ -1548,7 +1515,7 @@ completion and exit commands.
1548@code{minibuffer-local-map} is used for ordinary input (no completion). 1515@code{minibuffer-local-map} is used for ordinary input (no completion).
1549@item 1516@item
1550@code{minibuffer-local-ns-map} is similar, except that @key{SPC} exits 1517@code{minibuffer-local-ns-map} is similar, except that @key{SPC} exits
1551just like @key{RET}. This is used mainly for Mocklisp compatibility. 1518just like @key{RET}.
1552@item 1519@item
1553@code{minibuffer-local-completion-map} is for permissive completion. 1520@code{minibuffer-local-completion-map} is for permissive completion.
1554@item 1521@item
@@ -1567,10 +1534,14 @@ They do not bind @key{SPC}.
1567@cindex redefining keys, this session 1534@cindex redefining keys, this session
1568 1535
1569 The way to redefine an Emacs key is to change its entry in a keymap. 1536 The way to redefine an Emacs key is to change its entry in a keymap.
1570You can change the global keymap, in which case the change is effective in 1537You can change the global keymap, in which case the change is
1571all major modes (except those that have their own overriding local 1538effective in all major modes (except those that have their own
1572definitions for the same key). Or you can change the current buffer's 1539overriding local bindings for the same key). Or you can change a
1573local map, which affects all buffers using the same major mode. 1540local keymap, which affects all buffers using the same major mode.
1541
1542 In this section, we describe how to rebind keys for the present
1543Emacs session. @xref{Init Rebinding}, for a description of how to
1544make key rebindings affect future Emacs sessions.
1574 1545
1575@findex global-set-key 1546@findex global-set-key
1576@findex local-set-key 1547@findex local-set-key
@@ -1588,21 +1559,18 @@ Make @var{key} undefined in the global map.
1588Make @var{key} undefined locally (in the major mode now in effect). 1559Make @var{key} undefined locally (in the major mode now in effect).
1589@end table 1560@end table
1590 1561
1591 For example, suppose you like to execute commands in a subshell within 1562 For example, the following binds @kbd{C-z} to the @code{shell}
1592an Emacs buffer, instead of suspending Emacs and executing commands in 1563command (@pxref{Interactive Shell}), replacing the normal global
1593your login shell. Normally, @kbd{C-z} is bound to the function 1564definition of @kbd{C-z}:
1594@code{suspend-emacs} (when not using the X Window System), but you can
1595change @kbd{C-z} to invoke an interactive subshell within Emacs, by
1596binding it to @code{shell} as follows:
1597 1565
1598@example 1566@example
1599M-x global-set-key @key{RET} C-z shell @key{RET} 1567M-x global-set-key @key{RET} C-z shell @key{RET}
1600@end example 1568@end example
1601 1569
1602@noindent 1570@noindent
1603@code{global-set-key} reads the command name after the key. After you 1571The @code{global-set-key} command reads the command name after the
1604press the key, a message like this appears so that you can confirm that 1572key. After you press the key, a message like this appears so that you
1605you are binding the key you want: 1573can confirm that you are binding the key you want:
1606 1574
1607@example 1575@example
1608Set key C-z to command: 1576Set key C-z to command:
@@ -1648,12 +1616,13 @@ command is less work to invoke when you really want to.
1648 1616
1649@node Init Rebinding 1617@node Init Rebinding
1650@subsection Rebinding Keys in Your Init File 1618@subsection Rebinding Keys in Your Init File
1619@cindex rebinding major mode keys
1651@c This node is referenced in the tutorial. When renaming or deleting 1620@c This node is referenced in the tutorial. When renaming or deleting
1652@c it, the tutorial needs to be adjusted. (TUTORIAL.de) 1621@c it, the tutorial needs to be adjusted. (TUTORIAL.de)
1653 1622
1654 If you have a set of key bindings that you like to use all the time, 1623 If you have a set of key bindings that you like to use all the time,
1655you can specify them in your initialization file by writing Lisp code 1624you can specify them in your initialization file by writing Lisp code.
1656(@pxref{Init File}). 1625@xref{Init File}, for a description of the initialization file.
1657 1626
1658@findex kbd 1627@findex kbd
1659 There are several ways to write a key binding using Lisp. The 1628 There are several ways to write a key binding using Lisp. The
@@ -1661,7 +1630,7 @@ simplest is to use the @code{kbd} macro, which converts a textual
1661representation of a key sequence---similar to how we have written key 1630representation of a key sequence---similar to how we have written key
1662sequences in this manual---into a form that can be passed as an 1631sequences in this manual---into a form that can be passed as an
1663argument to @code{global-set-key}. For example, here's how to bind 1632argument to @code{global-set-key}. For example, here's how to bind
1664@kbd{C-z} to @code{shell} (@pxref{Interactive Shell}): 1633@kbd{C-z} to the @code{shell} command (@pxref{Interactive Shell}):
1665 1634
1666@example 1635@example
1667(global-set-key (kbd "C-z") 'shell) 1636(global-set-key (kbd "C-z") 'shell)
@@ -1707,13 +1676,14 @@ and @samp{\d} respectively. Here is an example which binds @kbd{C-x
1707 1676
1708 When the key sequence includes function keys or mouse button events, 1677 When the key sequence includes function keys or mouse button events,
1709or non-@acronym{ASCII} characters such as @code{C-=} or @code{H-a}, 1678or non-@acronym{ASCII} characters such as @code{C-=} or @code{H-a},
1710you must use a vector to specify the key sequence. Each element in 1679you can use a vector to specify the key sequence. Each element in the
1711the vector stands for an input event; the elements are separated by 1680vector stands for an input event; the elements are separated by spaces
1712spaces and surrounded by a pair of square brackets. If an element is 1681and surrounded by a pair of square brackets. If a vector element is a
1713a symbol, simply write the symbol's name---no other delimiters or 1682character, write it as a Lisp character constant: @samp{?} followed by
1714punctuation are needed. If a vector element is a character, write it 1683the character as it would appear in a string. Function keys are
1715as a Lisp character constant: @samp{?} followed by the character as it 1684represented by symbols (@pxref{Function Keys}); simply write the
1716would appear in a string. Here are some examples: 1685symbol's name, with no other delimiters or punctuation. Here are some
1686examples:
1717 1687
1718@example 1688@example
1719(global-set-key [?\C-=] 'make-symbolic-link) 1689(global-set-key [?\C-=] 'make-symbolic-link)
@@ -1733,6 +1703,23 @@ You can use a vector for the simple cases too:
1733 Language and coding systems may cause problems with key bindings for 1703 Language and coding systems may cause problems with key bindings for
1734non-@acronym{ASCII} characters. @xref{Init Non-ASCII}. 1704non-@acronym{ASCII} characters. @xref{Init Non-ASCII}.
1735 1705
1706 As described in @ref{Local Keymaps}, major modes and minor modes can
1707define local keymaps. These keymaps are constructed when the mode is
1708used for the first time in a session. If you wish to change one of
1709these keymaps, you must use the @dfn{mode hook} (@pxref{Hooks}).
1710
1711@findex define-key
1712 For example, Texinfo mode runs the hook @code{texinfo-mode-hook}.
1713Here's how you can use the hook to add local bindings for @kbd{C-c n}
1714and @kbd{C-c p} in Texinfo mode:
1715
1716@example
1717(add-hook 'texinfo-mode-hook
1718 '(lambda ()
1719 (define-key texinfo-mode-map "\C-cp" 'backward-paragraph)
1720 (define-key texinfo-mode-map "\C-cn" 'forward-paragraph)))
1721@end example
1722
1736@node Modifier Keys 1723@node Modifier Keys
1737@subsection Modifier Keys 1724@subsection Modifier Keys
1738@cindex modifier keys 1725@cindex modifier keys
@@ -1744,14 +1731,14 @@ same thing as @kbd{M-a}. This concerns only alphabetical characters,
1744and does not apply to ``shifted'' versions of other keys; for 1731and does not apply to ``shifted'' versions of other keys; for
1745instance, @kbd{C-@@} is not the same as @kbd{C-2}. 1732instance, @kbd{C-@@} is not the same as @kbd{C-2}.
1746 1733
1747 When you customize Emacs, you can make modified alphabetical 1734 A @key{Control}-modified alphabetical character is always considered
1748characters case-sensitive. For instance, you could make @kbd{M-a} and 1735case-insensitive: Emacs always treats @kbd{C-A} as @kbd{C-a},
1749@kbd{M-A} run different commands. 1736@kbd{C-B} as @kbd{C-b}, and so forth. The reason for this is
1737historical.
1750 1738
1751 As a special exception, a @key{Control}-modified alphabetical 1739 For all other modifiers, you can make the modified alphabetical
1752character is always case-insensitive, for historical reasons: Emacs 1740characters case-sensitive when you customize Emacs. For instance, you
1753always treats @kbd{C-A} as @kbd{C-a}, @kbd{C-B} as @kbd{C-b}, and so 1741could make @kbd{M-a} and @kbd{M-A} run different commands.
1754forth.
1755 1742
1756 Although only the @key{Control} and @key{Meta} modifier keys are 1743 Although only the @key{Control} and @key{Meta} modifier keys are
1757commonly used, Emacs supports three other modifier keys. These are 1744commonly used, Emacs supports three other modifier keys. These are
@@ -2271,7 +2258,7 @@ is not what you probably want to do in an init file.
2271Specify your own email address, if Emacs can't figure it out correctly. 2258Specify your own email address, if Emacs can't figure it out correctly.
2272 2259
2273@example 2260@example
2274(setq user-mail-address "rumsfeld@@torture.gov") 2261(setq user-mail-address "cheney@@torture.gov")
2275@end example 2262@end example
2276 2263
2277Various Emacs packages that need your own email address use the value of 2264Various Emacs packages that need your own email address use the value of
diff --git a/doc/emacs/entering.texi b/doc/emacs/entering.texi
index d7ebb39339b..be9014ad516 100644
--- a/doc/emacs/entering.texi
+++ b/doc/emacs/entering.texi
@@ -97,9 +97,8 @@ the desired file or directory, or @code{t}, which means to display the
97@item C-x C-c 97@item C-x C-c
98Kill Emacs (@code{save-buffers-kill-terminal}). 98Kill Emacs (@code{save-buffers-kill-terminal}).
99@item C-z 99@item C-z
100On a text terminal, suspend Emacs (@code{suspend-emacs}); on a 100On a text terminal, suspend Emacs; on a graphical display,
101graphical display, iconify (or ``minimize'') the selected frame 101``minimize'' the selected frame (@code{suspend-emacs}).
102(@code{iconify-or-deiconify-frame}).
103@end table 102@end table
104 103
105@kindex C-x C-c 104@kindex C-x C-c
@@ -140,7 +139,7 @@ kill-emacs}.
140@cindex iconifying 139@cindex iconifying
141@cindex suspending 140@cindex suspending
142 You can ``exit'' Emacs in two other ways. On a graphical display, 141 You can ``exit'' Emacs in two other ways. On a graphical display,
143you can @dfn{iconify} (or @dfn{minimize}) an Emacs frame; depending on 142you can @dfn{minimize} (or @dfn{iconify}) an Emacs frame; depending on
144the window system, this either replaces the Emacs frame with a tiny 143the window system, this either replaces the Emacs frame with a tiny
145``icon'' or conceals the frame entirely (@pxref{Frames}). On a 144``icon'' or conceals the frame entirely (@pxref{Frames}). On a
146text-only terminal, you can @dfn{suspend} Emacs; this means stopping 145text-only terminal, you can @dfn{suspend} Emacs; this means stopping
@@ -148,14 +147,12 @@ the Emacs program temporarily, returning control to its parent process
148(usually a shell). 147(usually a shell).
149 148
150@kindex C-z 149@kindex C-z
151@findex iconify-or-deiconify-frame 150@findex suspend-frame
152@findex suspend-emacs 151 @kbd{C-z} runs the command @code{suspend-frame}. On a graphical
153 On a graphical display, @kbd{C-z} runs the command 152display, this ``minimizes'' (or ``iconifies'') the selected Emacs
154@code{iconify-or-deiconify-frame}, which iconifies the selected Emacs 153frame. On a text terminal, this suspends the Emacs process.
155frame. On a text terminal, @kbd{C-z} runs the command 154
156@code{suspend-emacs}, which suspends Emacs. 155 After minimizing or suspending Emacs, you can return to it and
157
158 After iconifying or suspending Emacs, you can return to it and
159continue editing wherever you left off. The way to do this depends on 156continue editing wherever you left off. The way to do this depends on
160the window system or shell. In most common shells, you can resume 157the window system or shell. In most common shells, you can resume
161Emacs after suspending it with the shell command @command{%emacs}. 158Emacs after suspending it with the shell command @command{%emacs}.
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi
index 05347169e74..a8958957eae 100644
--- a/doc/emacs/frames.texi
+++ b/doc/emacs/frames.texi
@@ -591,9 +591,9 @@ appearance of all the frames Emacs creates, including the initial one.
591@table @kbd 591@table @kbd
592@item C-z 592@item C-z
593@kindex C-z @r{(X windows)} 593@kindex C-z @r{(X windows)}
594@findex iconify-or-deiconify-frame 594@findex suspend-frame
595Iconify (``minimize'') the selected Emacs frame 595Minimize (or ``iconify) the selected Emacs frame
596(@code{iconify-or-deiconify-frame}). @xref{Exiting}. 596(@code{suspend-frame}). @xref{Exiting}.
597 597
598@item C-x 5 0 598@item C-x 5 0
599@kindex C-x 5 0 599@kindex C-x 5 0