From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Proposal: 'struct window' cleanup Date: Mon, 21 May 2012 23:30:58 -0400 Message-ID: References: <4FBA5060.7070702@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1337657473 9514 80.91.229.3 (22 May 2012 03:31:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 May 2012 03:31:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 22 05:31:12 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 1SWfoQ-0006eh-RM for ged-emacs-devel@m.gmane.org; Tue, 22 May 2012 05:31:06 +0200 Original-Received: from localhost ([::1]:40341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWfoQ-0001vr-1h for ged-emacs-devel@m.gmane.org; Mon, 21 May 2012 23:31:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWfoN-0001vF-9D for emacs-devel@gnu.org; Mon, 21 May 2012 23:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWfoL-0000iF-Kx for emacs-devel@gnu.org; Mon, 21 May 2012 23:31:02 -0400 Original-Received: from ironport-out.teksavvy.com ([206.248.143.162]:64200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWfoL-0000hu-HJ for emacs-devel@gnu.org; Mon, 21 May 2012 23:31:01 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAOMAh0/O+K+j/2dsb2JhbAA3o0KBCIF2AQUnLyMQCw4mEhQYDSSqJIwDYQkBAgECgz4Dg3AEo2OEWA X-IronPort-AV: E=Sophos;i="4.73,1,1325480400"; d="scan'208";a="181704693" Original-Received: from 206-248-175-163.dsl.teksavvy.com (HELO pastel.home) ([206.248.175.163]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 21 May 2012 23:30:59 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 9FB6B59198; Mon, 21 May 2012 23:30:58 -0400 (EDT) In-Reply-To: <4FBA5060.7070702@yandex.ru> (Dmitry Antipov's message of "Mon, 21 May 2012 18:25:36 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.143.162 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:150592 Archived-At: > + XWINDOW (selected_window)->start_at_line_beg_p = !NILP (Fbolp ()); I generally like the idea. But please don't use "_p" suffixes for variables. The "p" stands for "predicate" and a predicate is a kind of function, so that's not the right way to say that something is a boolean value. And as someone else mentioned, `dedicated' can take more values than just t and nil, so it's not a candidate for the rewrite you suggest. Stefan