From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: 'struct window' cleanup #2 Date: Tue, 26 Jun 2012 13:06:52 +0400 Message-ID: <4FE97BAC.5060501@yandex.ru> References: <4FE827B6.6020306@yandex.ru> <4FE89369.2000708@gmx.at> <4FE896A9.3090002@yandex.ru> <4FE9643C.1090201@gmx.at> 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: dough.gmane.org 1340701482 1725 80.91.229.3 (26 Jun 2012 09:04:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jun 2012 09:04:42 +0000 (UTC) Cc: Stefan Monnier , Emacs development discussions To: Martin Rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 26 11:04:39 2012 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 1SjRhP-0007GN-4z for ged-emacs-devel@m.gmane.org; Tue, 26 Jun 2012 11:04:39 +0200 Original-Received: from localhost ([::1]:42021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjRhP-0000jv-2h for ged-emacs-devel@m.gmane.org; Tue, 26 Jun 2012 05:04:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjRhM-0000jp-99 for emacs-devel@gnu.org; Tue, 26 Jun 2012 05:04:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjRhH-0002dn-A4 for emacs-devel@gnu.org; Tue, 26 Jun 2012 05:04:35 -0400 Original-Received: from forward6.mail.yandex.net ([77.88.60.125]:52237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjRhG-0002dV-SV for emacs-devel@gnu.org; Tue, 26 Jun 2012 05:04:31 -0400 Original-Received: from smtp8.mail.yandex.net (smtp8.mail.yandex.net [77.88.61.54]) by forward6.mail.yandex.net (Yandex) with ESMTP id A628B11221FE; Tue, 26 Jun 2012 13:04:28 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340701468; bh=FtulbxkOe/RQE0PbKEXpLzNJSAJsP25hCR0XGbWbX7Q=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=upwN1txAaFZVNzSKaVxKtgZNFZGblB4iNBMXqBG53f/OFr77BAcX0/AOMihgNb2N2 mskysWckjT75ahsq65vsevOgROfj04fz+14McOv/1FBNBhjPg/74XITu6V42ImiqO7 fancUU0Pp/EdeU64sKQlzdnvWdPzakEtjsOECwdo= Original-Received: from smtp8.mail.yandex.net (localhost [127.0.0.1]) by smtp8.mail.yandex.net (Yandex) with ESMTP id 72AFA1B6073F; Tue, 26 Jun 2012 13:04:28 +0400 (MSK) Original-Received: from 213-148-21-55.gelicon.ru (213-148-21-55.gelicon.ru [213.148.21.55]) by smtp8.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 4SOqEheJ-4SO0SRYA; Tue, 26 Jun 2012 13:04:28 +0400 X-Yandex-Rcpt-Suid: rudalics@gmx.at X-Yandex-Rcpt-Suid: monnier@iro.umontreal.ca X-Yandex-Rcpt-Suid: emacs-devel@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340701468; bh=FtulbxkOe/RQE0PbKEXpLzNJSAJsP25hCR0XGbWbX7Q=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=tmFMrxWA0J0iZjvWDxmlbPeeVtpu/9TcB9FzLnPsIlMmiK8jLOnWrAU4FGoFl/Jpw 7YV87Z+qDOjC4yWauRglv0Pte+wNYFgvR6OBXZKyfg1By9wiVXYGmec2AxAqYTFilM bqIwZ71OTxzJfUqzhXvLLYqGA+rJ51a4QRTIExJw= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: <4FE9643C.1090201@gmx.at> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 77.88.60.125 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:151173 Archived-At: On 06/26/2012 11:26 AM, martin rudalics wrote: > Indeed. Looks like a hack to detect whether the window still shows the > same buffer. Anyway, window_end_pos and window_end_vpos are the more > promising candidates (if Eli agrees). Can you see whether the part > > /* When splitting windows or for new windows, it happens that > redisplay is called with a nil window_end_vpos or one being > larger than the window. This should really be fixed in > window.c. I don't have this on my list, now, so we do > approximately the same as the old redisplay code. --gerd. */ > && INTEGERP (w->window_end_vpos) > > in xdisp.c still makes sense? IIUC window_end_vpos is always an > integer. Hmmm... I'll try, although xdisp.c looks like a nightmare and I haven't yet tried to understand how it works :-). Dmitry