From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GAOWDar3i2YMzAAAqHPOHw:P1 (envelope-from ) for ; Mon, 08 Jul 2024 14:28:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GAOWDar3i2YMzAAAqHPOHw (envelope-from ) for ; Mon, 08 Jul 2024 16:28:58 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.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"; dmarc=fail reason="SPF not aligned (strict), No valid DKIM" header.from=protonmail.com (policy=quarantine) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720448938; 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=ZXflL+d2A5k9ow8bVx493vEAyWaTQVZaAEamg53NYt4=; b=gI0VISI/eigzrul9I8tkOx7GpLGwvpBG8oUw1CAygbCcGX+uQQbrJLHi88z14ZbjclFhAn kqNdOjDW9veLXMEaNkyeteGXRQ52wYKtfp7Hjg7pzssZLoq1/G4BYFlG8WURY/v27D+Vo2 4xUz2Yxjb/R8GpFTxw9ELXe7591odCMvWQqAojNV9Mm91Zq34lRYg0kTx8epvgzDsdCOg3 TGDsRfG7t33s5jwUjV4XEnVOj8O271Aa7SiO6kp45LkN/FxfZAzT/gdMZFVTyEcdNwJdXG fwuPL4VA8P3Wpy9Co+6l1jT3JmsG6R3Vjmk6sixtQ2bCjm9iD+6KP4RBTv0aYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720448938; a=rsa-sha256; cv=none; b=roixn4pNyJXGrCUfdvAb0S+X/OBnFVM8cV/rUBq46h1jhBpm/ifNXsYSxJOwf+vKKG35kE Mx2YJtSy39HVJBK58XlcRBHOYzRr3BWMDOvbDD4WhHqzJd6i9gMTGbq1p97ntCmNU+0iat /1UxR0a6/dAKbuU+YdxE8yBbK0yssezXSmfcFw86tkwZLEcKzJW1WIVYF+f97+LMyFL/eX o/EilNBgpysP6c4rEZPIav9ip4KO9A6Bb2TeiiCmUC1mbvMx3N4kc1sRNCFuWWEnnEK5j0 sCJSvx+4MBlmjv2g/vV35lH3gzDEAue1a/3DyyK48R1dwivma9VSpqyi4mk+JA== ARC-Authentication-Results: i=1; aspmx1.migadu.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"; dmarc=fail reason="SPF not aligned (strict), No valid DKIM" header.from=protonmail.com (policy=quarantine) 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 E7D81769B8 for ; Mon, 08 Jul 2024 16:28:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQpLK-00034k-5u; Mon, 08 Jul 2024 10:27:50 -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 1sO5h5-0000nz-UK for emacs-orgmode@gnu.org; Sun, 30 Jun 2024 21:19:00 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sO5h2-0004fL-JN for emacs-orgmode@gnu.org; Sun, 30 Jun 2024 21:18:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1719796724; x=1720055924; bh=ZXflL+d2A5k9ow8bVx493vEAyWaTQVZaAEamg53NYt4=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=AFoyYuoDv8eOdcDBEucSGiVJT+dTQnWpC0ZbK4I/UIGdg6EvNuoAUUnY94fa9l+He ZkQ8RlBZFKgFkJIpO+8RdAf8iNgGNuTU5iqOHddn7cMd76Hhhh7TmCNSWBg4luVtKY /WHGxiHYxLvNuPKLmSrGGTyNLWW/hRR/DaN5DA7xp3qu092T/wEENqYp6pZtaaLiXO mieYH6z5PsBQOHvPL/cE1dOHnF7PJY3JlsyodGB2I9Ws1UhVcDAwJCrliPV4vKynk3 nv49faet1s6Hz6MoZhfs943tq1TN1ZNd4rxiLSEIGy+J7xR9jWktfaD4IZksuhPM7u Qieddv3Cg4j6A== Date: Mon, 01 Jul 2024 01:18:42 +0000 To: "emacs-orgmode@gnu.org" From: Michael Mauger Subject: 31.0.50; Org Persist file formatting Message-ID: Feedback-ID: 3198943:user:proton X-Pm-Message-ID: dad80b003737424ca1ea3e9e18091ba0fc0388ba MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.22; envelope-from=michael.mauger@protonmail.com; helo=mail-4322.protonmail.ch 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, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 08 Jul 2024 10:27:27 -0400 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: 0.61 X-Spam-Score: 0.61 X-Migadu-Queue-Id: E7D81769B8 X-Migadu-Scanner: mx11.migadu.com X-TUID: AMBMOvodC4BG This bug has been difficult to reproduce but several people have encountered it, or symptoms of it. Most recently, there has been this thread on Reddit: https://www.reddit.com/r/emacs/comments/1drxsz6/tangled_0_code_blocks_from_= filename_problem/ Unfortunately, replicating on emacs -Q has proven impossible since -Q disables some of the implicated features. My Emacs config is contained=20 in Org Babel files that are invoked with `org-babel-tangle-file' and have demonstrated the error multiple times. After some poking around I started getting failure when I tried to reopen an Org file or ran `normal-mode' on it. Shutting down emacs and restarting cleared the issue. When the issue arose when reopening the file within a session, the backtrace was pointing to `plistp' failing in `org-persist-read'. When I looked at the persist index there were entries like: (:container ((elisp org-element--headline-cache) (elisp org-element--cache) (version "2.3")) :persist-file "49/605653-361a-49a4-a000-47db8d522096" :associated (:hash "aa1176747642fdac45aaf96095a88367" :file =09 "/home/michael/Projects/my-config/emacs/my-org.org" :inode =09 2554490) :expiry 30 :last-access 1719791738.4428508 :last-access-hr "2024-06-30T19:55:38-0400" ...) (Note: the "..." in the last entry; sometimes it showed up as "\...".) The failure during tangling occurred with `org-get-heading' expecting `stringp' but getting `nil'. That seemed to be tracked down to `org-complex-heading-regexp' not being set yet. If an error had aborted out of the `org-persist-read' it appears we could have half of org-mode up but not everything properly initialized. Looking at the code in `org-persist.el' in `org-persist--write-elisp-file (file data &optional no-circular pp)' around line 486 it handles calling `pp' or `prin1'. The code for `pp' uses `pp-use-max-width' (as part of a bug fix #58687) which has since been superseded in Emacs 30. It looks like the `org-persist-write' code ought to be updated and the `org-persist-read' code made more robust so that it does not just shut down processing of Org files entirely. That is if the entry is not a plist, act as though no entry exists and proceed as if it were a new org file.=20 By deleting the persist index file, the calls to `org-babel-tangle-file' succeed and I proceed without error. If an entry in the persist index has the elided entries, then the tangling fails. I'm not entirely sure that this is the recipe but I have seen some=20 weirdness around the `org-persist' feature but fixes other than deleting persistent storage seem to be inconsistent. Please feel free to reach out if you'd like me to verify or try some other= =20 recipe. In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.42, cairo version 1.18.0) of 2024-06-29 built on michael-laptop Repository revision: fcd6403d8ebf7ce6e61ba17971d4fdaaaaecf06c Repository branch: master System Description: Fedora Linux 40 (Workstation Edition) Package: Org mode version 9.7.5 (release_9.7.5-9-ga091ca @ /usr/local/share= /emacs/31.0.50/lisp/org/) Configured using: 'configure --with-pgtk --with-native-compilation --with-file-notification=3Dyes --with-wide-int --with-tree-sitter --with-mailutils 'CFLAGS=3D -O0 -g'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Help Minor modes in effect: server-mode: t org-popup-posframe-mode: t transient-posframe-mode: t treemacs-filewatch-mode: t treemacs-follow-mode: t treemacs-git-mode: t treemacs-fringe-indicator-mode: t global-org-modern-mode: t repeat-mode: t global-dash-fontify-mode: t global-diff-hl-mode: t global-flycheck-mode: t company-posframe-mode: t recentf-mode: t global-company-mode: t company-mode: t savehist-mode: t vertico-posframe-mode: t vertico-mode: t which-key-posframe-mode: t which-key-mode: t which-function-mode: t electric-pair-mode: t delete-selection-mode: t auto-insert-mode: t save-place-mode: t my-region-size-mode: t override-global-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-layout-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t tab-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t isearch-fold-quotes-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/michael/.config/emacs/elpa/modus-themes-4.4.0/theme-loaddefs hides /u= sr/local/share/emacs/31.0.50/lisp/theme-loaddefs Features: (shadow sort mail-extr emacsbug shortdoc cl-print cursor-sensor misearch multi-isearch add-log descr-text server network-stream url-http url-gw nsm url-cache url-auth flyspell ispell org-auto-tangle async face-remap org-popup-posframe vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs em-unix em-term term disp-table ehelp em-script em-prompt em-pred em-ls em-glob em-extpipe em-cmpl em-dirs em-basic em-banner home-config geiser-guile info-look transient-posframe transient geiser-debug geiser-repl geiser-image geiser-capf geiser-doc geiser-menu geiser-autodoc geiser-edit geiser-completion geiser-eval geiser-connection tq geiser-syntax scheme geiser-log geiser-popup eglot external-completion jsonrpc flymake ert debug warnings em-alias fortune xkcd let-alist treemacs-tab-bar treemacs-tags treemacs treemacs-header-line treemacs-compatibility treemacs-mode treemacs-interface treemacs-persistence treemacs-filewatch-mode treemacs-follow-mode treemacs-rendering treemacs-annotations treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals treemacs-fringe-indicator treemacs-scope pulse treemacs-faces treemacs-macros treemacs-icons treemacs-themes treemacs-core-utils treemacs-logging treemacs-customization pfuture ht s org-indent em-hist esh-mode esh-var time-stamp org-modern ob-sqlite ob-sql ob-shell shell ob-sed ob-screen ob-scheme geiser-impl help-fns radix-tree geiser-custom geiser-base geiser ob-sass ob-ruby ob-python python ob-plantuml ob-processing ob-perl ob-org ob-octave ob-ocaml ob-maxima ob-makefile ob-lua ob-lisp ob-lilypond ob-latex ob-julia ob-js ob-java ob-haskell ob-groovy ob-gnuplot ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox ob-fortran ob-forth ob-eshell eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-module-loaddefs esh-util files-x ob-dot ob-ditaa ob-css ob-clojure ob-calc calc-store calc-trail calc-ext calc calc-loaddefs calc-macs ob-R ob-C cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ob-awk cus-edit pp cus-load flylisp highlight-quoted ruler-mode annotate fic-mode num3-mode display-line-numbers vc-git hl-line goto-addr image-file image-converter oc-basic org-element org-persist org-id org-refile org-element-ast inline avl-tree ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus compile comp-run comp-common xml gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time gnus-spec gnus-int gnus-range message sendmail yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util text-property-search mail-utils range mm-util mail-prsvr ol-docview doc-view filenotify jka-compr image-mode exif dired dired-loaddefs ol-bibtex bibtex iso8601 ol-bbdb ol-w3m ol-doi org-link-doi sql view repeat dash smerge-mode diff diff-hl log-view pcvs-util vc-dir ewoc vc vc-dispatcher diff-mode track-changes flycheck lisp-mnt company-posframe company-oddmuse company-keywords company-gtags company-dabbrev-code company-files company-clang company-cmake company-semantic company-template company-bbdb company-capf company-etags etags fileloop generator xref recentf tree-widget wid-edit project company-dabbrev company orderless savehist vertico-posframe vertico-multiform vertico compat which-key-posframe which-key which-func imenu posframe modus-vivendi-tinted-theme modus-themes ffap edmacro kmacro elec-pair delsel autoinsert saveplace color my-region-size-mode rect avoid diminish cl-extra backtrace help-mode use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf pcase org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie treesit executable ob-comint org-pcomplete pcomplete comint ansi-osc ansi-color ring org-list org-footnote org-faces org-entities time-date noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-core org-keys oc org-loaddefs thingatpt find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs format-spec annotate-autoloads company-posframe-autoloads company-autoloads csv-mode-autoloads diff-hl-autoloads diminish-autoloads dired-narrow-autoloads dired-hacks-utils-autoloads expand-region-autoloads fic-mode-autoloads flycheck-autoloads flylisp-autoloads flyspell-correct-autoloads geiser-guile-autoloads geiser-autoloads greenbar-autoloads highlight-quoted-autoloads markdown-mode-autoloads modus-themes-autoloads num3-mode-autoloads orderless-autoloads org-auto-tangle-autoloads async-autoloads org-bullets-autoloads org-modern-autoloads org-popup-posframe-autoloads org-present-autoloads paredit-everywhere-autoloads paredit-autoloads shelisp-autoloads svg-lib-autoloads transient-posframe-autoloads treemacs-icons-dired-autoloads treemacs-magit-autoloads magit-autoloads magit-section-autoloads git-commit-autoloads treemacs-tab-bar-autoloads treemacs-autoloads cfrs-autoloads ht-autoloads hydra-autoloads lv-autoloads pfuture-autoloads ace-window-autoloads avy-autoloads s-autoloads dash-autoloads vertico-posframe-autoloads vertico-autoloads which-key-posframe-autoloads posframe-autoloads info with-editor-autoloads xkcd-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win touch-screen pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 1007060 160070) (symbols 48 68318 3) (strings 32 333909 18654) (string-bytes 1 9147096) (vectors 16 94245) (vector-slots 8 1975518 114459) (floats 8 836 202) (intervals 56 5983 1627) (buffers 992 19)) --=20 MICHAEL@MAUGER.COM // FSF and SFConservancy member // GNU Emacs sql.el main= tainer