From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Trunk emacs infelicity with linum mode Date: Sat, 06 Sep 2014 10:52:58 +0200 Message-ID: <540ACB6A.5020402@gmx.at> References: <87zjeix7hg.fsf@glaurung.internal.golden-gryphon.com> <838um1gar9.fsf@gnu.org> <87ppfdyhpf.fsf@glaurung.internal.golden-gryphon.com> <8361h5g7mv.fsf@gnu.org> <87zjehw5cs.fsf@glaurung.internal.golden-gryphon.com> <834mwog0u0.fsf@gnu.org> <87wq9kd5y3.fsf@glaurung.internal.golden-gryphon.com> <83oauve75i.fsf@gnu.org> <87lhpxaopi.fsf@glaurung.internal.golden-gryphon.com> <83vbp1deta.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1409993635 29730 80.91.229.3 (6 Sep 2014 08:53:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Sep 2014 08:53:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii , Manoj Srivastava Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 06 10:53:48 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XQBkh-000079-7A for ged-emacs-devel@m.gmane.org; Sat, 06 Sep 2014 10:53:47 +0200 Original-Received: from localhost ([::1]:33830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQBkg-0006Rs-UT for ged-emacs-devel@m.gmane.org; Sat, 06 Sep 2014 04:53:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQBkO-0006Rn-Fx for emacs-devel@gnu.org; Sat, 06 Sep 2014 04:53:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQBkG-0000Vx-L3 for emacs-devel@gnu.org; Sat, 06 Sep 2014 04:53:28 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:63483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQBk8-0000Sm-F6; Sat, 06 Sep 2014 04:53:12 -0400 Original-Received: from [194.118.137.128] ([194.118.137.128]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MXZbS-1XvWM51PPC-00WTTq; Sat, 06 Sep 2014 10:53:11 +0200 In-Reply-To: <83vbp1deta.fsf@gnu.org> X-Provags-ID: V03:K0:CFJ39LKUKpumqjMTbdZPDAjcX4p5pYOywK6UtxbjPTUVd3t3XVp heFTYWSPmYuglKR8u5NWABUt91b0L/2Bl6atU79Qv/vXr5Cvta6N7tfFdvo4iCIXTPrvG+U SA6CQy1DtR8z7UWFzXmlCU+mbQXW3b+nhHjtSJE4RfiUiDOBuQghtDQLoB+UOzXI7ETc5Ej cL7f1NdfgJOVA4hRYl5pg== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174054 Archived-At: >> $1 = 106 >> (gdb) print old_windows_width >> $2 = 10 >> ... >> *(gdb) print new_text_width >> $4 = 90 >> *(gdb) print old_text_width >> $5 = 10 >> (gdb) print new_windows_width >> $6 = 106 >> *(gdb) print old_windows_width >> $7 = 10 >> (gdb) print new_windows_height >> $8 = 230 >> *(gdb) print old_windows_height >> $9 = 10 >> (gdb) print new_pixel_width >> $10 = 108 >> *(gdb) print old_pixel_width >> $11 = 10 > > Thanks. > > Martin, could you take a look at this? The 10x10 are the dimensiuons > used when there's nothing to use initially, AFAIR. These are the old dimensions that should be replaced with new dimensions here. There's nothing strange in this adjust_frame_size call if it happens on line 3163 of xfns.c. However, that call should neither provoke a subsequent x_set_window_size call nor should it run any `window-configuration-change-hook'. It would be strange if the values above were printed after the call on line 3238 of xfns.c, though. At that time the old dimensions should have been replaced already. I'll try to look into this. martin