diff options
| author | Antoine Levitt | 2011-12-31 10:16:41 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-12-31 10:16:41 +0200 |
| commit | 3778cdd8efa2a0a5ea06d00277499fd6e7300cd2 (patch) | |
| tree | 17b8121c46042c4c84000f06afb9dc89c80b1ecb | |
| parent | 22bcf2046977620a7f37bbd4dff4be4a4fffc0ed (diff) | |
| download | emacs-3778cdd8efa2a0a5ea06d00277499fd6e7300cd2.tar.gz emacs-3778cdd8efa2a0a5ea06d00277499fd6e7300cd2.zip | |
Doc fix for window-scroll-functions.
src/xdisp.c (syms_of_xdisp) <window-scroll-functions>: Add warning
to the doc string advising against its use for altering the way
windows are scrolled.
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f10e2955164..e8b59fff9a9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-12-31 Antoine Levitt <antoine.levitt@gmail.com> | ||
| 2 | |||
| 3 | * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Add warning | ||
| 4 | to the doc string advising against its use for altering the way | ||
| 5 | windows are scrolled. | ||
| 6 | |||
| 1 | 2011-12-28 Kenichi Handa <handa@m17n.org> | 7 | 2011-12-28 Kenichi Handa <handa@m17n.org> |
| 2 | 8 | ||
| 3 | * coding.c (Fdefine_coding_system_internal): Make an utf-8 base | 9 | * coding.c (Fdefine_coding_system_internal): Make an utf-8 base |
diff --git a/src/xdisp.c b/src/xdisp.c index 39b6813e774..956799091d0 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -28325,7 +28325,11 @@ all the functions in the list are called, with the frame as argument. */); | |||
| 28325 | Each function is called with two arguments, the window and its new | 28325 | Each function is called with two arguments, the window and its new |
| 28326 | display-start position. Note that these functions are also called by | 28326 | display-start position. Note that these functions are also called by |
| 28327 | `set-window-buffer'. Also note that the value of `window-end' is not | 28327 | `set-window-buffer'. Also note that the value of `window-end' is not |
| 28328 | valid when these functions are called. */); | 28328 | valid when these functions are called. |
| 28329 | |||
| 28330 | Warning: Do not use this feature to alter the way the window | ||
| 28331 | is scrolled. It is not designed for that, and such use probably won't | ||
| 28332 | work. */); | ||
| 28329 | Vwindow_scroll_functions = Qnil; | 28333 | Vwindow_scroll_functions = Qnil; |
| 28330 | 28334 | ||
| 28331 | DEFVAR_LISP ("window-text-change-functions", | 28335 | DEFVAR_LISP ("window-text-change-functions", |