From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QCLiOH9YEWG2SAEAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 18:31:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id ONWQNH9YEWFSFwAAbx9fmQ (envelope-from ) for ; Mon, 09 Aug 2021 16:31:59 +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 58A7E2A745 for ; Mon, 9 Aug 2021 18:31:59 +0200 (CEST) Received: from localhost ([::1]:33966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mD8Bx-0003Ah-E4 for larch@yhetil.org; Mon, 09 Aug 2021 12:31:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mC3JE-00085V-46 for emacs-orgmode@gnu.org; Fri, 06 Aug 2021 13:07:00 -0400 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:39929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mC3JB-0007sn-Nq for emacs-orgmode@gnu.org; Fri, 06 Aug 2021 13:06:59 -0400 Received: by mail-lj1-x233.google.com with SMTP id h2so638364lji.6 for ; Fri, 06 Aug 2021 10:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=1GLNYl9nUrlNIYnY5GLbfsWSvte46LFBlZM0sFU4S+0=; b=SRMKr98C6jNFS6Oyza5gql9ZH4A4CtWjXqeGcyC8a9YwF92wmksIoH+69J4BH8LML4 zko4tOekk3+ZI5aVWi6soaJviKQUW8oSrOC5kEHaPprIVy1I/ymKPmVAfyta9rTwrRnc UVCikW+cGTZuAl4oAK1lBUpGsLTFskXEss9h2dxIlBv6Qp5/vKXum8pIPrFH7Eyrc38F ZNT4/Z3wxXOTysBJgv5WVMlMJk2282hZg171ionXrVd/dVK8Gidk+VO0qu+yM2YBLUL6 ttVg62nUyMZOXnSV7/7iWyIV67xKuTT73NfA5rkJjHCq2NMOFR2poXd+UUFO+FBGPK+1 66dw== 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=1GLNYl9nUrlNIYnY5GLbfsWSvte46LFBlZM0sFU4S+0=; b=A9qz7kW3mlCxusZOyNvcHTgeYwHJPKGiLoSMidZn2HDwo4MoYPktDK1bBkwbwYAtL6 cnu4wdwlS3aNYb+/GQ+gdL8K7WgAUmPAJbav2czyA0v7UCRx3tWZeE7FG/8fNLK2a3U+ Mkd3oZ81y18SkoWoNTerDiDblldsUf8fA3gxK1Bf3buoUzbZ621UfiR001351ADTiXVf HGNM0soK5DGZkafH/ErhsVEDEtPhWloQnuV31/jMIOfSS20xhP+r2HICusRwP+ZvOnXC 2G6LwqRBpVVD3INnkX0saj4Bj+bzfw4674hEQVUKacD4Tk1J3mWf//oyBGYsFbNtn2UR 8K2w== X-Gm-Message-State: AOAM533iz7HaVm63MeVw3MF8EgWK7SiCU16QmkLEcK9i/32AoDHLt0X1 +8L1hZVGSnW9k8HZmFF+B6UA7IJosGaBX+WUJLXDDF4iF7/WuA== X-Google-Smtp-Source: ABdhPJz1bpqWvudJbHx5/NSk9g+5nNDa/Sdf7/IPXiGLZxsMocOUdba8VKmnegVJEHFJOLn0mDdluT7h7yE6+Lxoyuc= X-Received: by 2002:a05:651c:b12:: with SMTP id b18mr7204119ljr.106.1628269614467; Fri, 06 Aug 2021 10:06:54 -0700 (PDT) MIME-Version: 1.0 From: Lucas Viana Date: Fri, 6 Aug 2021 14:07:22 -0300 Message-ID: Subject: [BUG] Fill-paragraph issue with hidden emphasis markers and composed characters To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000f8110105c8e70f29" Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=lucasvianareis@gmail.com; helo=mail-lj1-x233.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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=1628526719; 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=1GLNYl9nUrlNIYnY5GLbfsWSvte46LFBlZM0sFU4S+0=; b=T3ec8Uxi8TfReswY0eYBH2Zc6oyU6ZVxQUgv/SgLS92xdktR2TL4ewRI5wT/nVQ1NGODWX nGZCA67oB0whQGlfarpXWEgkdqhFwoiMc0dPr8WygyQ1hbIHVPvhFX3mTWsk90Y/2YDQWq J4qpxzmR9ZycTRtDTbQT8bhfk23L8yovTcyjG/JuxckAaDQEymbvSfAgtO8UVt1DwNL6Jm xVnXj6mhu53/uKM1mP/diQHMTIHy6sMLjof9LPJ0KmqW88I8Nyz1EQh8nPV54sT57Qoa0y PIcjBHN0Ol4DZBB3v+KfNe5i0fKDtN/pumSJMMK7OUsHcthwxHbXOkDuK4grQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628526719; a=rsa-sha256; cv=none; b=qgBqwc/iTjeWxTbTzTdzn3BuflPb7ALzMHY++xIa2oNBrs3Z0uVqFpwEzmP2eTxOGwcXc0 kDokQCW4yIqBQuRMqPPopxezscjsbPzVEt5vZhZlFaVMjLSrtYkeOja1KJ6ZXMRQExkCua Ts8Fh0DgrVOYQS9Nqr6NkxCIY9cYPrrHR8dhLEXWFL0ChwxfH5KZmkI3OKJ/Heb8gUt929 phnpMWVKsfLNR1MqZGVU1RWQxYnFJNGk3pmCHzSF7NU1aMp4HhiADd7Zdx7+qN9MF8Vklv u2lXCddTSvRgrIozc4vu2HJFOaCAtKJcgfVPV5KnHJT/FnUauf3UWWivIxrFRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=SRMKr98C; dmarc=pass (policy=none) header.from=gmail.com; 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: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=SRMKr98C; dmarc=pass (policy=none) header.from=gmail.com; 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: 58A7E2A745 X-Spam-Score: -2.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: ZZ0T5P5Nsv9o --000000000000f8110105c8e70f29 Content-Type: text/plain; charset="UTF-8" Dear list, 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 a 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 paragraph: "" 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 leaves 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 slightly 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 character 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/) --000000000000f8110105c8e70f29 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear list,

I'm not = sure if this is a general issue with fill-paragraph or with the way org hid= es emphasis markers, but I'm facing a problem with bare emacs + org.
Steps to reproduce:
1. Start emacs -Q (no configuration)
2. Se= t some variables:

(setq org-pretty-entities t
=C2=A0 =C2=A0 =C2= =A0 org-hide-emphasis-markers t
=C2=A0 =C2=A0 =C2=A0 fill-column 80)
=

3. Create an empty org-mode buffer with the following paragr= aph:
""
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 h= idden 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 leaves a big empt= y 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 l= ine above
ends early.
""

When I fi= ll this slightly different paragraph with M-q, it wraps the text in the rig= ht 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 character 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-hid= e-emphasis-markers is disabled then the issue doesn't happen.

Th= anks in advance!

Emacs =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 version 9.5 (9.5-b83ae59 @ /home/lucas/.emacs.d/.l= ocal/straight/build-28.0.50/org/)
--000000000000f8110105c8e70f29--