unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Yuan Fu <casouri@gmail.com>
Cc: 41332@debbugs.gnu.org
Subject: bug#41332: 27.0.60; :underline property doesn't work well with newline in :before-string
Date: Fri, 22 Jan 2021 21:41:36 +0100	[thread overview]
Message-ID: <87ft2swvpb.fsf@gnus.org> (raw)
In-Reply-To: <1FA9454B-BDE8-4E12-8551-57D7FFCE8C17@gmail.com> (Yuan Fu's message of "Sat, 16 May 2020 13:18:15 -0400")

Yuan Fu <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.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2021-01-22 20:41 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 [this message]
2021-01-28  1:05   ` Yuan Fu

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=87ft2swvpb.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=41332@debbugs.gnu.org \
    --cc=casouri@gmail.com \
    /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).