-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-add transient menu #132
Conversation
Hi, thanks for this. I didn't study #129 too closely but I assumed How did you reproduce the issue in #121 and have you tried this on versions of emacs that do not have |
Thank you for creating git-link! I typically use it multiple times per week, and it saves me a lot of time.
I was able to reproduce the issue on 29.x by installing the original version of git-link-transient.el and starting Emacs, giving this error: On 27.x, I see the same behaviour in terms of the error at startup. The difference is that if transient isn't installed as a dependency of something else, when I run Based on this comment in
I think it would be better to depend on transient rather than it being broken, but it's up to you. Anyone who has magit installed will already have transient, as will anyone on 28.1+. (By the way, unless you're using something like straight or elpaca, the easiest way to test it is to copy |
@sshaw Do you have any thoughts on how you would like to handle this? I can think of three possibilities:
There may be some other approach that I haven't thought of though. |
Hi, Thanks for all the info!
I try to keep dependencies at a minimum though supporting 26 in 2024/25 does not seem too crazy. But I think point 1 is better approach. Though why 26 if transient was |
Correct. Unless people explicitly try to use
Transient only supports 26+, so on 26 and 27 it can be installed from ELPA. I haven't tested what happens if you try to use it on older versions though. |
Great thanks! Let's give it a whirl! |
#121 added a transient menu, but this did not work with any currently released versions of Emacs (#129), so it was reverted.
I cherry-picked the two original commits, and added a third commit that fixes the issue (based on magit/transient#280 (comment)) by adding
(autoload 'git-link-dispatch "git-link-transient" nil t)
to the autoload line. I cherry-picked the commits as I didn't want to take credit for anyone else's work, but let me know if you want it done differently.This fixes the issue for me on 29.4.