From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 13 05:06:51 2014 Received: (at submit) by debbugs.gnu.org; 13 Feb 2014 10:06:51 +0000 Received: from localhost ([127.0.0.1]:50000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDtBy-0005W0-JI for submit@debbugs.gnu.org; Thu, 13 Feb 2014 05:06:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44470) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDtBv-0005Vl-BT for submit@debbugs.gnu.org; Thu, 13 Feb 2014 05:06:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDtBh-0005E3-Nk for submit@debbugs.gnu.org; Thu, 13 Feb 2014 05:06:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDtBh-0005Dz-Kp for submit@debbugs.gnu.org; Thu, 13 Feb 2014 05:06:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDtBZ-0001tH-0M for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2014 05:06:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDtBQ-0005BJ-JS for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2014 05:06:24 -0500 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:60934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDtBQ-0005BE-BL for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2014 05:06:16 -0500 Received: by mail-wi0-f176.google.com with SMTP id hi5so8302434wib.15 for ; Thu, 13 Feb 2014 02:06:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:from:to:subject:date:message-id:mime-version :content-type; bh=UQgK8GPD5GAlZGzFrpkGkXaq2XiFh3si4cnAGOyQfBg=; b=mECF0dd10oMBM7LpO4uW75wVVhvp73/Iw7PwUmasBO6UA6LU8YW0crLKs9j1BFS1ZQ lORxu1ufoCx4i6cpIwJ0XHgkTskhr3oWgDNnLIWjEF3hH4znt6M2Bh3RuYCG/qXqybiH XQX3ESrGegqK5iz/y8DW5nbvrQ6qw4UAMiGqDRofR3DE7IfF0kso/HyKDecNAB7h8CcE Ttdef/eucr+CXoPTVPIvGUo9H8FU1gud8K2Cnex47nKcvIyFNJTsSI1fFiE40h0ydbNi XYyxTc8f6THDbAT9skkBJ96gC5wpwv005TwxBRb4+Oc6vKVnzVhYPBnMeMxPiRdAgynZ /jDw== X-Received: by 10.194.63.228 with SMTP id j4mr575236wjs.34.1392285975481; Thu, 13 Feb 2014 02:06:15 -0800 (PST) Received: from ubuntu ([2.218.154.175]) by mx.google.com with ESMTPSA id ev4sm4094095wib.1.2014.02.13.02.06.14 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 13 Feb 2014 02:06:14 -0800 (PST) User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.3 From: E Sabof To: Bug-Gnu-Emacs Subject: Errors while resizing vertically Date: Thu, 13 Feb 2014 10:06:13 +0000 Message-ID: <87y51fnx7u.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Another one without a clear recipe. I am using the following function on a fairly regular basis: (defun es-maximize-window-vertically (&optional window) (interactive) (cl-callf window-normalize-window window) (unless (eq window (frame-root-window)) (window-resize window (window-max-delta window)))) In combination with: (setq window-min-height 1) Sometimes it causes errors such as the ones below. In this state a) I can't resize any windows, using the above function. b) I can still resize using the mouse. c) Once I do, I usually can resize once with this function, but then I get a similar error again. Evgeni BACKTRACE1: Debugger entered--Lisp error: (error "Cannot resize window #") signal(error ("Cannot resize window #")) error("Cannot resize window %s" #) window-resize(# 28) (if (eq window (frame-root-window)) nil (window-resize window (window-max-delta window))) es-maximize-window-vertically() call-interactively(es-maximize-window-vertically nil nil) command-execute(es-maximize-window-vertically) BACKTRACE2 Debugger entered--Lisp error: (args-out-of-range -17 0 2147483647) set-window-new-pixel(# -17 t) window--resize-child-windows(# -595 nil # nil nil nil nil) window--resize-siblings(# 595 nil nil) window-resize(# 35) (if (eq window (frame-root-window)) nil (window-resize window (window-max-delta window))) es-maximize-window-vertically() call-interactively(es-maximize-window-vertically nil nil) command-execute(es-maximize-window-vertically) From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 14 06:40:10 2014 Received: (at 16738) by debbugs.gnu.org; 14 Feb 2014 11:40:10 +0000 Received: from localhost ([127.0.0.1]:51785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEH7p-00062V-BJ for submit@debbugs.gnu.org; Fri, 14 Feb 2014 06:40:09 -0500 Received: from mout.gmx.net ([212.227.15.15]:60429) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEH7m-00061V-0B for 16738@debbugs.gnu.org; Fri, 14 Feb 2014 06:40:06 -0500 Received: from [62.47.32.141] ([62.47.32.141]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M4WNA-1VG0zz3ioe-00yiCg for <16738@debbugs.gnu.org>; Fri, 14 Feb 2014 12:40:00 +0100 Message-ID: <52FE008E.1010503@gmx.at> Date: Fri, 14 Feb 2014 12:39:58 +0100 From: martin rudalics MIME-Version: 1.0 To: E Sabof Subject: Re: bug#16738: Errors while resizing vertically References: <87y51fnx7u.fsf@gmail.com> In-Reply-To: <87y51fnx7u.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:imy3ly1HH9KwIVRaJ7JwZ8lbJhT7KkccnoOsL5e37mAnBxlO1SY mygxR20u9ODnhmn4fHhXCICQeiw/0zTrpWgytU5s1GOTSDKVavouozQKQwjgaSWvPL+8mNA 3KfAybhc3HBHwtSS6ZxTV7xGm5FeiwimxcWVuwnRcGf4z5cJoq5oPC2Tp+huhlwtChowp0r a+p+xYxu1/hVIxSWCVuBg== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16738 Cc: Paul Eggert , 16738@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Debugger entered--Lisp error: (error "Cannot resize window #") > signal(error ("Cannot resize window #")) > error("Cannot resize window %s" #) > window-resize(# 28) > (if (eq window (frame-root-window)) nil (window-resize window (window-max-delta window))) > es-maximize-window-vertically() > call-interactively(es-maximize-window-vertically nil nil) > command-execute(es-maximize-window-vertically) I can easily reproduce such an error here. Do you have a boxed mode- or header-line, or anything that makes these lines higher or lower than an average normal line? I'll check in a fix for this soon, but I still see a related bug whose cause I wasn't able to identify yet. > BACKTRACE2 > > Debugger entered--Lisp error: (args-out-of-range -17 0 2147483647) > set-window-new-pixel(# -17 t) > window--resize-child-windows(# -595 nil # nil nil nil nil) > window--resize-siblings(# 595 nil nil) > window-resize(# 35) > (if (eq window (frame-root-window)) nil (window-resize window (window-max-delta window))) > es-maximize-window-vertically() > call-interactively(es-maximize-window-vertically nil nil) > command-execute(es-maximize-window-vertically) This sounds strange. Paul, how can such a thing happen? martin From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 14 21:09:01 2014 Received: (at 16738) by debbugs.gnu.org; 15 Feb 2014 02:09:01 +0000 Received: from localhost ([127.0.0.1]:52806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEUge-00040O-Pm for submit@debbugs.gnu.org; Fri, 14 Feb 2014 21:09:00 -0500 Received: from mail-wg0-f47.google.com ([74.125.82.47]:56872) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEUgc-00040A-Q7 for 16738@debbugs.gnu.org; Fri, 14 Feb 2014 21:08:59 -0500 Received: by mail-wg0-f47.google.com with SMTP id k14so878751wgh.2 for <16738@debbugs.gnu.org>; Fri, 14 Feb 2014 18:08:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=elj+5cCeaHZq0vJcCN25VZBmsyjZzwfSGawG28U1QuQ=; b=Bj4mBmfWI6L9ZolBzuNXDrDGc96N7IhR85h3e1o+qeLUT/Iyl2ZdPnjdn3LtMx39+M lqq93Wkag7dsZMRT8s7Wb3IhemA9mAqmsDJaWFO7u5NrKqgqv1EuZn1exnkdHXXNl4kz nPyVglN07PMCf6mDvl6rwDO8O3Vehm+WeyAixXkXzLhev0HrfZnG/031UpwbI7pc4tGG ygwePk4oKRfxK4Of4mLj0F8SIMcpus+/Vajzext3lxkqO7+/mPrxtv95Z/5uXcfcqje9 W7B2cLmXj3bdeGlE0BL7vM1Hm5bXY2giqOuKrXfJ9AV75UO/vGoy78LTg+WdejGEf3El Otmg== X-Received: by 10.180.36.8 with SMTP id m8mr4636427wij.42.1392430132776; Fri, 14 Feb 2014 18:08:52 -0800 (PST) Received: from ubuntu ([2.218.154.175]) by mx.google.com with ESMTPSA id 12sm17006900wjm.10.2014.02.14.18.08.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 14 Feb 2014 18:08:52 -0800 (PST) References: <87y51fnx7u.fsf@gmail.com> <52FE008E.1010503@gmx.at> User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.4 From: E Sabof To: martin rudalics Subject: Re: bug#16738: Errors while resizing vertically In-reply-to: <52FE008E.1010503@gmx.at> Date: Sat, 15 Feb 2014 02:08:50 +0000 Message-ID: <87a9dtm8jx.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16738 Cc: Paul Eggert , 16738@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > I can easily reproduce such an error here. Do you have a boxed mode- or > header-line, or anything that makes these lines higher or lower than an > average normal line? My header-line has an overline + underline, which apparently make the face 2 pixels higher. I might also have been using non-standard size font-lock faces. Evgeni From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 05:32:49 2014 Received: (at 16738) by debbugs.gnu.org; 16 Feb 2014 10:32:49 +0000 Received: from localhost ([127.0.0.1]:54290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEz1l-0004uo-6y for submit@debbugs.gnu.org; Sun, 16 Feb 2014 05:32:49 -0500 Received: from mout.gmx.net ([212.227.17.22]:49607) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEz1j-0004uX-Dy for 16738@debbugs.gnu.org; Sun, 16 Feb 2014 05:32:47 -0500 Received: from [62.47.47.61] ([62.47.47.61]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MgtWa-1Wb27c3GHA-00M4UH for <16738@debbugs.gnu.org>; Sun, 16 Feb 2014 11:32:41 +0100 Message-ID: <530093C4.4030606@gmx.at> Date: Sun, 16 Feb 2014 11:32:36 +0100 From: martin rudalics MIME-Version: 1.0 To: E Sabof Subject: Re: bug#16738: Errors while resizing vertically References: <87y51fnx7u.fsf@gmail.com> <52FE008E.1010503@gmx.at> <87a9dtm8jx.fsf@gmail.com> In-Reply-To: <87a9dtm8jx.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:I1DOiBVGXlJJhdLL25dqg01EO3csRdFd5Fy3UwqyTZlCo7jsfue Wn5OSjiW1F5fYXUP9MIo5YwyxbGehAs3rcrnOqgKd3j1C06plc0bILv1MMjwjM2a92CXeGL pFT3WOObF5fllidtqfrwaTqatGwzromzWNKePCCHksLlIOghNQIGUTsyWIQNqok03D5YD7M Mo237/3tmyx/7G+lCesDg== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16738 Cc: Paul Eggert , 16738@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > My header-line has an overline + underline, which apparently make the face 2 pixels higher. I might also have been using non-standard size font-lock faces. This explains it. You shouldn't see the bug with "normal" header- and mode-lines. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 21 08:07:44 2014 Received: (at 16738) by debbugs.gnu.org; 21 Feb 2014 13:07:44 +0000 Received: from localhost ([127.0.0.1]:34381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGppQ-00035s-9H for submit@debbugs.gnu.org; Fri, 21 Feb 2014 08:07:44 -0500 Received: from mout.gmx.net ([212.227.17.21]:53358) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGppN-00035c-IR for 16738@debbugs.gnu.org; Fri, 21 Feb 2014 08:07:42 -0500 Received: from [62.47.35.16] ([62.47.35.16]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LgqEs-1X1lQn0uik-00oGYq for <16738@debbugs.gnu.org>; Fri, 21 Feb 2014 14:07:35 +0100 Message-ID: <53074F94.9090303@gmx.at> Date: Fri, 21 Feb 2014 14:07:32 +0100 From: martin rudalics MIME-Version: 1.0 To: E Sabof Subject: Re: bug#16738: Errors while resizing vertically References: <87y51fnx7u.fsf@gmail.com> In-Reply-To: <87y51fnx7u.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:cqzWKylCF9Qw7xNWGUF6h3vy5zgM2kkmoXpQsandBBJ9mNHrJva ObprHsRb503lgMhWgLJd/gyERVkbEswglRKiQXPKmuUYccQ+BLUO0W3FJpygXWkAtZohuVH CYBu25TjuiTk/12CDPug4V1mKM5Wdivzkw16Z6d2Mzs5DVlj9amMTqOvtpR3dhUvjUkBv5G mZM9NSZHF14GI9cB71mSA== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16738 Cc: 16738@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Another one without a clear recipe. I am using the following function on a fairly regular basis: > > (defun es-maximize-window-vertically (&optional window) > (interactive) > (cl-callf window-normalize-window window) > (unless (eq window (frame-root-window)) > (window-resize window (window-max-delta window)))) > > In combination with: > > (setq window-min-height 1) > > Sometimes it causes errors such as the ones below. In this state a) I can't resize any windows, using the above function. b) I can still resize using the mouse. c) Once I do, I usually can resize once with this function, but then I get a similar error again. > > Evgeni > > BACKTRACE1: > > Debugger entered--Lisp error: (error "Cannot resize window #") > signal(error ("Cannot resize window #")) > error("Cannot resize window %s" #) > window-resize(# 28) > (if (eq window (frame-root-window)) nil (window-resize window (window-max-delta window))) > es-maximize-window-vertically() > call-interactively(es-maximize-window-vertically nil nil) > command-execute(es-maximize-window-vertically) Hopefully fixed with revision 116504 on trunk. Please try again. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 21 08:08:09 2014 Received: (at 16738) by debbugs.gnu.org; 21 Feb 2014 13:08:09 +0000 Received: from localhost ([127.0.0.1]:34386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGppo-000374-S0 for submit@debbugs.gnu.org; Fri, 21 Feb 2014 08:08:09 -0500 Received: from mout.gmx.net ([212.227.17.22]:64948) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGppn-00036Q-O1 for 16738@debbugs.gnu.org; Fri, 21 Feb 2014 08:08:08 -0500 Received: from [62.47.35.16] ([62.47.35.16]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MexlN-1WehJ21aeX-00OVWh for <16738@debbugs.gnu.org>; Fri, 21 Feb 2014 14:08:01 +0100 Message-ID: <53074FAE.60701@gmx.at> Date: Fri, 21 Feb 2014 14:07:58 +0100 From: martin rudalics MIME-Version: 1.0 To: Paul Eggert Subject: Re: bug#16738: Errors while resizing vertically References: <87y51fnx7u.fsf@gmail.com> <52FE008E.1010503@gmx.at> In-Reply-To: <52FE008E.1010503@gmx.at> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:J1w58KiVW3fAusCBwEJOroVK39eToipp4q877RMSgWOE4tw96to GafcfOkbZbeJNN9Oo/L9EZ41YikCrgwqTKdeP4H9e0DBBlwrqEwIluog0SlgSoalvCROIwR DX1tlrmEkFCp27R5igNBo3zXBKdZ1GPwBk4/VlqPz5L6vCMqfgvMhoQ8P3Retg2hxBVygf2 JnO+Qh6VavhIe3girOo6w== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16738 Cc: E Sabof , 16738@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > > Debugger entered--Lisp error: (args-out-of-range -17 0 2147483647) > > set-window-new-pixel(# -17 t) > > window--resize-child-windows(# -595 nil # *Backtrace*> nil nil nil nil) > > window--resize-siblings(# 595 nil nil) > > window-resize(# 35) > > (if (eq window (frame-root-window)) nil (window-resize window > (window-max-delta window))) > > es-maximize-window-vertically() > > call-interactively(es-maximize-window-vertically nil nil) > > command-execute(es-maximize-window-vertically) > > This sounds strange. Paul, how can such a thing happen? Paul Eggert - this was your change: Minor integer overflow fixes (Bug#16033). * window.c (Fset_window_new_pixel): Don't let new_pixel go negative. This improves on the previous fix to this function. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 21 15:29:40 2014 Received: (at 16738) by debbugs.gnu.org; 21 Feb 2014 20:29:40 +0000 Received: from localhost ([127.0.0.1]:35075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGwj6-0000D9-Ch for submit@debbugs.gnu.org; Fri, 21 Feb 2014 15:29:40 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:54207) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGwj3-0000Ct-T5 for 16738@debbugs.gnu.org; Fri, 21 Feb 2014 15:29:38 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 029FAA6005B; Fri, 21 Feb 2014 12:29:32 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id akcilVLZ01-b; Fri, 21 Feb 2014 12:29:31 -0800 (PST) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 9EF3C39E801F; Fri, 21 Feb 2014 12:29:31 -0800 (PST) Message-ID: <5307B72B.9000808@cs.ucla.edu> Date: Fri, 21 Feb 2014 12:29:31 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: martin rudalics Subject: Re: bug#16738: Errors while resizing vertically References: <87y51fnx7u.fsf@gmail.com> <52FE008E.1010503@gmx.at> <53074FAE.60701@gmx.at> In-Reply-To: <53074FAE.60701@gmx.at> Content-Type: multipart/mixed; boundary="------------080901090901010703010904" X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 16738 Cc: E Sabof , 16738@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) This is a multi-part message in MIME format. --------------080901090901010703010904 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit My change adjusted set-window-new-pixel so that it rejects attempts to set the new pixel size to a negative value. Here, new-pixel is currently 0, so (set-window-new-pixel window-17 t) is attempting to change new-pixel to be -17. Are negative new-pixel values allowed? If so, the attached patch should fix the problem. If not, the problem's probably in the caller. --------------080901090901010703010904 Content-Type: text/x-patch; name="newpixel.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="newpixel.diff" === modified file 'src/window.c' --- src/window.c 2014-02-21 08:02:05 +0000 +++ src/window.c 2014-02-21 20:25:41 +0000 @@ -3702,8 +3702,9 @@ (Lisp_Object window, Lisp_Object size, Lisp_Object add) { struct window *w = decode_valid_window (window); - EMACS_INT size_min = NILP (add) ? 0 : - XINT (w->new_pixel); - EMACS_INT size_max = size_min + min (INT_MAX, MOST_POSITIVE_FIXNUM); + EMACS_INT new_pixel = NILP (add) ? 0 : XINT (w->new_pixel); + EMACS_INT size_min = max (INT_MIN, MOST_NEGATIVE_FIXNUM) - new_pixel; + EMACS_INT size_max = min (INT_MAX, MOST_POSITIVE_FIXNUM) - new_pixel; CHECK_RANGED_INTEGER (size, size_min, size_max); if (NILP (add)) --------------080901090901010703010904-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 21 16:29:43 2014 Received: (at 16738) by debbugs.gnu.org; 21 Feb 2014 21:29:43 +0000 Received: from localhost ([127.0.0.1]:35147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGxfD-0001kj-2v for submit@debbugs.gnu.org; Fri, 21 Feb 2014 16:29:43 -0500 Received: from mout.gmx.net ([212.227.17.21]:54703) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGxfA-0001kS-A8 for 16738@debbugs.gnu.org; Fri, 21 Feb 2014 16:29:41 -0500 Received: from [62.47.33.81] ([62.47.33.81]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M7H2Y-1XAJjP29Je-00x3dO for <16738@debbugs.gnu.org>; Fri, 21 Feb 2014 22:29:33 +0100 Message-ID: <5307C53A.9070306@gmx.at> Date: Fri, 21 Feb 2014 22:29:30 +0100 From: martin rudalics MIME-Version: 1.0 To: Paul Eggert Subject: Re: bug#16738: Errors while resizing vertically References: <87y51fnx7u.fsf@gmail.com> <52FE008E.1010503@gmx.at> <53074FAE.60701@gmx.at> <5307B72B.9000808@cs.ucla.edu> In-Reply-To: <5307B72B.9000808@cs.ucla.edu> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:WapLZZTkQznLQ/pVeluoZMkz7m1BTu0hw2KYsAfTZ5dmceUECch SFC8ifpd2MGbm272SKuGE5LhqnKNfT9Gjl6JmIylz7yVLKvjdfG/429SKqqWxET5I3E330h rsNg8pVeG7zNRbQD2Zj/pTdFORUkiEBtvjtzm3aVPrDH40bOyRVvZ+n7/uUtgQfwhliVu6k BEv8zzmgCsKISHQz5PvrA== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16738 Cc: E Sabof , 16738@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > My change adjusted set-window-new-pixel so that it rejects attempts to > set the new pixel size to a negative value. Here, new-pixel is currently > 0, so (set-window-new-pixel window-17 t) is attempting to change > new-pixel to be -17. Indeed. Storing a negative pixel value is an error. > Are negative new-pixel values allowed? If so, the attached patch should > fix the problem. If not, the problem's probably in the caller. There was a bug in the caller - hopefully fixed now. No further action needed from your side. Thanks, martin From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 19:03:36 2014 Received: (at 16738) by debbugs.gnu.org; 24 Feb 2014 00:03:36 +0000 Received: from localhost ([127.0.0.1]:37042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHj1D-0005eC-MM for submit@debbugs.gnu.org; Sun, 23 Feb 2014 19:03:36 -0500 Received: from mail-we0-f180.google.com ([74.125.82.180]:55201) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHj1A-0005dw-OW for 16738@debbugs.gnu.org; Sun, 23 Feb 2014 19:03:33 -0500 Received: by mail-we0-f180.google.com with SMTP id u57so4075740wes.25 for <16738@debbugs.gnu.org>; Sun, 23 Feb 2014 16:03:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=CL+ZLo8sI529uM8w4vnIsxERu7lOP01n945I/v9495c=; b=w1xIswbHcQpXz869old+NUwFHLpEOYipX+gzHPwUPVXRQZiKY7wLmSsMs8naOUXPT+ HXtCUPn1qe+2+ZvC1xiw4iFPHRVWwc4dxBuxXKSGKic7HxyKA3RrzWLmUQ5LYGAwavsF yaYTAvnvu9uoFbWfZ9dD7xdTBOsqmHYsHelEpu4eNXwu4asnKSxJZkmGh9Sub1M/XwFc cFjR0vBcOP9iTixO0CY1IHMVkVAP9QaRcgRvQ7FIPV6sGRFQmC5smb2WkM7gPdnIwW5w IrNTgAgU0pUncuu/7+WoSOZeBPMeIPxW//ns8XGPjDUYdllMBxGHuztR7J7vaYhRfXvd ax8g== X-Received: by 10.180.91.164 with SMTP id cf4mr11932679wib.37.1393200206543; Sun, 23 Feb 2014 16:03:26 -0800 (PST) Received: from ubuntu ([2.218.154.175]) by mx.google.com with ESMTPSA id br10sm37497185wjb.3.2014.02.23.16.03.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 23 Feb 2014 16:03:25 -0800 (PST) References: <87y51fnx7u.fsf@gmail.com> <52FE008E.1010503@gmx.at> <53074FAE.60701@gmx.at> <5307B72B.9000808@cs.ucla.edu> <5307C53A.9070306@gmx.at> User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.6 From: E Sabof To: martin rudalics Subject: Re: bug#16738: Errors while resizing vertically In-reply-to: <5307C53A.9070306@gmx.at> Date: Mon, 24 Feb 2014 00:03:23 +0000 Message-ID: <87sir9nzqs.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16738 Cc: Paul Eggert , 16738@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) I've tried the new code. With the following: (setq window-min-height 1) (set-face-attribute 'mode-line nil :overline "black") ,I'm unable to make windows any shorter than 2. Evgeni From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 02:40:22 2014 Received: (at 16738) by debbugs.gnu.org; 24 Feb 2014 07:40:23 +0000 Received: from localhost ([127.0.0.1]:37270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHq9G-0004Jw-5D for submit@debbugs.gnu.org; Mon, 24 Feb 2014 02:40:22 -0500 Received: from mout.gmx.net ([212.227.17.20]:59519) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHq9A-0004JV-T7 for 16738@debbugs.gnu.org; Mon, 24 Feb 2014 02:40:17 -0500 Received: from [62.47.50.35] ([62.47.50.35]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MOfcU-1WMlYd3b6c-0063Mh for <16738@debbugs.gnu.org>; Mon, 24 Feb 2014 08:40:09 +0100 Message-ID: <530AF754.7050709@gmx.at> Date: Mon, 24 Feb 2014 08:40:04 +0100 From: martin rudalics MIME-Version: 1.0 To: E Sabof Subject: Re: bug#16738: Errors while resizing vertically References: <87y51fnx7u.fsf@gmail.com> <52FE008E.1010503@gmx.at> <53074FAE.60701@gmx.at> <5307B72B.9000808@cs.ucla.edu> <5307C53A.9070306@gmx.at> <87sir9nzqs.fsf@gmail.com> In-Reply-To: <87sir9nzqs.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:0MTYmMWBxaLF+Z62v++C4Ng4sgcDhfdPS1E5L/DsafCAiuw/RjY jXkOs3aN8mOZwyCk6DAuI4kk0olyZ1emw0ici8JsJtJUCyJmCvi1b92iHAkNC8x7RgflbZO kuabHhd6Eea+R8T9e9+VBxu51Ubx1J8Y28Y+03O/UbAKPv6TyBOHV0ffkjYlEiJUGFO8f1N U7SavpQGIr1P7c1jNrUkw== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16738 Cc: 16738@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > I've tried the new code. With the following: > > (setq window-min-height 1) > (set-face-attribute 'mode-line nil :overline "black") > > ,I'm unable to make windows any shorter than 2. 2 canonical lines. But this is to be expected? Otherwise, Emacs would truncate the text line by the extra pixels needed for the mode line. Whenever using a non-standard sized mode- or header-line _and_ a small window-min-height/-width I recommend setting `window-resize-pixelwise' to t. martin From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 08:06:58 2014 Received: (at 16738) by debbugs.gnu.org; 24 Feb 2014 13:06:58 +0000 Received: from localhost ([127.0.0.1]:37477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHvFK-0007fA-58 for submit@debbugs.gnu.org; Mon, 24 Feb 2014 08:06:58 -0500 Received: from mail-we0-f176.google.com ([74.125.82.176]:33027) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHvFI-0007eu-Bl for 16738@debbugs.gnu.org; Mon, 24 Feb 2014 08:06:56 -0500 Received: by mail-we0-f176.google.com with SMTP id q58so4716928wes.35 for <16738@debbugs.gnu.org>; Mon, 24 Feb 2014 05:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=WyiRHdd+sPk2ftp0kTq2SjYaX9gZanDf3COXngK4+NA=; b=iyKKpFog6mBi1bhu9acLBr3tKRu+88uFXRgcutbEAiG4+kgTBwLgFnn0qxCYX5e6oo FePfzl3SZTDmsJjIPF2vHBJy1QNIT8M+Q1eKdc/yrt5AdzilvBEyeWcRS5bUhNNHM1pX UJ1nG4vdYr2BFagA6YS8dtpfoWhNIghGomX7L/BCBaHRmEUwNHZ+9uQ5J52J/YuQehqP pLPf0dUcB6Vahb8SbSsmurc08zuZE918YhqbxwpjiEgsbLal63becnmF/AMW95UuOflW gj9UD1mZrRDRa4bs8xAgOjreKwrSt3ArJFsSjbLvaPTU1/fp3J0p8zq1UiIN6KiIz9/X jZYg== X-Received: by 10.181.13.40 with SMTP id ev8mr14366705wid.16.1393247209942; Mon, 24 Feb 2014 05:06:49 -0800 (PST) Received: from ubuntu ([2.218.154.175]) by mx.google.com with ESMTPSA id k10sm42002475wjf.11.2014.02.24.05.06.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 24 Feb 2014 05:06:48 -0800 (PST) References: <87y51fnx7u.fsf@gmail.com> <52FE008E.1010503@gmx.at> <53074FAE.60701@gmx.at> <5307B72B.9000808@cs.ucla.edu> <5307C53A.9070306@gmx.at> <87sir9nzqs.fsf@gmail.com> <530AF754.7050709@gmx.at> User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.6 From: E Sabof To: martin rudalics Subject: Re: bug#16738: Errors while resizing vertically In-reply-to: <530AF754.7050709@gmx.at> Date: Mon, 24 Feb 2014 13:06:47 +0000 Message-ID: <8761o4mzh4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16738 Cc: 16738@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) martin rudalics writes: > 2 canonical lines. But this is to be expected? Otherwise, Emacs would > truncate the text line by the extra pixels needed for the mode line. The finer details of pixel and character coexistence on graphical frames tend escape me. If I encounter any more errors, I will report them. Evgeni From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 26 05:16:02 2014 Received: (at 16738) by debbugs.gnu.org; 26 Feb 2014 10:16:03 +0000 Received: from localhost ([127.0.0.1]:40390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIbX0-0007C6-EM for submit@debbugs.gnu.org; Wed, 26 Feb 2014 05:16:02 -0500 Received: from mout.gmx.net ([212.227.15.19]:50711) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIbWx-0007Bg-Ec for 16738@debbugs.gnu.org; Wed, 26 Feb 2014 05:16:00 -0500 Received: from [62.47.38.172] ([62.47.38.172]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LpKKr-1WufV22bnp-00fANt for <16738@debbugs.gnu.org>; Wed, 26 Feb 2014 11:15:57 +0100 Message-ID: <530DBED4.7010902@gmx.at> Date: Wed, 26 Feb 2014 11:15:48 +0100 From: martin rudalics MIME-Version: 1.0 To: E Sabof Subject: Re: bug#16738: Errors while resizing vertically References: <87y51fnx7u.fsf@gmail.com> <52FE008E.1010503@gmx.at> <53074FAE.60701@gmx.at> <5307B72B.9000808@cs.ucla.edu> <5307C53A.9070306@gmx.at> <87sir9nzqs.fsf@gmail.com> <530AF754.7050709@gmx.at> <8761o4mzh4.fsf@gmail.com> In-Reply-To: <8761o4mzh4.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:7Z4AUdS4nXFF42vRGI8oNjQ3kk9Ykh7v6HEpUIiDo1VTy8b1yI6 /3UrV+m50EtEHSvnpD0/hZj3NKjVMAeqcL5PZU6RNO0C650wR/XtMAjqkH3oT4badzZ9u93 4hxhG+YHtHID+dQkaMl3eOSn1GBvNQhPHYDl9S4maDaVH6DfDNds7XFrpCQs3YAYfFnp56Q 7p7uzu5Kdf4U+GSmVuCBQ== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16738 Cc: 16738@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) >> 2 canonical lines. But this is to be expected? Otherwise, Emacs would >> truncate the text line by the extra pixels needed for the mode line. > > The finer details of pixel and character coexistence on graphical frames tend escape me. If I encounter any more errors, I will report them. Suppose you have a canonical character height of 8 pixels and a header and a mode line with 2 additional pixels each. If you now set `window-min-height' to 1, Emacs will display a text line of 4 pixels height if we do not round appropriately. That wouldn't look good. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 19 04:19:02 2014 Received: (at 16738-done) by debbugs.gnu.org; 19 Sep 2014 08:19:02 +0000 Received: from localhost ([127.0.0.1]:45137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUtPB-0004CG-Kg for submit@debbugs.gnu.org; Fri, 19 Sep 2014 04:19:02 -0400 Received: from mout.gmx.net ([212.227.17.20]:54146) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUtP9-0004C0-Ow for 16738-done@debbugs.gnu.org; Fri, 19 Sep 2014 04:19:00 -0400 Received: from [178.190.17.206] ([178.190.17.206]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MOSNd-1XRKdC0O2v-005rzb; Fri, 19 Sep 2014 10:18:59 +0200 Message-ID: <541BE6EA.9020502@gmx.at> Date: Fri, 19 Sep 2014 10:18:50 +0200 From: martin rudalics MIME-Version: 1.0 To: E Sabof Subject: Re: bug#16738: Errors while resizing vertically References: <87y51fnx7u.fsf@gmail.com> <53074F94.9090303@gmx.at> In-Reply-To: <53074F94.9090303@gmx.at> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:R+7QINDOyFBWK1JI4FghF/FYHEAuZSOFfR/CAEQVu0sV4DMkXjA 3jgwyNCBBeZvruMKQzmxlQYyW0MyT/cmNaMeA/pycq+9El9637D+sa3+ele0XytKt7i0Gpa sQdCk0nxwgZUsiNKj+y17DT2clWikRgCik0nXPWcUTqEYZipccGA8HeOS5kYC6nNr+tu8q2 LxOmhngDyIKan7XC1jWrQ== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16738-done Cc: 16738-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Hopefully fixed with revision 116504 on trunk. Please try again. Closing. martin From unknown Tue Aug 19 02:58:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 17 Oct 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator