all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
To: "Martin Rudalics" <rudalics@gmx.at>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Docstring of `window-scroll-functions'
Date: Tue, 28 Oct 2008 18:57:05 +0100	[thread overview]
Message-ID: <f7ccd24b0810281057j66c5872aj5b214b5ddcb45e70@mail.gmail.com> (raw)

The docstring for `set-window-buffer' mentions that it runs
`window-scroll-functions', but says nothing about
`window-configuration-change-hook', which is weird. Perhaps that's
because the programmer can reasonably expect for `set-window-buffer'
to run the window configuration change hook, but not
`window-scroll-functions'?

In any case, I'd suggest at least adding wording to
window-scroll-function's docstring making clear that it can be run
from `set-window-buffer', because at it stands now, it would be a bit
unexpected if the programmer happens to read just the variable's doc
and not the function's:

  window-scroll-functions is a variable defined in `C source code'.
  Its value is nil

  Documentation:
  List of functions to call before redisplaying a window with scrolling.
  Each function is called with two arguments, the window
  and its new display-start position.  Note that the value of `window-end'
  is not valid when these functions are called.

`set-window-buffer' has no apparent relation with scrolling.

  Juanma




             reply	other threads:[~2008-10-28 17:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-28 17:57 Juanma Barranquero [this message]
2008-10-28 19:04 ` Docstring of `window-scroll-functions' martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b0810281057j66c5872aj5b214b5ddcb45e70@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.