[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16413: 24.3.50; Inconsistent behavior of text property functions in
From: |
Nathan Trapuzzano |
Subject: |
bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer |
Date: |
Sat, 11 Jan 2014 07:24:30 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> I don't even agree it's not intuitive: in the eob case there's nothing
> at point-max, while in a narrowed buffer there's a character there.
> Narrowing is not documented to make the text outside the region to
> magically disappear, it just prevents point from moving there.
>
> Nathan, could you show an example where this hurts anything besides
> intuition?
It's unintuitive or at least inconsistent because other functions
(e.g. `char-after') treat the high edge of a narrowed buffer as though
it were the actual end of the buffer.
For an example of where this is problematic, look at the patch I
submitted last night on this list. I was patching functions that use
the text property search functions and had to make a special case for
where point is at (point-max) and the buffer is narrowed.
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, (continued)
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Stefan Monnier, 2014/01/11
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Daniel Colascione, 2014/01/11
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Eli Zaretskii, 2014/01/12
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Stefan Monnier, 2014/01/12
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Nathan Trapuzzano, 2014/01/12
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Stefan Monnier, 2014/01/12
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Daniel Colascione, 2014/01/12
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Stefan Monnier, 2014/01/12
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Nathan Trapuzzano, 2014/01/13
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Stefan Monnier, 2014/01/13
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer,
Nathan Trapuzzano <=
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Eli Zaretskii, 2014/01/11
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Nathan Trapuzzano, 2014/01/11
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Eli Zaretskii, 2014/01/11
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Nathan Trapuzzano, 2014/01/11
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Eli Zaretskii, 2014/01/11
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Nathan Trapuzzano, 2014/01/11
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Eli Zaretskii, 2014/01/11
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Nathan Trapuzzano, 2014/01/11
- bug#16413: 24.3.50; Inconsistent behavior of text property functions in narrowed buffer, Eli Zaretskii, 2014/01/11