summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelicián Németh <felician.nemeth@gmail.com>2023-08-24 09:41:11 +0200
committerFelicián Németh <felician.nemeth@gmail.com>2023-08-24 09:41:18 +0200
commit6a8c38dfee630473507f3ed1b34d7121df0b14fd (patch)
tree918bb381f08c72f05b10f724efdf42b2676f244c
parentc9b8a78d0f36350757dcdbe91fb631478af8ed4f (diff)
Fix encoding-negotiation
Close #6 * eglot-x.el (Package-Requires): Require latest eglot (1.15). (eglot-x--encoding-configure-utf-32, eglot-x--encoding-configure-utf-16): Replace Eglot's obsoleted variables/functions with their new versions.
-rw-r--r--eglot-x.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/eglot-x.el b/eglot-x.el
index 7ca473b..b4e22c6 100644
--- a/eglot-x.el
+++ b/eglot-x.el
@@ -6,7 +6,7 @@
;; Author: Felicián Németh <felician.nemeth@gmail.com>
;; URL: https://github.com/nemethf/eglot-x
;; Keywords: convenience, languages
-;; Package-Requires: ((emacs "27.1") (project "0.8.1") (eglot "1.13") (xref "1.4"))
+;; Package-Requires: ((emacs "27.1") (project "0.8.1") (eglot "1.15") (xref "1.4"))
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -604,15 +604,15 @@ See `eglot-x-enable-refs'."
(defun eglot-x--encoding-configure-utf-32 (_encoding)
(let ((pairs
- '((eglot-current-column-function . eglot-current-column)
- (eglot-move-to-column-function . eglot-move-to-column))))
+ '((eglot-current-linepos-function . eglot-utf-32-linepos)
+ (eglot-move-to-linepos-function . eglot-move-to-utf-32-linepos))))
(dolist (pair pairs)
(set (make-local-variable (car pair)) (cdr pair)))))
(defun eglot-x--encoding-configure-utf-16 (_encoding)
(let ((pairs
- '((eglot-current-column-function . eglot-lsp-abiding-column)
- (eglot-move-to-column-function . eglot-move-to-lsp-abiding-column))))
+ '((eglot-current-linepos-function . eglot-utf-16-linepos)
+ (eglot-move-to-linepos-function . eglot-move-to-utf-16-linepos))))
(dolist (pair pairs)
(set (make-local-variable (car pair)) (cdr pair)))))