GNU bug report logs - #67609
29.1; (eglot-inlay-hints-mode -1) behaves surprisingly, does not work in cc-mode hooks

Previous Next

Package: emacs;

Reported by: Morgon Kanter <morgon.kanter <at> gmail.com>

Date: Sun, 3 Dec 2023 18:35:02 UTC

Severity: normal

Found in version 29.1

Full log


Message #20 received at 67609 <at> debbugs.gnu.org (full text, mbox):

From: Morgon Kanter <morgon.kanter <at> gmail.com>
To: João Távora <joaotavora <at> gmail.com>
Cc: 67609 <at> debbugs.gnu.org
Subject: Re: bug#67609: 29.1; (eglot-inlay-hints-mode -1) behaves
 surprisingly, does not work in cc-mode hooks
Date: Sun, 3 Dec 2023 14:37:42 -0500
> > To reproduce, visit a C++ buffer in a project, run M-x eglot. Inlay
> > hints will appear. Kill and reopen the buffer. Inlay hints will
> > appear.
>
> To achieve your desired behaviour, read my advice in the last email,
> thanks.

Fair enough. I understand now that the correct and expected way to
disable this is the way you have described. Since the behavior appears
surprising though, and it looks like the only such eglot-related mode
command is eglot-inlay-hints-mode, could something like this quote be
added to the manual for eglot-inlay-hints-mode?

"Eglot will turn on eglot-inlay-hints-mode after setting up, which
happens after most mode hooks are run. To disable it, you should run
(eglot-inlay-hints-mode -1) in eglot-managed-mode-hook, rather than
your buffer's major mode hooks."

This should hopefully stop bug reports like mine in the future.

Thanks,
-- Morgon




This bug report was last modified 1 year and 188 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.