From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.bugs Subject: bug#17678: 24.4.50; Feature Request -- calculate new `window-start` & `window-end` before visual redisplay Date: Fri, 13 Jun 2014 09:22:07 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1402676609 20200 80.91.229.3 (13 Jun 2014 16:23:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2014 16:23:29 +0000 (UTC) Cc: 17678@debbugs.gnu.org To: Stefan Monnier ,Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 13 18:23:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WvUG8-0005px-2T for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jun 2014 18:23:20 +0200 Original-Received: from localhost ([::1]:60045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvUG7-0004KX-LN for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jun 2014 12:23:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvUFx-0004FD-PJ for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2014 12:23:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvUFq-0004JE-QB for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2014 12:23:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvUFq-0004J8-Nt for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2014 12:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WvUFq-0007EG-4F for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2014 12:23:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Jun 2014 16:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17678 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17678-submit@debbugs.gnu.org id=B17678.140267654527704 (code B ref 17678); Fri, 13 Jun 2014 16:23:02 +0000 Original-Received: (at 17678) by debbugs.gnu.org; 13 Jun 2014 16:22:25 +0000 Original-Received: from localhost ([127.0.0.1]:46865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvUFA-0007Cg-P4 for submit@debbugs.gnu.org; Fri, 13 Jun 2014 12:22:24 -0400 Original-Received: from cobb.liquidweb.com ([50.28.13.150]:37604) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvUF4-0007CH-8V for 17678@debbugs.gnu.org; Fri, 13 Jun 2014 12:22:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Cc:Subject:To:From:Message-ID:Date; bh=GaVaqqNSJBZ8rZ7aqcsHVz6qEtt/qefPiIPb09KX1HQ=; b=ivLL9vrBH+xLP+riGeo1NRtQjhMzB3RyExPBZCE5Dsq84iAc3+PwYXNoKJpjf203TMG/8lh+RSaSjDPGvx86+vJlGqQpqfWtg27ur4sTJW1N1iilP0fweCMOre4oSKUv; Original-Received: from cpe-75-85-5-102.socal.res.rr.com ([75.85.5.102]:49887 helo=MP.local) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1WvUEw-0002pD-UN; Fri, 13 Jun 2014 12:22:07 -0400 User-Agent: / () / () APEL/10.8 Emacs/24.4.50 (x86_64-apple-darwin10.8.0) MULE/6.0 (HANACHIRUSATO) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90349 Archived-At: The `window-scroll-functions` hook would be more useful if the value of `window-start` could be obtained *before* running the `post-command-hook`. At the present time, it would appear that the `post-command-hook` runs *before* the `window-scroll-functions` hook. Therefore, the `post-command-hook` cannot presently use the `window-start` value produced from the `window-scroll-functions` hook (which occurs *after* the `post-command-hook` has already finished). Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; At Fri, 13 Jun 2014 10:14:03 -0400, Stefan Monnier wrote: * * * > >> If OTOH redisplay decides to scroll, it won't re-execute > >> pre-redisplay-function, so Elisp doesn't get a chance to react to this > >> new window-start. > > ??? Then what are those calls to run_window_scroll_functions that > > redisplay issues? > > Ah, right, I forgot about this. So maybe window-scroll-functions is the > answer to the OP's needs! > > > Stefan