emacs-devel
[Top][All Lists]
Advanced

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

Re: 23.0.50; Cannot run calculator on TTY


From: martin rudalics
Subject: Re: 23.0.50; Cannot run calculator on TTY
Date: Wed, 03 Oct 2007 08:21:27 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

>     martin> Sorry, my question was formulated badly.  I wanted to
>     martin> know what happens when you evaluate the form below in
>     martin> your environment:
>     martin>
>     martin> (let ((split-window-keep-point nil)
>     martin> (window-min-height 2)) (split-window-vertically -2))
> Raises the same error as raised by calling M-x calculator shown
>     martin> earlier, so we've narrowed it down.
> I also get the same error if I just evaluate
>      (split-window-vertically -2) in my environment.
> Works if I  pass -3
>

This means something's wrong with your `split-window'.  C-x C-e gets me
for

(let ((window-min-height 2))
  (split-window-vertically -3))

=> Make a two lines window at bottom

(split-window-vertically -3)

=> Lisp error: (error "Window height 3 too small (after splitting)")

(let ((window-min-height 2))
  (split-window-vertically -2))

=> Make a one line window at bottom

(split-window-vertically -2)

=> Lisp error: (error "Window height 2 too small (after splitting)")

which is the expected behavior.  Your behavior is wrong because

(let ((window-min-height 2))
  (split-window-vertically -2))

should not_raise an error while

(split-window-vertically -3)

should.  My build is Emacs 22.1 with a few modifications.  Maybe
something changed since then.

Can you run `split_window' with GDB and find out why it fails?





reply via email to

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