[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU Emacs 20.x crashes when calculating window-end

From: Vinicius Jose Latorre
Subject: GNU Emacs 20.x crashes when calculating window-end
Date: Mon, 22 Jan 2001 17:33:45 -0200


I'm using:

GNU Emacs 20.4.1 (i386-conectiva-linux-gnu, X toolkit)
 of Tue Feb 15 2000 on mapinguari.conectiva.com.br

I think I found a bug when I start Emacs by typing:

   emacs -q --no-site-file -l bug.el &

Where bug.el is:

---------------------------------------------------------------start bug.el
(defun bug-crash-show ()
  (let ((window (selected-window)))
    (with-output-to-temp-buffer "*Bug Show*"
        (set-buffer standard-output)
        (insert "\nBUG\nwindow-end = "
                (number-to-string (window-end window t)))

(defun bug-ok-show ()
  (let* ((window (selected-window))
         (end (window-end window t)))
    (with-output-to-temp-buffer "*Bug Show*"
        (set-buffer standard-output)
        (insert "\nBUG\nwindow-end = "
                (number-to-string end))
-----------------------------------------------------------------end bug.el

Now, visit a file that is longer than the emacs window (at least 2 screens) and
type C-v (so we are in the second screen).

It's all right if it's typed:  M-x bug-ok-show RET.

But Emacs crashes if it's typed:  M-x bug-crash-show RET.

Note that if the visited file is at top, both (bug-ok-show and bug-crash-show)
are ok.

Vinicius Jose Latorre
CPqD - Telecom & IT Solutions
Cx.P.6070 Campinas SP  13083-970 BRASIL
e-mail : address@hidden
voice  : +55 19 3705 6678
fax    : +55 19 3705 6786

--- perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'

reply via email to

[Prev in Thread] Current Thread [Next in Thread]