aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2005-12-04 21:00:59 +0000
committerAlan Mackenzie2005-12-04 21:00:59 +0000
commit7b18d88fe2382d1fbc5f3a1d202c3d3efb7a93fe (patch)
treec86d8dde7cc0be8eeff60547170a129e45034b97
parent8553120c7027745489c4d275b77451000ffeec14 (diff)
downloademacs-7b18d88fe2382d1fbc5f3a1d202c3d3efb7a93fe.tar.gz
emacs-7b18d88fe2382d1fbc5f3a1d202c3d3efb7a93fe.zip
Correct some spelling.
-rw-r--r--etc/NEWS133
1 files changed, 86 insertions, 47 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 150faff690f..5e1db31f8b1 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2005,6 +2005,54 @@ function also defines the result format for `eval-expression' (M-:),
2005+++ 2005+++
2006** CC mode changes. 2006** CC mode changes.
2007 2007
2008*** The CC Mode manual has been extensively revised.
2009The information about using CC Mode has been separated from the larger
2010and more difficult chapters about configuration.
2011
2012*** Changes in Key Sequences
2013**** c-toggle-auto-hungry-state is no longer bound to C-c C-t.
2014
2015**** c-toggle-hungry-state is no longer bound to C-c C-d.
2016This binding has been taken over by c-hungry-delete-forwards.
2017
2018**** c-toggle-auto-state (C-c C-t) has been renamed to c-toggle-auto-newline.
2019c-toggle-auto-state remains as an alias.
2020
2021**** The new commands c-hungry-backspace and c-hungry-delete-forwards
2022have key bindings C-c C-DEL (or C-c DEL, for the benefit of TTYs) and
2023C-c C-d (or C-c C-<delete> or C-c <delete>) respectively. These
2024commands delete entire blocks of whitespace with a single
2025key-sequence. [N.B. "DEL" is the <backspace> key.]
2026
2027**** The new command c-toggle-electric-mode is bound to C-c C-l.
2028
2029**** The new command c-subword-mode is bound to C-c C-w.
2030
2031*** C-c C-s (`c-show-syntactic-information') now highlights the anchor
2032position(s).
2033
2034*** New Minor Modes
2035**** Electric Minor Mode toggles the electric action of non-alphabetic keys.
2036The new command c-toggle-electric-mode is bound to C-c C-l. Turning the
2037mode off can be helpful for editing chaotically indented code and for
2038users new to CC Mode, who sometimes find electric indentation
2039disconcerting. Its current state is displayed in the mode line with an
2040'l', e.g. "C/al".
2041
2042**** Subword Minor Mode makes Emacs recognize word boundaries at upper case
2043letters in StudlyCapsIdentifiers. You enable this feature by C-c C-w. It can
2044also be used in non-CC Mode buffers. :-) Contributed by Masatake YAMATO.
2045
2046*** New clean-ups
2047
2048**** `comment-close-slash'.
2049With this clean-up, a block (i.e. c-style) comment can be terminated by
2050typing a slash at the start of a line.
2051
2052**** `c-one-liner-defun'
2053This clean-up compresses a short enough defun (for example, an AWK
2054pattern/action pair) onto a single line. "Short enough" is configurable.
2055
2008*** Font lock support. 2056*** Font lock support.
2009CC Mode now provides font lock support for all its languages. This 2057CC Mode now provides font lock support for all its languages. This
2010supersedes the font lock patterns that have been in the core font lock 2058supersedes the font lock patterns that have been in the core font lock
@@ -2024,11 +2072,10 @@ therefore be disabled by choosing a lower decoration level with the
2024variable font-lock-maximum-decoration. 2072variable font-lock-maximum-decoration.
2025 2073
2026Note that the most demanding font lock level has been tuned with lazy 2074Note that the most demanding font lock level has been tuned with lazy
2027fontification in mind, i.e. there should be a support mode that waits 2075fontification in mind; Just-In-Time-Lock mode should be enabled for
2028with the fontification until the text is actually shown 2076the highest font lock level (by default, it is). Fontifying a file
2029(e.g. Just-in-time Lock mode, which is the default, or Lazy Lock 2077with several thousand lines in one go can take the better part of a
2030mode). Fontifying a file with several thousand lines in one go can 2078minute.
2031take the better part of a minute.
2032 2079
2033**** The (c|c++|objc|java|idl|pike)-font-lock-extra-types variables 2080**** The (c|c++|objc|java|idl|pike)-font-lock-extra-types variables
2034are now used by CC Mode to recognize identifiers that are certain to 2081are now used by CC Mode to recognize identifiers that are certain to
@@ -2043,10 +2090,11 @@ Javadoc and the markup within them. It's independent of the host
2043language, so it's possible to e.g. turn on Javadoc font locking in C 2090language, so it's possible to e.g. turn on Javadoc font locking in C
2044buffers. See the variable c-doc-comment-style for details. 2091buffers. See the variable c-doc-comment-style for details.
2045 2092
2046Currently two kinds of doc comment styles are recognized: Suns Javadoc 2093Currently three kinds of doc comment styles are recognized: Sun's
2047and Autodoc which is used in Pike. This is by no means a complete 2094Javadoc, Autodoc (which is used in Pike) and GtkDoc (used in C). (The
2048list of the most common tools; if your doc comment extractor of choice 2095last was contributed by Masatake YAMATO). This is by no means a
2049is missing then please drop a note to bug-cc-mode@gnu.org. 2096complete list of the most common tools; if your doc comment extractor
2097of choice is missing then please drop a note to bug-cc-mode@gnu.org.
2050 2098
2051**** Better handling of C++ templates. 2099**** Better handling of C++ templates.
2052As a side effect of the more accurate font locking, C++ templates are 2100As a side effect of the more accurate font locking, C++ templates are
@@ -2081,14 +2129,9 @@ placed on the same line as the associated construct; the matching `}'s
2081are normally placed under the start of the respective pattern, function 2129are normally placed under the start of the respective pattern, function
2082definition, or structured statement. 2130definition, or structured statement.
2083 2131
2084The predefined indentation functions haven't yet been adapted for AWK 2132The predefined line-up functions haven't yet been adapted for AWK
2085mode, though some of them may work serendipitously. There shouldn't be 2133mode, though some of them may work serendipitously. There shouldn't
2086any problems writing custom indentation functions for AWK mode. 2134be any problems writing custom indentation functions for AWK mode.
2087
2088The command C-c C-q (c-indent-defun) hasn't yet been adapted for AWK,
2089though in practice it works properly nearly all the time. Should it
2090fail, explicitly set the region around the function (using C-u C-SPC:
2091C-M-h probably won't work either) then do C-M-\ (indent-region).
2092 2135
2093**** Font Locking 2136**** Font Locking
2094There is a single level of font locking in AWK mode, rather than the 2137There is a single level of font locking in AWK mode, rather than the
@@ -2096,24 +2139,16 @@ three distinct levels the other modes have. There are several
2096idiosyncrasies in AWK mode's font-locking due to the peculiarities of 2139idiosyncrasies in AWK mode's font-locking due to the peculiarities of
2097the AWK language itself. 2140the AWK language itself.
2098 2141
2099**** Comment Commands 2142**** Comment and Movement Commands
2100M-; (indent-for-comment) works fine. None of the other CC Mode 2143These commands all work for AWK buffers. The notion of "defun" has
2101comment formatting commands have yet been adapted for AWK mode. 2144been augmented to include AWK pattern-action pairs - the standard
2145"defun" commands on key sequences C-M-a, C-M-e, and C-M-h use this
2146extended definition.
2102 2147
2103**** Movement Commands 2148**** "awk" style, Auto-newline Insertion and Clean-ups
2104Most of the movement commands work in AWK mode. The most important 2149A new style, "awk" has been introduced, and this is now the default
2105exceptions are M-a (c-beginning-of-statement) and M-e 2150style for AWK code. With auto-newline enabled, the clean-up
2106(c-end-of-statement) which haven't yet been adapted. 2151c-one-liner-defun (see above) is useful.
2107
2108The notion of "defun" has been augmented to include AWK pattern-action
2109pairs. C-M-a (c-awk-beginning-of-defun) and C-M-e (c-awk-end-of-defun)
2110recognize these pattern-action pairs, as well as user defined
2111functions.
2112
2113**** Auto-newline Insertion and Clean-ups
2114Auto-newline insertion hasn't yet been adapted for AWK. Some of
2115the clean-ups can actually convert good AWK code into syntactically
2116invalid code. These features are best disabled in AWK buffers.
2117 2152
2118*** New syntactic symbols in IDL mode. 2153*** New syntactic symbols in IDL mode.
2119The top level constructs "module" and "composition" (from CIDL) are 2154The top level constructs "module" and "composition" (from CIDL) are
@@ -2122,8 +2157,10 @@ module-open, module-close, inmodule, composition-open,
2122composition-close, and incomposition. 2157composition-close, and incomposition.
2123 2158
2124*** New functions to do hungry delete without enabling hungry delete mode. 2159*** New functions to do hungry delete without enabling hungry delete mode.
2125The functions `c-hungry-backspace' and `c-hungry-delete-forward' can be 2160The new functions `c-hungry-backspace' and `c-hungry-delete-forward'
2126bound to keys to get this feature without toggling a mode. 2161provide hungry deletion without having to toggle a mode. They are
2162bound to C-c C-DEL and C-c C-d (and several variants, for the benefit
2163of different keyboard setups. See "Changes in key sequences" above).
2127 2164
2128*** Better control over `require-final-newline'. 2165*** Better control over `require-final-newline'.
2129 2166
@@ -2151,10 +2188,11 @@ is now analyzed as
2151In some cases there are more than one position given for a syntactic 2188In some cases there are more than one position given for a syntactic
2152symbol. 2189symbol.
2153 2190
2154This change might affect code that call `c-guess-basic-syntax' directly, 2191This change might affect code that calls `c-guess-basic-syntax'
2155and custom lineup functions if they use `c-syntactic-context'. However, 2192directly, and custom lineup functions if they use
2156the argument given to lineup functions is still a single cons cell 2193`c-syntactic-context'. However, the argument given to lineup
2157with nil or an integer in the cdr. 2194functions is still a single cons cell with nil or an integer in the
2195cdr.
2158 2196
2159*** API changes for derived modes. 2197*** API changes for derived modes.
2160 2198
@@ -2165,7 +2203,8 @@ care has now been taken to make it possible to extend and modify CC
2165Mode with less risk of such problems in the future. 2203Mode with less risk of such problems in the future.
2166 2204
2167**** New language variable system. 2205**** New language variable system.
2168See the comment blurb near the top of cc-langs.el. 2206These are variables whose values vary between CC Mode's different
2207languages. See the comment blurb near the top of cc-langs.el.
2169 2208
2170**** New initialization functions. 2209**** New initialization functions.
2171The initialization procedure has been split up into more functions to 2210The initialization procedure has been split up into more functions to
@@ -2215,15 +2254,15 @@ This applies to the newlines inserted by the auto-newline mode, and to
2215 2254
2216**** Better alignment of line continuation backslashes. 2255**** Better alignment of line continuation backslashes.
2217`c-backslash-region' tries to adapt to surrounding backslashes. New 2256`c-backslash-region' tries to adapt to surrounding backslashes. New
2218variable `c-backslash-max-column' which put a limit on how far out 2257variable `c-backslash-max-column' puts a limit on how far out
2219backslashes can be moved. 2258backslashes can be moved.
2220 2259
2221**** Automatic alignment of line continuation backslashes. 2260**** Automatic alignment of line continuation backslashes.
2222This is controlled by the new variable `c-auto-align-backslashes'. It 2261This is controlled by the new variable `c-auto-align-backslashes'. It
2223affects `c-context-line-break', `c-context-open-line' and newlines 2262affects `c-context-line-break', `c-context-open-line' and newlines
2224inserted in Auto-Newline mode. 2263inserted in Auto-Newline mode.
2225**** Line indentation works better inside macros.
2226 2264
2265**** Line indentation works better inside macros.
2227Regardless whether syntactic indentation and syntactic indentation 2266Regardless whether syntactic indentation and syntactic indentation
2228inside macros are enabled or not, line indentation now ignores the 2267inside macros are enabled or not, line indentation now ignores the
2229line continuation backslashes. This is most noticeable when syntactic 2268line continuation backslashes. This is most noticeable when syntactic
@@ -2232,10 +2271,10 @@ backslash) in the macro.
2232 2271
2233*** indent-for-comment is more customizable. 2272*** indent-for-comment is more customizable.
2234The behavior of M-; (indent-for-comment) is now configurable through 2273The behavior of M-; (indent-for-comment) is now configurable through
2235the variable `c-indent-comment-alist'. The indentation behavior based 2274the variable `c-indent-comment-alist'. The indentation behavior is
2236on the preceding code on the line, e.g. to get two spaces after #else 2275based on the preceding code on the line, e.g. to get two spaces after
2237and #endif but indentation to `comment-column' in most other cases 2276#else and #endif but indentation to `comment-column' in most other
2238(something which was hardcoded earlier). 2277cases (something which was hardcoded earlier).
2239 2278
2240*** New function `c-context-open-line'. 2279*** New function `c-context-open-line'.
2241It's the open-line equivalent of `c-context-line-break'. 2280It's the open-line equivalent of `c-context-line-break'.