From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: get-text-property error if narrowed Date: Sat, 29 Dec 2007 12:47:57 -0500 Message-ID: References: <47755B8E.5000401@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1198950492 30477 80.91.229.12 (29 Dec 2007 17:48:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2007 17:48:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 29 18:48:26 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 1J8fnN-0005Dg-Sk for ged-emacs-devel@m.gmane.org; Sat, 29 Dec 2007 18:48:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8fn2-0000hF-Kh for ged-emacs-devel@m.gmane.org; Sat, 29 Dec 2007 12:48:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J8fmy-0000dd-2m for emacs-devel@gnu.org; Sat, 29 Dec 2007 12:48:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J8fmw-0000a4-C6 for emacs-devel@gnu.org; Sat, 29 Dec 2007 12:47:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8fmv-0000ZA-Sw for emacs-devel@gnu.org; Sat, 29 Dec 2007 12:47:57 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J8fmv-0002Zw-IH for emacs-devel@gnu.org; Sat, 29 Dec 2007 12:47:57 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1J8fmv-0001iq-2r; Sat, 29 Dec 2007 12:47:57 -0500 In-reply-to: <47755B8E.5000401@gmail.com> (lennart.borgman@gmail.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:85620 Archived-At: get-text-property signals an error if the position argument is outside a narrowed region. That is very inconvenient. It would be much better if it behaved like get-char-property which does not do this. I just tried (get-char-property 1 'face) in my Rmail buffer and got an error, so I think the two functions are alike in this regard. I think that an error is the correct result in that case. (buffer-substring also gives an error when the positions are out of range.) Why do you think otherwise? Is there a case in which get-char-property fails to give this error?