From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id WCm0LnhVOmWWKgEA9RJhRA:P1 (envelope-from ) for ; Thu, 26 Oct 2023 14:03:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WCm0LnhVOmWWKgEA9RJhRA (envelope-from ) for ; Thu, 26 Oct 2023 14:03:04 +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 5E11C56BCB for ; Thu, 26 Oct 2023 14:03:04 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=TUbZB16f; dmarc=pass (policy=none) header.from=gmail.com; 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=1698321784; a=rsa-sha256; cv=none; b=WBBiwd1JKOlu2vvem6NZEev/Qe+ALQqyOIIzd60X3Eso+8aaG28mMNSYJb+AI+WsnSt//5 y0AmH9LcckjuhWDSRNxklhUiBt57RfXgv9heqVEpT88+MaDAh6gCwFSGF3RkqiFtBA0yfN vKbTRo/JND/i0cdvJFnC2oQx/eQbgrhLIrTZY8XawEeN6ddZHA9kXOYqBF8VXrZ0pzED7p 0GvSHc+1Kqkjrf3OX8hqTNQNsVtriUjkR5D2KVZ3fly9/2m/f5xzhkA62z7SqzOGTPdUeq IWDOdvHu/9vLOl3w4trVcRqNfgl4kOiL/gGqGro/7xNKQO0l+p8CaaFQHqYT8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=TUbZB16f; dmarc=pass (policy=none) header.from=gmail.com; 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=1698321784; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4kUIb3UTeslzSTNWE02Q8B7RxuqmiU/YX5e4uNBwt88=; b=jKY3kbPvRSXR18YbSwEAocgXyY0T0b0G3ORzQqAnCAWno4+PDs//8G4YtxkK8uESyi9s8d Jv2bgO3pR0gDAgnzVg8hb+nqapHYv0JjqwMCCJ8Y+02rOrBUIE+VDRAnpIboEp7lVEFFxW 0Z5PNYOmNqs1T+W0waRTe0yRyqtZVRjnugqnkF06jz/K8WyDmULd1C2hIHRL3ojPvikk4v OKtxf2wyK3wKbxlEumE7cS79txNaEyheYlEkFegz1A25Vj0MdPZBNzlM2dgjiGZ6lkWKtf q1y5Z/eoSvR4d8KbCAo/0ZwoBdUU4pA/no2l+rHMhDnsfawKo56R/PEFvAyxZQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvz4B-0007UH-E0; Thu, 26 Oct 2023 08:02:24 -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 1qvz3G-00078v-LM for emacs-orgmode@gnu.org; Thu, 26 Oct 2023 08:01:42 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvz3B-0007cI-1D for emacs-orgmode@gnu.org; Thu, 26 Oct 2023 08:01:25 -0400 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6b5cac99cfdso735041b3a.2 for ; Thu, 26 Oct 2023 05:01:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698321676; x=1698926476; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:from:to:cc:subject:date:message-id:reply-to; bh=4kUIb3UTeslzSTNWE02Q8B7RxuqmiU/YX5e4uNBwt88=; b=TUbZB16fokjFaYTXO4faBSzyH9qErFQZ4a7bYzkHly8e70EY3TqtDBZQOXeueQwgEx r48viNws9eTuv0mpVh2d+JWxoxtzp7Jm2CuZoknafIj7YVxDJaEvi1L/xPmskjipaIB+ xEbZQZt5nvp0Y2GS2Pm2iTZGNZZwoUaN9pZ4LV14Hs/MCe6iNpQNniifSaPut9MCac4L XMPoZs8e5sbvPDULN8tr/REjNnKX19AqG4riO+WBEO5p2gbnKaI9uDOaVaZ9G7rM7Sp6 s+gMU13pAQH/rczeYkArsKbDoFUHairFgJkVgCWFv7JiZo1NgnAu/vJd9pmK+ONPp8vc +Psg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698321676; x=1698926476; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4kUIb3UTeslzSTNWE02Q8B7RxuqmiU/YX5e4uNBwt88=; b=Au2QcgUvRiHGCLRxaJmKFn2dniiOA/CjL8v2uZJ3fVi8n5w9pH7PsbV0VQgNsoRRPt ByhtXwtbrV8QApn8MI8CvDPJDD/MzcDVZol7SSFTN1xDDmACZJ/v+2NLEM8TzqTk289i WxwTFCmkdp5KfHUOk6Gy2bLhPWVGQgQk+HzIJvFNOwdo1MEObUzz9gCcXiADTLUwvpcL H+5J+pHJ1DZZpmrrnOTaEIdOt7O1hQnTql4SjLEAyq1lh8udBRImiqv5Rbdt+QL4OuhP Kg/Xu2XNYpYULUbebMR2ZFkouaVHQx4Z8R2u2xf4kTVLkYNNGtSIUZG3CxxNLqNjcGKM OCOQ== X-Gm-Message-State: AOJu0Yyj9aJHPyPzIuoQN5WS/AmAC65wj9MB7Pc5QFrvhPWPQZF9qOs9 Jp5YvUP53nPdrUHhsQpcXwI/N+ZTV5M= X-Google-Smtp-Source: AGHT+IGpw1Wc7iTEqVXgDsgaqOLaX3ARbwp8gx3u/P3qmBHaF6DDha2EiHJ9EwIjK9aRBOgkMyvGbw== X-Received: by 2002:a05:6a00:10c6:b0:691:2d4:2389 with SMTP id d6-20020a056a0010c600b0069102d42389mr16037819pfu.21.1698321676010; Thu, 26 Oct 2023 05:01:16 -0700 (PDT) Received: from t480 (97-113-158-225.tukw.qwest.net. [97.113.158.225]) by smtp.gmail.com with ESMTPSA id s1-20020a63f041000000b0057c44503835sm10336943pgj.65.2023.10.26.05.01.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 05:01:15 -0700 (PDT) User-agent: mu4e 1.8.15; emacs 28.1 From: Ken Mankoff To: emacs-orgmode@gnu.org Subject: [BUG] Undo eats buffer [9.7-pre (release_9.6.10-888-g098f08 @ /home/kdm/local/src/org-mode/lisp/)] Date: Thu, 26 Oct 2023 05:01:14 -0700 Message-ID: <878r7piodx.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=mankoff@gmail.com; helo=mail-pf1-x42f.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.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: -5.92 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Queue-Id: 5E11C56BCB X-Spam-Score: -5.92 X-TUID: gahEVFL90GFM I'm running into a bug where if I (undo) after evaluating an Org Babel emac= s-jupyter code block, several hundred lines of the Org buffer below are era= sed. Unfortunately I am having trouble creating an MWE that demonstrates th= is, but I hope the org-element-cache warning below may still be helpful. The bug occurs when the emacs-jupyter (Python) block produces are error, an= d results look like the following, and then I eval (undo): #+RESULTS: :RESULTS: : some text here # [goto error] #+begin_example lots of text here #+end_example :END: 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. Thanks, -k. Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ Warning (org-element-cache): org-element--cache: Unregistered buffer modifi= cations detected (57640 !=3D 55418). Resetting. If this warning appears regularly, please report the warning text to Org mo= de mailing list (M-x org-submit-bug-report). The buffer is: misc.org Current command: nil Backtrace: " backtrace-to-string(nil) org-element--cache-sync(# 37660) org-element-at-point() (progn (org-element-at-point)) (unwind-protect (progn (org-element-at-point)) (set-match-data save-match= -data-internal 'evaporate)) (let ((save-match-data-internal (match-data))) (unwind-protect (progn (or= g-element-at-point)) (set-match-data save-match-data-internal 'evaporate))) (let ((element (let ((save-match-data-internal (match-data))) (unwind-pro= tect (progn (org-element-at-point)) (set-match-data save-match-data-interna= l 'evaporate))))) (and (eq (org-element-type element) 'src-block) (>=3D (li= ne-beginning-position) (let* ((parray (and t (let* ... ...)))) (if parray (= let* ((val ...)) (if (eq val ...) 'nil (let ... val))) (let* ((val ...)) (c= ond (... ...) (... ...) (t ...)))))) (<=3D (line-end-position) (save-excurs= ion (save-restriction (widen) (goto-char (let* (...) (if parray ... ...))) = (skip-chars-backward \" \\11\\n\") (line-end-position)))) (org-element--pro= perty :language element nil nil))) org-eldoc-get-src-lang() (let ((lang (org-eldoc-get-src-lang))) (cond ((string=3D lang \"org\") ni= l) ((or (string=3D lang \"emacs-lisp\") (string=3D lang \"elisp\")) (cond (= (and (boundp 'eldoc-documentation-functions) (fboundp 'elisp-eldoc-var-docs= tring) (fboundp 'elisp-eldoc-funcall)) (let ((eldoc-documentation-functions= ...)) (eldoc-print-current-symbol-info))) ((fboundp 'elisp-eldoc-documenta= tion-function) (elisp-eldoc-documentation-function)) (t (let (eldoc-documen= tation-function) (eldoc-print-current-symbol-info))))) ((or (string=3D lang= \"c\") (string=3D lang \"C\")) (if (require 'c-eldoc nil t) (progn (c-eldo= c-print-current-symbol-info)))) ((string=3D lang \"css\") (if (require 'css= -eldoc nil t) (progn (css-eldoc-function)))) ((string=3D lang \"php\") (if = (require 'php-eldoc nil t) (progn (php-eldoc-function)))) ((or (string=3D l= ang \"go\") (string=3D lang \"golang\")) (if (require 'go-eldoc nil t) (pro= gn (go-eldoc--documentation-function)))) (t (let ((doc-fun (org-eldoc-get-m= ode-local-documentation-function lang)) (callback (car args))) (if (functio= np doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (fun= call doc-fun)))))))) (or (org-eldoc-get-breadcrumb) (org-eldoc-get-src-header) (let ((lang (or= g-eldoc-get-src-lang))) (cond ((string=3D lang \"org\") nil) ((or (string= =3D lang \"emacs-lisp\") (string=3D lang \"elisp\")) (cond ((and (boundp ..= .) (fboundp ...) (fboundp ...)) (let (...) (eldoc-print-current-symbol-info= ))) ((fboundp 'elisp-eldoc-documentation-function) (elisp-eldoc-documentati= on-function)) (t (let (eldoc-documentation-function) (eldoc-print-current-s= ymbol-info))))) ((or (string=3D lang \"c\") (string=3D lang \"C\")) (if (re= quire 'c-eldoc nil t) (progn (c-eldoc-print-current-symbol-info)))) ((strin= g=3D lang \"css\") (if (require 'css-eldoc nil t) (progn (css-eldoc-functio= n)))) ((string=3D lang \"php\") (if (require 'php-eldoc nil t) (progn (php-= eldoc-function)))) ((or (string=3D lang \"go\") (string=3D lang \"golang\")= ) (if (require 'go-eldoc nil t) (progn (go-eldoc--documentation-function)))= ) (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang))= (callback (car args))) (if (functionp doc-fun) (progn (if ... ... ...)))))= ))) org-eldoc-documentation-function(#f(compiled-function (string &rest plist= ) #)) run-hook-with-args-until-success(org-eldoc-documentation-function #f(comp= iled-function (string &rest plist) #)) eldoc-documentation-default() eldoc--invoke-strategy(nil) eldoc-print-current-symbol-info() #f(compiled-function () #)() apply(#f(compiled-function () #) nil) timer-event-handler([t 0 0 500000 nil #f(compiled-function () #) nil idle 0 nil]) " Disable showing Disable logging Emacs : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33= , cairo version 1.16.0) of 2022-05-30 Package: Org mode version 9.7-pre (release_9.6.10-888-g098f08 @ /home/kdm/l= ocal/src/org-mode/lisp/)