From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#6493: Date: Mon, 2 Aug 2010 05:30:31 +0200 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280720294 9602 80.91.229.12 (2 Aug 2010 03:38:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2010 03:38:14 +0000 (UTC) Cc: Chong Yidong , Stephen Berman , 6493@debbugs.gnu.org, Johan =?UTF-8?Q?Bockg=C3=A5rd?= , Deniz Dogan To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 02 05:38:12 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 1Oflqq-0006V3-Gt for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Aug 2010 05:38:08 +0200 Original-Received: from localhost ([127.0.0.1]:59131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oflqp-0004Ri-V3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Aug 2010 23:38:08 -0400 Original-Received: from [140.186.70.92] (port=50325 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oflqi-0004RO-KV for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2010 23:38:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oflqg-0004NH-Pn for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2010 23:38:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52956) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oflqg-0004N2-OT for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2010 23:37:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ofljx-0008Rk-Te; Sun, 01 Aug 2010 23:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Aug 2010 03:31: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.128071983132460 (code B ref 6493); Mon, 02 Aug 2010 03:31:01 +0000 Original-Received: (at 6493) by debbugs.gnu.org; 2 Aug 2010 03:30:31 +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 1OfljT-0008RV-Ax for submit@debbugs.gnu.org; Sun, 01 Aug 2010 23:30:31 -0400 Original-Received: from mail-iw0-f172.google.com ([209.85.214.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfljS-0008RP-3q for 6493@debbugs.gnu.org; Sun, 01 Aug 2010 23:30:30 -0400 Original-Received: by iwn38 with SMTP id 38so3395100iwn.3 for <6493@debbugs.gnu.org>; Sun, 01 Aug 2010 20:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=5HVIEQDTS2sss+QWwSdjc59rU+I20YTNsfu1A4t+Tp4=; b=Ozw6rYL7J1H1Y87ADEBOE1SOlvVBikX1OTOIa5rSx22/E4NN1ViWNSiJN4eRiXN9Dn M6EZTyjPG4ZwOS40MKAQm4AGMwmDp6hpZATbyIGw+ZhfeToRs7GrJiPUo0n/0wJuEwaE Dao6UP8wlLuqABFVRrsHyoWnFZcG0f2lm7fow= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=g/m6w4plmXCyxirltAY15UneG1KDnpNjIn82IFkdr+J5q2GVWKORZWsP5e9a9EtlD7 Wqh8chVr9br08Tgvjt+wQux7Sa5IziHzly1S/tR/K6R++Jw/Nu57CXU5QwghH8cpqA3j vwVE8GQW4d3lImkZIu3odpT++TVsoLRuaY7R0= Original-Received: by 10.231.14.69 with SMTP id f5mr2037855iba.116.1280719851845; Sun, 01 Aug 2010 20:30:51 -0700 (PDT) Original-Received: by 10.231.162.4 with HTTP; Sun, 1 Aug 2010 20:30:31 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 01 Aug 2010 23:31: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:39129 Archived-At: 2010/8/1 Drew Adams : > 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. That's highly subjective IMHO. Do you oppose to the following (minimal) version? =C2=A0 =C2=A0 Juanma =3D=3D=3D modified file 'src/editfns.c' --- src/editfns.c 2010-07-29 15:50:04 +0000 +++ src/editfns.c 2010-08-02 03:27:32 +0000 @@ -337,5 +337,6 @@ DEFUN ("region-beginning", Fregion_beginning, Sregion_beginning, 0, 0, 0, - doc: /* Return position of beginning of region, as an integer. */) + doc: /* Return the integer value of point or mark, whichever is sma= ller. +Signal an error if the region is not active. */) (void) { @@ -344,5 +345,6 @@ DEFUN ("region-end", Fregion_end, Sregion_end, 0, 0, 0, - doc: /* Return position of end of region, as an integer. */) + doc: /* Return the integer value of point or mark, whichever is lar= ger. +Signal an error if the region is not active. */) (void) {