unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: get-text-property error if narrowed
Date: Sat, 29 Dec 2007 12:47:57 -0500	[thread overview]
Message-ID: <E1J8fmv-0001iq-2r@fencepost.gnu.org> (raw)
In-Reply-To: <47755B8E.5000401@gmail.com> (lennart.borgman@gmail.com)

    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?

      parent reply	other threads:[~2007-12-29 17: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)
2007-12-30 14:02         ` Richard Stallman
2007-12-29 17:47 ` Richard Stallman [this message]

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=E1J8fmv-0001iq-2r@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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).