From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UPsCDIpYEWFkSAEAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 18:32:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oAWoB4pYEWGnGAAAbx9fmQ (envelope-from ) for ; Mon, 09 Aug 2021 16:32:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D28882AC8F for ; Mon, 9 Aug 2021 18:32:08 +0200 (CEST) Received: from localhost ([::1]:33964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mD8C7-0003Ag-Os for larch@yhetil.org; Mon, 09 Aug 2021 12:32:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBjRs-0006m9-Ju for emacs-orgmode@gnu.org; Thu, 05 Aug 2021 15:54:36 -0400 Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]:42760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBjRq-0006qJ-74 for emacs-orgmode@gnu.org; Thu, 05 Aug 2021 15:54:36 -0400 Received: by mail-io1-xd29.google.com with SMTP id h1so8218896iol.9 for ; Thu, 05 Aug 2021 12:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dac-unicamp-br.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=Ej2Y4mkduN6+/UPV6nbfFwEOfV3yr0Og94AhwYl62eM=; b=TU+Gs2WgvcCw2LPmP7G7L1WMQA2IENqOt2yjO5gEJnKvVZQgBZYQGM8LqTA5Mysh/7 PAoUO2Q4KvWIlsMjjb4MXtTP5t3Si78Ezo3htnlYo/w4QnPSkuo4INhj446GzMnSr0Mt AiU9yY1RjGXsK6idac9+DOH802TAlDWK56EWmQVZ6lk9vNrzeFfbxV9t5wayknAbvXpC hH209iv1ps90WxFipNWTFqk+KPmyA4XAG5pDrFHbNL3f8eEaA22gUqcbCdsm8zk4E7RE RjVaVGCW5jFdmE/+SzR08/CGput67c0YEqyDhhiWkIDsirLnhROv23FW4zy2v1DDo8Q1 BSkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Ej2Y4mkduN6+/UPV6nbfFwEOfV3yr0Og94AhwYl62eM=; b=FtHkkZwSEkasFl7Mcl/i54B87MLn3UM91ygI+2ZBZcvvuxgyzkXcdHgFo9qdPDbFCW dV8LK2j83YNMU+FkQ50U1esJqgRGuPZU47URXenkkkPEWReL32k8mWLUrTNWv1XWVJaP c3+JrA0nkR/YuTfwPE+c6wlRqsls57jPRPcNKm1PgWdqVEPoW1zFklhkItaIkGtTqhP0 nWlrv9fZPJApggVb2UMSfS6b9GLbfU2iDvJv8KVylTPbonhPGNCBhO4SEqzgrFMTHdpY saHa+aZYp9DSfWsmx7fZk8KVE/lMNN8JL2k0pBVrrUTYWQDZZojCRgGd2dAO6TInukcD SX7A== X-Gm-Message-State: AOAM533KxxRAqO6hcLHuyHHuI7GjfVF1mcYjg5+V4NQjyy5QZupaeoiH +Iso4IZFQf+QV8HCymCMfXbm0SMwb9jQnoDDMNKwml94p8o/VAAU X-Google-Smtp-Source: ABdhPJygk+temMFEYecOH6xUSGD6U0HLWXRNWpwLlOWozm1IkVDbDos2IJQOZzZfx7oCfV33wYHXSEi7AaZwayEuj/o= X-Received: by 2002:a5d:85ca:: with SMTP id e10mr187489ios.193.1628193270552; Thu, 05 Aug 2021 12:54:30 -0700 (PDT) MIME-Version: 1.0 From: Lucas Viana Reis Date: Thu, 5 Aug 2021 16:54:57 -0300 Message-ID: Subject: [BUG] Fill-paragraph issue with hidden emphasis markers and composed characters [9.5 (9.5-b83ae59 @ /home/lucas/.emacs.d/.local/straight/build-28.0.50/org/)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000846cc805c8d54947" Received-SPF: pass client-ip=2607:f8b0:4864:20::d29; envelope-from=l240191@dac.unicamp.br; helo=mail-io1-xd29.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_ALL=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 09 Aug 2021 12:30:41 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628526729; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Ej2Y4mkduN6+/UPV6nbfFwEOfV3yr0Og94AhwYl62eM=; b=nXEnqwHrgINs4nWpL141h+s8XmI6yt1K1omjzzHyZExL28wQzj6sdyVHooPVaVh0+ZR9d9 DseZj5sau7UfSFa2o6xZOzLPZT3KbVgTatI6PQb5SFR9YsDqMulc8Jf+HNUzuZj/AfxnWQ OR/+CxPbftKgKAfJTaMaALZSPETRvDK9VwghnNCQTXrqUFl4BQisUH844WpZtABi51dcSl TvBMdZPN2IED7HQHHlfvfjZdVU5elsPbxa0/k8hJbK+XTumrqnnh/LMfg84Fn+IXbOkzeo t+6HUzNet2ClPS2oSa8H+qZeRqEl3Pcpxc/HyDq3P0PN/8Tz9shNV+zE0qGtMA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628526729; a=rsa-sha256; cv=none; b=gYagFqOgduwWcWpkWBifUlvWgwTMDyLNq3n5DMI9YZp9rqhB37xn6hHWdPJqkvRbFVjHBu e2dZf25NOWTKlb5Mq9NwIvIhcgPG739I/OeQWBL0t2CluJiDqKfpsrn8ED1jRcIFfBWdsZ V7YtkMocQQKTHVNay8wo8XCJ163vvllCcrShEZXCugdHC0hinzOVDXjvv9ooHjzyJkh30Q vvSg4SLGC4L2HgD7nDLM3NYc/bFKaaVbyCF6kIFPtrnZBhT8HyN24C6gYM52Xz1q4SGmTa C6IXsFp1+NR56nhReMuvjGpMEhaJ2buCHi6fjYL5K8qqisytKjE9AMgP9+TxbQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dac-unicamp-br.20150623.gappssmtp.com header.s=20150623 header.b=TU+Gs2Wg; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dac-unicamp-br.20150623.gappssmtp.com header.s=20150623 header.b=TU+Gs2Wg; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: D28882AC8F X-Spam-Score: -1.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4jdse1zAyZmR --000000000000846cc805c8d54947 Content-Type: text/plain; charset="UTF-8" Hello, I'm not sure if this is a general issue with fill-paragraph or with the way org hides emphasis markers, but I'm facing this problem with bare emacs + org: Steps to reproduce: 1. Start emacs -Q (no configuration) 2. Set some variables: (setq org-pretty-entities t org-hide-emphasis-markers t fill-column 80) 3. Create an empty org-mode buffer with the following text: This is a /italic sentence for a buggy/ \alpha\beta\gamma\delta\nu\epsilon paragraph in terms of filling, see, it's not filled yet and still the line above ends early. So far so good, and with the previous config the emphasis markers are now hidden and the greek letters appear as unicode characters. 4. Hit M-q (either fill-paragraph or org-fill-paragraph, both have the same issue) The first line wrongly wraps after "buggy" and leave a big empty space after that, as if the greek letters were not composed. 5. In the same buffer, compare the behaviour with this paragraph (very similar, but note the ! character after "buggy"): This is a /italic sentence for a buggy/ ! \alpha\beta\gamma\delta\nu\epsilon paragraph in terms of filling, see, it's not filled yet and still the line above ends early. When I fill this slighly different paragraph with M-q, it wraps the text in the right way and the first line is completely filled. So the issue happens when a hidden emphasis marker is immediately followed (maybe after a space) by a composed charater like \alpha. I am also facing the same issue when the characters are composed by prettify-symbols-mode instead of org-pretty-entities, and also with other types of hidden emphasis markers. If org-hide-emphasis-markers is disabled then the issue doesn't happen. Thanks in advance! Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.17.4) of 2021-07-09 Package: Org mode version 9.5 (9.5-b83ae59 @ /home/lucas/.emacs.d/.local/straight/build-28.0.50/org/) --000000000000846cc805c8d54947 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello, I'm not sure if this is a general issue wi= th fill-paragraph or with the way org hides emphasis markers, but I'm f= acing this problem with bare emacs + org:

Steps to= reproduce:
1. Start emacs -Q (no configuration)
2. Set= some variables:

(setq<=
/span> org-pretty-entities t
      org-hide-emphasis-markers t
      fill-column 80)

3. = Create an empty org-mode buffer with the following text:

This is a /italic sentence for a buggy/ \alpha\beta\gamma\de=
lta\nu\epsilon
paragraph in terms of filling, see, it's not filled yet and still the l=
ine above
ends early.

So far so good, and with the pre= vious config the emphasis markers are now hidden and the greek letters appe= ar as unicode characters.

4. Hit M-q (either fill-= paragraph or org-fill-paragraph, both have the same issue)
The fi= rst line wrongly wraps after "buggy" and leave a big empty space = after that, as if the greek letters were not composed.

=
5. In the same buffer, compare the behaviour with this paragraph (very= similar, but note the ! character after "buggy"):

=
This is a /italic sentence for a buggy/ ! \alpha\beta\ga=
mma\delta\nu\epsilon
paragraph in terms of filling, see, it's not filled yet and still the l=
ine above
ends early.

When I fill this = slighly different paragraph with M-q, it wraps the text in the right way an= d the first line is completely filled.

So the issu= e happens when a hidden emphasis marker is immediately followed (maybe afte= r a space) by a composed charater like \alpha. I am also facing the same is= sue when the characters are composed by prettify-symbols-mode instead of or= g-pretty-entities, and also with other types of hidden emphasis markers. If= org-hide-emphasis-markers is disabled then the issue doesn't happen.

Thanks in advance!

Ema= cs =C2=A0: GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.= 24.29, cairo version 1.17.4)
=C2=A0of 2021-07-09
Package: Org mode ve= rsion 9.5 (9.5-b83ae59 @ /home/lucas/.emacs.d/.local/straight/build-28.0.50= /org/)


--000000000000846cc805c8d54947--