From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: get-text-property error if narrowed
Date: Sun, 30 Dec 2007 02:47:13 +0100 [thread overview]
Message-ID: <4776F8A1.3080607@gmail.com> (raw)
In-Reply-To: <E1J8n7L-0003sU-4g@fencepost.gnu.org>
Richard Stallman wrote:
> I think it happens when there is a property on an overlay.
> get-char-property finds that and returns it. If there is no overlay with
> the tested property then I get an error. (Note that I am using a CVS
> version from 2007-06-04.)
>
> I think it is a bug not to get an error in that case.
>
> However, you said you prefer that behavior. Could you tell me why?
It is just that I prefer consistency.
I made a mistake when I said that no error should be raised. It is
clearly better to get an error since in many cases it would be a mistake
to access a point outside the narrowed region.
next prev parent reply other threads:[~2007-12-30 1:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-28 20:24 get-text-property error if narrowed Lennart Borgman (gmail)
2007-12-29 13:51 ` Richard Stallman
2007-12-29 15:14 ` Lennart Borgman (gmail)
2007-12-30 1:37 ` Richard Stallman
2007-12-30 1:47 ` Lennart Borgman (gmail) [this message]
2007-12-30 14:02 ` Richard Stallman
2007-12-29 17:47 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4776F8A1.3080607@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).