From: João Távora Date: Tue, 11 Feb 2025 16:14:43 +0000 (+0000) Subject: Eglot: fix thinko in previous commit X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3b3b8dd6cb5ec9a737e196b058c3642e69ca575b;p=emacs.git Eglot: fix thinko in previous commit * lisp/progmodes/eglot.el (eglot--hierarchy-1): 'roots' is a vector. (cherry picked from commit 3e699b3047af70bc8d30e21b295b98dbd6797e9c) --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index b98f0347ad0..fd94e91828c 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -4605,7 +4605,8 @@ If NOERROR, return predicate, else erroring function." server preparer (eglot--TextDocumentPositionParams)))) - (unless roots (eglot--error "No hierarchy information here")) + (unless (cl-plusp (length roots)) + (eglot--error "No hierarchy information here")) (with-current-buffer (get-buffer-create name) (eglot-hierarchy-mode) (setq-local