From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WOBLMMVatGBDKQEAgWs5BA (envelope-from ) for ; Mon, 31 May 2021 05:40:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kF6LK8VatGA3SAAAbx9fmQ (envelope-from ) for ; Mon, 31 May 2021 03:40: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 4C0D526214 for ; Mon, 31 May 2021 05:40:53 +0200 (CEST) Received: from localhost ([::1]:35208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnYnM-0007kY-CR for larch@yhetil.org; Sun, 30 May 2021 23:40:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnYmZ-0007k9-A8 for emacs-orgmode@gnu.org; Sun, 30 May 2021 23:40:03 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:40469) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnYmX-0001pE-Gt for emacs-orgmode@gnu.org; Sun, 30 May 2021 23:40:03 -0400 Received: by mail-pg1-x536.google.com with SMTP id j12so7332272pgh.7 for ; Sun, 30 May 2021 20:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=IF02hxMjKNPKFtI+ba0trBoFj2VppEJKxyEyyy8kaO8=; b=mS33Vb1np+kUioXYvq5oIWnvbzAtfD+REGEHWEQdbD2sQspcK6XeAEPAdsB5XIT83u y3mG7G5uawnS0R021T03E7THb3UF0EnR5L0hK6YRtVceG449lz43Qg1ANFqlKlwUVwNL IB7UvCTbuFQMiVjjr9Sy1ZYL1sOq2h8N9xcHfG6UptUlkXsG40y3wVLiU+LAGZcN8xqo bIWAir3EFNPHiAjpWfRsf8U++4MntAT6g4t7ZMVAQw13Pr2Hi1x9KDrn41IDtTTeHQ3H a2aQ5Qv4f0og5TgaJV/TrXs5yhCdFaWAzqvpBU5UqLzNjj5djXkzp2yMT7/nvUmZOHtu MZ9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=IF02hxMjKNPKFtI+ba0trBoFj2VppEJKxyEyyy8kaO8=; b=HE3SmwVoc62lZGHwDe8XD+0qh4HJHQ37p7SKRksieus870Z1FJJt7J9Yn+80E2gngi vX61V5lIKiUIgDyaC897WsSbAnb4LvPlFc0//LOGeuNS5BlY6Rxpihm/P3Pi/FsxIGG1 yORdG8sMzLLmK0fRZjpJXMcCS8wrea1EM8D6fZouHC1O1MdfWlEzccSGFTl52Vc+9nSH znfbIzZxA76cWK1SOmFPOEfVNigJ7WDbAsAUX+ADCWyklnUMMC0/jZz7noyjUjqmk+I/ 4sibwIoDrEdMJ7amqUw7UG6ReA9WXiZPtHiNemGIGbuZr2FYoBXLjoyIvGXNXBOgyPIZ LI2Q== X-Gm-Message-State: AOAM5325U+FsjMUBzcLGeleB4BEJAXOBpnu96mxE4kE6/pSnX3uBqjU5 F20ryv4KmtCTEQJChhexKAfl2eGvCKc= X-Google-Smtp-Source: ABdhPJz11IF5CwWju/QRtT0S3ty6m/sn06cJuyo/BeDfu+T/BOfYzn35XgC+4vqIOD7XWHXICIUb9Q== X-Received: by 2002:a65:550e:: with SMTP id f14mr20877419pgr.160.1622432398914; Sun, 30 May 2021 20:39:58 -0700 (PDT) Received: from [192.168.1.183] (222-154-31-8-vdsl.sparkbb.co.nz. [222.154.31.8]) by smtp.gmail.com with ESMTPSA id h66sm9369984pfe.53.2021.05.30.20.39.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 May 2021 20:39:57 -0700 (PDT) To: emacs-orgmode@gnu.org From: Michael Gauland Subject: source blocks mangled when edited Message-ID: Date: Mon, 31 May 2021 15:39:54 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------4C5FAD113EF0FE03B8A45747" Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=mikelygee@gmail.com; helo=mail-pg1-x536.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, 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-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=1622432453; 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=IF02hxMjKNPKFtI+ba0trBoFj2VppEJKxyEyyy8kaO8=; b=oYfypVujCmWS1Sc/uINF1+5ZTwq1XokeUnpzD4uXPC9dyA29a+jcPk2l7Mrw0i1qs31tHY TOATxc70zKt39qTlfZKx3wBVYHBhas9zXoJzNh6Q2PX4AmHew0noaGcYb+YNvbDeoKKNA3 gaKwVzeoJSAeVY46u2hwo4HXHcyUKQ1nXmK5BJKNsyhhRkmU0ulDePIkncuYcmcyA1CzfA 1y/icp1JllD4O15mgtrukgjlr0JMaPAM1mqqBckEJncMM7crdhamGKqAbNZpM4eGQqj4Uq 1LRPoD+CdNVrxaD8I680PvAZd7gWueeCQ/nJzpGqYc8yhVNOU1PHX8f4zb6EvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622432453; a=rsa-sha256; cv=none; b=HzNFfeZeNIVPFxEHNWHtcRYuuESWBz2/0OqdqZYfkjIoono/v5GzxGbcNkKGnw/zXiR6ix vg22DjMdY6NeXfeCMX6gZl895hwkKJNB+aFXu0mlm45zLAjpg6QiLHtmRLGV6lATFSoVEq FspU5l6J3qMQGwyRKUa+3sKZEO7/Pypob3+jE4Es8gO808sUBKuj7uXfWDormQqt1kJjlT P0nOBeCXJnZPos5w7AYhg9MWoRFaGyZrMRKT5cRejcqC1Nm6MJWZFmQxhrBHbotL/paowh g1JBVtEFEiAgjISCVuBy92v1rlhoPthNYWGILUuDMnYapCLgg+Go/txI3dUxTQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=mS33Vb1n; 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.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=mS33Vb1n; 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: 4C0D526214 X-Spam-Score: -2.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: /B2vPY+rQ1+t This is a multi-part message in MIME format. --------------4C5FAD113EF0FE03B8A45747 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I've stared having trouble editing source blocks.=C2=A0=C2=A0=C2=A0 When = I use C-c ' to edit block, the editing behaves as expected, but when I C-c ' to return to the main org file, the code is altered in strange ways.=C2=A0 I've had= trouble coming up with a really small example, but the attached file seems to consistently demonstrate the problem, even when running emacs without my settings. The file has two identical source blocks. The first generally behaves fine, though some lines get extra indentation. The second suffers more serious distortions. For example, the first line changes from "digraph G {" to "aph G {". I've seen this with other types of code as well (at least SQL and json), so it's not specific to dot. I'm running emacs 26.1 on Debian 10.9, with org build from git. I'm not even sure how to start tracking this down. Any help would be greatly appreciated! Kind regards, Mike Gauland --------------4C5FAD113EF0FE03B8A45747 Content-Type: text/plain; charset=UTF-8; name="bug.org" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="bug.org" IytCRUdJTl9TUkMgZG90IDpmaWxlIGRpYWdyYW0xLnBuZyA6Y21kbGluZSAtS2RvdCAtVHBu ZwogIGRpZ3JhcGggRyB7CiAgICAgIHJhbmtkaXIgPSAiTFIiCiAgICAgICBwcmUgW2xhYmVs PSJQcmVwcm9jZXNzb3IiXSAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICBzdWJn cmFwaCBjbHVzdGVyX2lucHV0cyB7CiAgICAgICAgICAgbGFiZWw9IklucHV0cyIKICAgICAg ICAgICByYW5rZGlyID0gIlRCIgogICAgICAgICAgIGlucHV0MSBbbGFiZWw9ImlucHV0Il0K ICAgICAgICAgICBpbnB1dDIgW2xhYmVsPSJpbnB1dCJdCiAgICAgICAgICAgaW5wdXQzIFts YWJlbD0i4oiZXG7iiJlcbuKImSIsc2hhcGU9bm9uZV0KICAgICAgICAgICBpbnB1dDQgW2xh YmVsPSJpbnB1dCJdCiAgICAgICB9IC0+IHByZQoKICAgICAgICAgICAgICAgcHJlIC0+IGZp bmFsCgogICAgICAgICAgICAgICBzdWJncmFwaCB1c2VycyB7CiAgICAgICAgIHJhbmtkaXI9 IlRCIgogICAgICAgICAiRW5kIFVzZXJzIgogICAgICAgICAiUmVzZWxsZXJzIgogICAgICAg ICAiQ29ycG9yYXRlIFVzZXJzIgogICAgICB9CgogICAgICBmaW5hbCAtPiAiRW5kIFVzZXJz IgogICAgICBmaW5hbCAtPiAiUmVzZWxsZXJzIgogICAgICBmaW5hbCAtPiAiQ29ycG9yYXRl IFVzZXJzIgogIH0KIytFTkRfU1JDCgojK0JFR0lOX1NSQyBkb3QgOmZpbGUgZGlhZ3JhbTIu cG5nIDpjbWRsaW5lIC1LZG90IC1UcG5nCiAgZGlncmFwaCBHIHsKICAgICAgcmFua2RpciA9 ICJMUiIKICAgICAgIHByZSBbbGFiZWw9IlByZXByb2Nlc3NvciJdICAgICAgICAgICAgICAg ICAgICAgICAgICAKICAgICAgIHN1YmdyYXBoIGNsdXN0ZXJfaW5wdXRzIHsKICAgICAgICAg ICBsYWJlbD0iSW5wdXRzIgogICAgICAgICAgIHJhbmtkaXIgPSAiVEIiCiAgICAgICAgICAg aW5wdXQxIFtsYWJlbD0iaW5wdXQiXQogICAgICAgICAgIGlucHV0MiBbbGFiZWw9ImlucHV0 Il0KICAgICAgICAgICBpbnB1dDMgW2xhYmVsPSLiiJlcbuKImVxu4oiZIixzaGFwZT1ub25l XQogICAgICAgICAgIGlucHV0NCBbbGFiZWw9ImlucHV0Il0KICAgICAgIH0gLT4gcHJlCgog ICAgICAgcHJlIC0+IGZpbmFsCgogICAgICAgc3ViZ3JhcGggdXNlcnMgewogICAgICAgICBy YW5rZGlyPSJUQiIKICAgICAgICAgIkVuZCBVc2VycyIKICAgICAgICAgIlJlc2VsbGVycyIK ICAgICAgICAgIkNvcnBvcmF0ZSBVc2VycyIKICAgICAgfQoKICAgICAgZmluYWwgLT4gIkVu ZCBVc2VycyIKICAgICAgZmluYWwgLT4gIlJlc2VsbGVycyIKICAgICAgZmluYWwgLT4gIkNv cnBvcmF0ZSBVc2VycyIKICB9CiMrRU5EX1NSQwoK --------------4C5FAD113EF0FE03B8A45747--