unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 41332@debbugs.gnu.org
Subject: bug#41332: 27.0.60; :underline property doesn't work well with newline in :before-string
Date: Wed, 27 Jan 2021 20:05:28 -0500	[thread overview]
Message-ID: <807CE309-F9BA-42F3-B180-48073793D6CE@gmail.com> (raw)
In-Reply-To: <87ft2swvpb.fsf@gnus.org>

[-- Attachment #1: Type: text/plain, Size: 983 bytes --]



> On Jan 22, 2021, at 3:41 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> 
> Yuan Fu <casouri@gmail.com <mailto:casouri@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


[-- Attachment #2: Type: text/html, Size: 7533 bytes --]

      reply	other threads:[~2021-01-28  1:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-16 17:18 bug#41332: 27.0.60; :underline property doesn't work well with newline in :before-string Yuan Fu
2021-01-22 20:41 ` Lars Ingebrigtsen
2021-01-28  1:05   ` Yuan Fu [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=807CE309-F9BA-42F3-B180-48073793D6CE@gmail.com \
    --to=casouri@gmail.com \
    --cc=41332@debbugs.gnu.org \
    --cc=larsi@gnus.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).