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: Mon, 25 Jun 2012 20:49:45 +0400 Message-ID: <4FE896A9.3090002@yandex.ru> References: <4FE827B6.6020306@yandex.ru> <4FE89369.2000708@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 1340642870 14047 80.91.229.3 (25 Jun 2012 16:47:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2012 16:47:50 +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 Mon Jun 25 18:47:46 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 1SjCRu-0002uh-DU for ged-emacs-devel@m.gmane.org; Mon, 25 Jun 2012 18:47:38 +0200 Original-Received: from localhost ([::1]:48877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjCRu-0003PU-CC for ged-emacs-devel@m.gmane.org; Mon, 25 Jun 2012 12:47:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjCRs-0003PG-Dk for emacs-devel@gnu.org; Mon, 25 Jun 2012 12:47:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjCRm-0001Ll-CF for emacs-devel@gnu.org; Mon, 25 Jun 2012 12:47:35 -0400 Original-Received: from forward5h.mail.yandex.net ([84.201.186.23]:44187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjCRl-0001La-Tm for emacs-devel@gnu.org; Mon, 25 Jun 2012 12:47:30 -0400 Original-Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward5h.mail.yandex.net (Yandex) with ESMTP id 5C82AD01715; Mon, 25 Jun 2012 20:47:26 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340642846; bh=jaEhp7/ovRMu5U1IHO/e6McV8GBN8fdxYddy+YZKq0E=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=hxrzY8Vt0Brkl2rIHnwQ0K0l8MGERGZYWrJXUharWp3bL/jibAtZyE+hYoKkb6QFp ksap5GDexgXKQA9KOxrnJoTz4iBNhRM/hdxBv7VhTH61VbyvpS75rivELPNvWFAJUY 28GtPudI8Rs/xcQkMgsUvha8EfaO0eFVb2nEs3CI= Original-Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 0A6AF1700115; Mon, 25 Jun 2012 20:47:25 +0400 (MSK) Original-Received: from 213-148-21-55.gelicon.ru (213-148-21-55.gelicon.ru [213.148.21.55]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id lPLK5kxc-lPLKiAPs; Mon, 25 Jun 2012 20:47:25 +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=1340642845; bh=jaEhp7/ovRMu5U1IHO/e6McV8GBN8fdxYddy+YZKq0E=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=dVxgTEp2uS7VrPR2Thzkcc3tOkUR+9qy6dfIoowsZ2WuHfumHPnjxu2OmmD5TE7+j AaZJjmyCGcePrGGZzZ4FDQ6Y5a7njBSpB4AZkMwLSWYbjC1yLW5lyj8VDKWN6se691 oQ7CtL+iV68IjqR8iabjCS5iJC8kscyI2UFghBoY= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: <4FE89369.2000708@gmx.at> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 84.201.186.23 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:151160 Archived-At: On 06/25/2012 08:35 PM, martin rudalics wrote: > > hscroll and min_hscroll are good candidates as well. > > How about window_end_pos, window_end_vpos and window_end_valid? xdisp.c assigns w->buffer to w->window_end_valid, so it may be tricky. I suppose window_end_valid may be a bitfield; so, NILP (W->window_end_valid) becomes !W->window_end_valid, EQ (w->window_end_valid, w->buffer) becomes W->window_end_valid, etc. Dmitry