-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Any workarounds for using super-save along with lv-message? #38
Comments
I have no idea what this |
If you think there's no way to fix this in |
I guess we can add some extra config with ignored commands and some check for the current command here https://github.com/bbatsov/super-save/blob/master/super-save.el#L92 That should be pretty simple. #37 already proposed making the config-based predicates more modular. |
@bbatsov Thanks for stearing me in the right direction, this was driving me bonkers. (defun dot/super-save-disable-advice (orig-fun &rest args)
"Dont auto-save under these conditions."
(unless (equal (car args) " *LV*")
(apply orig-fun args)))
(advice-add 'super-save-command-advice :around #'dot/super-save-disable-advice) It works by looking at the arguments of the function that super-save has advice on. |
I'm running into an issue with
lsp-mode
which is described in emacs-lsp/lsp-mode#1322.lsp-mode
useslv-message
instead ofmessage
to print some information, and this seems to trigger saving withsuper-save
. I don't want to disable anysuper-save
triggers, so I'm wondering if there's any good way to work around this issue (i.e. is it possible to detect if certain functions resulted in the trigger and ignore it in some cases?).I've currently worked around this issue in
lsp-mode
by adding(setq lsp-signature-function 'message)
to my config file. But I'd prefer to remove this in the future so I can get the defaultlv-message
functionality.The text was updated successfully, but these errors were encountered: