From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christoph Arenz Newsgroups: gmane.emacs.bugs Subject: bug#43587: 27.1; Org is breaking links Date: Thu, 24 Sep 2020 12:23:17 +0200 Message-ID: <7e243d01-6d98-bda3-94bf-c0841a32f4ac@web.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------F0A77418E1C2CDFA767EE407" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33728"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 To: 43587@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 24 12:26:05 2020 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 1kLORw-0008fP-LL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Sep 2020 12:26:04 +0200 Original-Received: from localhost ([::1]:40972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLORv-0005VM-ER for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Sep 2020 06:26:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLOPy-000485-Ss for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 06:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLOPy-0005Ba-HM for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 06:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLOPy-0001n9-CV for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 06:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christoph Arenz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Sep 2020 10:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43587 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16009430086844 (code B ref -1); Thu, 24 Sep 2020 10:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Sep 2020 10:23:28 +0000 Original-Received: from localhost ([127.0.0.1]:38683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLOPP-0001mK-MU for submit@debbugs.gnu.org; Thu, 24 Sep 2020 06:23:27 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLOPL-0001m8-OV for submit@debbugs.gnu.org; Thu, 24 Sep 2020 06:23:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLOPK-00034y-Vz for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 06:23:23 -0400 Original-Received: from mout.web.de ([212.227.15.4]:38085) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLOPI-00057u-PO for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 06:23:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1600942997; bh=/e7Y8cfN9SwNrQQ+ym4Fde790TdCLRg5ArnXgwiVsnM=; h=X-UI-Sender-Class:From:Subject:To:Date; b=cUZtGXMpgJP6UD8fryU7h+bjRJ3VucZ7RTdj/RWesmoofj+hVCU1p+rZUCT2QDnnY o6xcMZAy8y5GYTt9XaPcAoMmnbiaUMxw6+ncyun4lO+L1/rRI+ghzU+1jCr0FtKDg1 YoKncSKL0ujU8W6ceGgLO8sP3P/NtvTOALvf7eZ8= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from oc3710058320.ibm.com ([94.16.136.53]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0McnaL-1k400q2g2j-00Huvf for ; Thu, 24 Sep 2020 12:23:17 +0200 Content-Language: en-US X-Provags-ID: V03:K1:3S8Sh1T+PTfZPoRBfWkyLnK26EFsajd1dZ9GMnpG6fSkFfKq4wj zUaq0RYmtfMVOJc96wzT/eo5WqIp/yKX+mDf4aBPdEa74pqY0Y+Cxmp8XGTEep5EAN2hNAJ cHce2JXwq1FMgSunOiBaDSZyg1UnLJJ8RpipkwN+a/ADGjnZPnno2bLyWmAngpmSsF5D4Xb Nkcz/yaUTgsWul7Ry4vTA== X-UI-Out-Filterresults: notjunk:1;V03:K0:21NQWcyzCgw=:YZYXIf6zIO2BZ9V2l6+8CZ nsPBVE18031j/2AU/R7MI7vT/HpYPu0FmlIXik+sergnCzipx1sXTNMcT9pFi7L4wqQn9osEZ E0etb7kyMf4/1bKcq1StqCCO6jDbZcfVzrTxb5yILdVrJutit9hXH+BlVAmPpr2flB+5GjcUc 75EZ3ZnPz7QEVcFec87GKqDSr/vnTB/d8UY02xH5YEf5JWha6SWxZ7Db0XSWhou+EApori451 NbZACPtKeuzvHLZDk8vRYKRA98PPuSyK6q/Acogj8kcyaH9zeDL08Z9tIG43PwaSTazlrBJas cDwQyI1DQ3zvpCylhqDO9RqrobW5xsx+hZbxQvicQPjKNYPDK3ZZLb4z5xrQaA8XpvhwgK3Id BWdKhhxdNciJrGTcltkSx50/0GvXlLhR0lUvPHH/OQS8Ij735vMsL4xkdMgMT7oyAfzsDpECI bsUH1iHGCEn2XbeU8bzylcxEgBHlnAR33d9CFIg/UH4zm0F3zOCBWW6nIjpgJkeL+Ce2aM2W4 KtNZP8ygHyalJZixd1s1d9jiQ1Cb6MOGjhe7gBFfEgzwg2Kn/oJoPxb8KrkgOTkJ7ZMBX+LC7 nj0vqSWsxY8hd1G97KsRiEHed/OtDECarKqGDm6pN0dk+h8QkBnSNFLzz8ZE45cONfHbukfeP oJT17Q/D4A7N6qjUO6QnR0t4EO0Gg611RTHrZwDbocKY5FVqS20pF0waK7KQzEtD31DwtyOhb r8sJkiuGX6yL9cfg2p2NvGyGRO+c1D6/RL81YQjsqNibmXj8aDc4arOd75G/k9AXg/c1uRNE Received-SPF: pass client-ip=212.227.15.4; envelope-from=tiga.arenz@web.de; helo=mout.web.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/24 06:23:17 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:188848 Archived-At: This is a multi-part message in MIME format. --------------F0A77418E1C2CDFA767EE407 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Org-mode is sometimes breaking links while adjusting indentation in org-fixup-indentation. This has been observed on emacs version 27.1, with org-mode versions 9.3 (built-in) and 9.4 (melpa-stable). It also occurs with the current emacs development version. Here is how to recreate. I hope my mailer does not screw up the lines below... Enter the following text in an org buffer and proceed as described: * Org is breaking links! =C2=A0 Create a heading with `*' and random heading text. =C2=A0 Create a text section below the heading. =C2=A0 In the text section create a separate line starting with a link, l= ike so: =C2=A0 [[simple-link]] =C2=A0 [[http://a.b.com/demo.html][link text]] =C2=A0 Switch on whitespace-mode to see what is going on. =C2=A0 Indent the heading deeper (i.e. demote) with several `M-' until the text starts with a TAB instead of SPCs. =C2=A0 Then outdent the heading back (i.e. promote) with `M-'. =C2=A0 See the links getting corrupted as the two leftmost brackets `[[' = are removed, in case of links with a target part, this also gets removed. =C2=A0 Note that his behavior also affects org-refile: Links can get can = get corrupted in this way while refiling. =C2=A0 Note that links do not get broken as described when showing full links with org-toggle-link-display. Thanks for your help, Kind Regards, Christoph --------------F0A77418E1C2CDFA767EE407 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Org-mode is sometimes breaking links while adjusting indentation in org-fixup-indentation.
This has been observed on emacs version 27.1, with org-mode versions 9.3 (built-in) and 9.4 (melpa-stable).
It also occurs with the current emacs development version.

Here is how to recreate. I hope my mailer does not screw up the lines below...
Enter the following text in an org buffer and proceed as described:
* Org is breaking links!
=C2=A0 Create a heading with `*' and random heading text.
=C2=A0 Create a text section below the heading.
=C2=A0 In the text section create a separate line starting with a li= nk, like so:
=C2=A0 [[simple-link]]
=C2=A0 [[http://a.b.com/demo.html][li= nk text]]
=C2=A0 Switch on whitespace-mode to see what is going on.
=C2=A0 Indent the heading deeper (i.e. demote) with several `M-<right>' until the text starts with a TAB instead of SPCs.
=C2=A0 Then outdent the heading back (i.e. promote) with `M-<left>'.
=C2=A0 See the links getting corrupted as the two leftmost brackets `[[' are removed, in case of links with a target part, this also gets removed.
=C2=A0 Note that his behavior also affects org-refile: Links can get can get corrupted in this way while refiling.
=C2=A0 Note that links do not get broken as described when showing f= ull links with org-toggle-link-display.


Thanks for your help,
Kind Regards,
Christoph
--------------F0A77418E1C2CDFA767EE407--