emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/lentic de2450d3e4 043/333: Removed condition-case-no-de


From: ELPA Syncer
Subject: [elpa] externals/lentic de2450d3e4 043/333: Removed condition-case-no-debug
Date: Tue, 27 Feb 2024 12:59:59 -0500 (EST)

branch: externals/lentic
commit de2450d3e465bb63b279816c4c4a3d62a39d5c45
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>

    Removed condition-case-no-debug
    
    Seemed like a good idea, but actually it means that linked-buffer gets
    into an inconsistent state on debugging. Backtraces are never shown
    because the Emacs post-command-hook machinery swallows them.
---
 linked-buffer.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/linked-buffer.el b/linked-buffer.el
index 932888e225..48afac9b25 100644
--- a/linked-buffer.el
+++ b/linked-buffer.el
@@ -273,10 +273,15 @@ See `linked-buffer-init' for details."
   (interactive)
   (setq linked-buffer-emergency t))
 
+(defun linked-buffer-unemergency ()
+  (interactive)
+  (setq linked-buffer-emergency nil))
+
 (defun linked-buffer-post-command-hook ()
   "Update point according to config, with error handling."
+  ;;(message "Entering post-command-hook")
   (unless linked-buffer-emergency
-    (condition-case-unless-debug err
+    (condition-case err
         (linked-buffer-post-command-hook-1)
       (error
        (linked-buffer-hook-fail err "post-command-hook")))))
@@ -351,7 +356,7 @@ A and B are the buffers."
   "Run change update according to `linked-buffer-config'.
 Errors are handled. REST is currently just ignored."
   (unless linked-buffer-emergency
-    (condition-case-unless-debug err
+    (condition-case err
         (linked-buffer-after-change-function-1 rest)
       (error
        (linked-buffer-hook-fail err "after change")))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]