emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/window.c


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/src/window.c
Date: Wed, 08 Feb 2006 13:39:41 +0000

Index: emacs/src/window.c
diff -u emacs/src/window.c:1.532 emacs/src/window.c:1.533
--- emacs/src/window.c:1.532    Mon Feb  6 15:23:22 2006
+++ emacs/src/window.c  Wed Feb  8 13:39:41 2006
@@ -4284,6 +4284,14 @@
        {
          if (!NILP (XWINDOW (window)->next))
            {
+              /* This may happen for the minibuffer.  In that case
+                 the window_deletion_count check below does not work.  */
+              if (XINT (CURSIZE (p->next)) - delta <= 0) 
+                {
+                  Fset_window_configuration (old_config);
+                  error ("Cannot adjust window size as specified");
+                }
+
              XSETINT (CURBEG (p->next),
                       XINT (CURBEG (p->next)) + delta);
              size_window (p->next, XINT (CURSIZE (p->next)) - delta,




reply via email to

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