From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 0KPNGABXOmUiDQEA9RJhRA:P1 (envelope-from ) for ; Thu, 26 Oct 2023 14:09:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0KPNGABXOmUiDQEA9RJhRA (envelope-from ) for ; Thu, 26 Oct 2023 14:09:36 +0200 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 C745F138FD for ; Thu, 26 Oct 2023 14:09:32 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jjZu+WKN; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698322176; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KI3uohnfTJTjpVv6bLu73tbbbKg0Skk1AP54bdyVMjg=; b=b3Ifz7ND79jS9YTAUryUGQuoUz6mSssJSRXcAX1Om9Mu4sikzJfBQvtLW7WIJz+68qC9PW frB6lgSMgdpXnyqwXib9qbcRRLybXl5aR/JWxUXYTrE/BC7pcP0g7MpnjpWerdWH/rBTCo TJ8Zmxui7ClP2z5nVIcXA3wFlX3RqIt3adc3EEp+uZJloJQbj++5LM2lT6kM1KsFBLT862 UsSUP+Yl02KyHJ7yoMbFVyhBB/i0LAJpVG+TUhRjDABfbkUQ2ezHPtkj1F2wYzVyq+jQNP DR9gDHIb7maItuEch9uoFr+o4tSdtIn6Wglydc1sDnCm3u7bUHEB0ViRNQNl+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jjZu+WKN; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698322176; a=rsa-sha256; cv=none; b=PurswnVsvcfg3pUjFnu9LjQLBvGkDsrrcZoAvZNy4/7NvnMwIhmBXJM23kkk44D+nrK6q6 Od82kTKuPW/dvqEGC2qCpSy5Uh14C5hipkDt14NRK31KZB5vqvXiy5WrkYcRE3ut1EzIFJ PPrBrK8Pc0AhvKsb6EjqJPf45jc/iQmLVak1k0Wi2GWO3wY41JB6pldLPfpp2x1UXi3kCQ RWXGq5c7W4EyPLwH3TH2DJfrRz7qgmkcrCwPmK+6OscxwEFNmXPf7eapZNsGNL1mCYf5n6 HycFkufaWVI4nm5SbfPd57SntPNic279XFYlUXy3qewMkZiOGUHJurV1h+Wxvg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvzAI-0002Xf-6w; Thu, 26 Oct 2023 08:08:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvzAG-0002XM-CO for emacs-orgmode@gnu.org; Thu, 26 Oct 2023 08:08:40 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvzAD-0002Ux-9f for emacs-orgmode@gnu.org; Thu, 26 Oct 2023 08:08:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 07904240103 for ; Thu, 26 Oct 2023 14:08:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1698322114; bh=MlR994m6BqGkTIluSXEE7h/ShsmLv0yVDVRDOuTcwsk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=jjZu+WKNSrt8ESZESdOredcDuhodOff8bwTPdt+zBO/g87Vxqm4czUzmskxlu9kkH 2vWctqmRkgJZHN4CIg9mm76ZFTM+NPDx63QKuZRuTC8xpPIB3ZGKhCaSoCAgdy0PUj zleifuLBuGDCsJcIBZGthzfNwKcCjZbzukU6fUoSiVdLElX5A99Bi4o48rvLdEPTuf u3wFTO+VkCE6FD8KkoFYhvJ9pxKdTGNgwsKznwBXN4l4WAIjzhm1BWFes3l69Cnrbj t4JcpkskAl9Exd95VmqIP5YNvIqNw1rqbS/QKm5daRYhbgvrZrhnmL8/Pfk+x5ymGv VG6+mhXZliwAQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SGPhd0WgTz6tm4; Thu, 26 Oct 2023 14:08:32 +0200 (CEST) From: Ihor Radchenko To: Ken Mankoff Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Undo eats buffer [9.7-pre (release_9.6.10-888-g098f08 @ /home/kdm/local/src/org-mode/lisp/)] In-Reply-To: <878r7piodx.fsf@gmail.com> References: <878r7piodx.fsf@gmail.com> Date: Thu, 26 Oct 2023 12:10:13 +0000 Message-ID: <87wmv9bn4q.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.55 X-Spam-Score: -8.55 X-Migadu-Queue-Id: C745F138FD X-Migadu-Scanner: mx10.migadu.com X-TUID: zGFihZAa+JOP Ken Mankoff writes: > I'm running into a bug where if I (undo) after evaluating an Org Babel emacs-jupyter code block, several hundred lines of the Org buffer below are erased. Unfortunately I am having trouble creating an MWE that demonstrates this, but I hope the org-element-cache warning below may still be helpful. > ... > ------------------------------------------------------------------------ > Warning (org-element-cache): org-element--cache: Unregistered buffer modifications detected (57640 != 55418). Resetting. This is most likely a problem with emacs-jupyter. It does something that bypasses `after-change-functions', which is not allowed in Org mode. > I've tried (setq org-element-use-cache nil) but that does not seem to help. Any suggestions how to work around this, or help the emacs-jupyter effort address this if it is their domain, will be much appreciated. If disabling cache causes a problem, it is yet another problem (not the warning you see from org-element). From my vague memory, emacs-jupyter has non-standard treatment of code block results, so I again suspect that the problem is with emacs-jupyter. Have you tried reporting your problem to emacs-jupyter devs? There might be a better chance that they can fix or suggest something. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at