From: Werner LEMBERG <wl@gnu.org>
To: rudalics@gmx.at
Cc: 3400@emacsbugs.donarmstrong.com
Subject: bug#3400: bug in add-text-properties
Date: Thu, 28 May 2009 18:26:58 +0200 (CEST) [thread overview]
Message-ID: <20090528.182658.131797994.wl@gnu.org> (raw)
In-Reply-To: <4A1EAA91.6030301@gmx.at>
>> The first line properly disappears, however, the first character in
>> the now visible part of the buffer (the letter `a') makes problems:
>> It incorrectly refers to the character at buffer position 1 (the
>> digit `1'). In particular, `C-u C-x =' for letter `a' shows
>>
>> ---
>>
>> character: 1 (49, #o61, #x31)
> [...]
>> There are text properties here:
>> intangible t
>> invisible t
>
> `add-text-properties' describes the character after point and when
> you call `describe-char' point is at the beginning of the buffer.
Hmm. If I have
12345
ABCDE
and I make `12345' + the newline after the `5' invisible and
intangible, I see
ABCDE
in the buffer. If the blinking cursor stays on the `A', and you press
`C-x =', do you *really* expect to see the properties of character `1'
instead of `A'? This is completely counterintuitive IMHO.
> So IMHO this is not a bug in `add-text-properties'.
Maybe. I don't know the internal details of Emacs. However, calling
add-text-properties triggers the problem I experience.
> It's arguable whether point should be allowed to be there in your
> case,
In this particular case I don't care where `point' is. I want to get
the correct result of `C-x ='.
> but then where to move point when the entire buffer is invisible?
This might be handled as a special case.
>> A side effect is that `C-a' no longer moves to the beginning of the
>> line.
>
> A side effect of what?
Of calling add-text-properties as described in my report. I do expect
that C-a moves the blinking cursor to the beginning of the line and
not to the *second* character in the buffer, letter `B'.
Werner
next prev parent reply other threads:[~2009-05-28 16:26 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-27 5:26 bug#3400: bug in add-text-properties Werner LEMBERG
2009-05-28 15:15 ` martin rudalics
2009-05-28 16:26 ` Werner LEMBERG [this message]
2009-05-28 17:12 ` martin rudalics
2009-05-28 18:28 ` Stefan Monnier
2009-05-28 21:48 ` Werner LEMBERG
2009-05-29 2:05 ` Stefan Monnier
2009-05-29 7:00 ` Werner LEMBERG
2009-05-29 13:24 ` Lennart Borgman
2009-05-29 14:51 ` Drew Adams
2009-05-29 15:01 ` Stefan Monnier
2009-05-29 15:20 ` Werner LEMBERG
2009-05-29 16:08 ` Stefan Monnier
2009-05-29 16:47 ` martin rudalics
2009-05-30 5:51 ` Werner LEMBERG
2009-05-30 10:12 ` martin rudalics
2009-05-30 7:01 ` Werner LEMBERG
2009-05-30 10:01 ` Stephen Berman
2016-07-27 22:07 ` Nicolas Petton
2016-07-29 2:26 ` npostavs
2022-04-22 12:59 ` bug#3400: Let C-x = show info about visible and invisible text near point 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=20090528.182658.131797994.wl@gnu.org \
--to=wl@gnu.org \
--cc=3400@emacsbugs.donarmstrong.com \
--cc=rudalics@gmx.at \
/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.