[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 202271f755 306/366: Resurrect transient-files
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 202271f755 306/366: Resurrect transient-files class |
Date: |
Tue, 25 Jan 2022 18:54:50 -0500 (EST) |
branch: externals/transient
commit 202271f755497bacb50a1f2b3c93566e816f447e
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Resurrect transient-files class
Deprecating it in the previous commit was premature. However to
make it actually useful it has to derive from `transient-option'
and set some default values.
---
docs/transient.org | 9 ++++-----
docs/transient.texi | 9 ++++-----
lisp/transient.el | 12 ++++++++----
3 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/docs/transient.org b/docs/transient.org
index 4941a8a434..85da5d94ce 100644
--- a/docs/transient.org
+++ b/docs/transient.org
@@ -8,7 +8,7 @@
#+TEXINFO_DIR_CATEGORY: Emacs
#+TEXINFO_DIR_TITLE: Transient: (transient).
#+TEXINFO_DIR_DESC: Transient Commands
-#+SUBTITLE: for version 0.3.7 (v0.3.7-8-gc9ab648e+1)
+#+SUBTITLE: for version 0.3.7 (v0.3.7-9-g667488eb+1)
#+TEXINFO_DEFFN: t
#+OPTIONS: H:4 num:4 toc:2
@@ -37,7 +37,7 @@ Calling a suffix command usually causes the transient to be
exited
but suffix commands can also be configured to not exit the transient.
#+TEXINFO: @noindent
-This manual is for Transient version 0.3.7 (v0.3.7-8-gc9ab648e+1).
+This manual is for Transient version 0.3.7 (v0.3.7-9-g667488eb+1).
#+BEGIN_QUOTE
Copyright (C) 2018-2021 Jonas Bernoulli <jonas@bernoul.li>
@@ -1421,9 +1421,8 @@ object should not affect later invocations.
- The ~transient-switches~ class can be used for a set of mutually
exclusive command-line switches.
-- The ~transient-files~ class is deprecated in favor of
- ~transient-option'~, which learned all the tricks of this class.
- Just switch the class and you are ready to go.
+- The ~transient-files~ class can be used for a "--" argument that
+ indicates that all remaining arguments are files.
- Classes used for infix commands that represent variables should
derived from the abstract ~transient-variables~ class.
diff --git a/docs/transient.texi b/docs/transient.texi
index 8c8ea9d166..ae44d41aa6 100644
--- a/docs/transient.texi
+++ b/docs/transient.texi
@@ -31,7 +31,7 @@ General Public License for more details.
@finalout
@titlepage
@title Transient User and Developer Manual
-@subtitle for version 0.3.7 (v0.3.7-8-gc9ab648e+1)
+@subtitle for version 0.3.7 (v0.3.7-9-g667488eb+1)
@author Jonas Bernoulli
@page
@vskip 0pt plus 1filll
@@ -65,7 +65,7 @@ Calling a suffix command usually causes the transient to be
exited
but suffix commands can also be configured to not exit the transient.
@noindent
-This manual is for Transient version 0.3.7 (v0.3.7-8-gc9ab648e+1).
+This manual is for Transient version 0.3.7 (v0.3.7-9-g667488eb+1).
@quotation
Copyright (C) 2018-2021 Jonas Bernoulli <jonas@@bernoul.li>
@@ -1751,9 +1751,8 @@ exclusive command-line switches.
@item
-The @code{transient-files} class is deprecated in favor of
-@code{transient-option'}, which learned all the tricks of this class.
-Just switch the class and you are ready to go.
+The @code{transient-files} class can be used for a "--" argument that
+indicates that all remaining arguments are files.
@item
diff --git a/lisp/transient.el b/lisp/transient.el
index afde84e3c2..c364c127b9 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -741,10 +741,14 @@ slot is non-nil."
(argument-regexp :initarg :argument-regexp))
"Class used for sets of mutually exclusive command-line switches.")
-(defclass transient-files (transient-infix) ()
- "This class is deprecated in favor of `transient-option'.
-`transient-option' learned all the tricks of this class.
-Just switch the class and you are ready to go.")
+(defclass transient-files (transient-option) ()
+ ((key :initform "--")
+ (argument :initform "--")
+ (multi-value :initform rest)
+ (reader :initform transient-read-files))
+ "Class used for the \"--\" argument or similar.
+All remaining arguments are treated as files.
+They become the value of this argument.")
;;;; Group
- [elpa] externals/transient 37684a8cf7 263/366: manual: use ox-texinfo's notoc support, (continued)
- [elpa] externals/transient 37684a8cf7 263/366: manual: use ox-texinfo's notoc support, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient cf5e58a3a7 267/366: make: Automatically set date in changelog, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient b2b375e848 275/366: transient-show-help: Avoid this-original-command, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient df13feff33 289/366: Remove various duplicated words, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient ee8bdcfcee 290/366: Fix alias definition, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 6842305e84 286/366: Support undefined suffixes if an extra step is taken, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 0c2255a296 295/366: transient-get-value: Add an emergency exit, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 938b059192 297/366: transient--show: Set point after displaying window again, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 9b6a251f5c 300/366: transient-show-help: Avoid this-original-command, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 667488ebff 305/366: Extend multi-value support, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 202271f755 306/366: Resurrect transient-files class,
Jonas Bernoulli <=
- [elpa] externals/transient 4e8aa09b3f 309/366: transient-define-infix: Fix documentation, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient c26cbac574 316/366: transient-{init, set}-value: Use case-sensitive matching, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 338f7942a7 320/366: Various debug improvements, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 79c999d263 325/366: transient--post-exit: New function, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient e77d16dd02 322/366: transient--post-command: Avoid needlessly recreating redisplay map, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 7b8a7d718a 327/366: Use a more targeted approach to suspending transient override, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 3c78b10f52 333/366: transient--redisplay: Don't redisplay during mouse-drag-region, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient bf29731a72 332/366: transient--post-command: Don't pop and push equal redisplay maps, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 777a84d26b 339/366: manual: Document all options, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient c19ff84355 338/366: manual: Rearrange and group options, Jonas Bernoulli, 2022/01/25