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

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

[elpa] externals/valign 2fe8f52 109/198: * valign.el (valign-table): Mov


From: Stefan Monnier
Subject: [elpa] externals/valign 2fe8f52 109/198: * valign.el (valign-table): Move the check for GUI into condition-case form.
Date: Tue, 1 Dec 2020 18:19:27 -0500 (EST)

branch: externals/valign
commit 2fe8f5276c3dff6f7af16e0b6fa6c5c13f197217
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    * valign.el (valign-table): Move the check for GUI into condition-case form.
---
 valign.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/valign.el b/valign.el
index 4b9bd8d..12fbad8 100644
--- a/valign.el
+++ b/valign.el
@@ -508,10 +508,10 @@ You need to restart valign mode for this setting to take 
effect."
 (defun valign-table ()
   "Visually align the table at point."
   (interactive)
-  (if (not window-system)
-      (signal 'valign-not-gui nil))
   (condition-case nil
       (save-excursion
+        (if (not window-system)
+            (signal 'valign-not-gui nil))
         (let (end column-width-list column-idx pos ssw bar-width
                   separator-row-point-list rev-list
                   column-alignment-list info at-sep-row right-bar-pos)



reply via email to

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