all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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 15:13:44 -0500	[thread overview]
Message-ID: <87mwj2l1jb.fsf@nbtrap.com> (raw)
In-Reply-To: <83a9f29tok.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 11 Jan 2014 21:58:51 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Nathan Trapuzzano <nbtrap@nbtrap.com>
>> Cc: 16413@debbugs.gnu.org
>> Date: Sat, 11 Jan 2014 14:44:28 -0500
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> >> But when dealing with text properties (and apparently only when dealing
>> >> with text properties), there are _two_ special cases: (point-max) in a
>> >> narrowed buffer, and (point-max) in a widened buffer.
>> >
>> > Not if you never look at the properties when you hit the limit of the
>> > search for previous/next property change.
>> 
>> That may be true for searching, but the problem for fetching
>> (`get-text-property', etc.) remains.
>
> You need to fetch after searching, and never do that when the search
> hits the limit.

I'm sorry, but this just seems totally contrived.  Are people actually
supposed to know this?  And who's to say there's searching involved?
What if I just want to look at the text properties at point?  It
shouldn't matter whether the buffer is narrowed.  (If you think it
_should_ matter, then why shouldn't it also matter for `char-after',
etc.  It's a consistency problem.)





  reply	other threads:[~2014-01-11 20:13 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
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 [this message]
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=87mwj2l1jb.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.