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: Sun, 28 Oct 2007 16:32:20 +0900 Message-ID: <87ejffzocb.fsf@catnip.gol.com> References: <200710191149.59775.andreas.roehler@online.de> <87hckeigev.fsf@uwakimon.sk.tsukuba.ac.jp> <200710261017.33513.andreas.roehler@online.de> <877ilai63w.fsf@uwakimon.sk.tsukuba.ac.jp> <87bqal2kxb.fsf@uwakimon.sk.tsukuba.ac.jp> <87y7dp13pn.fsf@catnip.gol.com> <878x5npw30.fsf@uwakimon.sk.tsukuba.ac.jp> 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 1193556771 14597 80.91.229.12 (28 Oct 2007 07:32:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2007 07:32:51 +0000 (UTC) Cc: rms@gnu.org, reinersteib+gmane@imap.cc, andreas.roehler@online.de, emacs-devel@gnu.org, juri@jurta.org, monnier@iro.umontreal.ca To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 28 08:32:52 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 1Im2df-0007HQ-Iv for ged-emacs-devel@m.gmane.org; Sun, 28 Oct 2007 08:32:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Im2dW-0003TS-NN for ged-emacs-devel@m.gmane.org; Sun, 28 Oct 2007 03:32:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Im2dT-0003TC-ED for emacs-devel@gnu.org; Sun, 28 Oct 2007 03:32:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Im2dR-0003T0-UH for emacs-devel@gnu.org; Sun, 28 Oct 2007 03:32:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Im2dR-0003Sx-OQ for emacs-devel@gnu.org; Sun, 28 Oct 2007 03:32:37 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Im2dJ-0002tj-FQ; Sun, 28 Oct 2007 03:32:29 -0400 Original-Received: from smtp02.dentaku.gol.com ([203.216.5.72]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Im2dI-0003x7-Qy; Sun, 28 Oct 2007 03:32:29 -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 1Im2dB-0004Yz-T8; Sun, 28 Oct 2007 16:32:21 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 773C82F4C; Sun, 28 Oct 2007 16:32:20 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <878x5npw30.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Sun\, 28 Oct 2007 15\:55\:15 +0900") Original-Lines: 21 X-Abuse-Complaints: abuse@gol.com X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:81922 Archived-At: "Stephen J. Turnbull" writes: > I can't think of an operation that *shouldn't* check offhand, but if > there is one, it would be a bad idea for these APIs to check because > they wouldn't work with such an API if they did. Since they're only > used interactively AFAIK, postponing the check to the function that > actually does the work is no big loss. It's not a "big loss" but it is silly bloat. Putting the check in the common function will also likely reduce bugs because it will avoid the case where the function writer forgets to do the extra check (and as undo has shown, _not_ checking can be quite confusing). If we're going for 100% rigid API compatibility, even in the most obscure corner cases, then of course it shouldn't check. But I'm not sure we are. -Miles -- P.S. All information contained in the above letter is false, for reasons of military security.