GNU bug report logs - #5318
23.1.90; -batch vs. "Window height 3 too small (after splitting)"

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Tue, 5 Jan 2010 16:36:01 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5318 in the body.
You can then email your comments to 5318 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5318; Package emacs. (Tue, 05 Jan 2010 16:36:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 05 Jan 2010 16:36:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1.90; -batch vs. "Window height 3 too small (after splitting)"
Date: Tue, 05 Jan 2010 04:00:22 +0800
Gentlemen, this is a -batch job.
Suddenly I'm getting
"Window height 3 too small (after splitting)"
However none of my equipment has windows even twice as small.
Something must have broke recently.

emacs-version "23.1.90.1"

-*- mode: compilation; default-directory: "/home/jidanni/pda/webtree/addresses/" -*-
Compilation started at Tue Jan  5 03:52:17

emacs -q -batch -eval \
	'(progn(bbdb "." t)(other-window 1)(bbdb-display-all-records-completely nil)(set-buffer-file-coding-system (quote utf-8-unix) nil)(write-file "abb.txt"))'
Loading 00debian-vars...
Loading /etc/emacs/site-start.d/50autoconf.el (source)...
Loading /etc/emacs/site-start.d/50bbdb.el (source)...
Loading /etc/emacs/site-start.d/50css-mode.el (source)...
Loading /etc/emacs/site-start.d/50dictem.el (source)...
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Skipping dictionaries-common setup for emacs-snapshot
Loading /etc/emacs/site-start.d/50emacs-goodies-el.el (source)...
Loading /etc/emacs/site-start.d/50html-helper-mode.el (source)...
Loading /etc/emacs/site-start.d/50php-elisp.el (source)...
Loading /etc/emacs/site-start.d/50psvn.el (source)...
Loading /etc/emacs/site-start.d/50riece.el (source)...
Loading /etc/emacs/site-start.d/50w3m-el-snapshot.el (source)...
Loading /etc/emacs/site-start.d/51debian-el.el (source)...
Loading /etc/emacs/site-start.d/70x-face-el.el (source)...
Parsing BBDB...
Parsing BBDB... (reading...)
Parsing BBDB... (frobnicating...)
Parsing BBDB... (frobnicating...done)
Window height 3 too small (after splitting)

Compilation exited abnormally with code 255 at Tue Jan  5 03:52:17





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5318; Package emacs. (Wed, 06 Jan 2010 18:58:02 GMT) Full text and rfc822 format available.

Message #8 received at 5318 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: jidanni <at> jidanni.org, 5318 <at> debbugs.gnu.org
Subject: Re: bug#5318: 23.1.90;	-batch vs. "Window height 3 too small (after
	splitting)"
Date: Wed, 06 Jan 2010 19:57:07 +0100
> Suddenly I'm getting
> "Window height 3 too small (after splitting)"
> However none of my equipment has windows even twice as small.

The default value of `window-min-height' is 4 and since 3 < 4
`split-window' throws that error.  The error can occur independently of
the height of the window you want to split: If the window you want to
split has 50 lines and you want to split it into two windows of size 47
and 3 you get the error.

> Something must have broke recently.

Not very recently, I suppose.

> emacs-version "23.1.90.1"
>
> -*- mode: compilation; default-directory: "/home/jidanni/pda/webtree/addresses/" -*-
> Compilation started at Tue Jan  5 03:52:17
>
> emacs -q -batch -eval \
> 	'(progn(bbdb "." t)(other-window 1)(bbdb-display-all-records-completely nil)(set-buffer-file-coding-system (quote utf-8-unix) nil)(write-file "abb.txt"))'

I don't have bbdb so I can't test this.  Can you verify whether the
error occurs in `bbdb-display-all-records-completely' by omitting all
clauses following the (other-window 1) clause?

You could also try to replace "progn" by "let ((window-min-height 1))"
but this will probably fail if the function calling `split-window' uses
the value of `window-min-height' for calculating the size of the new
window.

martin




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5318; Package emacs. (Wed, 06 Jan 2010 19:16:01 GMT) Full text and rfc822 format available.

Message #11 received at 5318 <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: rudalics <at> gmx.at
Cc: 5318 <at> debbugs.gnu.org
Subject: Re: bug#5318: 23.1.90;
	-batch vs. "Window height 3 too small (after splitting)"
Date: Thu, 07 Jan 2010 03:15:01 +0800
>>>>> "mr" == martin rudalics <rudalics <at> gmx.at> writes:

mr> Can you verify whether the error occurs in
mr> `bbdb-display-all-records-completely' by omitting all clauses
mr> following the (other-window 1) clause?

Indeed,
$ emacs -batch -eval \
	'(progn(bbdb "." t)(other-window 1))'
...Window height 3 too small (after splitting)

mr> You could also try to replace "progn" by "let ((window-min-height 1))"

Phew, that worked. Thanks.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5318; Package emacs. (Thu, 07 Jan 2010 08:18:02 GMT) Full text and rfc822 format available.

Message #14 received at 5318 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: jidanni <at> jidanni.org
Cc: 5318 <at> debbugs.gnu.org
Subject: Re: bug#5318: 23.1.90;	-batch vs. "Window height 3 too small (after
	splitting)"
Date: Thu, 07 Jan 2010 09:17:32 +0100
> mr> You could also try to replace "progn" by "let ((window-min-height 1))"
>
> Phew, that worked. Thanks.

This seems to indicate that some bbdb function doesn't respect
`window-min-height'.  You might want to get back to the maintainers of
bbdb.

martin




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5318; Package emacs. (Thu, 07 Jan 2010 08:30:03 GMT) Full text and rfc822 format available.

Message #17 received at 5318 <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: rudalics <at> gmx.at, bbdb-info <at> lists.sourceforge.net
Cc: 5318 <at> debbugs.gnu.org
Subject: Re: bug#5318: 23.1.90;
	-batch vs. "Window height 3 too small (after splitting)"
Date: Thu, 07 Jan 2010 16:29:03 +0800
>>>>> "mr" == martin rudalics <rudalics <at> gmx.at> writes:

mr> You could also try to replace "progn" by "let ((window-min-height 1))"
>> 
>> Phew, that worked. Thanks.

mr> This seems to indicate that some bbdb function doesn't respect
mr> `window-min-height'.  You might want to get back to the maintainers of
mr> bbdb.

I'll CC them.




bug closed, send any further explanations to jidanni <at> jidanni.org Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 15 Jan 2010 02:35:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 12 Feb 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 127 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.