From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs 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 Message-ID: <807CE309-F9BA-42F3-B180-48073793D6CE@gmail.com> References: <1FA9454B-BDE8-4E12-8551-57D7FFCE8C17@gmail.com> <87ft2swvpb.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_744C7828-FC06-425C-B9A1-39B7597B13DA" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4134"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41332@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 28 02:06:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4vlC-0000tA-90 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 02:06:10 +0100 Original-Received: from localhost ([::1]:36832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4vlA-00037m-TE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jan 2021 20:06:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4vl4-00037T-Ap for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 20:06:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35025) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4vl4-0000rb-3D for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 20:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l4vl3-0006yc-Uo for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 20:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jan 2021 01:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41332 X-GNU-PR-Package: emacs Original-Received: via spool by 41332-submit@debbugs.gnu.org id=B41332.161179593826787 (code B ref 41332); Thu, 28 Jan 2021 01:06:01 +0000 Original-Received: (at 41332) by debbugs.gnu.org; 28 Jan 2021 01:05:38 +0000 Original-Received: from localhost ([127.0.0.1]:46571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4vkf-0006xy-Td for submit@debbugs.gnu.org; Wed, 27 Jan 2021 20:05:38 -0500 Original-Received: from mail-qt1-f178.google.com ([209.85.160.178]:38789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4vke-0006xo-2K for 41332@debbugs.gnu.org; Wed, 27 Jan 2021 20:05:36 -0500 Original-Received: by mail-qt1-f178.google.com with SMTP id c12so2994798qtv.5 for <41332@debbugs.gnu.org>; Wed, 27 Jan 2021 17:05:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=yuz04c4rblBUFhwZp7L2RB1Wy/G7C1ZXv+FF6TAc6II=; b=npD3ZdCdvEno1/zfj72I7o4utxVvMQqUIjXsCpX8Nkb5CFsxo+gXQ7pFSwo10kBqRJ FyuX7lczKI872B6WQhhz/t3G39TgSgUn0HAhonuleFl5MbZq2R95QTyESXJt33h/ArvK TiwNPVTwvKD5i6+8JSHPfTjQs2cJitQY51svz2LLcEiaLrcPMTLga30qMEHbyzRzOI9w WKkYSEfKAqR3xCW2Fb69qkuqzzYE8sH6R1ALnH7btat0aWeUm5AIsyxfOu6LEEj9Ceql 2wCrYqNwDEOKjizSriG+v9STtDX0xbQnLlfPmtniwLwbedI43zLSJ+oqdUZZkEYbLXN8 9vdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=yuz04c4rblBUFhwZp7L2RB1Wy/G7C1ZXv+FF6TAc6II=; b=Qh3kJhtyUwrF7l71gMHLpKzv9qb5KBW2DRHbpc14T06iMI8wNK6OSt6QnAZmJlHgIt qwdQBrLv6G7QopgU7rNIH6Dc5btWxdRNjQ4BvWQHhGFQZjq4TbFDgGtPrdbiZ0s2QLmG yW3LTF3CrU/1F6Ejy2ZlHAiCzrQ7d8au9XtpAViA+QcRRsm8yjwX99+F9LhUhYr1NHqa OcII3xhpaP1PBbXNNHYKVwGk7zkfculhR0khV3JF9fbUgJkyyg0+KKPdnaaP9IoA+V8h xpHcar2Xli8pewhh9+wKuh94SmfPm7R9NqlmlnKt30c514kl/di9p6Q6xyQECOyLaU3U Przg== X-Gm-Message-State: AOAM530E2/n2/cWKLRHPfzJi5i0+/+n62QvPV2GykAAgCPP/DYaxl4fX ixnzAIhf0RH66zELZ/dvaBiKEIbMiVvRtA== X-Google-Smtp-Source: ABdhPJzVMPOHVCtMDR3cS7dS3dHfzGojG7ZBZ6mhVef5rBxcLiaUu//l2PQlXX6LoAttcMpST50eeA== X-Received: by 2002:aed:2802:: with SMTP id r2mr12503516qtd.76.1611795930532; Wed, 27 Jan 2021 17:05:30 -0800 (PST) Original-Received: from ?IPv6:2601:98a:4102:3d80:88f5:c4e5:8d45:cf4a? ([2601:98a:4102:3d80:88f5:c4e5:8d45:cf4a]) by smtp.gmail.com with ESMTPSA id z16sm2531090qtb.73.2021.01.27.17.05.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jan 2021 17:05:29 -0800 (PST) In-Reply-To: <87ft2swvpb.fsf@gnus.org> X-Mailer: Apple Mail (2.3654.40.0.2.32) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198722 Archived-At: --Apple-Mail=_744C7828-FC06-425C-B9A1-39B7597B13DA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jan 22, 2021, at 3:41 PM, Lars Ingebrigtsen wrote: >=20 > Yuan Fu > writes: >=20 >> What I did: I inserted a fake newline by adding a :before-string = =E2=80=9C\n=E2=80=9D overlay in the >> middle of a link.=20 >> The problem: the underline goes all the way to the right (without = :extend t) >> Reproduce:=20 >> 1. Open an Org document, insert a link (C-c C-l some text RET some = text RET) >> 2. M-: and run this code: >>=20 >> (let* ((beg (point)) >> (end (1+ (point))) >> (ov (make-overlay beg end nil t))) >> (overlay-put ov 'before-string "\n")) >>=20 >> What I get (overlay line break): >=20 > 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. >=20 Cool, thanks for closing it! Yuan --Apple-Mail=_744C7828-FC06-425C-B9A1-39B7597B13DA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Jan 22, 2021, at 3:41 PM, Lars Ingebrigtsen <larsi@gnus.org> = wrote:

Yuan Fu <casouri@gmail.com> writes:

What I did: I inserted a fake newline = by adding a :before-string =E2=80=9C\n=E2=80=9D 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

= --Apple-Mail=_744C7828-FC06-425C-B9A1-39B7597B13DA--