From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: region-active-p Date: Wed, 31 Oct 2007 08:43:58 +0900 Message-ID: <87myu0w4ld.fsf@catnip.gol.com> References: Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193787873 7420 80.91.229.12 (30 Oct 2007 23:44:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 23:44:33 +0000 (UTC) Cc: rms@gnu.org, reinersteib+gmane@imap.cc, andreas.roehler@online.de, emacs-devel@gnu.org, juri@jurta.org, Stefan Monnier , "Stephen J. Turnbull" To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 31 00:44:34 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 1In0l3-0002mn-Um for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2007 00:44:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1In0ku-00036C-C3 for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 19:44:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1In0kq-00034e-1G for emacs-devel@gnu.org; Tue, 30 Oct 2007 19:44:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1In0ko-00033K-9s for emacs-devel@gnu.org; Tue, 30 Oct 2007 19:44:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1In0ko-00033E-6H for emacs-devel@gnu.org; Tue, 30 Oct 2007 19:44:14 -0400 Original-Received: from smtp02.dentaku.gol.com ([203.216.5.72]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1In0ke-0002lz-MD; Tue, 30 Oct 2007 19:44:05 -0400 Original-Received: from 203-216-97-240.dsl.gol.ne.jp ([203.216.97.240] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1In0kZ-0006Gn-0Q; Wed, 31 Oct 2007 08:43:59 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 1B8FB2F4C; Wed, 31 Oct 2007 08:43:58 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: (Drew Adams's message of "Tue\, 30 Oct 2007 12\:49\:32 -0700") Original-Lines: 31 X-Abuse-Complaints: abuse@gol.com 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:82177 Archived-At: "Drew Adams" writes: > A short name probably won't capture all 3 things this is a conjunction of: > (1) tmm mode, (2) mark-active, (3) point diff from mark. The last can > probably be dropped from the name, so perhaps `transient-region-p'? I dunno, I think most of these "alternative" names are not very good. Part of the problem is that "transient-mark-mode" is not a particularly clear name itself; it's one of those names that, if you sit down and think about it, you can kind of see where it came from, but it's ... awkward. Oh well, tmm is too embedded to change, but we should aim to use more intuitive names for new interfaces. "region-active-p" is by contrast, a really good name: I think it very naturally captures the "sense" of what it does, even to someone not entirely clear with the details of Emacs mark/region handling. Personally I think we should just use region-active-p, with non-empty test by default -- the incompatibility with xemacs is minor, and I think it's far more important that the code in Emacs be clear. I'm sure package authors can cope in those (very few) cases where it actually makes any difference. > Whatever the name is, the doc string should make 1,2,3 clear. Very true. -Miles -- Yo mama's so fat when she gets on an elevator it HAS to go down.