| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
This feature was added in Emacs commit [1: 7486e5c3680] using it
here allows removing these macros from `loaddefs--defining-macros'.
Besides the three macros for which we now set that property,
`transient-define-group' was listed in that variable, since
[2: 105ae06031a], but it appears that was not actually needed.
Use `put' instead of `declare', to avoid warnings on Emacs < 31.
1: 2025-08-10 7486e5c3680b41cb58cb6eb1fa5aa3620d4a50bd
Implement new autoload macro expansion declare form
2: 2025-07-15 105ae06031a548e1afd7b7a992c1da783f498534
Allow trivially autoloading transient-define-group
|
|
Replacing `transient-show-summary', which wasn't a good fit,
considering that one of the two callers had to use non-nil
RETURN argument to prevent the summary from being shown in
the echo area.
|
|
|
|
Multiple suffixes may use the same command but not the same key.
|
|
Store the object itself in the `button-date' property for all classes;
now also groups, the prefix and information elements.
This makes it necessary to check the object type in more places.
- In `transient--do-push-button' we have to explicitly do nothing on
`transient-information' objects, a class, which at this time derives
from `transient-suffix' (which probably should be changed).
- We have to add no-op `transient-show-summary' implementations for all
classes. Adding these methods is a unfortunate consequence of this
change but is a part of the motivation for this change; we just don't
implement the behavior in this commit already, to reduce its scope.
- For groups `transient--goto-button' no longer receives the description
directly but has to recalculate it.
`transient--heading-at-point' can be removed since returning to any
element is now handled by `transient--goto-button', but that in turn
needs a new helper function `transient--match-button' because supporting
more classes complicates the matter. This is a bit hacky and we should
be able to refine or replace this later on.
This also fixes some edge-cases.
- Returning to the (optional) menu description is now done explicitly,
instead of as a result of failing to locate it.
- Returning to a group heading, which isn't in the first column, no
longer fails.
- Returning to information elements is now supported.
|
|
|
|
Instead of our own `suffix' and `command' properties.
|
|
|
|
In most cases we already used the former.
|
|
Group headings are buttons too now, and while pressing them might do
something in the future, for now it is enough to silently do nothing,
instead of signaling a type error.
|
|
This pre-command is only used for `transient-push-button',
which is only used inside the transient buffer/window.
|
|
|
|
We have to stop here too, to give users the opportunity to read
the text when using braille output devices.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To enable this, one has to
(define-key transient-predicate-map
[other-window] #'transient--do-move)
|
|
|
|
|
|
|
|
|
|
The next commit will stop referencing `transient--stay' three times.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Also fix link to support category, tweak link to manual, and
try harder to grab the reader's attention, using hand signals.
|
|
|
|
Since there is more than enough space, I actually prefer the old way
in these cases. However, when updating the built-in version of this
package, these forms have to be replaced with `cond*', and without
these line-breaks, we would get a larger diff. Since I regularly
update the built-in copy, prioritize making that task less painful.
|
|
|
|
|
|
|
|
|
|
Emacs 31.1 adds variable `lisp-indent-local-overrides'.
|
|
Emacs 31.1 adds variable `lisp-indent-local-overrides'.
|