[elpa] externals/transient d49f85a 2/8: Support scroll-bar-toolkit-scroll
branch: externals/transient commit d49f85a8c1172b9f21d2fd4a54d1f802b53948fc Author: Jonas Bernoulli Commit: Jonas Bernoulli Support scroll-bar-toolkit-scroll Closes #84. --- lisp/transient.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/transient.el b/lisp/transient.el index 379364b..bfab91e 100644 --- a/lisp/transient.el +++ b/lisp/transient.el @@ -1122,7 +1122,8 @@ Usually it remains current while the transient is active.") (defvar transient--scroll-commands '(transient-scroll-up transient-scroll-down -mwheel-scroll)) +mwheel-scroll +scroll-bar-toolkit-scroll)) ;;; Identities @@ -1338,6 +1339,7 @@ edited using the same functions as used for transients.") (define-key map [transient-scroll-up] 'transient--do-stay) (define-key map [transient-scroll-down] 'transient--do-stay) (define-key map [mwheel-scroll] 'transient--do-stay) +(define-key map [scroll-bar-toolkit-scroll] 'transient--do-stay) (define-key map [transient-noop] 'transient--do-noop) (define-key map [transient-mouse-push-button] 'transient--do-move) (define-key map [transient-push-button] 'transient--do-move)
[elpa] externals/transient ac02efc 1/8: transient--scroll-commands: New variable
branch: externals/transient commit ac02efc1193973b88b04252968d7bcdbafaff7a6 Author: Jonas Bernoulli Commit: Jonas Bernoulli transient--scroll-commands: New variable --- lisp/transient.el | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lisp/transient.el b/lisp/transient.el index 65f6441..379364b 100644 --- a/lisp/transient.el +++ b/lisp/transient.el @@ -1119,6 +1119,11 @@ Usually it remains current while the transient is active.") (defvar transient--history nil) +(defvar transient--scroll-commands + '(transient-scroll-up +transient-scroll-down +mwheel-scroll)) + ;;; Identities (defun transient-suffix-object (&optional command) @@ -1790,9 +1795,7 @@ EDIT may be non-nil." (defun transient--redisplay () (if (or (eq transient-show-popup t) transient--showp) - (unless (memq this-command '(transient-scroll-up - transient-scroll-down - mwheel-scroll)) + (unless (memq this-command transient--scroll-commands) (transient--show)) (when (and (numberp transient-show-popup) (not (zerop transient-show-popup))
[elpa] externals/transient updated (ba63f9d -> e293d5b)
tarsius pushed a change to branch externals/transient. from ba63f9d Contribute to GNU Emacs and assign to the Free Software Foundation new ac02efc transient--scroll-commands: New variable new d49f85a Support scroll-bar-toolkit-scroll new c94cff7 Fix typo new dd0c44c Use the package prefix for everything new 3038769 Autoload functions that users might use without requiring transient new a6e4cce Remove the Package-Version header keyword again new 92f569e Move library and manual to top-level new e293d5b Set initial dummy value for Package-Version Summary of changes: README.md | 2 +- docs/transient.org| 48 lisp/transient.el => transient.el | 103 +- docs/transient.texi => transient.texi | 48 4 files changed, 114 insertions(+), 87 deletions(-) rename lisp/transient.el => transient.el (97%) rename docs/transient.texi => transient.texi (98%)
[elpa] externals/transient 92f569e 7/8: Move library and manual to top-level
branch: externals/transient commit 92f569e9b3bfe5c6cc5b15d15f408e98cd7df762 Author: Jonas Bernoulli Commit: Jonas Bernoulli Move library and manual to top-level This is the beginning of the branch dedicated to releasing to GNU Elpa. Elpa expects libraries and manuals to be located at the top-level, so that's what we do here. After every release "master" is merged into this branch. --- lisp/transient.el => transient.el | 0 docs/transient.texi => transient.texi | 0 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/lisp/transient.el b/transient.el similarity index 100% rename from lisp/transient.el rename to transient.el diff --git a/docs/transient.texi b/transient.texi similarity index 100% rename from docs/transient.texi rename to transient.texi
[elpa] externals/transient a6e4cce 6/8: Remove the Package-Version header keyword again
branch: externals/transient commit a6e4cced303b3febd59412b24a97eaf1e855e6d7 Author: Jonas Bernoulli Commit: Jonas Bernoulli Remove the Package-Version header keyword again This must only ever be bumped on the branch used to release to Elpa, so it wouldn't make sense to keep it around on the "master" at all. --- lisp/transient.el | 1 - 1 file changed, 1 deletion(-) diff --git a/lisp/transient.el b/lisp/transient.el index 554c175..5a02f06 100644 --- a/lisp/transient.el +++ b/lisp/transient.el @@ -5,7 +5,6 @@ ;; Author: Jonas Bernoulli ;; Homepage: https://github.com/magit/transient ;; Package-Requires: ((emacs "25.1")) -;; Package-Version: 0 ;; Keywords: bindings ;; This file is part of GNU Emacs.
[elpa] externals/transient c94cff7 3/8: Fix typo
branch: externals/transient commit c94cff7474227f8b28376708fc7fe9a929d3a417 Author: Jonas Bernoulli Commit: Jonas Bernoulli Fix typo --- lisp/transient.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/transient.el b/lisp/transient.el index bfab91e..fe24a71 100644 --- a/lisp/transient.el +++ b/lisp/transient.el @@ -2195,7 +2195,7 @@ which might make it necessary to kill it from the outside." "Read a value while taking care of history. This method is suitable for a wide variety of infix commands, -including but not limitted to inline arguments and variables. +including but not limited to inline arguments and variables. If you do not use this method for your own infix class, then you should likely replicate a lot of the behavior of this
[elpa] externals/transient dd0c44c 4/8: Use the package prefix for everything
branch: externals/transient commit dd0c44cb2db4bed0239832c3dd0c82076824c080 Author: Jonas Bernoulli Commit: Jonas Bernoulli Use the package prefix for everything Who's a good boy? --- README.md | 2 +- docs/transient.org | 48 +++--- docs/transient.texi | 48 +++--- lisp/transient.el | 86 - 4 files changed, 101 insertions(+), 83 deletions(-) diff --git a/README.md b/README.md index f08dd21..5de0058 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ the transient. A suffix command can, but does not have to, use the infix arguments in much the same way it can choose to use or ignore the prefix arguments. For a suffix command that was invoked from a transient the variable -`current-transient-suffixes` and the function `transient-args` serve about +`transient-current-suffixes` and the function `transient-args` serve about the same purpose as the variables `prefix-arg` and `current-prefix-arg` do for any command that was called after the prefix arguments have been set using a command such as `universal-argument`. diff --git a/docs/transient.org b/docs/transient.org index e34dfec..4927db5 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.2.0 (v0.2.0-1-gafa0c2f+1) +#+SUBTITLE: for version 0.2.0 (v0.2.0-8-gc94cff7+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.2.0 (v0.2.0-1-gafa0c2f+1). +This manual is for Transient version 0.2.0 (v0.2.0-8-gc94cff7+1). #+BEGIN_QUOTE Copyright (C) 2018-2020 Jonas Bernoulli @@ -98,7 +98,7 @@ the transient. A suffix command can, but does not have to, use the infix arguments in much the same way it can choose to use or ignore the prefix arguments. For a suffix command that was invoked from a transient the variable -~current-transient-suffixes~ and the function ~transient-args~ serve about +~transient-current-suffixes~ and the function ~transient-args~ serve about the same purpose as the variables ~prefix-arg~ and ~current-prefix-arg~ do for any command that was called after the prefix arguments have been set using a command such as ~universal-argument~. @@ -637,13 +637,13 @@ The following functions share a few arguments: - PREFIX is a transient prefix command, a symbol. - SUFFIX is a transient infix or suffix specification in the same form - as expected by ~define-transient-command~. Note that an infix is a + as expected by ~transient-define-prefix~. Note that an infix is a special kind of suffix. Depending on context "suffixes" means "suffixes (including infixes)" or "non-infix suffixes". Here it means the former. See [[*Suffix Specifications]]. SUFFIX may also be a group in the same form as expected by - ~define-transient-command~. See [[*Group Specifications]]. + ~transient-define-prefix~. See [[*Group Specifications]]. - LOC is a command, a key vector, a key description (a string as returned by ~key-description~), or a list specifying coordinates (the @@ -710,7 +710,7 @@ binds the transient's infix and suffix commands. In other words, it defines the complete transient, not just the transient prefix command that is used to invoke that transient. -- Macro: define-transient-command name arglist [docstring] [keyword value]... group... [body...] +- Macro: transient-define-prefix name arglist [docstring] [keyword value]... group... [body...] This macro defines NAME as a transient prefix command and binds the transient's infix and suffix commands. @@ -758,7 +758,7 @@ that is used to invoke that transient. ** Binding Suffix and Infix Commands *** _ :ignore: -The macro ~define-transient-command~ is used to define a transient. +The macro ~transient-define-prefix~ is used to define a transient. This defines the actual transient prefix command (see [[*Defining Transients]]) and adds the transient's infix and suffix bindings, as described below. @@ -767,7 +767,7 @@ Users and third-party packages can add additional bindings using functions such as ~transient-insert-suffix~ (See [[*Modifying Existing Transients]]). These functions take a "suffix specification" as one of their arguments, which has the same form as the specifications used in -~define-transient-command~. +~transient-define-prefix~. *** Group Specifications @@ -780,7 +780,7 @@ Several group classes exist, some of which organize suffixes in subgroups. In most cases the class does not have to be specified explicitly, but see [[*Group Classes]]. -Groups are specified in the call to ~define-transient-command~, using +Groups
[elpa] externals/transient e293d5b 8/8: Set initial dummy value for Package-Version
branch: externals/transient commit e293d5b36b5a683211b4412d264e387348918a13 Author: Jonas Bernoulli Commit: Jonas Bernoulli Set initial dummy value for Package-Version Set the `Package-Version' header keyword to the initial dummy value "0". We are going to bump this on this branch only every time we merge "master" into it after a release, starting with the upcoming "0.3.0" release. --- transient.el | 1 + 1 file changed, 1 insertion(+) diff --git a/transient.el b/transient.el index 5a02f06..554c175 100644 --- a/transient.el +++ b/transient.el @@ -5,6 +5,7 @@ ;; Author: Jonas Bernoulli ;; Homepage: https://github.com/magit/transient ;; Package-Requires: ((emacs "25.1")) +;; Package-Version: 0 ;; Keywords: bindings ;; This file is part of GNU Emacs.
[elpa] externals/transient 3038769 5/8: Autoload functions that users might use without requiring transient
branch: externals/transient commit 30387690fda86e3a594906e154dac4e20f60bbfb Author: Jonas Bernoulli Commit: Jonas Bernoulli Autoload functions that users might use without requiring transient These functions and macros serve a purpose similar to `define-key', which is also available without the user having to require anything. --- lisp/transient.el | 4 1 file changed, 4 insertions(+) diff --git a/lisp/transient.el b/lisp/transient.el index f8c9d45..554c175 100644 --- a/lisp/transient.el +++ b/lisp/transient.el @@ -935,6 +935,7 @@ example, sets a variable use `transient-define-infix' instead. (append (setcdr mem (cons suf (cdr mem (replace (setcar mem suf))) +;;;###autoload (defun transient-insert-suffix (prefix loc suffix) "Insert a SUFFIX into PREFIX before LOC. PREFIX is a prefix command, a symbol. @@ -947,6 +948,7 @@ See info node `(transient)Modifying Existing Transients'." (declare (indent defun)) (transient--insert-suffix prefix loc suffix 'insert)) +;;;###autoload (defun transient-append-suffix (prefix loc suffix) "Insert a SUFFIX into PREFIX after LOC. PREFIX is a prefix command, a symbol. @@ -959,6 +961,7 @@ See info node `(transient)Modifying Existing Transients'." (declare (indent defun)) (transient--insert-suffix prefix loc suffix 'append)) +;;;###autoload (defun transient-replace-suffix (prefix loc suffix) "Replace the suffix at LOC in PREFIX with SUFFIX. PREFIX is a prefix command, a symbol. @@ -971,6 +974,7 @@ See info node `(transient)Modifying Existing Transients'." (declare (indent defun)) (transient--insert-suffix prefix loc suffix 'replace)) +;;;###autoload (defun transient-remove-suffix (prefix loc) "Remove the suffix or group at LOC in PREFIX. PREFIX is a prefix command, a symbol.