changeset 3078:135bb6aa3ee2

[xemacs-hg @ 2005-11-18 12:23:55 by aidan] Restore old window configuration behaviour for VM, BBDB
author aidan
date Fri, 18 Nov 2005 12:23:57 +0000
parents 35ef5091b281
children a6c255546310
files src/ChangeLog src/window.c
diffstat 2 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Nov 18 11:28:10 2005 +0000
+++ b/src/ChangeLog	Fri Nov 18 12:23:57 2005 +0000
@@ -1,3 +1,9 @@
+2005-11-18  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* window.c (change_window_height): Have change_window_height
+	change the window width when requested to do so; fixes bugs and
+	error messages with VM, BBDB. 
+
 2005-11-16  Stephen J. Turnbull  <stephen@xemacs.org>
 
 	* sound.c (USED_IF_HAVE_NATIVE_OR_NAS, USED_IF_HAVE_ANY):
--- a/src/window.c	Fri Nov 18 11:28:10 2005 +0000
+++ b/src/window.c	Fri Nov 18 12:23:57 2005 +0000
@@ -4314,7 +4314,14 @@
       if (NILP (parent))
 	{
 	  if (widthflag)
-	    invalid_operation ("No other window to side of this one", Qunbound);
+	    {
+	      int new_pixsize;
+	      sizep = &CURSIZE (w);
+	      dim = CURCHARSIZE (w);
+	      new_pixsize = inpixels?(*sizep + delta):(dim+delta);
+	      set_window_pixsize (window, new_pixsize, 0, 0);
+	      return;
+	    }
 	  break;
 	}
       if (widthflag