From: Nathan Trapuzzano <nbtrap@nbtrap.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 16413@debbugs.gnu.org
Subject: bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer
Date: Sat, 11 Jan 2014 14:43:11 -0500 [thread overview]
Message-ID: <87zjn25mpc.fsf@nbtrap.com> (raw)
In-Reply-To: <83mwj2a9hq.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 11 Jan 2014 16:17:21 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> char-after is a primitive, and it behaves intuitively at (point-max) on
>> narrowed buffers. Why shouldn't other functions behave consistently?
>
> I don't know. One reason could be that we might need a primitive that
> can report properties of characters that are not reachable. But I
> don't have any evidence to that effect.
Even if there were such a need, it could always be achieved with
`save-restriction', etc. On the other hand, users should be able to
expect that functions behave consistently with respect to narrowing, and
these clearly don't
>> Nevermind about the search functions. I was confused about the behavior
>> of previous-single-property-change. The problem lies in the functions
>> that fetch the properties.
>
> The usual paradigm is to search for a possible place where the you
> might have the property, then examine the properties at that point.
> With this paradigm, if you never look at the properties when the
> search hits the limit of the search, you will never have this problem.
I was confused by how `previous-single-property-change' actually
doesn't look at the property at POSITION. It starts looking at (1-
position) and then find the first difference from that point. It's not
intuitive, but it makes sense if you think about it.
next prev parent reply other threads:[~2014-01-11 19:43 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-11 3:05 bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer Nathan Trapuzzano
2014-01-11 4:05 ` Daniel Colascione
2014-01-11 4:09 ` Daniel Colascione
2014-01-11 12:20 ` Nathan Trapuzzano
2014-01-11 13:08 ` Eli Zaretskii
2014-01-11 13:52 ` Nathan Trapuzzano
2014-01-11 14:17 ` Eli Zaretskii
2014-01-11 19:43 ` Nathan Trapuzzano [this message]
2014-01-11 8:01 ` Eli Zaretskii
2014-01-11 8:03 ` Daniel Colascione
2014-01-11 8:12 ` Eli Zaretskii
2014-01-11 8:17 ` Daniel Colascione
2014-01-11 8:27 ` Eli Zaretskii
2014-01-12 3:42 ` Stefan Monnier
2014-01-12 4:35 ` Daniel Colascione
2014-01-12 15:53 ` Eli Zaretskii
2014-01-12 21:37 ` Stefan Monnier
2014-01-12 22:17 ` Nathan Trapuzzano
2014-01-13 4:01 ` Stefan Monnier
2014-01-13 4:04 ` Daniel Colascione
2014-01-13 4:21 ` Stefan Monnier
2014-01-13 12:09 ` Nathan Trapuzzano
2014-01-13 14:51 ` Stefan Monnier
2014-01-11 12:24 ` Nathan Trapuzzano
2014-01-11 13:05 ` Eli Zaretskii
2014-01-11 13:56 ` Nathan Trapuzzano
2014-01-11 14:18 ` Eli Zaretskii
2014-01-11 19:44 ` Nathan Trapuzzano
2014-01-11 19:58 ` Eli Zaretskii
2014-01-11 20:13 ` Nathan Trapuzzano
2014-01-11 20:27 ` Eli Zaretskii
2014-01-11 20:40 ` Nathan Trapuzzano
2014-01-11 20:46 ` Eli Zaretskii
2022-04-28 11:09 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zjn25mpc.fsf@nbtrap.com \
--to=nbtrap@nbtrap.com \
--cc=16413@debbugs.gnu.org \
--cc=eliz@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.