From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OFk0K6OvtGCHSwAAgWs5BA (envelope-from ) for ; Mon, 31 May 2021 11:42:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id INGSJqOvtGCnKAAAbx9fmQ (envelope-from ) for ; Mon, 31 May 2021 09:42:59 +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 524571017A for ; Mon, 31 May 2021 11:42:57 +0200 (CEST) Received: from localhost ([::1]:34056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lneRi-0003lL-F1 for larch@yhetil.org; Mon, 31 May 2021 05:42:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lneR4-0003kz-FJ for emacs-orgmode@gnu.org; Mon, 31 May 2021 05:42:14 -0400 Received: from mout01.posteo.de ([185.67.36.65]:54791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lneR1-00019p-Rc for emacs-orgmode@gnu.org; Mon, 31 May 2021 05:42:14 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3873A240028 for ; Mon, 31 May 2021 11:42:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1622454129; bh=ZU3o7TtjLrLJAIOkrNyzzmSZcWOM4JYeSI92Ik5XyLQ=; h=Subject:To:From:Date:From; b=djFWjP7NxHtuMEC54cvZOmeIrxEm/zRjnUMkxV9eEVj8sjFjTLh/l2//w9tUyo3bB dBoZeprhvd7U7N5JwAeTmunNK7iW926bIP4daW8nbBCZYcPQZ/kHUEcM6K7kiuhDut 6Bz67VQ4ZoO5sisaE2BCGI3UB8HV4tNBeuUXLvrrqonENwGF6QhD8AeP7ZJMAVKbaQ LYrN22mHzMt2gJbyZ+6UBS+tdtUGPmymVfxO4eaDlXZxCq/5XGqXrtrF/ntT2ahxaX TSH68z3yONWAm5WIhOEzSsWbCIfZ48OsvNUkWoRlF/CWUrVJcdAj34CWoYOCEj/NiB gV8qLh9FfzObQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Ftr0w5bF0z6tmM; Mon, 31 May 2021 11:42:08 +0200 (CEST) Subject: Re: source blocks mangled when edited To: Michael Gauland , emacs-orgmode@gnu.org References: <9e9ac180-7b77-3e04-87e4-7d1e9e02856e@posteo.eu> <2000f8ce-0f6a-91e0-f764-e65f3cc46937@gmail.com> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Message-ID: <09ce8454-430d-733d-64c4-562f0180ab60@posteo.eu> Date: Mon, 31 May 2021 09:42:08 +0000 MIME-Version: 1.0 In-Reply-To: <2000f8ce-0f6a-91e0-f764-e65f3cc46937@gmail.com> 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=1622454179; 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=HIufEGRlAXp7bovsP0dOzA9eQMrRa7GpZpTqaAyjQE0=; b=Njmrfd+zAQmUz1Jjd2cPR6XVJPKCkOgHPpz7VnV2cHxIdMaD0ZCdavmfCxf4woEVSV4oPS 04v9dx/KTLao7L0jC8zbB0NijUeRntUC/uu4YGBQeRKgoudWdJ+XAjdp0T3zbu/TFECBBJ URJTlYUpQUPLBQ54u53PuJVpC6/owTsjJ2bJvkdRWQcfqtj83El6IWI/HD52Qe1jgsjDX8 ctpTPMiQRLx6bpjeyAiiSc0HSOYAnSC6bnllcsya2eTHxm3u1973Ps2s4DALSFCXGlL1TV bw1EHFARPpAEd359KjSdFNTSUqT8GuwxstSVc3FC7zSrl6DogVspCKgjVLMD/Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622454179; a=rsa-sha256; cv=none; b=BP0lPTaLgxBl9A/uumsvJdx2dHLRO1Gb9odvN6+LP6djmM6M1GPZ3DVVB8m/iNK6E4QxJK kRGzqneCg1dviwU5/hgwUy1FAnDzz7BXRzwHdqXCHrccCJxTCQgRTaEppidHB2W6BHPGnp KD3dl2qEJCrMec+GG9MK/ViRyertGtJ/htCIYSXxYaovWkpksgpZtRkb3SzP9LqIVi2LRD oiweM8JTw0l402AIb5s4ehT92qHLeRROXSloqerezGjpoA5taTx3c07egAAD3xn2MPptko jdBVTs7LmYsKURVYplzvd6PkoLW+7Ce/DQknTWkRCKCXgiXwKqLnI16H05TxgA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=djFWjP7N; 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-Spam-Score: -1.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=djFWjP7N; 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: 524571017A X-Spam-Score: -1.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: pgRxMoMOtfgi Michael Gauland writes: > I didn't instrument the functions, but found that there are two places > that test '(if (version< emacs-version "26.1"...'. If I change that to > use "version<=", the problem goes away (I'm still running 26.1). I don't > know whether this is the right fix (the underlying problem may be a > quirk in my system, and this is just masking it).  I'm hesitant to > submit a patch unless someone else can replicate the problem. The commit `d02ad1f207e1579aff8f36f740a065d71472c182` introduced the use of `replace-buffer-contents` when available. This function was introduced in emacs 26.1, hence the version tests. There must be an issue with the `replace-buffer-contents` calls. Can you call `trace-function` on `replace-buffer-contents` and trigger the behaviour again to see what it returns ? You said it also happens with `emacs -q`, right ? I'll try to see if I can reproduce with emacs 26.1 tomorrow. -- Sébastien Miquel