Article View: gnu.emacs.bug
Article #87963[19.25.94.1]: window-start and window-end are broke
From: Simon Marshall
Date: Thu, 18 Aug 1994 15:09
Date: Thu, 18 Aug 1994 15:09
37 lines
1809 bytes
1809 bytes
In GNU Emacs 19.25.1 of Thu Jun 2 1994 on penelope (sparc-sun-sunos4.1.3C)
(with X toolkit)
GNU Emacs 19.25.94.1 (sparc-sun-sunos4.1.3C, X toolkit) of Thu Aug 18 1994 on penelope
Though window-end is not exactly reliable in Emacs 19.25, it is worse (and
now window-start also does not work) in Emacs 19.25.94.
Try this in both versions:
% emacs -q
In *scratch*, evaluate:
(set 'post-command-hook
'(lambda ()
(sit-for 0)
(message "Buffer %s is %d to %d, window is %d to %d" (buffer-name)
(point-min) (point-max) (window-start) (window-end))))
Then visit a file thus:
M-. font-lock-mode RET .../emacs-19.25.94/lisp/ RET
For 19.25 the message in the minibuffer is the correct:
"Buffer font-lock.el is 1 to 28758, window is 12080 to 12964"
For 19.25.94:
"Buffer font-lock.el is 1 to 28758, window is 1 to 28758"
I can only guess that the call of prepare_menu_bars from `sit-for' is the
source of the bug. Since `sit-for' causes a redisplay, there really
should be valid values for these functions.
Simon.
Technical Details
Message-ID:
<9408181506.AA16179@plod.esrin.esa.it>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!sundog.tiac.net!usenet.elf.com!news2.near.net!MathWorks.Com!news.duke.edu!convex!cs.utexas.edu!math.ohio-state.edu!cis.ohio-state.edu!mail.ESrin.ESa.IT!Simon.MarshallShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,5f7ddbcfd15965e5,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-08-18 08:35:55 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!sundog.tiac.net!usenet.elf.com!news2.near.net!MathWorks.Com!news.duke.edu!convex!cs.utexas.edu!math.ohio-state.edu!cis.ohio-state.edu!mail.ESrin.ESa.IT!Simon.Marshall From: Simon.Marshall@mail.ESrin.ESa.IT (Simon Marshall) Newsgroups: gnu.emacs.bug Subject: [19.25.94.1]: window-start and window-end are broke Date: 18 Aug 1994 11:09:28 -0400 Organization: GNUs Not Usenet Lines: 37 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <9408181506.AA16179@plod.esrin.esa.it>