🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99526

Re: Deferred recenter problem

#99526
From: Joe Wells
Date: Fri, 10 Aug 1990 19:30
29 lines
1777 bytes
In article <9008101512.AA12186@.dupuis.gr.osf.org.> macrakis@ri.osf.fr writes:

   It appears that the effect of recenter is deferred in a funny way.

   [example deleted]

   The screen display is what you'd expect from the (recenter -1), but
   with point halfway down the screen !  i.e. the effect of the last
   goto-char is annulled by some deferred effect of recenter.

recenter does this:

    w->force_start = Qt;

When the screen is next redisplayed, point is forced to lie within the
window rather than the window being moved to display point.

You can write your own version of recenter in Lisp that does not have this
behavior.  Just copy the code for recenter in src/window.c and make it
into Lisp.  Then use the third argument to set-window-start to get the
behavior you want:

    set-window-start:
    Make display in WINDOW start at position POS in WINDOW's buffer.
    Optional third arg NOFORCE non-nil inhibits next redisplay
    from overriding motion of point in order to display at this exact start.

-- 
Joe Wells <jbw@uswest.com>
Technical Details
Message-ID: <JBW.90Aug10133005@zeb.uswest.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!snorkelwacker!bionet!rutgers!boulder!uswat!jbw
References: <9008101512.AA12186@.dupuis.gr.osf.org.>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,4639638ea53388c0,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-08-10 12:30:05 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!snorkelwacker!bionet!rutgers!boulder!uswat!jbw
From: jbw@zeb.uswest.com (Joe Wells)
Newsgroups: gnu.emacs.bug
Subject: Re: Deferred recenter problem
Message-ID: <JBW.90Aug10133005@zeb.uswest.com>
Date: 10 Aug 90 19:30:05 GMT
References: <9008101512.AA12186@.dupuis.gr.osf.org.>
Sender: news@uswat.UUCP
Distribution: gnu
Organization: U S West Advanced Technologies
Lines: 29
Posted: Fri Aug 10 20:30:05 1990
In-reply-to: macrakis@ri.osf.fr's message of 10 Aug 90 14:13:50 GMT