[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/valign 97beef8 127/198: Remove valign-table-quiet
From: |
Stefan Monnier |
Subject: |
[elpa] externals/valign 97beef8 127/198: Remove valign-table-quiet |
Date: |
Tue, 1 Dec 2020 18:19:32 -0500 (EST) |
branch: externals/valign
commit 97beef8050c27b59d76ffab9883c038564f607e5
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
Remove valign-table-quiet
* valign.el (valign-table-quiet): Remove function.
(valign-region): inline function.
---
valign.el | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/valign.el b/valign.el
index 2aac054..309873f 100644
--- a/valign.el
+++ b/valign.el
@@ -556,13 +556,6 @@ You need to restart valign mode for this setting to take
effect."
;;; Mode intergration
-(defun valign-table-quiet ()
- "Align table but don’t emit any errors."
- (condition-case err
- (valign-table)
- (error (message "Valign error when aligning table: %s"
- (error-message-string err)))))
-
(defun valign-region (&optional beg end)
"Align tables between BEG and END.
Supposed to be called from jit-lock.
@@ -577,10 +570,9 @@ Force align if FORCE non-nil."
(goto-char beg)
(while (and (search-forward "|" nil t)
(< (point) end))
- (valign-table-quiet)
- (valign--end-of-table))
- (with-silent-modifications
- (put-text-property beg (point) 'valign-init t)))))
+ (with-demoted-errors "Valign error when aligning table: %s"
+ (valign-table))
+ (valign--end-of-table)))))
(cons 'jit-lock-bounds (cons beg end)))
(defvar valign-mode)
- [elpa] externals/valign 7315f4b 148/198: Add support for org-indent, (continued)
- [elpa] externals/valign 7315f4b 148/198: Add support for org-indent, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 99300eb 167/198: Add support for table.el tables, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 7b581e0 072/198: Remove valign-werid-alignment error, Stefan Monnier, 2020/12/01
- [elpa] externals/valign f6d60d2 078/198: Merge two implementations for valign--align-separator-row, Stefan Monnier, 2020/12/01
- [elpa] externals/valign e9975b7 083/198: Use new text size calculation, Stefan Monnier, 2020/12/01
- [elpa] externals/valign e32d191 079/198: Valign-table refactor, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 21a397a 092/198: Update README, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 4ecc990 093/198: * valign.el (valign--table-face): Fix markdown-mode., Stefan Monnier, 2020/12/01
- [elpa] externals/valign c4ddfb3 095/198: Fix org-flag-region advice, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 7529ddd 111/198: Revert "* valign.el (valign-table): Tuck in some long lines.", Stefan Monnier, 2020/12/01
- [elpa] externals/valign 97beef8 127/198: Remove valign-table-quiet,
Stefan Monnier <=
- [elpa] externals/valign 1412fef 133/198: * valign.el (valign-table): Suppress search errors., Stefan Monnier, 2020/12/01
- [elpa] externals/valign fc591d8 129/198: * valign.el (valign-table-1): Clear overlay before measuring table., Stefan Monnier, 2020/12/01
- [elpa] externals/valign c5eb220 108/198: Remove valign--face-attribute, Stefan Monnier, 2020/12/01
- [elpa] externals/valign ed8dd50 118/198: Remove obsolete functions, Stefan Monnier, 2020/12/01
- [elpa] externals/valign ced2f6a 132/198: * valign.el (valign-table-1): Fix search term., Stefan Monnier, 2020/12/01
- [elpa] externals/valign c70c64e 125/198: * valign.el (valign--clean-text-property): Remove code using 'text-property-search-forward'., Stefan Monnier, 2020/12/01
- [elpa] externals/valign 645260f 076/198: * valign.el (valign-table): Allow edebug., Stefan Monnier, 2020/12/01
- [elpa] externals/valign 82566b3 080/198: Fix tab calculation, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 6578fe4 081/198: * valign.el (valign-table): Don’t message errors., Stefan Monnier, 2020/12/01
- [elpa] externals/valign e2a2a85 085/198: Rework hooks, Stefan Monnier, 2020/12/01