branch: externals/valign
commit 9daeab84f5edccf9dc2ccf010d7f2814c9db72e0
Author: Yuan Fu <[email protected]>
Commit: Yuan Fu <[email protected]>

    * valign.el (valign-table-quite): Really ignore errors.
---
 valign.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/valign.el b/valign.el
index dbb880d..41153b8 100644
--- a/valign.el
+++ b/valign.el
@@ -625,11 +625,11 @@ for the former, and 'multi-column for the latter."
   (jit-lock-register #'valign-initial-alignment))
 
 (defun valign-table-quite ()
-  "Align table, but only if buffer is visible."
-  (when (and window-system
-             (valign--at-table-p)
-             (get-buffer-window (current-buffer)))
-    (valign-table)))
+  "Align table but don’t emit any errors."
+  (condition-case err
+      (valign-table)
+    ((debug error) (message "Valign error when aligning table: %s"
+                            (error-message-string err)))))
 
 (defun valign--markdown-mode-hook ()
   "Valign hook function used by `markdown-mode'."

Reply via email to