From 59160560fc09230a94f0887bbcb29a168f1c59a2 Mon Sep 17 00:00:00 2001
From: Paul Nelson <ultrono@gmail.com>
Date: Thu, 2 May 2024 08:37:29 +0200
Subject: [PATCH] Expand default auto-reveal options

* preview.el.in (preview-auto-reveal-commands):
* tex-fold.el (TeX-fold-auto-reveal-commands): Add
pop-to-mark-command and undo to the default setting.
---
 preview.el.in | 4 +++-
 tex-fold.el   | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/preview.el.in b/preview.el.in
index 9f7db674..027addfa 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -1645,7 +1645,9 @@ Fallback to :inherit and \\='default implemented."
   '((key-binding [left])
     (key-binding [right])
     backward-char
-    forward-char)
+    forward-char
+    pop-to-mark-command
+    undo)
   "List of commands that may cause a preview to be revealed.
 This list is consulted by the default value of `preview-auto-reveal'."
   :type '(repeat (choice (function :tag "Function")
diff --git a/tex-fold.el b/tex-fold.el
index e45188a6..f7b1c32f 100644
--- a/tex-fold.el
+++ b/tex-fold.el
@@ -262,7 +262,9 @@ After that, changing the prefix key requires manipulating keymaps."
     (key-binding [right])
     backward-char
     forward-char
-    mouse-set-point)
+    mouse-set-point
+    pop-to-mark-command
+    undo)
   "List of commands that may cause a fold to be revealed.
 This list is consulted by the default value of `TeX-fold-auto-reveal'."
   :type '(repeat (choice (function :tag "Function")
-- 
2.39.3 (Apple Git-145)

