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 ms11 with LMTPS id oL9rDEm0LWADMgAA0tVLHw (envelope-from ) for ; Thu, 18 Feb 2021 00:26:49 +0000 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 IIRECEm0LWDWLAAAbx9fmQ (envelope-from ) for ; Thu, 18 Feb 2021 00:26:49 +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 7B9E32A34B for ; Thu, 18 Feb 2021 01:26:48 +0100 (CET) Received: from localhost ([::1]:41824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCX9a-0006NC-3o for larch@yhetil.org; Wed, 17 Feb 2021 19:26:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCX8l-0006Mv-9V for emacs-orgmode@gnu.org; Wed, 17 Feb 2021 19:25:55 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:50603) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCX8i-00088I-67 for emacs-orgmode@gnu.org; Wed, 17 Feb 2021 19:25:54 -0500 Date: Thu, 18 Feb 2021 00:25:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1613607947; bh=nLsQHeJRfc5NAJFatEzdzcrMijCegDqw9Nq/ItVYwk8=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=S5IDVWnN+6xEf5GBnmQzI1706KTc05ExG4qADb71A8y4pDnwlU/Dyvmf818VtsNc8 g0qOeGMvDCMfa4KpqLajbHk29VmEEnc2pPNBp3W+mLsmFGWDsGpHIW5Ms1mXkdcBtv XZuR6jilp7XHxSqwZAVjqpxYo21HxrIPth2JobOg= To: "Berry, Charles" From: Okam Cc: emacs-orgmode@gnu.org Subject: Re: Org failing to format a link with verbatim text Message-ID: <7456c577-b2d9-f847-8bdd-db602ad4d0ed@protonmail.com> In-Reply-To: <200F8C74-6673-4EF4-A8DC-A45C5E865A2A@health.ucsd.edu> References: <009a7aa5-3b23-b79a-9e65-a3a1bce645d7@protonmail.com> <03D50C6E-50A5-4D4A-BB71-B8C1DBAFAC0E@health.ucsd.edu> <4d4823eb-926a-0b5b-a594-69b8d3c9cbe8@protonmail.com> <200F8C74-6673-4EF4-A8DC-A45C5E865A2A@health.ucsd.edu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_lqgdAQaWpgQDsxj0M5d1Pr3GeiH8jooTJLkv9EHAw" Received-SPF: pass client-ip=185.70.40.131; envelope-from=okamsn+emacs-org@protonmail.com; helo=mail-40131.protonmail.ch 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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: , Reply-To: Okam Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.96 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=S5IDVWnN; dmarc=pass (policy=quarantine) header.from=protonmail.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: 7B9E32A34B X-Spam-Score: -0.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: wmfuD/Cx07xL This is a multi-part message in MIME format. --b1_lqgdAQaWpgQDsxj0M5d1Pr3GeiH8jooTJLkv9EHAw Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2/17/21 1:00 PM, Berry, Charles wrote: > > > >> On Feb 17, 2021, at 6:48 AM, Okam wrot= e: >> >> On 2/16/21 6:52 PM, Berry, Charles" via "General discussions about >> Org-mode. wrote: >>> >>> >>> >>>> On Feb 16, 2021, at 1:20 PM, Okam wr= ote: >>>> >>>> I am using the Emacs gccemacs branch with Org version "9.5-dev". >>>> I have noticed that when I try to insert the stored link >>>> >>>> file:doc/loopy-doc.org::*Destructuring with =3Ddash=3D >>>> >>>> and use the heading as the link description, that Org cannot format th= is >>>> link correctly in all circumstances, and tries to make the verbatim te= xt >>>> break out from the link. >>> >>> The last para of (info "(org) External Links") says in part: >>> >>> #+begin_quote >>> If spaces must be part of the link (for example in >>> =E2=80=98bbdb:R.*Stallman=E2=80=99), or if you need to remove ambiguiti= es about the >>> end of the link, enclose the link in square or angular brackets. >>> #+end_quote >>> >>> To me, this sounds like advice not to drop external links amid normal t= ext. i.e. put them in brackets instead. >>> >>> HTH, >>> >>> Chuck >>> >>> >> >> Hello, >> >> The link is being insert with the command `org-insert-link`, and the >> information is gotten by the command `org-store-link`. The link is >> being surrounded by square brackets when `org-insert-link` inserts the >> link. However, Org mode does not format the link correctly, as seen in >> the pictures I sent. >> >> I am wondering whether I should report this as a bug, or whether this >> problem is already fixed, as I do not update Org frequently. >> >> Thank you. >> > > I cannot reproduce this. These keystrokes: > > #+begin_example > M-x org-insert-link file:doc/loopy-doc.org::*Destructuring with =3Ddash= =3D RET Destructuring with =3Ddash=3D RET > #+end_example > > yield a link displayed as underlined `Destructuring with =3Ddash=3D' and = show the actual link when the cursor hovers over the description. Further,= when I run `org-fill-paragraph' I sometimes get newlines inserted in the d= escription, but the link is still functional. > > What is needed is an ECM [1] that will lead to the problem you describe. > > Screenshots do not help very much as the precise sequence of keystrokes t= hat results in the issue cannot be reverse engineered, so others cannot eas= ily trace the action. > > Chuck > > p.s. Using Org version 9.4.3 > > [1] https://orgmode.org/worg/org-faq.html#ecm > Hello, I have attached a minimum working example. The bad formatting also occurs when just pasting the link. In the example, Org mode highlights from beginning of the phrase "=3Dverbatim text 1=3D" to the end of the phrase "=3Dverbatim text 3=3D" in the verbatim font style. Part of the link is hidden as normal, but the text within the region of now verbatim text is not hidden, including some of the brackets. I have reproduced this without loading a configuration, so it is present in version of Org included in the Gccemacs branch of Emacs. Does that help? Thank you. --b1_lqgdAQaWpgQDsxj0M5d1Pr3GeiH8jooTJLkv9EHAw Content-Type: text/plain; name=org-formatting-ecm.org Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=org-formatting-ecm.org VGhlIGxpbmsgW1twaHJhc2Ugd2l0aCA9dmVyYmF0aW0gdGV4dCAxPV1bYSBwaHJhc2Ugd2l0aCA9 dmVyYmF0aW0gdGV4dCAyPV1dIGZvbGxvd2VkIGJ5IGEgcGhyYXNlIGluID12ZXJiYXRpbSB0ZXh0 IDM9IGZvbGxvd2VkIGJ5IG5vcm1hbCB0ZXh0LgoK --b1_lqgdAQaWpgQDsxj0M5d1Pr3GeiH8jooTJLkv9EHAw--