From 58c19b7683263548b564696df61ea67b6fd96aa8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 3 May 2018 15:47:39 +0100 Subject: [PATCH] Delete two useless forward declarations * eglot.el (eglot-mode, eglot-editing-mode-map): Remove forward decls. --- lisp/progmodes/eglot.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index bb0427aca73..f25c7bd3466 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -46,9 +46,6 @@ (defvar eglot--processes-by-project (make-hash-table :test #'equal) "Keys are projects. Values are lists of processes.") -(defvar eglot-editing-mode) ; forward decl -(defvar eglot-mode) ; forward decl - (defvar-local eglot--special-buffer-process nil "Current buffer's eglot process.") @@ -643,7 +640,8 @@ running. INTERACTIVE is t if called interactively." (forward-char (min (plist-get pos-plist :character) (- (line-end-position) - (line-beginning-position))))))) + (line-beginning-position)))) + (point)))) (cl-loop for diag-spec across diagnostics collect (cl-destructuring-bind (&key range severity _code _source message) -- 2.39.2