aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAntoine Levitt2011-12-31 10:16:41 +0200
committerEli Zaretskii2011-12-31 10:16:41 +0200
commit3778cdd8efa2a0a5ea06d00277499fd6e7300cd2 (patch)
tree17b8121c46042c4c84000f06afb9dc89c80b1ecb /src
parent22bcf2046977620a7f37bbd4dff4be4a4fffc0ed (diff)
downloademacs-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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xdisp.c6
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 @@
12011-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
12011-12-28 Kenichi Handa <handa@m17n.org> 72011-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. */);
28325Each function is called with two arguments, the window and its new 28325Each function is called with two arguments, the window and its new
28326display-start position. Note that these functions are also called by 28326display-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
28328valid when these functions are called. */); 28328valid when these functions are called.
28329
28330Warning: Do not use this feature to alter the way the window
28331is scrolled. It is not designed for that, and such use probably won't
28332work. */);
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",