all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#72824: Eglot highlights matches incorrectly wrt case sensitivity
@ 2024-08-27  1:38 Dmitry Gutov
  2024-08-27 14:36 ` João Távora
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Gutov @ 2024-08-27  1:38 UTC (permalink / raw)
  To: 72824; +Cc: joaotavora

X-Debbugs-Cc: joaotavora@gmail.com

1. Server gopls, for example.
2. completion-ignore-case=nil, its default value.
3. Input "clCe" and completions for it like

   clockCenterX
   clockCenterY

Completions are case-sensitive, but completions' highlighting works as 
if it's insensitive - highlights are on "cl", second "c" and "e", 
whereas the capital "C" is not highlighted.

This fixes it for me:

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 844fc634be9..acc197754db 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -3260,7 +3260,7 @@ eglot-completion-at-point
             (try-completion pattern (funcall proxies)))
            ((eq action t)                                 ; all-completions
             (let ((comps (funcall proxies)))
-             (dolist (c comps) (eglot--dumb-flex pattern c t))
+             (dolist (c comps) (eglot--dumb-flex pattern c 
completion-ignore-case))
               (all-completions
                ""
                comps






^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-08-28 21:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-27  1:38 bug#72824: Eglot highlights matches incorrectly wrt case sensitivity Dmitry Gutov
2024-08-27 14:36 ` João Távora
2024-08-27 14:38   ` João Távora
2024-08-27 22:57     ` Dmitry Gutov
2024-08-28  9:03       ` João Távora
2024-08-28 21:20         ` Dmitry Gutov
2024-08-27 23:23   ` Dmitry Gutov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.