GNU bug report logs -
#49695
27.2; wrap-prefix text property doesn't work with display property
Previous Next
Reported by: Shingo Tanaka <shingo.fg8 <at> gmail.com>
Date: Thu, 22 Jul 2021 12:52:01 UTC
Severity: normal
Found in version 27.2
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49695 in the body.
You can then email your comments to 49695 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49695
; Package
emacs
.
(Thu, 22 Jul 2021 12:52:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Shingo Tanaka <shingo.fg8 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 22 Jul 2021 12:52:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
wrap-prefix text property doesn't work properly when a character with display
property is in the beginning of a line. Here is how to reproduce.
1. Goto *scratch* buffer
2. Evaluate below preconditioning function.
(defun preconditioning ()
(interactive)
(goto-char (point-min))
(insert "This is a sample text.\n")
(forward-line -1)
(put-text-property (line-beginning-position) (line-end-position)
'wrap-prefix " ")
(search-forward "This is a ")
(put-text-property (point) (1+ (point)) 'display "X")
(goto-char (point-min)))
3. Execute it with M-x preconditioning
4. Confirm the text "This is a sample text." is inserted in the beginning of
the buffer and your cursor is as well. Note that this text has wrap-prefix
property and "X" is the character which has display property.
5. Start typing spaces (or any character) and observe how the text is wrapped.
6. You will see wrap-prefix works correctly until wrapped point gets "X" like:
This is a Xample
text.
7. However, you will see it doesn't work when "X" gets in the beginning of the
line like:
This is a
Xample text.
This issue is reproducible either word-wrap is nil or t, and also with Emacs
28.0.50.
Regards,
Shingo
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49695
; Package
emacs
.
(Thu, 22 Jul 2021 18:27:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 49695 <at> debbugs.gnu.org (full text, mbox):
> Date: Thu, 22 Jul 2021 21:51:23 +0900
> From: Shingo Tanaka <shingo.fg8 <at> gmail.com>
>
> wrap-prefix text property doesn't work properly when a character with display
> property is in the beginning of a line. Here is how to reproduce.
>
> 1. Goto *scratch* buffer
> 2. Evaluate below preconditioning function.
>
> (defun preconditioning ()
> (interactive)
> (goto-char (point-min))
> (insert "This is a sample text.\n")
> (forward-line -1)
> (put-text-property (line-beginning-position) (line-end-position)
> 'wrap-prefix " ")
> (search-forward "This is a ")
> (put-text-property (point) (1+ (point)) 'display "X")
> (goto-char (point-min)))
>
> 3. Execute it with M-x preconditioning
> 4. Confirm the text "This is a sample text." is inserted in the beginning of
> the buffer and your cursor is as well. Note that this text has wrap-prefix
> property and "X" is the character which has display property.
> 5. Start typing spaces (or any character) and observe how the text is wrapped.
> 6. You will see wrap-prefix works correctly until wrapped point gets "X" like:
>
> This is a Xample
> text.
>
> 7. However, you will see it doesn't work when "X" gets in the beginning of the
> line like:
>
> This is a
> Xample text.
Thanks, should be fixed now on the master branch.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49695
; Package
emacs
.
(Sun, 21 Aug 2022 18:10:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 49695 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Thanks, should be fixed now on the master branch.
This was a year ago, but the bug report wasn't closed at the time, so
I'm doing that now.
bug closed, send any further explanations to
49695 <at> debbugs.gnu.org and Shingo Tanaka <shingo.fg8 <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 21 Aug 2022 18:10:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 19 Sep 2022 11:24:15 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 212 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.