From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yGi0H3EEE2EOdQEAgWs5BA (envelope-from ) for ; Wed, 11 Aug 2021 00:57:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OEcaG3EEE2GiVQAAB5/wlQ (envelope-from ) for ; Tue, 10 Aug 2021 22:57:53 +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 A675AA191 for ; Wed, 11 Aug 2021 00:57:52 +0200 (CEST) Received: from localhost ([::1]:38706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDagw-0000rf-Qq for larch@yhetil.org; Tue, 10 Aug 2021 18:57:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDagK-0000rW-Mg for emacs-orgmode@gnu.org; Tue, 10 Aug 2021 18:57:12 -0400 Received: from mr85p00im-hyfv06021401.me.com ([17.58.23.190]:49906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDagJ-00006J-6I for emacs-orgmode@gnu.org; Tue, 10 Aug 2021 18:57:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1628636225; bh=LbRre5eAfCOMfNx8nonv9Yaaa+sFhgUgv2O6S2Tp1c4=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=T1EdyYdm8NmYHMLIMAt6AJAvAeTFY5hGri3/AC6ZkSHiu8rdRDmg780e/MNMQSsZy v0i0MTo+lC2QejA5k/d+lgFmvRjaA7e7jYZ+GUHJw7wKeXQZ7IAJfFnuXDc2JVPYV1 S2p7rCxdDT/kBZdgrkcAHKo9nwJXeldAZ8tMeji+3BCDBgoiZh+ZqrxZ6wpyqoRgWE ocjBCjtylgHK8ANstmTWO2J7Q8IquisZ7S5tjrVutWHnxUoxT10Y78Zmaw0aOC2vsF HAzjRS6SolhveGwAfEYMtdKXfnkAm6ptkM2OjbPTKhF3oWMGZflWPTQa1a60U8J0qn XDG+/Z350tblA== Received: from Workstation.local (78-141-116-131.dynamic.orange.sk [78.141.116.131]) by mr85p00im-hyfv06021401.me.com (Postfix) with ESMTPSA id 418F69C075F; Tue, 10 Aug 2021 22:57:04 +0000 (UTC) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: emacs-orgmode@gnu.org Cc: Lucas Viana Subject: Re: [BUG] Fill-paragraph issue with hidden emphasis markers and composed characters In-Reply-To: References: Date: Wed, 11 Aug 2021 00:57:00 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.391,18.0.790,17.0.607.475.0000000_definitions?= =?UTF-8?Q?=3D2021-08-10=5F07:2021-08-10=5F01,2021-08-10=5F07,2020-04-07?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 adultscore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 clxscore=1011 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2108100151 Received-SPF: pass client-ip=17.58.23.190; envelope-from=salutis@me.com; helo=mr85p00im-hyfv06021401.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1628636273; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LbRre5eAfCOMfNx8nonv9Yaaa+sFhgUgv2O6S2Tp1c4=; b=ZBBKb7vG3GnXPKYgrjf3SKxif7L/IdoNKH5m3oAaQFsRQ02ecc0/qSCo0Co65GngV1NCTm du6RwJjW6WW0Nr1N6fEmt32XCju8LTdHL8pwZAE7hcJ0BHdbKgj2KSo0taRzQC8AYbGmHT wHX6j1r6cCswpQXLY4hytEhlvmS+bJQmM/y2CwXcUbktXrvzmLho/YCQ/trPsVY2DijnTS NlP2NvR1YWubt8pXqgiknSsXQdb+HtYmKUBduYUbURRaOgcox1pmuPJMEtISue3IekMPzh 2fhQusIpe4DuQynots//Kc9jnayEX/Zrss5/c8cBZA1HhlYYvFiWXowiow7UhQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628636273; a=rsa-sha256; cv=none; b=IJ1K9a5whxhG5lLFMNd2gcprqImYA41TfvBj41GeTG5r4QtqaPG1BlhiVpHekVn89RHpHY ivBhWS77JIef2lFiEB7quZX92dgqP9eooagS0/DWIwGd8kSpyFG79KNbxmFV+rqoMXnB6W +sBsBcoGxCe6FLQ45GnAyd87I7iPxmbiCGirsiwUj6NWe+aBFFlmM5HoXJ082E2ZxUOe7W tAz3ciH3kp9Ks0+X07FRuWqZYKWlqNw9OHP1lQygEwWj6JcV7fzxG9QvKBb3+ktrzsrUxm /WRQS3gacLEWMDbtIxqS76Gv7+GId3XmhgN/QTHtmuriF9jNIE/psI4O5wI39A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=T1EdyYdm; dmarc=pass (policy=quarantine) header.from=me.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: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=T1EdyYdm; dmarc=pass (policy=quarantine) header.from=me.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: A675AA191 X-Spam-Score: -3.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8S+Zh9n9c5ra On a related note, I recently disabled=20 =E2=80=9Corg-hide-emphasis-markers,=E2=80=9D only to discover that the colu= mns=20 in all my tables that use =3Dmono=3D text do not line up. Ouch! R+ Lucas Viana writes: > Dear list,=20 >=20 > I'm not sure if this is a general issue with fill-paragraph or=20 > with the way org hides emphasis markers, but I'm facing a=20 > problem with bare emacs + org.=20 >=20 > Steps to reproduce: 1. Start emacs -Q (no configuration) 2. Set=20 > some variables:=20 >=20 > (setq org-pretty-entities t=20 > org-hide-emphasis-markers t fill-column 80)=20 >=20 > 3. Create an empty org-mode buffer with the following paragraph:=20 > "" This is a /italic sentence for a buggy/=20 > \alpha\beta\gamma\delta\nu\epsilon paragraph in terms of=20 > filling, see, it's not filled yet and still the line above ends=20 > early. ""=20 >=20 > So far so good, and with the previous config the emphasis=20 > markers are now hidden and the greek letters appear as unicode=20 > characters.=20 >=20 > 4. Hit M-q (either fill-paragraph or org-fill-paragraph, both=20 > have the same issue) The first line wrongly wraps after "buggy"=20 > and leaves a big empty space after that, as if the greek letters=20 > were not composed.=20 >=20 > 5. In the same buffer, compare the behaviour with this paragraph=20 > (very similar, but note the ! character after "buggy"): "" This=20 > is a /italic sentence for a buggy/ !=20 > \alpha\beta\gamma\delta\nu\epsilon paragraph in terms of=20 > filling, see, it's not filled yet and still the line above ends=20 > early. ""=20 >=20 > When I fill this slightly different paragraph with M-q, it wraps=20 > the text in the right way and the first line is completely=20 > filled.=20 >=20 > So the issue happens when a hidden emphasis marker is=20 > immediately followed (maybe after a space) by a composed=20 > character like \alpha. I am also facing the same issue when the=20 > characters are composed by prettify-symbols-mode instead of=20 > org-pretty-entities, and also with other types of hidden=20 > emphasis markers. If org-hide-emphasis-markers is disabled then=20 > the issue doesn't happen.=20 >=20 > Thanks in advance!=20 >=20 > Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+=20 > Version 3.24.29, cairo version 1.17.4)=20 > of 2021-07-09=20 > Package: Org mode version 9.5 (9.5-b83ae59 @=20 > /home/lucas/.emacs.d/.local/straight/build-28.0.50/org/)=20 --=20 "Contrariwise," continued Tweedledee, "if it was so, it might be;=20 and if it were so, it would be; but as it isn't, it ain't. That's=20 logic." -- Lewis Carroll, Through the Looking Glass Rudolf=20 Adamkovi=C4=8D Studenohorsk=C3=A1 25 84103 Bratislava=20 Slovakia [he/him]