From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4GyzGIObtGDHJwAAgWs5BA (envelope-from ) for ; Mon, 31 May 2021 10:17:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8F5CFIObtGBXHwAAB5/wlQ (envelope-from ) for ; Mon, 31 May 2021 08:17:07 +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 CA37FCAA8 for ; Mon, 31 May 2021 10:17:06 +0200 (CEST) Received: from localhost ([::1]:54012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnd6e-00008C-Ey for larch@yhetil.org; Mon, 31 May 2021 04:17:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnd5i-00005d-1w for emacs-orgmode@gnu.org; Mon, 31 May 2021 04:16:06 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39769) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnd5a-00069Q-Ii for emacs-orgmode@gnu.org; Mon, 31 May 2021 04:16:05 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4ED8E24002C for ; Mon, 31 May 2021 10:15:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1622448948; bh=tVUULZxEaaMU7Pcyq6quYu6RZirxMRi9n0kw5OKQ4rk=; h=Subject:To:From:Date:From; b=qgBrR4HaGw3fxMS3j09UG+MfuBPa0q+pEX+DLn42BxsBiC77C5y87Qnyoh1xG4Iz3 AWTSMuXN2lR3WNVh9H31+ZcaMxGu7U2aymE18auc3U6azw0itmZvYSeq8p1ezIBfHe xU1RRoA30IUA+6Kbo9yAbeUFEnWKsfrwYu/CVfctWUDnl+bNDBbzlfXr9n8W9Ud5Fb gT9XFQ7wXPnTyzV+7ZihGw2kxhTbdRZDtfIoTOZeUA5+E2bWmBxyBNWVumQ7nQWeKa 3xz37UzAQ3PpJivWg3fCDGJfvqeGfxtwLfjM5Jwy7icz/nJlAfbneA303g9rlm5U8j BpcI06Bzo1VGg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Ftp5H1PP8z6tmP; Mon, 31 May 2021 10:15:46 +0200 (CEST) Subject: Re: source blocks mangled when edited To: Michael Gauland , emacs-orgmode@gnu.org References: From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Message-ID: <9e9ac180-7b77-3e04-87e4-7d1e9e02856e@posteo.eu> Date: Mon, 31 May 2021 08:15:46 +0000 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr Received-SPF: pass client-ip=185.67.36.65; envelope-from=sebastien.miquel@posteo.eu; helo=mout01.posteo.de 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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: , Reply-To: sebastien.miquel@posteo.eu 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=1622449027; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=XmFN/4DTt7MbYYHAQU8ROhj+/oqnliRtl00/1FElP+Q=; b=HkhFgq5HBUEsgyC8w0YL9yD2fJ3hKuntOqW6ZBQPqk7TlM5QG2jRuXaOSpQazRkxBOskjQ QgitWTuDYp/DP+HEIaamQD2fOtTq5x78gWjFIGrZBkTbDXUTSqNlmjqEeqGYkXkVId0IhK J00Y/lR2X9WSpe5iuigOOX5efgxVqzOz5VE7284cu6Zlx9WxrwMgJ1djHM6EWWTVdu6zAC 3kNZmFAUXlFUZsvVI4b5+icbPrIsZ2vSYuaaFTI7qvSru1X+XEdD+7UqkQIXjED1Sv9dGn /GXlhkYdhFvm2JRHFeEp0I0PCTtUddbH8asO6DLXP6w6RshiwuslL2Og4umC+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622449027; a=rsa-sha256; cv=none; b=C16dQCCH1vqiIuNEYObnaf7+I9qkgvQD3Vy32dG8Wbx1+d6ozjLtbBSS6c02agO+Yasab9 Nl8lijRwXvFohf0i8TSr2PwFBWv8a4/BuaWRO1eNyN00xkVTjw5IEFwH0YEEkZMxSl2gct BgMKByB9dYu3chLX8LPZ/bJCL07D8TX7hK8pVyDQsb9lLYm6s1wlHCnMS4t/pE5Q4FxiPf zDVnnZ1kiyLC6V0VYY/FxTehGTw/p7Cj3Am5jQwIeJV6N/UP7i/s378JhnkWRxh2H0/Utp ZR6czs4Wakdh2uob2DnB/aqFx6lA/OvThs/SdAH3dPsGqfUGtWlEYOdeBWDHWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=qgBrR4Ha; 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.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=qgBrR4Ha; dmarc=pass (policy=none) header.from=posteo.eu; 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: CA37FCAA8 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: doDMV03XiDU3 Hi Michael, Michael Gauland writes: > 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'm unable to reproduce with a recent emacs version. > I'm not even sure how to start tracking this down. Any help would be > greatly appreciated! The relevant functions are `org-edit-src-exit` and perhaps `org-src--contents-for-write-back`. Can you instrument these functions to see what's happening ? Is `org-src--contents-for-write-back` populating the buffer correctly ? Does the `replace-buffer-contents` call in `org-edit-src-exit` return `t` ? Regards, -- Sébastien Miquel