From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#6493: Date: Sun, 1 Aug 2010 14:17:35 -0700 Message-ID: References: <969BF38D66A0450F88923BFF8942AC68@us.oracle.com> <6B20ABD762564DE2AEBA810B54EB46FD@us.oracle.com> <21D2CFB9CFF34D04906728113DA42430@us.oracle.com> <6C93D3874C204C6BACB34962781ED1C9@us.oracle.com> <87k4ommcc6.fsf@stupidchicken.com> <87y6d2jfm2.fsf@escher.home> <5C27C3C9B5A74BDC85D2D78C4E68F276@us.oracle.com> <87iq3y9v2w.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280698695 26486 80.91.229.12 (1 Aug 2010 21:38:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 Aug 2010 21:38:15 +0000 (UTC) Cc: 'Chong Yidong' , 'Stephen Berman' , 6493@debbugs.gnu.org, 'Deniz Dogan' To: "'Juanma Barranquero'" , "'Johan =?UTF-8?Q?Bockg=C3=A5rd'"?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 01 23:38:08 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OfgEO-0006LD-PT for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Aug 2010 23:38:05 +0200 Original-Received: from localhost ([127.0.0.1]:57405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfgEO-0008Bh-9z for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Aug 2010 17:38:04 -0400 Original-Received: from [140.186.70.92] (port=38224 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfgEI-0008BP-Kc for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2010 17:37:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OfgEH-0007C9-IA for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2010 17:37:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46946) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfgEH-0007C5-D4 for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2010 17:37:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Offuz-0005PL-PM; Sun, 01 Aug 2010 17:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Aug 2010 21:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6493 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6493-submit@debbugs.gnu.org id=B6493.128069744120777 (code B ref 6493); Sun, 01 Aug 2010 21:18:01 +0000 Original-Received: (at 6493) by debbugs.gnu.org; 1 Aug 2010 21:17:21 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OffuL-0005P4-9Y for submit@debbugs.gnu.org; Sun, 01 Aug 2010 17:17:21 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OffuJ-0005Oz-LW for 6493@debbugs.gnu.org; Sun, 01 Aug 2010 17:17:20 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o71LHd7Z030022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 1 Aug 2010 21:17:40 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o71L7DAZ024823; Sun, 1 Aug 2010 21:17:37 GMT Original-Received: from abhmt003.oracle.com by acsmt354.oracle.com with ESMTP id 474676271280697455; Sun, 01 Aug 2010 14:17:35 -0700 Original-Received: from dradamslap1 (/10.159.219.98) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 01 Aug 2010 14:17:34 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcsxrAd9shuMuEuNQne+/FCCyfyFfQAEbUQg In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4C55E472.00F3:SCFMA4539814,ss=1,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 01 Aug 2010 17:18:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39114 Archived-At: > > Something that should be mentioned in the doc strings is=20 > > the following: > > > > =A0 =A0The next two functions signal an error if the mark does not = point > > =A0 =A0anywhere. If Transient Mark mode is enabled and > > =A0 =A0`mark-even-if-inactive' is `nil', they also signal an=20 > > error if the=A0mark is inactive. Why should that be mentioned? What important problem or use case would we be pointing out? > Can we simplify that to just say that they signal an error if the > region is not active? (The region-* commands are somewhat specific, so > it's reasonable to suppose that the programmer knows what he's doing > or can lookup the docs.) I have no real objection to a clear statement of the error handling. In general it is a good idea to mention important error cases. But I do not think it is necessary to mention error handling at all for = these doc strings. In this case, saying more is saying less, and likely to = just add confusion. It's pretty obvious that a numerical comparison needs to be done to = determine the smaller/larger of point and mark, and it's similarly obvious that if = the numerical value of one of them (mark) cannot be determined then an error = would be raised. That does not follow _logically_ - we could return the other value = (point is numeric) or some special value to indicate this condition, but raising = an error seems like common sense and what users would expect. I see no reason to = add info about the error handling.