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

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

[elpa] externals/latex-table-wizard acdd4d8b56 23/70: New interactive fu


From: ELPA Syncer
Subject: [elpa] externals/latex-table-wizard acdd4d8b56 23/70: New interactive function that calls transient prefix
Date: Sat, 13 May 2023 08:59:11 -0400 (EDT)

branch: externals/latex-table-wizard
commit acdd4d8b565011ea387ce96a115044dcca21e37f
Author: Enrico Flor <nericoflor@gmail.com>
Commit: Enrico Flor <nericoflor@gmail.com>

    New interactive function that calls transient prefix
---
 latex-table-wizard.el | 18 +++++++++++-------
 readme.org            |  5 ++++-
 2 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/latex-table-wizard.el b/latex-table-wizard.el
index 1dea3c37d2..be33738338 100644
--- a/latex-table-wizard.el
+++ b/latex-table-wizard.el
@@ -5,7 +5,7 @@
 ;; Author: Enrico Flor <enrico@eflor.net>
 ;; Maintainer: Enrico Flor <enrico@eflor.net>
 ;; URL: https://github.com/enricoflor/latex-table-wizard
-;; Version: 0.0.4
+;; Version: 0.0.5
 
 ;; Package-Requires: ((emacs "27.1") (auctex "12.1") (transient "0.3.7"))
 
@@ -416,7 +416,7 @@ Each value is an integer, S and E are markers."
                                                &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.
 
@@ -1150,9 +1150,7 @@ at point.  If it is none of those object, return nil."
 
 ;;; Transient
 
-;;;###autoload (autoload 'latex-table-wizard-do "latex-table-wizard" nil t)
-(transient-define-prefix latex-table-wizard-do ()
-  "Edit table-like environment at point with a transient interface."
+(transient-define-prefix latex-table-wizard-prefix ()
   [:description
    "      LaTeX table wizard"
    ["Motion"
@@ -1258,8 +1256,14 @@ Only remove them in current buffer."
                  (1-)
                  (goto-char))))
 
-(advice-add #'latex-table-wizard-do :after #'latex-table-wizard--get-out)
-(advice-add #'latex-table-wizard-do :after #'latex-table-wizard--hide-rest)
+;;;###autoload
+(defun latex-table-wizard-do ()
+  "Edit table-like environment with a transient interface."
+  (interactive)
+  (latex-table-wizard--get-out)
+  (latex-table-wizard--hide-rest)
+  (call-interactively #'latex-table-wizard-prefix))
+
 (advice-add #'transient-quit-one :before #'latex-table-wizard--cleanup)
 
 (provide 'latex-table-wizard)
diff --git a/readme.org b/readme.org
index c7d872e8df..978d6aad91 100644
--- a/readme.org
+++ b/readme.org
@@ -47,6 +47,9 @@ environments, where ~&~ delimits columns and ~\\~ rows (see 
[[#user-defined-envs
 as to how to specify additional syntaxes).
 
 Whenever we say "current" we mean "at point".
+
+** Start editing
+Just call ~latex-table-wizard-do~ when point is inside of table-like 
environment.
 ** Relative motion commands
 
 These commands move point N cells to the right, left, down, and up.  N
@@ -208,7 +211,7 @@ The default definition, which is the one assumed in this 
readme so
 far, is below:
 
 #+begin_src emacs-lisp
-(transient-define-prefix latex-table-wizard-do ()
+(transient-define-prefix latex-table-wizard-prefix ()
   [:description
    "      LaTeX table wizard"
    ["Motion"



reply via email to

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