diff options
| author | João Távora | 2025-03-08 05:15:57 +0000 |
|---|---|---|
| committer | João Távora | 2025-03-08 05:15:57 +0000 |
| commit | d81cdf9fd23910d38f13a65ccb4909af2c2bdfd9 (patch) | |
| tree | af3c81c6f90eccf7599fbfea63e606c8f95583ad | |
| parent | 331492a148588991af5ce9a24a2020b3d380e03f (diff) | |
| download | emacs-d81cdf9fd23910d38f13a65ccb4909af2c2bdfd9.tar.gz emacs-d81cdf9fd23910d38f13a65ccb4909af2c2bdfd9.zip | |
Eglot: unbreak from Emacs 26.3 (two-arg setq-local)
* lisp/progmodes/eglot.el (eglot--hierarchy-1): Use two-arg setq-local
| -rw-r--r-- | lisp/progmodes/eglot.el | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 2446cc6e3ed..bc70db34fb5 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el | |||
| @@ -4601,20 +4601,19 @@ If NOERROR, return predicate, else erroring function." | |||
| 4601 | (eglot--error "No hierarchy information here")) | 4601 | (eglot--error "No hierarchy information here")) |
| 4602 | (with-current-buffer (get-buffer-create name) | 4602 | (with-current-buffer (get-buffer-create name) |
| 4603 | (eglot-hierarchy-mode) | 4603 | (eglot-hierarchy-mode) |
| 4604 | (setq-local | 4604 | (setq-local eglot--hierarchy-roots roots) |
| 4605 | eglot--hierarchy-roots roots | 4605 | (setq-local eglot--hierarchy-specs specs) |
| 4606 | eglot--hierarchy-specs specs | 4606 | (setq-local eglot--cached-server server) |
| 4607 | eglot--cached-server server | 4607 | (setq-local eglot--hierarchy-source-major-mode mode) |
| 4608 | eglot--hierarchy-source-major-mode mode | 4608 | (setq-local buffer-read-only t) |
| 4609 | buffer-read-only t | 4609 | (setq-local revert-buffer-function |
| 4610 | revert-buffer-function | 4610 | (lambda (&rest _ignore) |
| 4611 | (lambda (&rest _ignore) | 4611 | ;; flush cache, would defeat purpose of a revert |
| 4612 | ;; flush cache, would defeat purpose of a revert | 4612 | (mapc (lambda (r) |
| 4613 | (mapc (lambda (r) | 4613 | (eglot--dbind ((HierarchyItem) name) r |
| 4614 | (eglot--dbind ((HierarchyItem) name) r | 4614 | (set-text-properties 0 1 nil name))) |
| 4615 | (set-text-properties 0 1 nil name))) | 4615 | eglot--hierarchy-roots) |
| 4616 | eglot--hierarchy-roots) | 4616 | (eglot--hierarchy-2))) |
| 4617 | (eglot--hierarchy-2))) | ||
| 4618 | (eglot--hierarchy-2)))) | 4617 | (eglot--hierarchy-2)))) |
| 4619 | 4618 | ||
| 4620 | (defun eglot--hierarchy-2 () | 4619 | (defun eglot--hierarchy-2 () |