[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/latex-table-wizard 4f3f4011ab 22/70: Add group for face
From: |
ELPA Syncer |
Subject: |
[elpa] externals/latex-table-wizard 4f3f4011ab 22/70: Add group for face and remove before-save-hook |
Date: |
Sat, 13 May 2023 08:59:11 -0400 (EDT) |
branch: externals/latex-table-wizard
commit 4f3f4011abc60aeb0a50e23516e46330caca2c57
Author: Enrico Flor <nericoflor@gmail.com>
Commit: Enrico Flor <nericoflor@gmail.com>
Add group for face and remove before-save-hook
---
latex-table-wizard.el | 33 ++++++++++++++++++++-------------
1 file changed, 20 insertions(+), 13 deletions(-)
diff --git a/latex-table-wizard.el b/latex-table-wizard.el
index 1e84a4e446..1dea3c37d2 100644
--- a/latex-table-wizard.el
+++ b/latex-table-wizard.el
@@ -412,25 +412,27 @@ Each value is an integer, S and E are markers."
`(,env-beg . ,env-end))
cells-list))
-(cl-defsubst latex-table-wizard--get-cell-pos (table prop-val1
- &optional prop-val2)
+(defun latex-table-wizard--get-cell-pos (table prop-val1
+ &optional prop-val2)
"Return the cell plist from TABLE at specific position.
-The position is given by PROP-VAL1 and PROP-VAL2, each of which
+The position is given by PROP-VAL1 and prop-val2, each of which
is a cons cell of the form (P . V), where P is either
\\=':column\\=' or \\=':row\\=' and V is the corresponding value.
-If PROP-VAL2 is nil, it is assumed that TABLE is a list of cells
+If prop-val2 is nil, it is assumed that TABLE is a list of cells
that only differ for the property in the car of PROP-VAL1 (in
other words, that TABLE is either a column or a row)"
- (let ((check (if prop-val2
- (lambda (x) (= (cdr prop-val2)
- (plist-get x (car prop-val2))))
- (lambda (x) t))))
+ (if prop-val2
+ (catch 'cell
+ (dolist (x table)
+ (when (and (= (cdr prop-val1) (plist-get x (car prop-val1)))
+ (= (cdr prop-val2) (plist-get x (car prop-val2))))
+ (throw 'cell x)))
+ nil)
(catch 'cell
(dolist (x table)
- (when (and (= (cdr prop-val1) (plist-get x (car prop-val1)))
- (funcall check x))
+ (when (= (cdr prop-val1) (plist-get x (car prop-val1)))
(throw 'cell x)))
nil)))
@@ -451,7 +453,7 @@ Precedence depends on the value of DIR (either \\='next\\=',
(t
(apply #'< rows)))))
-(cl-defun latex-table-wizard--get-extreme (dir table current-cell)
+(defun latex-table-wizard--get-extreme (dir table current-cell)
"Return the last cell in a certain row or cell from TABLE.
The goal is to get to the last cell in the same row or same
@@ -1210,9 +1212,15 @@ at point. If it is none of those object, return nil."
;;; Aesthetics
+(defgroup latex-table-wizard-faces nil
+ "Faces used by latex-table-wizard."
+ :group 'latex-table-wizard
+ :group 'faces)
+
(defface latex-table-wizard-background
'((t (:foreground "gray40")))
- "Face for hiding non-table buffer content.")
+ "Face for hiding non-table buffer content."
+ :group 'latex-table-wizard)
(defun latex-table-wizard--hide-rest ()
"Grey out parts of buffer outside of table at point."
@@ -1253,7 +1261,6 @@ Only remove them in current buffer."
(advice-add #'latex-table-wizard-do :after #'latex-table-wizard--get-out)
(advice-add #'latex-table-wizard-do :after #'latex-table-wizard--hide-rest)
(advice-add #'transient-quit-one :before #'latex-table-wizard--cleanup)
-(add-hook 'before-save-hook #'latex-table-wizard--cleanup)
(provide 'latex-table-wizard)
- [elpa] externals/latex-table-wizard 02ddb6e01c 41/70: Fix bug occurring when in Emacs 27, (continued)
- [elpa] externals/latex-table-wizard 02ddb6e01c 41/70: Fix bug occurring when in Emacs 27, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard 230bb852fa 43/70: Add .texi file, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard 723e619753 09/70: Generalize insert functions, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard b4b8b8bf52 13/70: Update readme for 0.0.3, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard de5a922da6 14/70: Remove useless calls to format, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard e3119802f7 15/70: Expand Commentary section, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard 3b53c528c7 19/70: Clarify commentary and fix typo, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard 1abac6974f 08/70: Fix problem when no space before delimiters, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard 809dff99ef 11/70: Make syntax-quoted forms everywhere, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard 74d169f8df 20/70: Two bug fixes, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard 4f3f4011ab 22/70: Add group for face and remove before-save-hook,
ELPA Syncer <=
- [elpa] externals/latex-table-wizard acdd4d8b56 23/70: New interactive function that calls transient prefix, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard da4a2e3540 24/70: Made into a minor mode, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard f9fb0ae878 28/70: Cleanup and some bug fixed, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard 9ce3165694 32/70: Add center and right alignment, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard e3553c7759 34/70: Add feedback about cell jumps, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard 13359e40f6 44/70: rename readme, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard f290f87949 45/70: add empty changelog file, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard 3bafcbefeb 49/70: Update commentary section, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard 36e68b0fd8 48/70: Add .elpaignore, ELPA Syncer, 2023/05/13
- [elpa] externals/latex-table-wizard 85af90dac4 52/70: Use TeX-comment-forward, ELPA Syncer, 2023/05/13