branch: externals/valign
commit 2fe8f5276c3dff6f7af16e0b6fa6c5c13f197217
Author: Yuan Fu <[email protected]>
Commit: Yuan Fu <[email protected]>
* 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)