From b19b8ec912e60411568780d606a450384e3cc34d Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Thu, 23 Nov 2023 19:53:41 +0100 Subject: [PATCH] update transient Signed-off-by: Andreas Gerler --- .../dir | 0 .../gpl.info | 0 .../transient-autoloads.el | 0 .../transient-pkg.el | 6 +- .../transient.el | 30 ++-- .../transient.info | 130 +++++++++--------- 6 files changed, 89 insertions(+), 77 deletions(-) rename elpa/{transient-20230501.1034 => transient-20230602.2121}/dir (100%) rename elpa/{transient-20230501.1034 => transient-20230602.2121}/gpl.info (100%) rename elpa/{transient-20230501.1034 => transient-20230602.2121}/transient-autoloads.el (100%) rename elpa/{transient-20230501.1034 => transient-20230602.2121}/transient-pkg.el (67%) rename elpa/{transient-20230501.1034 => transient-20230602.2121}/transient.el (99%) rename elpa/{transient-20230501.1034 => transient-20230602.2121}/transient.info (98%) diff --git a/elpa/transient-20230501.1034/dir b/elpa/transient-20230602.2121/dir similarity index 100% rename from elpa/transient-20230501.1034/dir rename to elpa/transient-20230602.2121/dir diff --git a/elpa/transient-20230501.1034/gpl.info b/elpa/transient-20230602.2121/gpl.info similarity index 100% rename from elpa/transient-20230501.1034/gpl.info rename to elpa/transient-20230602.2121/gpl.info diff --git a/elpa/transient-20230501.1034/transient-autoloads.el b/elpa/transient-20230602.2121/transient-autoloads.el similarity index 100% rename from elpa/transient-20230501.1034/transient-autoloads.el rename to elpa/transient-20230602.2121/transient-autoloads.el diff --git a/elpa/transient-20230501.1034/transient-pkg.el b/elpa/transient-20230602.2121/transient-pkg.el similarity index 67% rename from elpa/transient-20230501.1034/transient-pkg.el rename to elpa/transient-20230602.2121/transient-pkg.el index 99db2298..84937cce 100644 --- a/elpa/transient-20230501.1034/transient-pkg.el +++ b/elpa/transient-20230602.2121/transient-pkg.el @@ -1,7 +1,7 @@ -(define-package "transient" "20230501.1034" "Transient commands" +(define-package "transient" "20230602.2121" "Transient commands" '((emacs "25.1") - (compat "29.1.3.4")) - :commit "af7fe42bd46e24ca7852e73bd1691015c5bd2151" :authors + (compat "29.1.4.1")) + :commit "a1575e58331b1ff85ac97667df0130ae822ccf5f" :authors '(("Jonas Bernoulli" . "jonas@bernoul.li")) :maintainers '(("Jonas Bernoulli" . "jonas@bernoul.li")) diff --git a/elpa/transient-20230501.1034/transient.el b/elpa/transient-20230602.2121/transient.el similarity index 99% rename from elpa/transient-20230501.1034/transient.el rename to elpa/transient-20230602.2121/transient.el index 952cfb82..3e9924e5 100644 --- a/elpa/transient-20230501.1034/transient.el +++ b/elpa/transient-20230602.2121/transient.el @@ -6,8 +6,8 @@ ;; Homepage: https://github.com/magit/transient ;; Keywords: extensions -;; Package-Version: 0.3.7.50-git -;; Package-Requires: ((emacs "25.1") (compat "29.1.3.4")) +;; Package-Version: 0.4.1 +;; Package-Requires: ((emacs "25.1") (compat "29.1.4.1")) ;; SPDX-License-Identifier: GPL-3.0-or-later @@ -1643,6 +1643,7 @@ of the corresponding object." "" #'transient--do-stay "" #'transient--do-stay "" #'transient--do-stay + "" #'transient--do-stay "" #'transient--do-minus "" #'transient--do-stay "" #'transient--do-quit-all @@ -3043,10 +3044,12 @@ prompt." (progn (cl-call-next-method obj value) (dolist (arg incomp) - (when-let ((obj (cl-find-if (lambda (obj) - (and (slot-boundp obj 'argument) - (equal (oref obj argument) arg))) - transient--suffixes))) + (when-let ((obj (cl-find-if + (lambda (obj) + (and (slot-exists-p obj 'argument) + (slot-boundp obj 'argument) + (equal (oref obj argument) arg))) + transient--suffixes))) (let ((transient--unset-incompatible nil)) (transient-infix-set obj nil))))) (cl-call-next-method obj value)))) @@ -3253,6 +3256,8 @@ have a history of their own.") (with-current-buffer buf (when transient-enable-popup-navigation (setq focus (or (button-get (point) 'command) + (and (not (bobp)) + (button-get (1- (point)) 'command)) (transient--heading-at-point)))) (erase-buffer) (setq window-size-fixed t) @@ -3384,7 +3389,9 @@ have a history of their own.") (insert ?\n) (insert (propertize " " 'display `(space :align-to (,(nth (1+ c) cc))))))) - (insert (make-string (max 1 (- (nth c cc) (current-column))) ?\s)) + (when (> c 0) + (insert (make-string (max 1 (- (nth c cc) (current-column))) + ?\s))) (when-let ((cell (nth r (nth c columns)))) (insert cell)) (when (= c (1- cs)) @@ -3934,8 +3941,13 @@ search instead." (defun transient-isearch-abort () "Like `isearch-abort' but adapted for `transient'." (interactive) - (condition-case nil (isearch-abort) (quit)) - (transient--isearch-exit)) + (let ((around (lambda (fn) + (condition-case nil (funcall fn) (quit)) + (transient--isearch-exit)))) + (advice-add 'isearch-cancel :around around) + (unwind-protect + (isearch-abort) + (advice-remove 'isearch-cancel around)))) (defun transient--isearch-setup () (select-window transient--window) diff --git a/elpa/transient-20230501.1034/transient.info b/elpa/transient-20230602.2121/transient.info similarity index 98% rename from elpa/transient-20230501.1034/transient.info rename to elpa/transient-20230602.2121/transient.info index 7329d3bd..6809231a 100644 --- a/elpa/transient-20230501.1034/transient.info +++ b/elpa/transient-20230602.2121/transient.info @@ -51,7 +51,7 @@ but suffix commands can also be configured to not exit the transient. available at . -This manual is for Transient version 0.3.7.50-git. +This manual is for Transient version 0.4.1. Copyright (C) 2018–2023 Free Software Foundation, Inc. @@ -1975,7 +1975,7 @@ They are defined here anyway to allow sharing certain methods. "f2"))’. • ‘always-read’ For options, whether to read a value on every - invocation. If this is nil, then options that have a value are + invocation. If this is ‘nil’, then options that have a value are simply unset and have to be invoked a second time to set a new value. @@ -3360,69 +3360,69 @@ please read .  Tag Table: Node: Top763 -Node: Introduction4077 -Node: Usage9919 -Node: Invoking Transients10287 -Node: Aborting and Resuming Transients11366 -Node: Common Suffix Commands13977 -Node: Saving Values15813 -Ref: Saving Values-Footnote-117184 -Node: Using History17377 -Node: Getting Help for Suffix Commands18951 -Node: Enabling and Disabling Suffixes20319 -Node: Other Commands23387 -Node: Configuration24363 -Ref: Essential Options24643 -Ref: Accessibility Options28304 -Ref: Auxiliary Options28627 -Ref: Developer Options33354 -Node: Modifying Existing Transients34602 -Node: Defining New Commands38794 -Node: Defining Transients39130 -Node: Binding Suffix and Infix Commands41566 -Node: Group Specifications42424 -Node: Suffix Specifications46993 -Node: Defining Suffix and Infix Commands51149 -Node: Using Infix Arguments54355 -Node: Transient State57189 -Ref: Pre-commands for Infixes61152 -Ref: Pre-commands for Suffixes61423 -Ref: Pre-commands for Non-Suffixes63844 -Ref: Special Pre-Commands64988 -Node: Classes and Methods65496 -Node: Group Classes67710 -Node: Group Methods69637 -Node: Prefix Classes70890 -Node: Suffix Classes71981 -Node: Suffix Methods74227 -Node: Suffix Value Methods74548 -Node: Suffix Format Methods77306 -Node: Prefix Slots78755 -Ref: Internal Prefix Slots80035 -Node: Suffix Slots81292 -Ref: Slots of transient-suffix81660 -Ref: Slots of transient-infix82514 -Ref: Slots of transient-variable85634 -Ref: Slots of transient-switches85736 -Node: Predicate Slots86099 -Node: Related Abstractions and Packages87364 -Node: Comparison With Prefix Keys and Prefix Arguments87651 -Ref: Regular Prefix Commands88336 -Ref: Regular Prefix Arguments88684 -Ref: Transients89653 -Node: Comparison With Other Packages97924 -Ref: Magit-Popup98155 -Ref: Hydra99062 -Node: FAQ102118 -Ref: Can I control how the popup buffer is displayed?102261 -Ref: How can I copy text from the popup buffer?102442 -Ref: Why did some of the key bindings change?102914 -Ref: Why does q not quit popups anymore?105267 -Node: Keystroke Index106360 -Node: Command and Function Index108078 -Node: Variable Index114450 -Node: Concept Index116723 -Node: GNU General Public License119467 +Node: Introduction4070 +Node: Usage9912 +Node: Invoking Transients10280 +Node: Aborting and Resuming Transients11359 +Node: Common Suffix Commands13970 +Node: Saving Values15806 +Ref: Saving Values-Footnote-117177 +Node: Using History17370 +Node: Getting Help for Suffix Commands18944 +Node: Enabling and Disabling Suffixes20312 +Node: Other Commands23380 +Node: Configuration24356 +Ref: Essential Options24636 +Ref: Accessibility Options28297 +Ref: Auxiliary Options28620 +Ref: Developer Options33347 +Node: Modifying Existing Transients34595 +Node: Defining New Commands38787 +Node: Defining Transients39123 +Node: Binding Suffix and Infix Commands41559 +Node: Group Specifications42417 +Node: Suffix Specifications46986 +Node: Defining Suffix and Infix Commands51142 +Node: Using Infix Arguments54348 +Node: Transient State57182 +Ref: Pre-commands for Infixes61145 +Ref: Pre-commands for Suffixes61416 +Ref: Pre-commands for Non-Suffixes63837 +Ref: Special Pre-Commands64981 +Node: Classes and Methods65489 +Node: Group Classes67703 +Node: Group Methods69630 +Node: Prefix Classes70883 +Node: Suffix Classes71974 +Node: Suffix Methods74220 +Node: Suffix Value Methods74541 +Node: Suffix Format Methods77299 +Node: Prefix Slots78748 +Ref: Internal Prefix Slots80028 +Node: Suffix Slots81285 +Ref: Slots of transient-suffix81653 +Ref: Slots of transient-infix82507 +Ref: Slots of transient-variable85633 +Ref: Slots of transient-switches85735 +Node: Predicate Slots86098 +Node: Related Abstractions and Packages87363 +Node: Comparison With Prefix Keys and Prefix Arguments87650 +Ref: Regular Prefix Commands88335 +Ref: Regular Prefix Arguments88683 +Ref: Transients89652 +Node: Comparison With Other Packages97923 +Ref: Magit-Popup98154 +Ref: Hydra99061 +Node: FAQ102117 +Ref: Can I control how the popup buffer is displayed?102260 +Ref: How can I copy text from the popup buffer?102441 +Ref: Why did some of the key bindings change?102913 +Ref: Why does q not quit popups anymore?105266 +Node: Keystroke Index106359 +Node: Command and Function Index108077 +Node: Variable Index114449 +Node: Concept Index116722 +Node: GNU General Public License119466  End Tag Table -- 2.47.3