From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id gGT5DcbOHmZowwAA62LTzQ:P1 (envelope-from ) for ; Tue, 16 Apr 2024 21:17:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id gGT5DcbOHmZowwAA62LTzQ (envelope-from ) for ; Tue, 16 Apr 2024 21:17:26 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=homestudiocorner-com.20230601.gappssmtp.com header.s=20230601 header.b=qFGEBgjj; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=homestudiocorner.com (policy=none); 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=1713295045; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=LtO0QA5vGSpWW59EXK5oVC0CN2wHn/+W4he8xEJslZk=; b=eOclsEhvjV7g8d/RLoY3/QbCgupI7eOv/YAwBzcLVfKRNU25CHRgLMjw1sYePpjUEsdFY4 EL1ggZgw+ApgfA2OTueF0Rp64dxJHl9wLCgp/FepJ7enMvK4uYDRBNhE024frVigXZgXWj rIvFTkqC7KmR4WeamLMOekzxKyHSnoKbZACHEbF/8qIKD2sV4genUy4U4+Xsy6ZAEMz1hZ i7QcrDQbIzY7xkMendib2XcBYqI7RdmvfVMmEXRZ9VDf6tpjuIoLFmtqYZdgoXtzXE6TD9 rZtTKl603sDkWlFT+ibxVpxcAFptDcMHC+77RGzIUwrlweAReQPY1GokFcXG7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=homestudiocorner-com.20230601.gappssmtp.com header.s=20230601 header.b=qFGEBgjj; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=homestudiocorner.com (policy=none); 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=1713295045; a=rsa-sha256; cv=none; b=NOYcO8dYt4BuGnX97lcyxDTnX7GHdKA3z7M0g+8GhDQZhShYsCiEpraVLxiUOAWiYemk5h Pvhnyr0ZzqIEhG1VC3GpJWQkW20SAp3p13UXFGIzKIVttgRoEAPEwkp0pepJ0GQp2ExRY4 IVeiIJQq487uxXBoNupYqNvH/4q0kzsnT37bU93DyYShcP/bRIwyKEOXtXrR9n2yXQOp8s ah8dD6copmplEZVhBCF+IS0twgWysIudtqwM3KNn2bpWVjV2694BlhEmBSo0XDhJfhF0KO cXANmNgbbI+qyt14Od6gSm1U/mQRHEqinPo9IZb8FBCohMD13j8xS2Nl9ekdoQ== 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 50A9B6B97 for ; Tue, 16 Apr 2024 21:17:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwoIC-0005PU-EM; Tue, 16 Apr 2024 15:16:34 -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 1rwoHu-0005Lg-05 for emacs-orgmode@gnu.org; Tue, 16 Apr 2024 15:16:16 -0400 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rwoHp-0008Fo-VY for emacs-orgmode@gnu.org; Tue, 16 Apr 2024 15:16:13 -0400 Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-7d9c78d1087so9706239f.2 for ; Tue, 16 Apr 2024 12:16:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=homestudiocorner-com.20230601.gappssmtp.com; s=20230601; t=1713294968; x=1713899768; darn=gnu.org; h=to:date:message-id:subject:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=LtO0QA5vGSpWW59EXK5oVC0CN2wHn/+W4he8xEJslZk=; b=qFGEBgjjZA37aDdGhJvY4K70gw5gaPPLCKxSukL14oAqBWh01xJWwAHLBWDJkQx17X 23JvwjT9g+SWNoYrY6SthvUmQj94koOQCl1nZX5pGb1kMmkMIDRUdaDh4Zz0h53ZgE5c zReZy72sZjR5S0I8juWq2B4XZx9Y/k4LT7jQZh6ei6zSyOhgoKD+iWkRXX8NoFslSg2w nr+qmPGzAdBUcL2FsG4M8IaHjR43ZuuaFFuL+ZiWFdMpXwEAB+qDZshXZaBBpIcsl/zq VqQnRiyK4cKRDhQHfFAdO0XNYElsayvfr2I064vqJNHBIoLl3KQ6CGb6CUA4LOeBPupw eZtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713294968; x=1713899768; h=to:date:message-id:subject:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LtO0QA5vGSpWW59EXK5oVC0CN2wHn/+W4he8xEJslZk=; b=RePAnIRx15MHnFszRPU3aoBYmmxUplu1ahcQX3XugmZafQ+2JXF/SOXaY9N2b2Guew ABk/BAvd1yloQ6TTScGS+vG/iU/FR3e8qG4Zu4rPeNcn1tzglUDtGCMw/eFYfxs2m8/r HaOJIDdboFMqQ/miUgfXE369xcBLshvEekp98P+7r1glIoM6gma/urbtIYk04xVa+5Dl dJmt0n7zNuF5TzY9k4irrzPqFMjEpzQYjUcLYprNWFiu/ir98GMYw1+mIgYcRjx0AxZJ SheAbLNPAYFcjTsfr8zrehgtXI/QMWeQHSYrCZ3UdZDcoCVAfySkQMc/9f+wJ4UF+xap 5KQw== X-Gm-Message-State: AOJu0YyOkcRTtUNbAnUk/Ym5AdIKrAXGPaZFSAS4zORJdVIYM6Rs7ALP hCraGHlw4Er8VeZwbx+/KY0sEmXXqHVOsSt0+48vducG+obY9vzeSvkHvo7XoUsVzmI9QXcAF81 lA98= X-Google-Smtp-Source: AGHT+IGECZQFrXkpFqxB3RNEBiB5RDM+3iC4rYRmNrDFoVrxR8akOUAJeOHTwZlMLAHK3W5UjpwG2Q== X-Received: by 2002:a92:c14d:0:b0:36a:3ee8:b9f0 with SMTP id b13-20020a92c14d000000b0036a3ee8b9f0mr11557527ilh.0.1713294967006; Tue, 16 Apr 2024 12:16:07 -0700 (PDT) Received: from smtpclient.apple ([2600:1700:3374:8af:f127:d5f6:12be:5df9]) by smtp.gmail.com with ESMTPSA id j3-20020a81c403000000b0061870c6e41csm2439588ywi.6.2024.04.16.12.16.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Apr 2024 12:16:06 -0700 (PDT) From: Joe Gilder Content-Type: multipart/alternative; boundary="Apple-Mail=_E761CA48-39BD-476C-B5BF-B43F3071A1EC" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: [BUG] query-replace breaks org-mode [9.6.6 (release_9.6.6 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)] Message-Id: <6E8E77D9-5548-484C-AA2F-AB99D6DF8FD1@homestudiocorner.com> Date: Tue, 16 Apr 2024 14:16:05 -0500 To: emacs-orgmode@gnu.org X-Mailer: Apple Mail (2.3696.120.41.1.2) Received-SPF: neutral client-ip=2607:f8b0:4864:20::d2e; envelope-from=joe@homestudiocorner.com; helo=mail-io1-xd2e.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 autolearn=no 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.38 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -8.38 X-Migadu-Queue-Id: 50A9B6B97 X-TUID: RNVQLZwx6GWi --Apple-Mail=_E761CA48-39BD-476C-B5BF-B43F3071A1EC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Noticed this a few times. When I run query-replace, it functions as = usual. However, when I=E2=80=99m done with the query-replace, it seems = to break org-fold. I can=E2=80=99t fold/unfold headings anymore.=20 I had the same issue the other day with replace-string as well.=20 Killing buffer and coming back fixes it.=20 ------------------------------------------------------------------------ Emacs : GNU Emacs 29.1 (build 1, aarch64-apple-darwin21.6.0, Carbon = Version 165 AppKit 2113.6) of 2023-08-08 Package: Org mode version 9.6.6 (release_9.6.6 @ = /Applications/Emacs.app/Contents/Resources/lisp/org/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-agenda-prefix-format '((agenda . " %?-10t %s ") (timeline . " % = s") (todo . " %s ") (tags . " %i ") (search . " = %i %-12:c")) org-archive-location "~/Emacs/Archive.org::" org-log-note-headings '((note . "%t")) org-link-elisp-confirm-function nil org-agenda-skip-deadline-prewarning-if-scheduled t org-hide-emphasis-markers t org-bibtex-headline-format-function #[257 "\300=01\236A\207" [:title] 3 = "\n\n(fn ENTRY)"] org-download-file-format-function 'org-download-file-format-default org-attach-id-to-path-function-list '(org-attach-id-ts-folder-format) org-agenda-custom-commands '(("i" "INBOX + AGENDA" ((todo "NEXT" = ((org-agenda-overriding-header "Next")) (org-agenda-skip-function '(org-agenda-skip-entry-if 'date = 'timestamp 'deadline 'scheduled) ) (org-agenda-block-separator nil)) (tags-todo "inbox" ((org-agenda-overriding-header "Inbox") (org-agenda-skip-function '(org-agenda-skip-entry-if 'timestamp = 'deadline 'scheduled 'todo '("PROJECT" "NEXT" "WAITING" "DONE" = "CANCELLED")) ) (org-agenda-block-separator nil)) ) (agenda "") (todo "PROJECT" ((org-agenda-overriding-header = "Projects") (org-agenda-skip-function '(org-agenda-skip-entry-if 'tags = '("tickler"))) (org-agenda-block-separator 61)) ) (tags-todo "@pam" ((org-agenda-overriding-header "@Pam") (org-agenda-block-separator 61) (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline = 'scheduled 'todo '("PROJECT" "NEXT" "WAITING" "DONE" = "CANCELLED")) ) ) ) (tags-todo "@work" ((org-agenda-overriding-header "@Work") (org-agenda-block-separator nil) (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline = 'scheduled 'todo '("PROJECT" "NEXT" "WAITING" "DONE" = "CANCELLED")) ) ) ) (tags-todo "@home" ((org-agenda-overriding-header "@Home") (org-agenda-block-separator nil) (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline = 'scheduled 'todo '("PROJECT" "NEXT" "WAITING" "DONE" = "CANCELLED")) ) ) ) (todo "WAITING" ((org-agenda-overriding-header = "@Waiting/@Calendar") (org-agenda-block-separator nil)) ) ) ) ) org-agenda-skip-scheduled-if-done t org-agenda-files '("~/Emacs/Todo.org" "~/Emacs/Journal.org" = "~/Emacs/Notes.org" "~/Emacs/.emacs.d/config.org" = "~/Emacs/calendar-beorg.org") org-capture-templates '(("t" "Todo" entry (file+olp+datetree "~/Dropbox/Emacs/Todo.org") "* TODO %^{Headline}\n%?" :clock-in nil = :clock-resume nil) ("0" "Quick Capture - Todo" entry (file+olp+datetree "~/Dropbox/Emacs/Todo.org") "* TODO %^{Headline}" :clock-in nil = :clock-resume nil :immediate-finish 1) ("l" "Log (Clocks In)" entry (file+olp+datetree "~/Dropbox/Emacs/Todo.org") "* %^{Headline}\n%?" :clock-in t :clock-resume = t) ("p" "Project" entry (file+headline "~/Dropbox/Emacs/Todo.org" = "PROJECTS") "* PROJECT %^{Headline}\n%?" :clock-in nil = :clock-resume nil) ("n" "Note" entry (file+headline "~/Dropbox/Emacs/Notes.org" "NOTES TO PROCESS") "* %^{Headline}\n%?" :clock-in nil = :clock-resume nil) ("j" "Journal" entry (file+olp+datetree = "~/Dropbox/Emacs/Journal.org") "* %^{Headline}\n%?" :clock-in nil = :clock-resume nil) ) org-persist-after-read-hook '(org-element--cache-persist-after-read) org-refile-targets '((org-agenda-files :maxlevel . 9)) org-export-before-parsing-hook '(org-attach-expand-links) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-download-method 'attach org-archive-hook '(org-attach-archive-delete-maybe) org-speed-commands '(("a" . org-attach-reveal-in-emacs) ("A" . = org-archive-subtree-default-with-confirmation) ("&" . org-mark-ring-goto) ("o" . = jqg/speed-link-o) ("z" . org-add-note) ("Outline Navigation") ("n" org-speed-move-safe = 'org-next-visible-heading) ("p" org-speed-move-safe = 'org-previous-visible-heading) ("f" org-speed-move-safe = 'org-forward-heading-same-level) ("b" org-speed-move-safe = 'org-backward-heading-same-level) ("F" . org-next-block) ("B" . org-previous-block) ("u" org-speed-move-safe 'outline-up-heading) ("j" = . org-goto) ("g" org-refile '(4)) ("Outline Visibility") ("c" = . org-cycle) ("C" . org-shifttab) (" " . = org-display-outline-path) ("s" . org-toggle-narrow-to-subtree) ("k" . = org-cut-subtree) ("=3D" . org-columns) ("Outline Structure = Editing") ("U" . org-metaup) ("D" . org-metadown) ("r" . = org-metaright) ("l" . org-metaleft) ("R" . org-shiftmetaright) ("L" . org-shiftmetaleft) ("i" progn (forward-char 1) (call-interactively = 'org-insert-heading-respect-content)) ("^" . org-sort) ("w" . org-refile) ("a" . = org-archive-subtree-default-with-confirmation) ("@" . org-mark-subtree) ("#" . = org-toggle-comment) ("Clock Commands") ("I" . org-clock-in) ("O" . = org-clock-out) ("Meta Data Editing") ("t" . org-todo) ("," = org-priority) ("0" org-priority 32) ("1" org-priority 65) ("2" org-priority 66) ("3" org-priority 67) (":" . org-set-tags-command) ("e" . = org-set-effort) ("E" . org-inc-effort) ("W" lambda (m) (interactive "sMinutes before = warning: ") (org-entry-put (point) "APPT_WARNTIME" m)) ("Agenda Views etc") ("v" . org-agenda) ("/" . = org-sparse-tree) ("Misc") ("o" . org-open-at-point) ("?" . org-speed-command-help) ("<" org-agenda-set-restriction-lock 'subtree) (">" org-agenda-remove-restriction-lock)) org-file-apps '((auto-mode . emacs) (directory . emacs) ("\\.mm\\'" . = default) ("\\.x?html?\\'" . default) ("\\.pdf\\'" . default) ("\\.m4a\\'" . default) ("\\.m4v\\'" . default) ("\\.mp3\\'" . default) ("\\.wav\\'" . default) ("\\.jpg\\'" . default) ("\\.jpeg\\'" . default) ("\\.png\\'" . default) ("\\.tiff\\'" . default) ("\\.docx\\'" . default)) org-columns-default-format "%50ITEM(Task) %10CLOCKSUM %16TIMESTAMP_IA" org-cycle-hook '(org-cycle-hide-archived-subtrees = org-cycle-show-empty-lines org-cycle-optimize-window-after-visibility-change org-cycle-display-inline-images) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-image-actual-width 400 org-attach-use-inheritance nil org-mode-hook '((lambda nil (org-bullets-mode 1)) org-clock-load #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-show-all = append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook = org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-follow-link-hook '(recenter-top-bottom) org-babel-load-languages '((shell . t)) org-agenda-skip-deadline-if-done t org-id-ts-format "%Y%m%d%H%M%S" org-agenda-start-with-log-mode t org-agenda-time-grid '((daily today required-time) nil "......" = "----------------") org-agenda-span 'day org-download-timestamp "%Y%m%d%H%M%S_" org-download-abbreviate-filename-function 'expand-file-name org-present-mode-hook '((lambda nil (olivetti-set-width 20) = (hide-mode-line-mode 1) (org-present-big) (org-display-inline-images)) ) org-present-mode-quit-hook '((lambda nil (olivetti-set-width 79) (hide-mode-line-mode 0) = (org-present-small)) ) org-download-annotate-function 'dummy-org-download-annotate-function outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-agenda-sorting-strategy '((agenda scheduled-up time-up deadline-up) (todo alpha-up) (tags alpha-up) (search category-up tag-up)) org-startup-indented t org-fold-catch-invisible-edits 'error org-use-speed-commands t org-agenda-before-write-hook '(org-agenda-add-entry-text) org-agenda-after-show-hook '((lambda nil (org-narrow-to-subtree) (org-fold-show-children)) ) org-complete-tags-always-offer-all-agenda-tags t org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-window-setup 'current-window org-cycle-separator-lines 0 org-todo-keywords '((sequence "TODO(t)" "PROJECT(p)" "NEXT(n)" = "WAITING(w)" "|" "DONE" "CANCELLED") ) org-id-link-to-org-use-id 'create-if-interactive org-structure-template-alist '(("a" . "export ascii") ("c" . "center") ("C" . "comment") ("e" . "example") ("E" = . "export") ("h" . "export html") ("l" . "export = latex") ("q" . "quote") ("s" . "src") ("v" . = "verse") ("sl" . "src emacs-lisp")) org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent) org-speed-command-hook '(org-speed-command-activate = org-babel-speed-command-activate) org-enforce-todo-dependencies t org-bullets-bullet-list '("=E2=96=BA") org-todo-repeat-hook '(org-reset-checkbox-state-subtree) org-confirm-babel-evaluate nil org-fold-core-isearch-open-function 'org-fold--isearch-reveal org-clock-persist t org-persist-before-write-hook = '(org-element--cache-persist-before-write) org-tab-first-hook '(org-babel-hide-result-toggle-maybe = org-babel-header-arg-expand) org-link-shell-confirm-function nil org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-fontify-quote-and-verse-blocks t org-agenda-start-on-weekday t org-attach-id-dir "~/Emacs/Files" org-attach-method 'mv org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("eww" :follow org-eww-open :store = org-eww-store-link) ("rmail" :follow org-rmail-open :store = org-rmail-store-link) ("mhe" :follow org-mhe-open :store = org-mhe-store-link) ("irc" :follow org-irc-visit :store = org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export = org-info-export :store org-info-store-link :insert-description org-info-description-as-command) ("gnus" :follow org-gnus-open :store = org-gnus-store-link) ("docview" :follow org-docview-open :export = org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store = org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export = org-bbdb-export :complete org-bbdb-complete-link :store = org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open :export = org-link-doi-export) ("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("file+sys") = ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302=04Q=02\"\207" ["news" = browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("mailto" :follow #[514 "\301\300\302=04Q=02\"\207" ["mailto" = browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("https" :follow #[514 "\301\300\302=04Q=02\"\207" ["https" = browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("http" :follow #[514 "\301\300\302=04Q=02\"\207" ["http" = browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("ftp" :follow #[514 "\301\300\302=04Q=02\"\207" ["ftp" = browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("help" :follow org-link--open-help :store = org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp)) org-metaup-hook '(org-babel-load-in-session-maybe) org-agenda-remove-tags t org-download-heading-lvl nil org-startup-with-inline-images t org-blank-before-new-entry '((heading) (plain-list-item)) org-download-link-format-function = 'jqg/org-download-link-format-function-default org-agenda-dim-blocked-tasks nil org-link-frame-setup '((vm . vm-visit-folder-other-frame) (vm-imap . vm-visit-imap-folder-other-frame) (gnus . org-gnus-no-new-news) (file . find-file) (wl . wl-other-frame) (dir . = dired-other-window)) org-return-follows-link t org-tags-column 0 org-id-method 'ts org-clock-history-length 35 org-download-image-dir "~/Emacs/Files/" org-attach-store-link-p 'file org-footnote-section nil ) --Apple-Mail=_E761CA48-39BD-476C-B5BF-B43F3071A1EC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Noticed= this a few times. When I run query-replace, it functions as usual. = However, when I=E2=80=99m done with the query-replace, it seems to break = org-fold. I can=E2=80=99t fold/unfold headings anymore. 

I had the same issue the = other day with replace-string as well. 

Killing buffer and coming back fixes = it. 

---------------------------------------------------------------= ---------



Emacs  : GNU Emacs 29.1 (build 1, = aarch64-apple-darwin21.6.0, Carbon Version 165 AppKit 2113.6)
 of 2023-08-08
Package: Org mode = version 9.6.6 (release_9.6.6 @ = /Applications/Emacs.app/Contents/Resources/lisp/org/)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
 org-agenda-prefix-format = '((agenda . " %?-10t %s ") (timeline . "  % s")
=    (todo . " %s ") (tags . " %i ") (search . " = %i %-12:c"))
 org-archive-location "~/Emacs/Archive.org::"
 org-log-note-headings '((note . "%t"))
 org-link-elisp-confirm-function nil
 org-agenda-skip-deadline-prewarning-if-scheduled = t
 org-hide-emphasis-markers t
 org-bibtex-headline-format-function #[257 = "\300=01\236A\207" [:title] 3 "\n\n(fn ENTRY)"]
 org-download-file-format-function = 'org-download-file-format-default
 org-attach-id-to-path-function-list = '(org-attach-id-ts-folder-format)
 org-agenda-custom-commands '(("i" "INBOX + = AGENDA"
    =   ((todo "NEXT" ((org-agenda-overriding-header "Next"))
= (org-agenda-skip-function
=  '(org-agenda-skip-entry-if 'date = 'timestamp
  =  'deadline 'scheduled)
=  )
= (org-agenda-block-separator nil))
= (tags-todo "inbox"
= ((org-agenda-overriding-header "Inbox")
=  (org-agenda-skip-function
=   '(org-agenda-skip-entry-if 'timestamp 'deadline
=     'scheduled 'todo
=     '("PROJECT" "NEXT" "WAITING" = "DONE" "CANCELLED"))
  = )
=  (org-agenda-block-separator nil))
= )
(agenda = "")
(todo = "PROJECT"
= ((org-agenda-overriding-header "Projects")
=  (org-agenda-skip-function
=   '(org-agenda-skip-entry-if 'tags '("tickler")))
=  (org-agenda-block-separator 61))
= )
= (tags-todo "@pam"
= ((org-agenda-overriding-header "@Pam")
=  (org-agenda-block-separator 61)
=  (org-agenda-skip-function
=   '(org-agenda-skip-entry-if 'deadline 'scheduled
=     'todo
=     '("PROJECT" "NEXT" "WAITING" "DONE" = "CANCELLED"))
  = )
=  )
= )
= (tags-todo "@work"
= ((org-agenda-overriding-header "@Work")
=  (org-agenda-block-separator nil)
=  (org-agenda-skip-function
=   '(org-agenda-skip-entry-if 'deadline 'scheduled
=     'todo
=     '("PROJECT" "NEXT" "WAITING" "DONE" = "CANCELLED"))
  = )
=  )
= )
= (tags-todo "@home"
= ((org-agenda-overriding-header "@Home")
=  (org-agenda-block-separator nil)
=  (org-agenda-skip-function
=   '(org-agenda-skip-entry-if 'deadline 'scheduled
=     'todo
=     '("PROJECT" "NEXT" "WAITING" "DONE" = "CANCELLED"))
  = )
=  )
= )
(todo = "WAITING"
= ((org-agenda-overriding-header "@Waiting/@Calendar")
=  (org-agenda-block-separator = nil))
= )
= )
    =   )
    =  )
 org-agenda-skip-scheduled-if-done = t
 org-agenda-files '("~/Emacs/Todo.org" "~/Emacs/Journal.org" "~/Emacs/Notes.org"
=    "~/Emacs/.emacs.d/config.org" "~/Emacs/calendar-beorg.org")
 org-capture-templates '(("t" "Todo" entry
=  (file+olp+datetree "~/Dropbox/Emacs/Todo.org")
=  "* TODO %^{Headline}\n%?" :clock-in nil = :clock-resume nil)
("0" "Quick = Capture - Todo" entry
=  (file+olp+datetree "~/Dropbox/Emacs/Todo.org")
=  "* TODO %^{Headline}" :clock-in nil :clock-resume = nil
=  :immediate-finish 1)
= ("l" "Log (Clocks In)" entry
=  (file+olp+datetree "~/Dropbox/Emacs/Todo.org")
=  "* %^{Headline}\n%?" :clock-in t :clock-resume = t)
("p" "Project" = entry
=  (file+headline "~/Dropbox/Emacs/Todo.org" "PROJECTS")
=  "* PROJECT %^{Headline}\n%?" :clock-in nil :clock-resume = nil)
("n" "Note" = entry
=  (file+headline "~/Dropbox/Emacs/Notes.org"
=   "NOTES TO PROCESS")
=  "* %^{Headline}\n%?" :clock-in nil :clock-resume = nil)
("j" "Journal" = entry
=  (file+olp+datetree "~/Dropbox/Emacs/Journal.org")
=  "* %^{Headline}\n%?" :clock-in nil :clock-resume = nil)
)
 org-persist-after-read-hook = '(org-element--cache-persist-after-read)
 org-refile-targets '((org-agenda-files :maxlevel . = 9))
 org-export-before-parsing-hook = '(org-attach-expand-links)
 org-cycle-tab-first-hook = '(org-babel-hide-result-toggle-maybe
=    org-babel-header-arg-expand)
 org-download-method 'attach
 org-archive-hook = '(org-attach-archive-delete-maybe)
 org-speed-commands '(("a" . = org-attach-reveal-in-emacs)
=      ("A" . = org-archive-subtree-default-with-confirmation)
=      ("&" . org-mark-ring-goto) ("o" . = jqg/speed-link-o)
     ("z" = . org-add-note) ("Outline Navigation")
=      ("n" org-speed-move-safe = 'org-next-visible-heading)
=      ("p" org-speed-move-safe = 'org-previous-visible-heading)
=      ("f" org-speed-move-safe = 'org-forward-heading-same-level)
=      ("b" org-speed-move-safe = 'org-backward-heading-same-level)
=      ("F" . org-next-block) ("B" . = org-previous-block)
     ("u" = org-speed-move-safe 'outline-up-heading) ("j" . org-goto)
=      ("g" org-refile '(4)) ("Outline Visibility") = ("c" . org-cycle)
     ("C" = . org-shifttab) (" " . org-display-outline-path)
=      ("s" . org-toggle-narrow-to-subtree) ("k" . = org-cut-subtree)
     ("=3D"= . org-columns) ("Outline Structure Editing")
=      ("U" . org-metaup) ("D" . org-metadown) ("r" . = org-metaright)
     ("l" = . org-metaleft) ("R" . org-shiftmetaright)
=      ("L" . org-shiftmetaleft)
=      ("i" progn (forward-char 1)
=       (call-interactively = 'org-insert-heading-respect-content))
=      ("^" . org-sort) ("w" . org-refile)
=      ("a" . = org-archive-subtree-default-with-confirmation)
=      ("@" . org-mark-subtree) ("#" . = org-toggle-comment)
    =  ("Clock Commands") ("I" . org-clock-in) ("O" . = org-clock-out)
    =  ("Meta Data Editing") ("t" . org-todo) ("," = org-priority)
     ("0" = org-priority 32) ("1" org-priority 65)
=      ("2" org-priority 66) ("3" org-priority = 67)
     (":" = . org-set-tags-command) ("e" . org-set-effort)
=      ("E" . org-inc-effort)
=      ("W" lambda (m) (interactive "sMinutes before = warning: ")
      = (org-entry-put (point) "APPT_WARNTIME" m))
=      ("Agenda Views etc") ("v" . org-agenda) ("/" . = org-sparse-tree)
    =  ("Misc") ("o" . org-open-at-point)
=      ("?" . org-speed-command-help)
=      ("<" org-agenda-set-restriction-lock = 'subtree)
    =  (">" org-agenda-remove-restriction-lock))
 org-file-apps '((auto-mode . emacs) (directory . emacs) = ("\\.mm\\'" . default)
("\\.x?html?\\'" . = default) ("\\.pdf\\'" . default)
= ("\\.m4a\\'" . default) ("\\.m4v\\'" . default)
= ("\\.mp3\\'" . default) ("\\.wav\\'" . default)
= ("\\.jpg\\'" . default) ("\\.jpeg\\'" . default)
= ("\\.png\\'" . default) ("\\.tiff\\'" . default)
= ("\\.docx\\'" . default))
 org-columns-default-format "%50ITEM(Task) %10CLOCKSUM = %16TIMESTAMP_IA"
 org-cycle-hook = '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
= =  org-cycle-optimize-window-after-visibility-change
=  org-cycle-display-inline-images)
 org-persist-before-read-hook = '(org-element--cache-persist-before-read)
 org-image-actual-width 400
 org-attach-use-inheritance nil
 org-mode-hook '((lambda nil (org-bullets-mode 1)) = org-clock-load
#[0 = "\300\301\302\303\304$\207"
=   [add-hook change-major-mode-hook org-fold-show-all append local] = 5]
#[0 = "\300\301\302\303\304$\207"
=   [add-hook change-major-mode-hook org-babel-show-result-all = append
  =  local]
  5]
= org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-follow-link-hook '(recenter-top-bottom)
 org-babel-load-languages '((shell . t))
 org-agenda-skip-deadline-if-done t
 org-id-ts-format "%Y%m%d%H%M%S"
 org-agenda-start-with-log-mode t
 org-agenda-time-grid '((daily today required-time) nil = "......" "----------------")
 org-agenda-span = 'day
 org-download-timestamp = "%Y%m%d%H%M%S_"
 org-download-abbreviate-filename-function = 'expand-file-name
 org-present-mode-hook = '((lambda nil (olivetti-set-width 20) (hide-mode-line-mode 1)
=  (org-present-big) = (org-display-inline-images))
= )
 org-present-mode-quit-hook = '((lambda nil (olivetti-set-width 79)
=       (hide-mode-line-mode 0) = (org-present-small))
    =  )
 org-download-annotate-function = 'dummy-org-download-annotate-function
 outline-isearch-open-invisible-function = 'outline-isearch-open-invisible
 org-agenda-sorting-strategy '((agenda scheduled-up = time-up deadline-up)
    =   (todo alpha-up) (tags alpha-up)
=       (search category-up tag-up))
 org-startup-indented t
 org-fold-catch-invisible-edits 'error
 org-use-speed-commands t
 org-agenda-before-write-hook = '(org-agenda-add-entry-text)
 org-agenda-after-show-hook '((lambda nil = (org-narrow-to-subtree)
=       (org-fold-show-children))
=      )
 org-complete-tags-always-offer-all-agenda-tags = t
 org-src-mode-hook = '(org-src-babel-configure-edit-buffer
=     org-src-mode-configure-edit-buffer)
 org-agenda-window-setup 'current-window
 org-cycle-separator-lines 0
 org-todo-keywords '((sequence "TODO(t)" "PROJECT(p)" = "NEXT(n)" "WAITING(w)" "|"
=      "DONE" "CANCELLED")
=     )
 org-id-link-to-org-use-id = 'create-if-interactive
 org-structure-template-alist '(("a" . "export ascii") = ("c" . "center")
("C" . = "comment") ("e" . "example") ("E" . "export")
= ("h" . "export html") ("l" . "export latex")
= ("q" . "quote") ("s" . "src") ("v" . = "verse")
("sl" . = "src emacs-lisp"))
 org-blocker-hook = '(org-block-todo-from-children-or-siblings-or-parent)
 org-speed-command-hook '(org-speed-command-activate = org-babel-speed-command-activate)
 org-enforce-todo-dependencies t
 org-bullets-bullet-list '("=E2=96=BA")
 org-todo-repeat-hook = '(org-reset-checkbox-state-subtree)
 org-confirm-babel-evaluate nil
 org-fold-core-isearch-open-function = 'org-fold--isearch-reveal
 org-clock-persist = t
 org-persist-before-write-hook = '(org-element--cache-persist-before-write)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe = org-babel-header-arg-expand)
 org-link-shell-confirm-function nil
 org-babel-pre-tangle-hook '(save-buffer)
 org-agenda-loop-over-headlines-in-active-region = nil
 org-fontify-quote-and-verse-blocks = t
 org-agenda-start-on-weekday t
 org-attach-id-dir "~/Emacs/Files"
 org-attach-method 'mv
 org-occur-hook '(org-first-headline-recenter)
 org-metadown-hook = '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("eww" :follow org-eww-open = :store org-eww-store-link)
=       ("rmail" :follow org-rmail-open :store = org-rmail-store-link)
      = ("mhe" :follow org-mhe-open :store org-mhe-store-link)
=       ("irc" :follow org-irc-visit :store = org-irc-store-link :export
= org-irc-export)
      = ("info" :follow org-info-open :export org-info-export :store
= org-info-store-link :insert-description
= org-info-description-as-command)
=       ("gnus" :follow org-gnus-open :store = org-gnus-store-link)
      = ("docview" :follow org-docview-open :export org-docview-export
= :store org-docview-store-link)
=       ("bibtex" :follow org-bibtex-open :store = org-bibtex-store-link)
      = ("bbdb" :follow org-bbdb-open :export org-bbdb-export = :complete
= org-bbdb-complete-link :store org-bbdb-store-link)
=       ("w3m" :store org-w3m-store-link)
=       ("doi" :follow org-link-doi-open :export = org-link-doi-export)
      = ("attachment" :follow org-attach-follow :complete
= org-attach-complete-link)
=       ("id" :follow org-id-open) ("file+sys") = ("file+emacs")
      = ("shell" :follow org-link--open-shell)
=       ("news" :follow
= #[514 "\301\300\302=04Q=02\"\207" ["news" browse-url ":"] = 6
 "\n\n(fn = URL ARG)"]
)
=       ("mailto" :follow
= #[514 "\301\300\302=04Q=02\"\207" ["mailto" browse-url ":"] = 6
 "\n\n(fn = URL ARG)"]
)
=       ("https" :follow
= #[514 "\301\300\302=04Q=02\"\207" ["https" browse-url ":"] = 6
 "\n\n(fn = URL ARG)"]
)
=       ("http" :follow
= #[514 "\301\300\302=04Q=02\"\207" ["http" browse-url ":"] = 6
 "\n\n(fn = URL ARG)"]
)
=       ("ftp" :follow
= #[514 "\301\300\302=04Q=02\"\207" ["ftp" browse-url ":"] = 6
 "\n\n(fn = URL ARG)"]
)
=       ("help" :follow org-link--open-help :store = org-link--store-help)
      = ("file" :complete org-link-complete-file)
=       ("elisp" :follow org-link--open-elisp))
 org-metaup-hook = '(org-babel-load-in-session-maybe)
 org-agenda-remove-tags t
 org-download-heading-lvl nil
 org-startup-with-inline-images t
 org-blank-before-new-entry '((heading) = (plain-list-item))
 org-download-link-format-function = 'jqg/org-download-link-format-function-default
 org-agenda-dim-blocked-tasks nil
 org-link-frame-setup '((vm . = vm-visit-folder-other-frame)
= (vm-imap . vm-visit-imap-folder-other-frame)
= (gnus . org-gnus-no-new-news) (file . = find-file)
(wl . = wl-other-frame) (dir . dired-other-window))
 org-return-follows-link t
 org-tags-column 0
 org-id-method 'ts
 org-clock-history-length 35
 org-download-image-dir "~/Emacs/Files/"
 org-attach-store-link-p 'file
 org-footnote-section nil
 )

= --Apple-Mail=_E761CA48-39BD-476C-B5BF-B43F3071A1EC--