From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: 'struct window' cleanup #3 Date: Sun, 01 Jul 2012 17:42:32 +0200 Message-ID: References: <4FE827B6.6020306@yandex.ru> <4FE89369.2000708@gmx.at> <4FE896A9.3090002@yandex.ru> <4FE9643C.1090201@gmx.at> <83a9zq9jhp.fsf@gnu.org> <83lij98nhj.fsf@gnu.org> <4FEAB1EA.3000307@yandex.ru> <83ehp08y8f.fsf@gnu.org> <4FEB4A1E.5060203@yandex.ru> <838vf88s3i.fsf@gnu.org> <4FF0673B.9010002@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341157371 29100 80.91.229.3 (1 Jul 2012 15:42:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2012 15:42:51 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 01 17:42:49 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 1SlMIP-0000Cw-6c for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2012 17:42:45 +0200 Original-Received: from localhost ([::1]:56455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlMIO-0003oC-1K for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2012 11:42:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlMIL-0003ni-JJ for emacs-devel@gnu.org; Sun, 01 Jul 2012 11:42:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SlMIK-0003AC-4i for emacs-devel@gnu.org; Sun, 01 Jul 2012 11:42:41 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:46850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlMIH-00039c-Hh; Sun, 01 Jul 2012 11:42:37 -0400 Original-Received: from frontend4.mail.m-online.net (unknown [192.168.8.183]) by mail-out.m-online.net (Postfix) with ESMTP id 3WQG844N4Hz3hhct; Sun, 1 Jul 2012 17:42:59 +0200 (CEST) Original-Received: from igel.home (ppp-88-217-103-97.dynamic.mnet-online.de [88.217.103.97]) by mail.mnet-online.de (Postfix) with ESMTPA id 3WQG7Y6L0NzbbsD; Sun, 1 Jul 2012 17:42:33 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 36402CA2A2; Sun, 1 Jul 2012 17:42:33 +0200 (CEST) X-Yow: I am NOT a nut.... In-Reply-To: <4FF0673B.9010002@yandex.ru> (Dmitry Antipov's message of "Sun, 01 Jul 2012 19:05:31 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 212.18.0.10 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:151334 Archived-At: Dmitry Antipov writes: > So if-statement may be simplified to: > > if (((!NILP (Vtransient_mark_mode) > && !NILP (BVAR (XBUFFER (w->buffer), mark_active))) > != w->region_showing) || w->region_showing) Which is the same as: if (w->region_showing || (!NILP (Vtransient_mark_mode) && !NILP (BVAR (XBUFFER (w->buffer), mark_active)))) Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."