diff options
| author | Glenn Morris | 2012-05-02 23:43:02 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-05-02 23:43:02 -0700 |
| commit | e258c6a6aee28f1e68a8e85bf6d47895992dee4a (patch) | |
| tree | 7c1f677f4ab15ed9d8c05dd24747210f2eb2628c /doc | |
| parent | 4223d75523a085c44d536841a6ae7a565538d8f1 (diff) | |
| download | emacs-e258c6a6aee28f1e68a8e85bf6d47895992dee4a.tar.gz emacs-e258c6a6aee28f1e68a8e85bf6d47895992dee4a.zip | |
Small edits for programs.texi in Emacs manual
* doc/emacs/programs.texi (Programs, Electric C): Copyedits.
(Program Modes): Add xref to Fortran.
(Left Margin Paren): Remove what was (oddly enough) the only use
of defvar in the entire Emacs manual.
(Hungry Delete): Remove footnote about ancient Emacs version.
(Other C Commands): Use example rather than smallexample.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 7 | ||||
| -rw-r--r-- | doc/emacs/programs.texi | 31 |
2 files changed, 19 insertions, 19 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index c7d2f0b7eda..b654b1c16ca 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2012-05-03 Glenn Morris <rgm@gnu.org> | 1 | 2012-05-03 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * programs.texi (Programs, Electric C): Copyedits. | ||
| 4 | (Program Modes): Add xref to Fortran. | ||
| 5 | (Left Margin Paren): Remove what was (oddly enough) the only use | ||
| 6 | of defvar in the entire Emacs manual. | ||
| 7 | (Hungry Delete): Remove footnote about ancient Emacs version. | ||
| 8 | (Other C Commands): Use example rather than smallexample. | ||
| 9 | |||
| 3 | * text.texi (Pages, Filling, Foldout, Org Mode, HTML Mode) | 10 | * text.texi (Pages, Filling, Foldout, Org Mode, HTML Mode) |
| 4 | (Nroff Mode, Enriched Indentation, Table Rows and Columns): | 11 | (Nroff Mode, Enriched Indentation, Table Rows and Columns): |
| 5 | Tweak line and page breaks. | 12 | Tweak line and page breaks. |
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 23f808b93ea..b7f21e8a93c 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | @cindex program editing | 9 | @cindex program editing |
| 10 | 10 | ||
| 11 | This chapter describes Emacs features for facilitating editing | 11 | This chapter describes Emacs features for facilitating editing |
| 12 | programs. Some of these features can: | 12 | programs. Some of the things these features can do are: |
| 13 | 13 | ||
| 14 | @itemize @bullet | 14 | @itemize @bullet |
| 15 | @item | 15 | @item |
| @@ -128,8 +128,7 @@ IDL/Pike/AWK (@pxref{Top, , CC Mode, ccmode, CC Mode}), and IDLWAVE | |||
| 128 | @ifnotinfo | 128 | @ifnotinfo |
| 129 | The Emacs distribution contains Info manuals for the major modes for | 129 | The Emacs distribution contains Info manuals for the major modes for |
| 130 | Ada, C/C++/Objective C/Java/Corba IDL/Pike/AWK, and IDLWAVE. For | 130 | Ada, C/C++/Objective C/Java/Corba IDL/Pike/AWK, and IDLWAVE. For |
| 131 | Fortran mode, see the ``Fortran'' section in the Info version of the | 131 | Fortran mode, @pxref{Fortran,,, emacs-xtra, Specialized Emacs Features}. |
| 132 | Emacs manual, which is not included in this printed version. | ||
| 133 | @end ifnotinfo | 132 | @end ifnotinfo |
| 134 | 133 | ||
| 135 | @node Defuns | 134 | @node Defuns |
| @@ -186,15 +185,13 @@ delimiter from starting a defun. Here's an example: | |||
| 186 | highlights confusing opening delimiters (those that ought to be | 185 | highlights confusing opening delimiters (those that ought to be |
| 187 | quoted) in bold red. | 186 | quoted) in bold red. |
| 188 | 187 | ||
| 188 | @vindex open-paren-in-column-0-is-defun-start | ||
| 189 | If you need to override this convention, you can do so by setting | 189 | If you need to override this convention, you can do so by setting |
| 190 | this user option: | 190 | the variable @code{open-paren-in-column-0-is-defun-start}. |
| 191 | |||
| 192 | @defvar open-paren-in-column-0-is-defun-start | ||
| 193 | If this user option is set to @code{t} (the default), opening | 191 | If this user option is set to @code{t} (the default), opening |
| 194 | parentheses or braces at column zero always start defuns. When it's | 192 | parentheses or braces at column zero always start defuns. When it is |
| 195 | @code{nil}, defuns are found by searching for parens or braces at the | 193 | @code{nil}, defuns are found by searching for parens or braces at the |
| 196 | outermost level. | 194 | outermost level. |
| 197 | @end defvar | ||
| 198 | 195 | ||
| 199 | Usually, you should leave this option at its default value of | 196 | Usually, you should leave this option at its default value of |
| 200 | @code{t}. If your buffer contains parentheses or braces in column | 197 | @code{t}. If your buffer contains parentheses or braces in column |
| @@ -1553,8 +1550,8 @@ after the mode name: | |||
| 1553 | @kindex C-c C-l @r{(C mode)} | 1550 | @kindex C-c C-l @r{(C mode)} |
| 1554 | @findex c-toggle-electric-state | 1551 | @findex c-toggle-electric-state |
| 1555 | Toggle electric action (@code{c-toggle-electric-state}). With a | 1552 | Toggle electric action (@code{c-toggle-electric-state}). With a |
| 1556 | prefix argument, this command enables electric action if the argument | 1553 | positive prefix argument, this command enables electric action, with a |
| 1557 | is positive, disables it if it is negative. | 1554 | negative one it disables it. |
| 1558 | @end table | 1555 | @end table |
| 1559 | 1556 | ||
| 1560 | Electric characters insert newlines only when, in addition to the | 1557 | Electric characters insert newlines only when, in addition to the |
| @@ -1591,8 +1588,7 @@ preprocessor commands. | |||
| 1591 | @findex c-hungry-delete-backwards | 1588 | @findex c-hungry-delete-backwards |
| 1592 | @kindex C-c C-@key{DEL} (C Mode) | 1589 | @kindex C-c C-@key{DEL} (C Mode) |
| 1593 | @kindex C-c @key{DEL} (C Mode) | 1590 | @kindex C-c @key{DEL} (C Mode) |
| 1594 | @code{c-hungry-delete-backwards}---Delete the entire block of whitespace | 1591 | Delete the entire block of whitespace preceding point (@code{c-hungry-delete-backwards}). |
| 1595 | preceding point. | ||
| 1596 | 1592 | ||
| 1597 | @item C-c C-d | 1593 | @item C-c C-d |
| 1598 | @itemx C-c C-@key{DELETE} | 1594 | @itemx C-c C-@key{DELETE} |
| @@ -1601,8 +1597,7 @@ preceding point. | |||
| 1601 | @kindex C-c C-d (C Mode) | 1597 | @kindex C-c C-d (C Mode) |
| 1602 | @kindex C-c C-@key{DELETE} (C Mode) | 1598 | @kindex C-c C-@key{DELETE} (C Mode) |
| 1603 | @kindex C-c @key{DELETE} (C Mode) | 1599 | @kindex C-c @key{DELETE} (C Mode) |
| 1604 | @code{c-hungry-delete-forward}---Delete the entire block of whitespace | 1600 | Delete the entire block of whitespace after point (@code{c-hungry-delete-forward}). |
| 1605 | following point. | ||
| 1606 | @end table | 1601 | @end table |
| 1607 | 1602 | ||
| 1608 | As an alternative to the above commands, you can enable @dfn{hungry | 1603 | As an alternative to the above commands, you can enable @dfn{hungry |
| @@ -1615,9 +1610,7 @@ preceding whitespace, not just one space, and a single @kbd{C-c C-d} | |||
| 1615 | @item M-x c-toggle-hungry-state | 1610 | @item M-x c-toggle-hungry-state |
| 1616 | @findex c-toggle-hungry-state | 1611 | @findex c-toggle-hungry-state |
| 1617 | Toggle the hungry-delete feature | 1612 | Toggle the hungry-delete feature |
| 1618 | (@code{c-toggle-hungry-state})@footnote{This command had the binding | 1613 | (@code{c-toggle-hungry-state}). With a prefix argument, |
| 1619 | @kbd{C-c C-d} in earlier versions of Emacs. @kbd{C-c C-d} is now | ||
| 1620 | bound to @code{c-hungry-delete-forward}.}. With a prefix argument, | ||
| 1621 | this command turns the hungry-delete feature on if the argument is | 1614 | this command turns the hungry-delete feature on if the argument is |
| 1622 | positive, and off if it is negative. | 1615 | positive, and off if it is negative. |
| 1623 | @end table | 1616 | @end table |
| @@ -1656,11 +1649,11 @@ needs a binding to be useful. The following code will bind it to | |||
| 1656 | @kbd{C-j}. We use @code{c-initialization-hook} here to make sure | 1649 | @kbd{C-j}. We use @code{c-initialization-hook} here to make sure |
| 1657 | the keymap is loaded before we try to change it. | 1650 | the keymap is loaded before we try to change it. |
| 1658 | 1651 | ||
| 1659 | @smallexample | 1652 | @example |
| 1660 | (defun my-bind-clb () | 1653 | (defun my-bind-clb () |
| 1661 | (define-key c-mode-base-map "\C-j" 'c-context-line-break)) | 1654 | (define-key c-mode-base-map "\C-j" 'c-context-line-break)) |
| 1662 | (add-hook 'c-initialization-hook 'my-bind-clb) | 1655 | (add-hook 'c-initialization-hook 'my-bind-clb) |
| 1663 | @end smallexample | 1656 | @end example |
| 1664 | 1657 | ||
| 1665 | @item C-M-h | 1658 | @item C-M-h |
| 1666 | Put mark at the end of a function definition, and put point at the | 1659 | Put mark at the end of a function definition, and put point at the |