aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2011-10-23 22:57:53 +0800
committerChong Yidong2011-10-23 22:57:53 +0800
commitda97a9e66a0f2cd705d26cc2c5bb21f810e892f1 (patch)
tree82a887a277b680edb7d7ac5a20f95a315e17719c
parent86c606818495d9411fd5d6b1477f9a097eb18020 (diff)
downloademacs-da97a9e66a0f2cd705d26cc2c5bb21f810e892f1.tar.gz
emacs-da97a9e66a0f2cd705d26cc2c5bb21f810e892f1.zip
Document scroll bar changes in Emacs manual.
* doc/emacs/buffers.texi (Misc Buffer): Don't mention vc-toggle-read-only. * doc/emacs/frames.texi (Scroll Bars): GTK uses right scroll bars now. (Tool Bars): Copyedits.
-rw-r--r--admin/FOR-RELEASE2
-rw-r--r--doc/emacs/ChangeLog3
-rw-r--r--doc/emacs/buffers.texi5
-rw-r--r--doc/emacs/frames.texi121
-rw-r--r--etc/NEWS19
5 files changed, 66 insertions, 84 deletions
diff --git a/admin/FOR-RELEASE b/admin/FOR-RELEASE
index 80a66be3fa4..01d488c97e3 100644
--- a/admin/FOR-RELEASE
+++ b/admin/FOR-RELEASE
@@ -153,7 +153,7 @@ ack.texi
153anti.texi 153anti.texi
154arevert-xtra.texi cyd 154arevert-xtra.texi cyd
155basic.texi cyd 155basic.texi cyd
156buffers.texi 156buffers.texi cyd
157building.texi 157building.texi
158calendar.texi 158calendar.texi
159cal-xtra.texi 159cal-xtra.texi
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 726f565e83e..28c61e23b8c 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,5 +1,8 @@
12011-10-23 Chong Yidong <cyd@gnu.org> 12011-10-23 Chong Yidong <cyd@gnu.org>
2 2
3 * frames.texi (Scroll Bars): GTK uses right scroll bars now.
4 (Tool Bars): Copyedits.
5
3 * buffers.texi (Misc Buffer): Don't mention vc-toggle-read-only. 6 * buffers.texi (Misc Buffer): Don't mention vc-toggle-read-only.
4 7
52011-10-22 Chong Yidong <cyd@gnu.org> 82011-10-22 Chong Yidong <cyd@gnu.org>
diff --git a/doc/emacs/buffers.texi b/doc/emacs/buffers.texi
index aed5473ac15..302693aecef 100644
--- a/doc/emacs/buffers.texi
+++ b/doc/emacs/buffers.texi
@@ -229,9 +229,8 @@ have special commands to operate on the text; also by visiting a file
229whose access control says you cannot write it. 229whose access control says you cannot write it.
230 230
231@findex toggle-read-only 231@findex toggle-read-only
232 If you wish to make changes in a read-only buffer, use the command 232 The command @kbd{C-x C-q} (@code{toggle-read-only}) makes a read-only
233@kbd{C-x C-q} (@code{toggle-read-only}). It makes a read-only buffer 233buffer writable, and makes a writable buffer read-only. This works by
234writable, and makes a writable buffer read-only. This works by
235setting the variable @code{buffer-read-only}, which has a local value 234setting the variable @code{buffer-read-only}, which has a local value
236in each buffer and makes the buffer read-only if its value is 235in each buffer and makes the buffer read-only if its value is
237non-@code{nil}. 236non-@code{nil}.
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi
index 4c239d364f0..49222451cce 100644
--- a/doc/emacs/frames.texi
+++ b/doc/emacs/frames.texi
@@ -956,55 +956,43 @@ Parameters,,, elisp, The Emacs Lisp Reference Manual}.
956@cindex Scroll Bar mode 956@cindex Scroll Bar mode
957@cindex mode, Scroll Bar 957@cindex mode, Scroll Bar
958 958
959 On graphical displays, Emacs normally makes a @dfn{scroll bar} at 959 On graphical displays, there is a @dfn{scroll bar} on the side of
960the left of each Emacs window, running the height of the 960each Emacs window. Clicking @kbd{Mouse-1} on the scroll bar's up and
961window.@footnote{Placing it at the left is usually more useful with 961down buttons scrolls the window by one line at a time. Clicking
962overlapping frames with text starting at the left margin.} 962@kbd{Mouse-1} above or below the scroll bar's inner box scrolls the
963 963window by nearly the entire height of the window, like @kbd{M-v} and
964 When Emacs is compiled with GTK+ support on the X Window System, or 964@kbd{C-v} respectively (@pxref{Moving Point}). Dragging the inner box
965in operating systems such as Microsoft Windows or Mac OS, you can use 965scrolls continuously.
966the scroll bar as you do in other graphical applications. If you 966
967click @kbd{Mouse-1} on the scroll bar's up and down buttons, that 967 If Emacs is compiled on the X Window System without X toolkit
968scrolls the window by one line at a time. Clicking @kbd{Mouse-1} 968support, the scroll bar behaves differently. Clicking @kbd{Mouse-1}
969above or below the scroll bar's inner box scrolls the window by nearly 969anywhere on the scroll bar scrolls forward like @kbd{C-v}, while
970the entire height of the window, like @kbd{M-v} and @kbd{C-v} 970@kbd{Mouse-3} scrolls backward like @kbd{M-v}. Clicking @kbd{Mouse-2}
971respectively (@pxref{Moving Point}). Dragging the inner box with 971in the scroll bar lets you drag the inner box up and down.
972@kbd{Mouse-1} scrolls the window continuously.
973
974 If Emacs is compiled without GTK+ support on the X Window System,
975the scroll bar behaves differently. The scroll bar's inner box is
976drawn to represent the portion of the buffer currently displayed, with
977the entire height of the scroll bar representing the entire length of
978the buffer. @kbd{Mouse-1} anywhere on the scroll bar scrolls forward
979like @kbd{C-v}, and @kbd{Mouse-3} scrolls backward like @kbd{M-v}.
980Clicking @kbd{Mouse-2} in the scroll bar lets you move or drag the
981inner box up and down.
982
983 You can also click @kbd{C-Mouse-2} in the scroll bar to split a
984window vertically. The split occurs on the line where you click.
985 972
986@findex scroll-bar-mode 973@findex scroll-bar-mode
987@vindex scroll-bar-mode
988 You can toggle the use of the scroll bar with the command @kbd{M-x
989scroll-bar-mode}. With a prefix argument, this command turns use of
990scroll bars on if and only if the argument is positive. This command
991applies to all frames, including frames yet to be created. Customize
992the variable @code{scroll-bar-mode} to control the use of scroll bars
993at startup. You can use it to specify that they are placed at the
994right of windows if you prefer that. You have to set this variable
995through the @samp{Customize} interface (@pxref{Easy Customization}),
996or it will not work properly. You can also use the X resource
997@samp{verticalScrollBars} to control the initial setting of Scroll Bar
998mode. @xref{Resources}.
999
1000@findex toggle-scroll-bar 974@findex toggle-scroll-bar
1001 To enable or disable scroll bars for just the selected frame, use the 975 To toggle the use of scroll bars, type @kbd{M-x scroll-bar-mode}.
976This command applies to all frames, including frames yet to be
977created. To toggle scroll bars for just the selected frame, use the
1002command @kbd{M-x toggle-scroll-bar}. 978command @kbd{M-x toggle-scroll-bar}.
1003 979
980@vindex scroll-bar-mode
981 To control the use of scroll bars at startup, customize the variable
982@code{scroll-bar-mode}. Its value should be either @code{right} (put
983scroll bars on the right side of windows), @code{left} (put them on
984the left), or @code{nil} (disable scroll bars). By default, Emacs
985puts scroll bars on the right if it was compiled with GTK+ support on
986the X Window System, and on MS-Windows or Mac OS; Emacs puts scroll
987bars on the left if compiled on the X Window system without GTK+
988support (following the old convention for X applications).
989
1004@vindex scroll-bar-width 990@vindex scroll-bar-width
1005@cindex width of the scroll bar 991@cindex width of the scroll bar
1006 You can control the scroll bar width by changing the value of the 992 You can also use the X resource @samp{verticalScrollBars} to enable
1007@code{scroll-bar-width} frame parameter. 993or disable the scroll bars (@pxref{Resources}). To control the scroll
994bar width, change the @code{scroll-bar-width} frame parameter
995(@pxref{Frame Parameters,,, elisp, The Emacs Lisp Reference Manual}).
1008 996
1009@node Wheeled Mice 997@node Wheeled Mice
1010@section Scrolling With ``Wheeled'' Mice 998@section Scrolling With ``Wheeled'' Mice
@@ -1082,36 +1070,33 @@ menus' visual appearance.
1082@cindex mode, Tool Bar 1070@cindex mode, Tool Bar
1083@cindex icons, toolbar 1071@cindex icons, toolbar
1084 1072
1085 The @dfn{tool bar} is a line (or lines) of icons at the top of the 1073 On graphical displays, Emacs puts a @dfn{tool bar} at the top of
1086Emacs window, just below the menu bar. You can click on these icons 1074each frame, just below the menu bar. This is a row of icons which you
1087with the mouse to do various jobs. 1075can click on with the mouse to invoke various commands.
1088
1089 The global tool bar contains general commands. Some major modes
1090define their own tool bars to replace it. A few ``special'' modes
1091that are not designed for ordinary editing remove some items from the
1092global tool bar.
1093 1076
1094 Tool bars work only on a graphical display. The tool bar uses colored 1077 The global (default) tool bar contains general commands. Some major
1095XPM icons if Emacs was built with XPM support. Otherwise, the tool 1078modes define their own tool bars; whenever a buffer with such a major
1096bar uses monochrome icons (PBM or XBM format). 1079mode is current, the mode's tool bar replaces the global tool bar.
1097 1080
1098@findex tool-bar-mode 1081@findex tool-bar-mode
1099@vindex tool-bar-mode 1082@vindex tool-bar-mode
1100 You can turn display of tool bars on or off with @kbd{M-x 1083 To toggle the use of tool bars, type @kbd{M-x tool-bar-mode}. This
1101tool-bar-mode} or by customizing the option @code{tool-bar-mode}. 1084command applies to all frames, including frames yet to be created. To
1085control the use of tool bars at startup, customize the variable
1086@code{tool-bar-mode}.
1102 1087
1103@vindex tool-bar-style 1088@vindex tool-bar-style
1104@cindex Tool Bar style 1089@cindex Tool Bar style
1105 When Emacs is compiled with GTK+ support, tool bars can have text and images. 1090 When Emacs is compiled with GTK+ support, each tool bar item can
1106Customize @code{tool-bar-style} to select style. The default style is 1091consist of an image, or a text label, or both. By default, Emacs
1107the same as for the desktop in the Gnome case. If no default is found, 1092follows the Gnome desktop's tool bar style setting; if none is
1108the tool bar uses just images. 1093defined, it displays tool bar items as just images. To impose a
1094specific tool bar style, customize the variable @code{tool-bar-style}.
1109 1095
1110@cindex Tool Bar position 1096@cindex Tool Bar position
1111 You can also control the placement of the tool bar for the GTK+ tool bar 1097 You can also control the placement of the tool bar for the GTK+ tool
1112with the frame parameter @code{tool-bar-position}. 1098bar with the frame parameter @code{tool-bar-position}. @xref{Frame
1113For a detailed description of frame parameters and customization, 1099Parameters,,, elisp, The Emacs Lisp Reference Manual}.
1114see @ref{Frame Parameters,,, elisp, The Emacs Lisp Reference Manual}.
1115 1100
1116@node Dialog Boxes 1101@node Dialog Boxes
1117@section Using Dialog Boxes 1102@section Using Dialog Boxes
@@ -1186,11 +1171,11 @@ options for displaying tooltips, use @kbd{M-x customize-group
1186customizing the windows that display tooltips. 1171customizing the windows that display tooltips.
1187 1172
1188@vindex x-gtk-use-system-tooltips 1173@vindex x-gtk-use-system-tooltips
1189 If Emacs is built with GTK support, it displays tooltips via GTK, 1174 If Emacs is built with GTK+ support, it displays tooltips via GTK+,
1190using the default appearance of GTK tooltips. To disable this, change 1175using the default appearance of GTK+ tooltips. To disable this,
1191the variable @code{x-gtk-use-system-tooltips} to @code{nil}. If you 1176change the variable @code{x-gtk-use-system-tooltips} to @code{nil}.
1192do this, or if Emacs is built without GTK support, the @code{tooltip} 1177If you do this, or if Emacs is built without GTK+ support, the
1193face specifies most attributes of the tooltip text. 1178@code{tooltip} face specifies most attributes of the tooltip text.
1194 1179
1195@node Mouse Avoidance 1180@node Mouse Avoidance
1196@section Mouse Avoidance 1181@section Mouse Avoidance
diff --git a/etc/NEWS b/etc/NEWS
index 68e5720330d..24aea694902 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -230,14 +230,14 @@ cannot be encoded by the `terminal-coding-system'.
230(U+2010 and U+2011). 230(U+2010 and U+2011).
231 231
232** Improved GTK integration 232** Improved GTK integration
233 233+++
234*** GTK scroll-bars are now placed on the right by default. 234*** GTK scroll-bars are now placed on the right by default.
235Use `set-scroll-bar-mode' to change this. 235Use `set-scroll-bar-mode' to change this.
236 236+++
237*** GTK tool bars can have just text, just images or images and text. 237*** GTK tool bars can have just text, just images or images and text.
238Customize `tool-bar-style' to choose style. On a Gnome desktop, the default 238Customize `tool-bar-style' to choose style. On a Gnome desktop, the default
239is taken from the desktop settings. 239is taken from the desktop settings.
240 240---
241*** GTK tool bars can be placed on the left/right or top/bottom of the frame. 241*** GTK tool bars can be placed on the left/right or top/bottom of the frame.
242The frame-parameter tool-bar-position controls this. It takes the values 242The frame-parameter tool-bar-position controls this. It takes the values
243top, left, right or bottom. The Options => Show/Hide menu has entries 243top, left, right or bottom. The Options => Show/Hide menu has entries
@@ -276,10 +276,6 @@ get and set the SELinux context of a file.
276*** Tramp offers handlers for file-selinux-context and set-file-selinux-context 276*** Tramp offers handlers for file-selinux-context and set-file-selinux-context
277for remote machines which support SELinux. 277for remote machines which support SELinux.
278 278
279+++
280** The function format-time-string now supports the %N directive, for
281higher-resolution time stamps.
282
283** Changes for exiting Emacs 279** Changes for exiting Emacs
284+++ 280+++
285*** The function kill-emacs is now run upon receipt of the signals 281*** The function kill-emacs is now run upon receipt of the signals
@@ -295,24 +291,20 @@ consider if it is still appropriate to add it in the noninteractive case.
295(bound to C-v/[next] and M-v/[prior]) do not signal errors at top/bottom 291(bound to C-v/[next] and M-v/[prior]) do not signal errors at top/bottom
296of buffer at first key-press (instead move to top/bottom of buffer) 292of buffer at first key-press (instead move to top/bottom of buffer)
297when `scroll-error-top-bottom' is non-nil. 293when `scroll-error-top-bottom' is non-nil.
298
299+++ 294+++
300*** New variable `scroll-error-top-bottom' (see above). 295*** New variable `scroll-error-top-bottom' (see above).
301 296
302*** New scrolling commands `scroll-up-line' and `scroll-down-line' 297*** New scrolling commands `scroll-up-line' and `scroll-down-line'
303scroll a line instead of full screen. 298scroll a line instead of full screen.
304
305+++ 299+++
306*** New property `scroll-command' should be set on a command's symbol to 300*** New property `scroll-command' should be set on a command's symbol to
307define it as a scroll command affected by `scroll-preserve-screen-position'. 301define it as a scroll command affected by `scroll-preserve-screen-position'.
308
309+++ 302+++
310*** If you customize `scroll-conservatively' to a value greater than 100, 303*** If you customize `scroll-conservatively' to a value greater than 100,
311Emacs will never recenter point in the window when it scrolls due to 304Emacs will never recenter point in the window when it scrolls due to
312cursor motion commands or commands that move point (e.f., `M-g M-g'). 305cursor motion commands or commands that move point (e.f., `M-g M-g').
313Previously, you needed to use `most-positive-fixnum' as the value of 306Previously, you needed to use `most-positive-fixnum' as the value of
314`scroll-conservatively' to achieve the same effect. 307`scroll-conservatively' to achieve the same effect.
315
316--- 308---
317*** ``Aggressive'' scrolling now honors the scroll margins. 309*** ``Aggressive'' scrolling now honors the scroll margins.
318If you customize `scroll-up-aggressively' or 310If you customize `scroll-up-aggressively' or
@@ -374,7 +366,6 @@ Affected modes include dired, vc-dir, and log-edit. For example,
374adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will 366adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will
375turn on `whitespace-mode' for *vc-diff* buffers. Modes should call 367turn on `whitespace-mode' for *vc-diff* buffers. Modes should call
376`hack-dir-local-variables-non-file-buffer' to support this. 368`hack-dir-local-variables-non-file-buffer' to support this.
377
378+++ 369+++
379*** Using "mode: MINOR-MODE" to enable a minor mode is deprecated. 370*** Using "mode: MINOR-MODE" to enable a minor mode is deprecated.
380Instead, use "eval: (minor-mode 1)". 371Instead, use "eval: (minor-mode 1)".
@@ -1192,6 +1183,10 @@ Also the debugger can now "continue" from an error, which means it will jump
1192to the error handler as if the debugger had not been invoked instead of 1183to the error handler as if the debugger had not been invoked instead of
1193jumping all the way to the top-level. 1184jumping all the way to the top-level.
1194 1185
1186+++
1187** The function format-time-string now supports the %N directive, for
1188higher-resolution time stamps.
1189
1195** New function `read-char-choice' reads a restricted set of characters, 1190** New function `read-char-choice' reads a restricted set of characters,
1196discarding any inputs not inside the set. 1191discarding any inputs not inside the set.
1197 1192