-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Defining a now-deprecated variable x-gtk-use-system-tooltips
#3725
Comments
Thanks for the report! Yes, the original commit looks a little questionable 8b9d666 there are other ways to expect a variable to exist, namely the Maybe we could have code that checked which of those variables exist and grabs the value of the existing one. Would you be interested in a PR? |
Probably we can rely only on |
As long as the CI matrix passes, sure. I'd just make sure to not use defvar or defvaralias. |
Ah, scratch this - it wasn't around before Emacs 29 at all. Oh, well - probably we'll have to do this conditional on the Emacs version.
It won't be as simple as this, as this variable is not present at the time we define it, therefore a check for it will show it's not there. The |
Thanks for the super quick response! I tried replacing the (if (and (> emacs-major-version 28)
(not (boundp 'x-gtk-use-system-tooltips)))
;; The x-gtk prefix has been dropped Emacs 29
(defvaralias 'x-gtk-use-system-tooltips 'use-system-tooltips)
(defvar x-gtk-use-system-tooltips)) It seems to work fine. I tried byte-compiling to check for errors, and couldn't see any difference. However, I am not running the cider tests properly. If you are open for a PR, then can submit one, and then perhaps you can help me verify that it doesn't break anything or cause more warnings? |
Sure. |
It seems that this fix breaks the tooltips (at least) in my environment:
When Emacs is run in full screen, the Cider tooltips are shown in their own fullscreen (aka in a separate Space in Mac parlance). The effect is somewhat disconcerting and makes the tooltips useless. Tooltips in other modes (e.g., elisp) work as expected. Reverting this issue's commit fixes the tooltips and I have not found any other workaround. |
That is unfortunate, and of course a completely unintended consequence! Perhaps the commit should be reverted in wait of a proper fix. |
I'm reluctantly abandoning tooltips until this is fixed... the screen jitter is unbearable and you will only get fullscreen out of my hands with credible death threats. |
I totally get this. I'm just not clear what are our options here, as it seems this is caused by an upstream Emacs bug on macOS (as discussed in #3748). |
Thanks for clarifying, @bbatsov . Based on @larstvei 's comment, I thought reverting a cider commit was a feasible solution, but I totally understand if that is impractical. |
@cch1 We can always revert this change, but if this is impacting only Mac users, I'm not sure it's fair to reintroduce another issue for the other users. Whatever we do - someone will have to deal with some problems. |
I'm fine with disabling tooltips until the next release of Emacs. Thanks for making these awesome tools! |
Hi,
In Emacs 29, the
x-gtk-use-system-tooltips
was deprecated in favor ofuse-system-tooltips
. See: https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS.29#n881In cider,
x-gtk-use-system-tooltips
is defined as a variable:cider/cider-mode.el
Line 1065 in c698e14
This breaks compatibility with the PDF Tools package. That is, if I load cider before loading PDF Tools, then it fails with the error:
To me it seems that they have addressed the issue with the renaming of
use-system-tooltips
here:vedang/pdf-tools@f9ab15e
but that this conflicts with cider explicitly defining the variable.
My guess would be that cider could fix this in the same way that PDF Tools does it?
The text was updated successfully, but these errors were encountered: