aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMiles Bader2007-12-28 22:26:14 +0000
committerMiles Bader2007-12-28 22:26:14 +0000
commitb17f53abc28496125965f36147b76ea5f6a2b4fb (patch)
tree4293e53692f304327ba689dfeea32d1b0b5bc12a /doc
parent2e5093251c8e63f4546ffc30182dd4015e9a58fd (diff)
parentea7ac2eb953bf3c30670e60cb00a9fca611b38b7 (diff)
downloademacs-b17f53abc28496125965f36147b76ea5f6a2b4fb.tar.gz
emacs-b17f53abc28496125965f36147b76ea5f6a2b4fb.zip
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-966
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog21
-rw-r--r--doc/emacs/files.texi9
-rw-r--r--doc/emacs/search.texi9
-rw-r--r--doc/emacs/text.texi75
-rw-r--r--doc/lispref/ChangeLog11
-rw-r--r--doc/lispref/customize.texi48
-rw-r--r--doc/lispref/frames.texi24
-rw-r--r--doc/misc/cc-mode.texi4
8 files changed, 132 insertions, 69 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 9c4d874e139..e950d152a80 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,24 @@
12007-12-27 Richard Stallman <rms@gnu.org>
2
3 * text.texi (Formatted Text): Improve menu tag.
4 (Editing Format Info): In Info, add duplicate menu of nodes
5 about the submenus.
6 (Format Faces): Say where Faces menu is found. Mention Other.
7 (Format Colors): Say where these submenus are found.
8 (Format Indentation, Format Justification): Likewise.
9 (Format Properties): Likewise.
10
112007-12-22 Richard Stallman <rms@gnu.org>
12
13 * search.texi (Query Replace): Make exp of query-replace more
14 self-contained, and clarify.
15
16 * cc-mode.texi (Getting Started): Change @ref to @pxref.
17
182007-12-15 Richard Stallman <rms@gnu.org>
19
20 * files.texi (Auto Save): Clarify definition of auto-saving.
21
12007-11-26 Richard Stallman <rms@gnu.org> 222007-11-26 Richard Stallman <rms@gnu.org>
2 23
3 * help.texi (Help Echo): Cleanups. 24 * help.texi (Help Echo): Cleanups.
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index 8e2cb879754..8e33dc5aa8c 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -997,10 +997,11 @@ visit files under version control.
997@cindex mode, Auto Save 997@cindex mode, Auto Save
998@cindex crashes 998@cindex crashes
999 999
1000 Emacs saves all the visited files from time to time (based on counting 1000 Emacs saves all the visited files from time to time (based on
1001your keystrokes) without being asked. This is called @dfn{auto-saving}. 1001counting your keystrokes) without being asked, in separate files so as
1002It prevents you from losing more than a limited amount of work if the 1002not to alter the files you actually use. This is called
1003system crashes. 1003@dfn{auto-saving}. It prevents you from losing more than a limited
1004amount of work if the system crashes.
1004 1005
1005 When Emacs determines that it is time for auto-saving, it considers 1006 When Emacs determines that it is time for auto-saving, it considers
1006each buffer, and each is auto-saved if auto-saving is enabled for it 1007each buffer, and each is auto-saved if auto-saving is enabled for it
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index af1b877e6a4..7b77046e2f3 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -1152,13 +1152,12 @@ Replace some matches for @var{regexp} with @var{newstring}.
1152@kindex M-% 1152@kindex M-%
1153@findex query-replace 1153@findex query-replace
1154 If you want to change only some of the occurrences of @samp{foo} to 1154 If you want to change only some of the occurrences of @samp{foo} to
1155@samp{bar}, not all of them, then you cannot use an ordinary 1155@samp{bar}, not all of them, use @kbd{M-%} (@code{query-replace}).
1156@code{replace-string}. Instead, use @kbd{M-%} (@code{query-replace}).
1157This command finds occurrences of @samp{foo} one by one, displays each 1156This command finds occurrences of @samp{foo} one by one, displays each
1158occurrence and asks you whether to replace it. Aside from querying, 1157occurrence and asks you whether to replace it. Aside from querying,
1159@code{query-replace} works just like @code{replace-string}. It 1158@code{query-replace} works just like @code{replace-string}
1160preserves case, like @code{replace-string}, provided 1159(@pxref{Unconditional Replace}). In particular, it preserves case
1161@code{case-replace} is non-@code{nil}, as it normally is 1160provided @code{case-replace} is non-@code{nil}, as it normally is
1162(@pxref{Replacement and Case}). A numeric argument means consider 1161(@pxref{Replacement and Case}). A numeric argument means consider
1163only occurrences that are bounded by word-delimiter characters. 1162only occurrences that are bounded by word-delimiter characters.
1164 1163
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi
index c151c75e8bb..4b3bc8df0f0 100644
--- a/doc/emacs/text.texi
+++ b/doc/emacs/text.texi
@@ -1951,7 +1951,7 @@ contains a list of ideas for future enhancements.
1951* Justification: Format Justification. 1951* Justification: Format Justification.
1952 Centering, setting text flush with the 1952 Centering, setting text flush with the
1953 left or right margin, etc. 1953 left or right margin, etc.
1954* Other: Format Properties. The "special" text properties submenu. 1954* Special: Format Properties. The "special" text properties submenu.
1955* Forcing Enriched Mode:: How to force use of Enriched mode. 1955* Forcing Enriched Mode:: How to force use of Enriched mode.
1956@end menu 1956@end menu
1957 1957
@@ -2037,9 +2037,7 @@ or with @kbd{C-Mouse-2} (hold the @key{CTRL} key and press the middle
2037mouse button). There are also keyboard commands described in the 2037mouse button). There are also keyboard commands described in the
2038following section. 2038following section.
2039 2039
2040 Most of the items in the Text Properties menu lead to other submenus. 2040 These items in the Text Properties menu run commands directly:
2041These are described in the sections that follow. Some items run
2042commands directly:
2043 2041
2044@table @code 2042@table @code
2045@findex facemenu-remove-face-props 2043@findex facemenu-remove-face-props
@@ -2068,14 +2066,35 @@ Display a list of all the defined faces (@code{list-faces-display}).
2068Display a list of all the defined colors (@code{list-colors-display}). 2066Display a list of all the defined colors (@code{list-colors-display}).
2069@end table 2067@end table
2070 2068
2069@ifinfo
2070 Other items in the Text Properties menu lead to submenus:
2071
2072@menu
2073* Faces: Format Faces. Bold, italic, underline, etc.
2074* Color: Format Colors. Changing the color of text.
2075* Indent: Format Indentation. Changing the left and right margins.
2076* Justification: Format Justification.
2077 Centering, setting text flush with the
2078 left or right margin, etc.
2079* Special: Format Properties. The "special" text properties submenu.
2080@end menu
2081@end ifinfo
2082@ifnotinfo
2083 The rest lead to submenus which are described in the following sections.
2084@end ifnotinfo
2085
2071@node Format Faces 2086@node Format Faces
2072@subsection Faces in Formatted Text 2087@subsection Faces in Formatted Text
2073 2088
2074 The Faces submenu lists various Emacs faces including @code{bold}, 2089 The Faces submenu under Text Properties lists various Emacs faces
2075@code{italic}, and @code{underline} (@pxref{Faces}). These menu items 2090including @code{bold}, @code{italic}, and @code{underline}
2076operate on the region if it is active and nonempty. Otherwise, they 2091(@pxref{Faces}). These menu items operate on the region if it is
2077specify to use that face for an immediately following self-inserting 2092active and nonempty. Otherwise, they specify to use that face for an
2078character. Instead of the menu, you can use these keyboard commands: 2093immediately following self-inserting character. There is also an item
2094@samp{Other} with which you can enter a face name through the
2095minibuffer (@pxref{Standard Faces}).
2096
2097 Instead of the Faces submenu, you can use these keyboard commands:
2079 2098
2080@table @kbd 2099@table @kbd
2081@kindex M-o d @r{(Enriched mode)} 2100@kindex M-o d @r{(Enriched mode)}
@@ -2158,20 +2177,22 @@ them.
2158@subsection Colors in Formatted Text 2177@subsection Colors in Formatted Text
2159 2178
2160 You can specify foreground and background colors for portions of the 2179 You can specify foreground and background colors for portions of the
2161text. There is a menu for specifying the foreground color and a menu 2180text. Under Text Properties there is a submenu for specifying the
2162for specifying the background color. Each color menu lists all the 2181foreground color, and a submenu for specifying the background color.
2163colors that you have used in Enriched mode in the current Emacs session. 2182Each one lists all the colors that you have used in Enriched mode in
2183the current Emacs session.
2164 2184
2165 If you specify a color with a prefix argument---or, in Transient 2185 If you specify a color with a prefix argument---or, in Transient
2166Mark mode, if the region is not active---then it applies to any 2186Mark mode, if the region is not active---then it applies to any
2167immediately following self-inserting input. Otherwise, the command 2187immediately following self-inserting input. Otherwise, the command
2168applies to the region. 2188applies to the region.
2169 2189
2170 Each color menu contains one additional item: @samp{Other}. You can use 2190 Each of the two color submenus contains one additional item:
2171this item to specify a color that is not listed in the menu; it reads 2191@samp{Other}. You can use this item to specify a color that is not
2172the color name with the minibuffer. To display a list of available colors 2192listed in the menu; it reads the color name with the minibuffer. To
2173and their names, use the @samp{Display Colors} menu item in the Text 2193display a list of available colors and their names, use the
2174Properties menu (@pxref{Editing Format Info}). 2194@samp{Display Colors} menu item in the Text Properties menu
2195(@pxref{Editing Format Info}).
2175 2196
2176 Any color that you specify in this way, or that is mentioned in a 2197 Any color that you specify in this way, or that is mentioned in a
2177formatted text file that you read in, is added to the corresponding 2198formatted text file that you read in, is added to the corresponding
@@ -2192,8 +2213,9 @@ indentation for the right or left margin of an entire paragraph or a
2192part of a paragraph. The margins you specify automatically affect the 2213part of a paragraph. The margins you specify automatically affect the
2193Emacs fill commands (@pxref{Filling}) and line-breaking commands. 2214Emacs fill commands (@pxref{Filling}) and line-breaking commands.
2194 2215
2195 The Indentation submenu provides a convenient interface for specifying 2216 The Indentation submenu of Text Properties provides a convenient
2196these properties. The submenu contains four items: 2217interface for specifying these properties. The submenu contains four
2218items:
2197 2219
2198@table @code 2220@table @code
2199@kindex C-x TAB @r{(Enriched mode)} 2221@kindex C-x TAB @r{(Enriched mode)}
@@ -2266,8 +2288,8 @@ Prefix}.
2266justification for a paragraph. The style you specify automatically 2288justification for a paragraph. The style you specify automatically
2267affects the Emacs fill commands. 2289affects the Emacs fill commands.
2268 2290
2269 The Justification submenu provides a convenient interface for specifying 2291 The Justification submenu of Text Properties provides a convenient
2270the style. The submenu contains five items: 2292interface for specifying the style. The submenu contains five items:
2271 2293
2272@table @code 2294@table @code
2273@item Left 2295@item Left
@@ -2341,11 +2363,12 @@ sets (as always) the default value for buffers that do not override it.
2341@node Format Properties 2363@node Format Properties
2342@subsection Setting Other Text Properties 2364@subsection Setting Other Text Properties
2343 2365
2344 The Special Properties menu lets you add or remove three other useful text 2366 The Special Properties submenu of Text Properties can add or remove
2345properties: @code{read-only}, @code{invisible} and @code{intangible}. 2367three other useful text properties: @code{read-only}, @code{invisible}
2346The @code{intangible} property disallows moving point within the text, 2368and @code{intangible}. The @code{intangible} property disallows
2347the @code{invisible} text property hides text from display, and the 2369moving point within the text, the @code{invisible} text property hides
2348@code{read-only} property disallows alteration of the text. 2370text from display, and the @code{read-only} property disallows
2371alteration of the text.
2349 2372
2350 Each of these special properties has a menu item to add it to the 2373 Each of these special properties has a menu item to add it to the
2351region. The last menu item, @samp{Remove Special}, removes all of these 2374region. The last menu item, @samp{Remove Special}, removes all of these
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index bfeb88f7830..50399b0120e 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,14 @@
12007-12-28 Richard Stallman <rms@gnu.org>
2
3 * frames.texi (Size Parameters): Fix typo.
4 (Basic Parameters): For `title', refer to title bar.
5 (Size and Position): Explain meaning of frame pixel width and height.
6
72007-12-23 Richard Stallman <rms@gnu.org>
8
9 * customize.texi (Type Keywords): Uncomment :validate and clarify it.
10 Improve some of the commented-out keywords' text too.
11
12007-12-14 Martin Rudalics <rudalics@gmx.at> 122007-12-14 Martin Rudalics <rudalics@gmx.at>
2 13
3 * nonascii.texi (Encoding and I/O): Reword to avoid saying 14 * nonascii.texi (Encoding and I/O): Reword to avoid saying
diff --git a/doc/lispref/customize.texi b/doc/lispref/customize.texi
index b97ce20fc22..d971d5b6db2 100644
--- a/doc/lispref/customize.texi
+++ b/doc/lispref/customize.texi
@@ -1121,6 +1121,16 @@ corresponding value, @var{function}, should be a function that accepts
1121two arguments, a widget and a value; it should return non-@code{nil} if 1121two arguments, a widget and a value; it should return non-@code{nil} if
1122the value is acceptable. 1122the value is acceptable.
1123 1123
1124@item :validate @var{function}
1125Specify a validation function for input. @var{function} takes a
1126widget as an argument, and should return @code{nil} if the widget's
1127current value is valid for the widget. Otherwise, it should return
1128the widget containing the invalid data, and set that widget's
1129@code{:error} property to a string explaining the error.
1130
1131In many cases you can use the function @code{widget-children-validate}
1132for this job; it tests that all children of @var{widget} are valid.
1133
1124@ignore 1134@ignore
1125@item :indent @var{columns} 1135@item :indent @var{columns}
1126Indent this item by @var{columns} columns. The indentation is used for 1136Indent this item by @var{columns} columns. The indentation is used for
@@ -1128,23 +1138,24 @@ Indent this item by @var{columns} columns. The indentation is used for
1128buttons, and for editable lists. It affects the whole of the 1138buttons, and for editable lists. It affects the whole of the
1129item except for the first line. 1139item except for the first line.
1130 1140
1131@item :offset @var{columns} 1141@item :offset @var{extra}
1132An integer indicating how many extra spaces to indent the subitems of 1142Indent the subitems of this item @var{extra} columns more than this
1133this item. By default, subitems are indented the same as their parent. 1143item itself. By default, subitems are indented the same as their
1144parent.
1134 1145
1135@item :extra-offset 1146@item :extra-offset @var{n}
1136An integer indicating how many extra spaces to add to this item's 1147Add @var{n} extra spaces to this item's indentation, compared to its
1137indentation, compared to its parent. 1148parent's indentation.
1138 1149
1139@item :notify 1150@item :notify @var{function}
1140A function called each time the item or a subitem is changed. The 1151Call @var{function} each time the item or a subitem is changed. The
1141function is called with two or three arguments. The first argument is 1152function gets two or three arguments. The first argument is the item
1142the item itself, the second argument is the item that was changed, and 1153itself, the second argument is the item that was changed, and the
1143the third argument is the event leading to the change, if any. 1154third argument is the event leading to the change, if any.
1144 1155
1145@item :menu-tag 1156@item :menu-tag @var{tag-string}
1146A tag used in the menu when the widget is used as an option in a 1157Use @var{tag-string} in the menu when the widget is used as an option
1147@code{menu-choice} widget. 1158in a @code{menu-choice} widget.
1148 1159
1149@item :menu-tag-get 1160@item :menu-tag-get
1150A function used for finding the tag when the widget is used as an option 1161A function used for finding the tag when the widget is used as an option
@@ -1152,15 +1163,6 @@ in a @code{menu-choice} widget. By default, the tag used will be either the
1152@code{:menu-tag} or @code{:tag} property if present, or the @code{princ} 1163@code{:menu-tag} or @code{:tag} property if present, or the @code{princ}
1153representation of the @code{:value} property if not. 1164representation of the @code{:value} property if not.
1154 1165
1155@item :validate
1156A function which takes a widget as an argument, and return @code{nil}
1157if the widget's current value is valid for the widget. Otherwise, it
1158should return the widget containing the invalid data, and set that
1159widget's @code{:error} property to a string explaining the error.
1160
1161You can use the function @code{widget-children-validate} for this job;
1162it tests that all children of @var{widget} are valid.
1163
1164@item :tab-order 1166@item :tab-order
1165Specify the order in which widgets are traversed with 1167Specify the order in which widgets are traversed with
1166@code{widget-forward} or @code{widget-backward}. This is only partially 1168@code{widget-forward} or @code{widget-backward}. This is only partially
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index cd29d44ab76..ab9a6e8291c 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -362,12 +362,12 @@ in this frame. Its value is @code{color}, @code{grayscale} or
362@code{mono}. 362@code{mono}.
363 363
364@item title 364@item title
365If a frame has a non-@code{nil} title, it appears in the window system's 365If a frame has a non-@code{nil} title, it appears in the window
366border for the frame, and also in the mode line of windows in that frame 366system's title bar at the top of the frame, and also in the mode line
367if @code{mode-line-frame-identification} uses @samp{%F} 367of windows in that frame if @code{mode-line-frame-identification} uses
368(@pxref{%-Constructs}). This is normally the case when Emacs is not 368@samp{%F} (@pxref{%-Constructs}). This is normally the case when
369using a window system, and can only display one frame at a time. 369Emacs is not using a window system, and can only display one frame at
370@xref{Frame Titles}. 370a time. @xref{Frame Titles}.
371 371
372@item name 372@item name
373The name of the frame. The frame name serves as a default for the frame 373The name of the frame. The frame name serves as a default for the frame
@@ -463,7 +463,7 @@ The height of the frame contents, in characters. (To get the height in
463pixels, call @code{frame-pixel-height}; see @ref{Size and Position}.) 463pixels, call @code{frame-pixel-height}; see @ref{Size and Position}.)
464 464
465@item width 465@item width
466The width of the frame contents, in characters. (To get the height in 466The width of the frame contents, in characters. (To get the width in
467pixels, call @code{frame-pixel-width}; see @ref{Size and Position}.) 467pixels, call @code{frame-pixel-width}; see @ref{Size and Position}.)
468 468
469@item user-size 469@item user-size
@@ -808,8 +808,14 @@ of the frame is normally the same as the size of the terminal screen.
808 808
809@defun frame-pixel-height &optional frame 809@defun frame-pixel-height &optional frame
810@defunx frame-pixel-width &optional frame 810@defunx frame-pixel-width &optional frame
811These functions return the height and width of @var{frame}, measured in 811These functions return the height and width of the main display area
812pixels. If you don't supply @var{frame}, they use the selected frame. 812of @var{frame}, measured in pixels. If you don't supply @var{frame},
813they use the selected frame.
814
815These values include the internal borders, and windows' scroll bars
816and fringes (which belong to individual windows, not to the frame
817itself), but do not include menu bars or tool bars (except when using
818X without an X toolkit).
813@end defun 819@end defun
814 820
815@defun frame-char-height &optional frame 821@defun frame-char-height &optional frame
diff --git a/doc/misc/cc-mode.texi b/doc/misc/cc-mode.texi
index 7c9a2ac1f1b..80c9332996a 100644
--- a/doc/misc/cc-mode.texi
+++ b/doc/misc/cc-mode.texi
@@ -487,8 +487,8 @@ work just fine right out of the box. Note however that you might not
487have the latest @ccmode{} release and might want to upgrade your copy 487have the latest @ccmode{} release and might want to upgrade your copy
488(see below). 488(see below).
489 489
490You should probably start by skimming through the entire chapter 490You should probably start by skimming through the entire Commands chapter
491@ref{Commands} to get an overview of @ccmode{}'s capabilities. 491(@pxref{Commands}) to get an overview of @ccmode{}'s capabilities.
492 492
493After trying out some commands, you may dislike some aspects of 493After trying out some commands, you may dislike some aspects of
494@ccmode{}'s default configuration. Here is an outline of how to 494@ccmode{}'s default configuration. Here is an outline of how to