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: text_property_stickiness Date: Tue, 27 Jun 2006 11:03:24 +0900 Message-ID: References: <87r71ee1uq.fsf@stupidchicken.com> <87ac81eyu7.fsf@stupidchicken.com> <87d5cvx0vd.fsf@stupidchicken.com> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1151373831 18019 80.91.229.2 (27 Jun 2006 02:03:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jun 2006 02:03:51 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 27 04:03:47 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fv2vZ-00086w-9q for ged-emacs-devel@m.gmane.org; Tue, 27 Jun 2006 04:03:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fv2vY-0006uw-Of for ged-emacs-devel@m.gmane.org; Mon, 26 Jun 2006 22:03:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fv2vN-0006uh-8r for emacs-devel@gnu.org; Mon, 26 Jun 2006 22:03:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fv2vK-0006uV-LK for emacs-devel@gnu.org; Mon, 26 Jun 2006 22:03:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fv2vK-0006uS-FT for emacs-devel@gnu.org; Mon, 26 Jun 2006 22:03:30 -0400 Original-Received: from [203.180.232.81] (helo=mgate01.necel.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fv37H-0007GC-Mj; Mon, 26 Jun 2006 22:15:52 -0400 Original-Received: from relay31.aps.necel.com (relay31 [10.29.19.54]) by mgate01.necel.com (8.13.6/8.13.1) with ESMTP id k5QMfe2J015595; Tue, 27 Jun 2006 11:03:25 +0900 (JST) Original-Received: from relay31.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay31.aps.necel.com with ESMTP; Tue, 27 Jun 2006 11:03:25 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.97.235] [10.114.97.235]) by relay31.aps.necel.com with ESMTP; Tue, 27 Jun 2006 11:03:25 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 3D084440; Tue, 27 Jun 2006 11:03:25 +0900 (JST) Original-To: Chong Yidong System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <87d5cvx0vd.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 26 Jun 2006 13:50:14 -0400") Original-Lines: 21 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:56208 Archived-At: Chong Yidong writes: >> Why do you think an error is the correct thing here? >> >> My feeling (when Richard brought this up earlier) was that perhaps the >> out-of-range value should be constrained to be within BEGV-ZV. > > I don't think it's the wrong thing to do. It's also similar to the > current behavior for other Lisp-visible functions, for example: > > C-u 10 a > M-: (narrow-to-region 3 4) > M-: (text-properties-at 1) I just checked the code and since `get_pos_property' is only called with the initial position being passed by the original caller, I think you're right, it does make sense to signal an error if it's out of range. -Miles -- `Suppose Korea goes to the World Cup final against Japan and wins,' Moon said. `All the past could be forgiven.' [NYT]