Skip to content

Commit 355a167

Browse files
committed
Sync eglot.el and eglot-tests.el from upstream
1 parent fed9609 commit 355a167

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

eglot-tests.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ directory hierarchy."
165165
`(eglot--call-with-timeout ,timeout (lambda () ,@body)))
166166

167167
(defun eglot--call-with-timeout (timeout fn)
168-
(let* ((tag (cl-gensym "eglot-test-timeout"))
168+
(let* ((tag (gensym "eglot-test-timeout"))
169169
(timed-out (make-symbol "timeout"))
170170
(timeout-and-message
171171
(if (listp timeout) timeout

eglot.el

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4601,20 +4601,19 @@ If NOERROR, return predicate, else erroring function."
46014601
(eglot--error "No hierarchy information here"))
46024602
(with-current-buffer (get-buffer-create name)
46034603
(eglot-hierarchy-mode)
4604-
(setq-local
4605-
eglot--hierarchy-roots roots
4606-
eglot--hierarchy-specs specs
4607-
eglot--cached-server server
4608-
eglot--hierarchy-source-major-mode mode
4609-
buffer-read-only t
4610-
revert-buffer-function
4611-
(lambda (&rest _ignore)
4612-
;; flush cache, would defeat purpose of a revert
4613-
(mapc (lambda (r)
4614-
(eglot--dbind ((HierarchyItem) name) r
4615-
(set-text-properties 0 1 nil name)))
4616-
eglot--hierarchy-roots)
4617-
(eglot--hierarchy-2)))
4604+
(setq-local eglot--hierarchy-roots roots)
4605+
(setq-local eglot--hierarchy-specs specs)
4606+
(setq-local eglot--cached-server server)
4607+
(setq-local eglot--hierarchy-source-major-mode mode)
4608+
(setq-local buffer-read-only t)
4609+
(setq-local revert-buffer-function
4610+
(lambda (&rest _ignore)
4611+
;; flush cache, would defeat purpose of a revert
4612+
(mapc (lambda (r)
4613+
(eglot--dbind ((HierarchyItem) name) r
4614+
(set-text-properties 0 1 nil name)))
4615+
eglot--hierarchy-roots)
4616+
(eglot--hierarchy-2)))
46184617
(eglot--hierarchy-2))))
46194618

46204619
(defun eglot--hierarchy-2 ()

0 commit comments

Comments
 (0)