GNU bug report logs -
#41332
27.0.60; :underline property doesn't work well with newline in :before-string
Previous Next
Reported by: Yuan Fu <casouri <at> gmail.com>
Date: Sat, 16 May 2020 17:19:01 UTC
Severity: minor
Found in version 27.0.60
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #15 received at 41332 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> On Jan 22, 2021, at 3:41 PM, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
>
> Yuan Fu <casouri <at> gmail.com <mailto:casouri <at> gmail.com>> writes:
>
>> What I did: I inserted a fake newline by adding a :before-string ā\nā overlay in the
>> middle of a link.
>> The problem: the underline goes all the way to the right (without :extend t)
>> Reproduce:
>> 1. Open an Org document, insert a link (C-c C-l some text RET some text RET)
>> 2. M-: and run this code:
>>
>> (let* ((beg (point))
>> (end (1+ (point)))
>> (ov (make-overlay beg end nil t)))
>> (overlay-put ov 'before-string "\n"))
>>
>> What I get (overlay line break):
>
> I was able to reproduce this bug in Emacs 27, but not in Emacs 28, so
> I'm going to go ahead and guess that this has been fixed lately, and I'm
> closing this bug report. If the problem still persists, please respond
> to the debbugs address and we'll reopen.
>
Cool, thanks for closing it!
Yuan
[Message part 2 (text/html, inline)]
This bug report was last modified 4 years and 117 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.