diff options
| author | Chong Yidong | 2011-10-23 22:57:53 +0800 |
|---|---|---|
| committer | Chong Yidong | 2011-10-23 22:57:53 +0800 |
| commit | da97a9e66a0f2cd705d26cc2c5bb21f810e892f1 (patch) | |
| tree | 82a887a277b680edb7d7ac5a20f95a315e17719c | |
| parent | 86c606818495d9411fd5d6b1477f9a097eb18020 (diff) | |
| download | emacs-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-RELEASE | 2 | ||||
| -rw-r--r-- | doc/emacs/ChangeLog | 3 | ||||
| -rw-r--r-- | doc/emacs/buffers.texi | 5 | ||||
| -rw-r--r-- | doc/emacs/frames.texi | 121 | ||||
| -rw-r--r-- | etc/NEWS | 19 |
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 | |||
| 153 | anti.texi | 153 | anti.texi |
| 154 | arevert-xtra.texi cyd | 154 | arevert-xtra.texi cyd |
| 155 | basic.texi cyd | 155 | basic.texi cyd |
| 156 | buffers.texi | 156 | buffers.texi cyd |
| 157 | building.texi | 157 | building.texi |
| 158 | calendar.texi | 158 | calendar.texi |
| 159 | cal-xtra.texi | 159 | cal-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 @@ | |||
| 1 | 2011-10-23 Chong Yidong <cyd@gnu.org> | 1 | 2011-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 | ||
| 5 | 2011-10-22 Chong Yidong <cyd@gnu.org> | 8 | 2011-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 | |||
| 229 | whose access control says you cannot write it. | 229 | whose 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 | 233 | buffer writable, and makes a writable buffer read-only. This works by |
| 234 | writable, and makes a writable buffer read-only. This works by | ||
| 235 | setting the variable @code{buffer-read-only}, which has a local value | 234 | setting the variable @code{buffer-read-only}, which has a local value |
| 236 | in each buffer and makes the buffer read-only if its value is | 235 | in each buffer and makes the buffer read-only if its value is |
| 237 | non-@code{nil}. | 236 | non-@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 |
| 960 | the left of each Emacs window, running the height of the | 960 | each Emacs window. Clicking @kbd{Mouse-1} on the scroll bar's up and |
| 961 | window.@footnote{Placing it at the left is usually more useful with | 961 | down buttons scrolls the window by one line at a time. Clicking |
| 962 | overlapping frames with text starting at the left margin.} | 962 | @kbd{Mouse-1} above or below the scroll bar's inner box scrolls the |
| 963 | 963 | window 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 |
| 965 | in operating systems such as Microsoft Windows or Mac OS, you can use | 965 | scrolls continuously. |
| 966 | the scroll bar as you do in other graphical applications. If you | 966 | |
| 967 | click @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 |
| 968 | scrolls the window by one line at a time. Clicking @kbd{Mouse-1} | 968 | support, the scroll bar behaves differently. Clicking @kbd{Mouse-1} |
| 969 | above or below the scroll bar's inner box scrolls the window by nearly | 969 | anywhere on the scroll bar scrolls forward like @kbd{C-v}, while |
| 970 | the 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} |
| 971 | respectively (@pxref{Moving Point}). Dragging the inner box with | 971 | in 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, | ||
| 975 | the scroll bar behaves differently. The scroll bar's inner box is | ||
| 976 | drawn to represent the portion of the buffer currently displayed, with | ||
| 977 | the entire height of the scroll bar representing the entire length of | ||
| 978 | the buffer. @kbd{Mouse-1} anywhere on the scroll bar scrolls forward | ||
| 979 | like @kbd{C-v}, and @kbd{Mouse-3} scrolls backward like @kbd{M-v}. | ||
| 980 | Clicking @kbd{Mouse-2} in the scroll bar lets you move or drag the | ||
| 981 | inner box up and down. | ||
| 982 | |||
| 983 | You can also click @kbd{C-Mouse-2} in the scroll bar to split a | ||
| 984 | window 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 | ||
| 989 | scroll-bar-mode}. With a prefix argument, this command turns use of | ||
| 990 | scroll bars on if and only if the argument is positive. This command | ||
| 991 | applies to all frames, including frames yet to be created. Customize | ||
| 992 | the variable @code{scroll-bar-mode} to control the use of scroll bars | ||
| 993 | at startup. You can use it to specify that they are placed at the | ||
| 994 | right of windows if you prefer that. You have to set this variable | ||
| 995 | through the @samp{Customize} interface (@pxref{Easy Customization}), | ||
| 996 | or it will not work properly. You can also use the X resource | ||
| 997 | @samp{verticalScrollBars} to control the initial setting of Scroll Bar | ||
| 998 | mode. @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}. |
| 976 | This command applies to all frames, including frames yet to be | ||
| 977 | created. To toggle scroll bars for just the selected frame, use the | ||
| 1002 | command @kbd{M-x toggle-scroll-bar}. | 978 | command @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 | ||
| 983 | scroll bars on the right side of windows), @code{left} (put them on | ||
| 984 | the left), or @code{nil} (disable scroll bars). By default, Emacs | ||
| 985 | puts scroll bars on the right if it was compiled with GTK+ support on | ||
| 986 | the X Window System, and on MS-Windows or Mac OS; Emacs puts scroll | ||
| 987 | bars on the left if compiled on the X Window system without GTK+ | ||
| 988 | support (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. | 993 | or disable the scroll bars (@pxref{Resources}). To control the scroll |
| 994 | bar 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 |
| 1086 | Emacs window, just below the menu bar. You can click on these icons | 1074 | each frame, just below the menu bar. This is a row of icons which you |
| 1087 | with the mouse to do various jobs. | 1075 | can click on with the mouse to invoke various commands. |
| 1088 | |||
| 1089 | The global tool bar contains general commands. Some major modes | ||
| 1090 | define their own tool bars to replace it. A few ``special'' modes | ||
| 1091 | that are not designed for ordinary editing remove some items from the | ||
| 1092 | global 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 |
| 1095 | XPM icons if Emacs was built with XPM support. Otherwise, the tool | 1078 | modes define their own tool bars; whenever a buffer with such a major |
| 1096 | bar uses monochrome icons (PBM or XBM format). | 1079 | mode 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 |
| 1101 | tool-bar-mode} or by customizing the option @code{tool-bar-mode}. | 1084 | command applies to all frames, including frames yet to be created. To |
| 1085 | control 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 |
| 1106 | Customize @code{tool-bar-style} to select style. The default style is | 1091 | consist of an image, or a text label, or both. By default, Emacs |
| 1107 | the same as for the desktop in the Gnome case. If no default is found, | 1092 | follows the Gnome desktop's tool bar style setting; if none is |
| 1108 | the tool bar uses just images. | 1093 | defined, it displays tool bar items as just images. To impose a |
| 1094 | specific 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 |
| 1112 | with the frame parameter @code{tool-bar-position}. | 1098 | bar with the frame parameter @code{tool-bar-position}. @xref{Frame |
| 1113 | For a detailed description of frame parameters and customization, | 1099 | Parameters,,, elisp, The Emacs Lisp Reference Manual}. |
| 1114 | see @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 | |||
| 1186 | customizing the windows that display tooltips. | 1171 | customizing 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+, |
| 1190 | using the default appearance of GTK tooltips. To disable this, change | 1175 | using the default appearance of GTK+ tooltips. To disable this, |
| 1191 | the variable @code{x-gtk-use-system-tooltips} to @code{nil}. If you | 1176 | change the variable @code{x-gtk-use-system-tooltips} to @code{nil}. |
| 1192 | do this, or if Emacs is built without GTK support, the @code{tooltip} | 1177 | If you do this, or if Emacs is built without GTK+ support, the |
| 1193 | face 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 |
| @@ -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. |
| 235 | Use `set-scroll-bar-mode' to change this. | 235 | Use `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. |
| 238 | Customize `tool-bar-style' to choose style. On a Gnome desktop, the default | 238 | Customize `tool-bar-style' to choose style. On a Gnome desktop, the default |
| 239 | is taken from the desktop settings. | 239 | is 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. |
| 242 | The frame-parameter tool-bar-position controls this. It takes the values | 242 | The frame-parameter tool-bar-position controls this. It takes the values |
| 243 | top, left, right or bottom. The Options => Show/Hide menu has entries | 243 | top, 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 |
| 277 | for remote machines which support SELinux. | 277 | for remote machines which support SELinux. |
| 278 | 278 | ||
| 279 | +++ | ||
| 280 | ** The function format-time-string now supports the %N directive, for | ||
| 281 | higher-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 |
| 296 | of buffer at first key-press (instead move to top/bottom of buffer) | 292 | of buffer at first key-press (instead move to top/bottom of buffer) |
| 297 | when `scroll-error-top-bottom' is non-nil. | 293 | when `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' |
| 303 | scroll a line instead of full screen. | 298 | scroll 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 |
| 307 | define it as a scroll command affected by `scroll-preserve-screen-position'. | 301 | define 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, |
| 311 | Emacs will never recenter point in the window when it scrolls due to | 304 | Emacs will never recenter point in the window when it scrolls due to |
| 312 | cursor motion commands or commands that move point (e.f., `M-g M-g'). | 305 | cursor motion commands or commands that move point (e.f., `M-g M-g'). |
| 313 | Previously, you needed to use `most-positive-fixnum' as the value of | 306 | Previously, 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. |
| 318 | If you customize `scroll-up-aggressively' or | 310 | If you customize `scroll-up-aggressively' or |
| @@ -374,7 +366,6 @@ Affected modes include dired, vc-dir, and log-edit. For example, | |||
| 374 | adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will | 366 | adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will |
| 375 | turn on `whitespace-mode' for *vc-diff* buffers. Modes should call | 367 | turn 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. |
| 380 | Instead, use "eval: (minor-mode 1)". | 371 | Instead, use "eval: (minor-mode 1)". |
| @@ -1192,6 +1183,10 @@ Also the debugger can now "continue" from an error, which means it will jump | |||
| 1192 | to the error handler as if the debugger had not been invoked instead of | 1183 | to the error handler as if the debugger had not been invoked instead of |
| 1193 | jumping all the way to the top-level. | 1184 | jumping all the way to the top-level. |
| 1194 | 1185 | ||
| 1186 | +++ | ||
| 1187 | ** The function format-time-string now supports the %N directive, for | ||
| 1188 | higher-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, |
| 1196 | discarding any inputs not inside the set. | 1191 | discarding any inputs not inside the set. |
| 1197 | 1192 | ||