diff options
| author | Chong Yidong | 2009-09-19 21:23:21 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-09-19 21:23:21 +0000 |
| commit | 8ba46c89bc0c2dccc9e51f1533dd127ecc125fbd (patch) | |
| tree | b2215fae9e6fec2bfa4d1bf25436bb7bf95bef6f /doc | |
| parent | 547c692190b9d565e3b819f7a146c210fa062bbc (diff) | |
| download | emacs-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/ChangeLog | 16 | ||||
| -rw-r--r-- | doc/emacs/custom.texi | 223 | ||||
| -rw-r--r-- | doc/emacs/entering.texi | 21 | ||||
| -rw-r--r-- | doc/emacs/frames.texi | 6 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-09-13 Chong Yidong <cyd@stupidchicken.com> | 17 | 2009-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 |
| 1348 | and @dfn{keymaps}, which record key bindings. It also explains how | 1348 | commands, and @dfn{keymaps}, which record key bindings. It also |
| 1349 | to customize key bindings. | 1349 | explains how to customize key bindings, which is done by editing your |
| 1350 | 1350 | init file (@pxref{Init Rebinding}). | |
| 1351 | Recall that a command is a Lisp function whose definition provides for | ||
| 1352 | interactive use. Like every Lisp function, a command has a function | ||
| 1353 | name, 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 |
| 1376 | in data structures called @dfn{keymaps}. Emacs has many of these, each | 1373 | function whose definition provides for interactive use. Like every |
| 1377 | used on particular occasions. | 1374 | Lisp function, a command has a function name, which usually consists |
| 1375 | of 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 |
| 1381 | include characters, function keys and mouse buttons---all the inputs | 1379 | include characters, function keys and mouse buttons---all the inputs |
| 1382 | that you can send to the computer with your terminal. A key sequence | 1380 | that you can send to the computer. A key sequence gets its meaning |
| 1383 | gets its meaning from its @dfn{binding}, which says what command it | 1381 | from its @dfn{binding}, which says what command it runs. |
| 1384 | runs. The role of keymaps is to record these bindings. | 1382 | |
| 1383 | The bindings between key sequences and command functions are | ||
| 1384 | recorded in data structures called @dfn{keymaps}. Emacs has many of | ||
| 1385 | these, 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 |
| 1388 | always in effect. The global keymap defines keys for Fundamental mode; | 1389 | always in effect. The global keymap defines keys for Fundamental mode |
| 1389 | most 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 |
| 1390 | major or minor mode can have its own keymap which overrides the global | 1391 | all major modes. Each major or minor mode can have its own keymap |
| 1391 | definitions of some keys. | 1392 | which 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 |
| 1394 | self-inserting because the global keymap binds it to the command | 1395 | self-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 |
| 1396 | as @kbd{C-a} also get their standard meanings from the global keymap. | 1397 | such as @kbd{C-a} also get their standard meanings from the global |
| 1397 | Commands to rebind keys, such as @kbd{M-x global-set-key}, actually work | 1398 | keymap. Commands to rebind keys, such as @kbd{M-x global-set-key}, |
| 1398 | by storing the new binding in the proper place in the global map. | 1399 | work 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. |
| 1403 | Function keys send input events just as character keys do, and keymaps | 1404 | Function keys send input events just as character keys do, and keymaps |
| 1404 | can have bindings for them. On text terminals, typing a function key | 1405 | can have bindings for them. Key sequences can mix function keys and |
| 1405 | actually sends the computer a sequence of characters; the precise | 1406 | characters. For example, if your keyboard has a @key{Home} function |
| 1406 | details of the sequence depends on which function key and on the model | 1407 | key, Emacs can recognize key sequences like @kbd{C-x @key{Home}}. You |
| 1407 | of terminal you are using. (Often the sequence starts with | 1408 | can 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}. |
| 1409 | it recognizes the character sequences forming function keys wherever | 1410 | |
| 1410 | they occur in a key sequence. Thus, for most purposes, you can | 1411 | On text terminals, typing a function key actually sends the computer |
| 1411 | pretend the function keys reach Emacs directly and ignore their | 1412 | a sequence of characters; the precise details of the sequence depends |
| 1412 | encoding as character sequences. | 1413 | on the function key and on the terminal type. (Often the sequence |
| 1413 | 1414 | starts with @kbd{@key{ESC} [}.) If Emacs understands your terminal | |
| 1414 | Key sequences can mix function keys and characters. For example, if | 1415 | type properly, it automatically handles such sequences as single input |
| 1415 | your keyboard has a @key{Home} function key, Emacs also recognizes key | 1416 | events. |
| 1416 | sequences like @kbd{C-x @key{Home}}. You can even mix mouse events | ||
| 1417 | with keyboard events, but we recommend against it, because such key | ||
| 1418 | sequences are inconvenient to use. | ||
| 1419 | |||
| 1420 | As a user, you can redefine any key, but it is usually best to stick | ||
| 1421 | to key sequences that consist of @kbd{C-c} followed by a letter (upper | ||
| 1422 | or lower case). These keys are ``reserved for users,'' so they won't | ||
| 1423 | conflict with any properly designed Emacs extension. The function | ||
| 1424 | keys @key{F5} through @key{F9} are also reserved for users. If you | ||
| 1425 | redefine some other key, your definition may be overridden by certain | ||
| 1426 | extensions 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 | ||
| 1483 | modes customize Emacs by providing their own key bindings in @dfn{local | ||
| 1484 | keymaps}. For example, C mode overrides @key{TAB} to make it indent the | ||
| 1485 | current line for C code. Portions of text in the buffer can specify | ||
| 1486 | their own keymaps to substitute for the keymap of the buffer's major | ||
| 1487 | mode. | ||
| 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 |
| 1491 | in effect, the definitions in its keymap override both the major | 1474 | modes customize Emacs by providing their own key bindings in |
| 1492 | mode's local keymap and the global keymap. | 1475 | @dfn{local keymaps}. For example, C mode overrides @key{TAB} to make |
| 1493 | 1476 | it 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 | 1477 | local keymaps; whenever a minor mode is in effect, the definitions in |
| 1495 | it as a prefix keymap. If the key is also defined globally as a prefix, | 1478 | its keymap override both the major mode's local keymap and the global |
| 1496 | then its local and global definitions (both keymaps) effectively | 1479 | keymap. In addition, portions of text in the buffer can specify their |
| 1497 | combine: both of them are used to look up the event that follows the | 1480 | own keymaps, which override all other keymaps. |
| 1498 | prefix key. Thus, if the mode's local keymap defines @kbd{C-c} as | 1481 | |
| 1499 | another 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 |
| 1500 | provides a local meaning for @kbd{C-c C-z}. This does not affect other | 1483 | a prefix keymap. If the key is also defined globally as a prefix, its |
| 1501 | sequences that start with @kbd{C-c}; if those sequences don't have their | 1484 | local and global definitions (both keymaps) effectively combine: both |
| 1502 | own local bindings, their global bindings remain in effect. | 1485 | definitions are used to look up the event that follows the prefix key. |
| 1486 | For example, if a local keymap defines @kbd{C-c} as a prefix keymap, | ||
| 1487 | and that keymap defines @kbd{C-z} as a command, this provides a local | ||
| 1488 | meaning for @kbd{C-c C-z}. This does not affect other sequences that | ||
| 1489 | start with @kbd{C-c}; if those sequences don't have their own local | ||
| 1490 | bindings, 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 |
| 1505 | sequence by looking in several keymaps, one by one, for a binding of the | 1493 | sequence 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 | |||
| 1509 | works, but it's good enough for understanding the results in ordinary | 1497 | works, but it's good enough for understanding the results in ordinary |
| 1510 | circumstances. | 1498 | circumstances. |
| 1511 | 1499 | ||
| 1512 | @cindex rebinding major mode keys | ||
| 1513 | Most major modes construct their keymaps when the mode is used for | ||
| 1514 | the first time in a session. If you wish to change one of these | ||
| 1515 | keymaps, 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 | ||
| 1520 | runs the hook @code{texinfo-mode-hook}. Here's how you can use the hook | ||
| 1521 | to 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 |
| 1551 | just like @key{RET}. This is used mainly for Mocklisp compatibility. | 1518 | just 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. |
| 1570 | You can change the global keymap, in which case the change is effective in | 1537 | You can change the global keymap, in which case the change is |
| 1571 | all major modes (except those that have their own overriding local | 1538 | effective in all major modes (except those that have their own |
| 1572 | definitions for the same key). Or you can change the current buffer's | 1539 | overriding local bindings for the same key). Or you can change a |
| 1573 | local map, which affects all buffers using the same major mode. | 1540 | local keymap, which affects all buffers using the same major mode. |
| 1541 | |||
| 1542 | In this section, we describe how to rebind keys for the present | ||
| 1543 | Emacs session. @xref{Init Rebinding}, for a description of how to | ||
| 1544 | make 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. | |||
| 1588 | Make @var{key} undefined locally (in the major mode now in effect). | 1559 | Make @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} |
| 1592 | an Emacs buffer, instead of suspending Emacs and executing commands in | 1563 | command (@pxref{Interactive Shell}), replacing the normal global |
| 1593 | your login shell. Normally, @kbd{C-z} is bound to the function | 1564 | definition of @kbd{C-z}: |
| 1594 | @code{suspend-emacs} (when not using the X Window System), but you can | ||
| 1595 | change @kbd{C-z} to invoke an interactive subshell within Emacs, by | ||
| 1596 | binding it to @code{shell} as follows: | ||
| 1597 | 1565 | ||
| 1598 | @example | 1566 | @example |
| 1599 | M-x global-set-key @key{RET} C-z shell @key{RET} | 1567 | M-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 | 1571 | The @code{global-set-key} command reads the command name after the |
| 1604 | press the key, a message like this appears so that you can confirm that | 1572 | key. After you press the key, a message like this appears so that you |
| 1605 | you are binding the key you want: | 1573 | can confirm that you are binding the key you want: |
| 1606 | 1574 | ||
| 1607 | @example | 1575 | @example |
| 1608 | Set key C-z to command: | 1576 | Set 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, |
| 1655 | you can specify them in your initialization file by writing Lisp code | 1624 | you 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 | |||
| 1661 | representation of a key sequence---similar to how we have written key | 1630 | representation of a key sequence---similar to how we have written key |
| 1662 | sequences in this manual---into a form that can be passed as an | 1631 | sequences in this manual---into a form that can be passed as an |
| 1663 | argument to @code{global-set-key}. For example, here's how to bind | 1632 | argument 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, |
| 1709 | or non-@acronym{ASCII} characters such as @code{C-=} or @code{H-a}, | 1678 | or non-@acronym{ASCII} characters such as @code{C-=} or @code{H-a}, |
| 1710 | you must use a vector to specify the key sequence. Each element in | 1679 | you can use a vector to specify the key sequence. Each element in the |
| 1711 | the vector stands for an input event; the elements are separated by | 1680 | vector stands for an input event; the elements are separated by spaces |
| 1712 | spaces and surrounded by a pair of square brackets. If an element is | 1681 | and surrounded by a pair of square brackets. If a vector element is a |
| 1713 | a symbol, simply write the symbol's name---no other delimiters or | 1682 | character, write it as a Lisp character constant: @samp{?} followed by |
| 1714 | punctuation are needed. If a vector element is a character, write it | 1683 | the character as it would appear in a string. Function keys are |
| 1715 | as a Lisp character constant: @samp{?} followed by the character as it | 1684 | represented by symbols (@pxref{Function Keys}); simply write the |
| 1716 | would appear in a string. Here are some examples: | 1685 | symbol's name, with no other delimiters or punctuation. Here are some |
| 1686 | examples: | ||
| 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 |
| 1734 | non-@acronym{ASCII} characters. @xref{Init Non-ASCII}. | 1704 | non-@acronym{ASCII} characters. @xref{Init Non-ASCII}. |
| 1735 | 1705 | ||
| 1706 | As described in @ref{Local Keymaps}, major modes and minor modes can | ||
| 1707 | define local keymaps. These keymaps are constructed when the mode is | ||
| 1708 | used for the first time in a session. If you wish to change one of | ||
| 1709 | these 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}. | ||
| 1713 | Here's how you can use the hook to add local bindings for @kbd{C-c n} | ||
| 1714 | and @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, | |||
| 1744 | and does not apply to ``shifted'' versions of other keys; for | 1731 | and does not apply to ``shifted'' versions of other keys; for |
| 1745 | instance, @kbd{C-@@} is not the same as @kbd{C-2}. | 1732 | instance, @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 |
| 1748 | characters case-sensitive. For instance, you could make @kbd{M-a} and | 1735 | case-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 |
| 1737 | historical. | ||
| 1750 | 1738 | ||
| 1751 | As a special exception, a @key{Control}-modified alphabetical | 1739 | For all other modifiers, you can make the modified alphabetical |
| 1752 | character is always case-insensitive, for historical reasons: Emacs | 1740 | characters case-sensitive when you customize Emacs. For instance, you |
| 1753 | always treats @kbd{C-A} as @kbd{C-a}, @kbd{C-B} as @kbd{C-b}, and so | 1741 | could make @kbd{M-a} and @kbd{M-A} run different commands. |
| 1754 | forth. | ||
| 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 |
| 1757 | commonly used, Emacs supports three other modifier keys. These are | 1744 | commonly 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. | |||
| 2271 | Specify your own email address, if Emacs can't figure it out correctly. | 2258 | Specify 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 | ||
| 2277 | Various Emacs packages that need your own email address use the value of | 2264 | Various 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 |
| 98 | Kill Emacs (@code{save-buffers-kill-terminal}). | 98 | Kill Emacs (@code{save-buffers-kill-terminal}). |
| 99 | @item C-z | 99 | @item C-z |
| 100 | On a text terminal, suspend Emacs (@code{suspend-emacs}); on a | 100 | On a text terminal, suspend Emacs; on a graphical display, |
| 101 | graphical 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, |
| 143 | you can @dfn{iconify} (or @dfn{minimize}) an Emacs frame; depending on | 142 | you can @dfn{minimize} (or @dfn{iconify}) an Emacs frame; depending on |
| 144 | the window system, this either replaces the Emacs frame with a tiny | 143 | the 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 |
| 146 | text-only terminal, you can @dfn{suspend} Emacs; this means stopping | 145 | text-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 | 152 | display, this ``minimizes'' (or ``iconifies'') the selected Emacs |
| 154 | @code{iconify-or-deiconify-frame}, which iconifies the selected Emacs | 153 | frame. On a text terminal, this suspends the Emacs process. |
| 155 | frame. 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 | ||
| 159 | continue editing wherever you left off. The way to do this depends on | 156 | continue editing wherever you left off. The way to do this depends on |
| 160 | the window system or shell. In most common shells, you can resume | 157 | the window system or shell. In most common shells, you can resume |
| 161 | Emacs after suspending it with the shell command @command{%emacs}. | 158 | Emacs 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 |
| 595 | Iconify (``minimize'') the selected Emacs frame | 595 | Minimize (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 |