From: Antoine Levitt Date: Sat, 31 Dec 2011 08:16:41 +0000 (+0200) Subject: Doc fix for window-scroll-functions. X-Git-Tag: emacs-pretest-24.0.93~97^2~55^2~70 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3778cdd8efa2a0a5ea06d00277499fd6e7300cd2;p=emacs.git Doc fix for window-scroll-functions. src/xdisp.c (syms_of_xdisp) : Add warning to the doc string advising against its use for altering the way windows are scrolled. --- diff --git a/src/ChangeLog b/src/ChangeLog index f10e2955164..e8b59fff9a9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2011-12-31 Antoine Levitt + + * xdisp.c (syms_of_xdisp) : Add warning + to the doc string advising against its use for altering the way + windows are scrolled. + 2011-12-28 Kenichi Handa * 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. */); Each function is called with two arguments, the window and its new display-start position. Note that these functions are also called by `set-window-buffer'. Also note that the value of `window-end' is not -valid when these functions are called. */); +valid when these functions are called. + +Warning: Do not use this feature to alter the way the window +is scrolled. It is not designed for that, and such use probably won't +work. */); Vwindow_scroll_functions = Qnil; DEFVAR_LISP ("window-text-change-functions",