From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: region-active-p Date: Sun, 21 Oct 2007 03:25:44 -0400 Message-ID: References: <200710191149.59775.andreas.roehler@online.de> <87bqau3iq5.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1192952474 23322 80.91.229.12 (21 Oct 2007 07:41:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Oct 2007 07:41:14 +0000 (UTC) Cc: andreas.roehler@online.de, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 21 09:41:14 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IjVQv-0006LA-ER for ged-emacs-devel@m.gmane.org; Sun, 21 Oct 2007 09:41:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjVQn-0000vb-Sl for ged-emacs-devel@m.gmane.org; Sun, 21 Oct 2007 03:41:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjVNr-0006ik-EQ for emacs-devel@gnu.org; Sun, 21 Oct 2007 03:38:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjVNm-0006ft-PD for emacs-devel@gnu.org; Sun, 21 Oct 2007 03:37:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjVNl-0006fn-HE for emacs-devel@gnu.org; Sun, 21 Oct 2007 03:37:57 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IjVNl-0005Li-0F for emacs-devel@gnu.org; Sun, 21 Oct 2007 03:37:57 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IjVBw-00070Q-TK; Sun, 21 Oct 2007 03:25:44 -0400 In-reply-to: <87bqau3iq5.fsf@jurta.org> (message from Juri Linkov on Fri, 19 Oct 2007 23:57:19 +0300) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:81349 Archived-At: > What about to introduce `region-active-p' and/or > `region-exists-p' for > (and mark-active transient-mark-mode) I think this is a good idea. Instead of putting everywhere a complex condition: I agree. But we need to decide whether (not (eq (region-beginning) (region-end))) should be part of it. The name `region-active-p' implies that it doesn't matter whether the region is empty.