From: João Távora Date: Thu, 3 May 2018 14:47:39 +0000 (+0100) Subject: Delete two useless forward declarations X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~659 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=58c19b7683263548b564696df61ea67b6fd96aa8;p=emacs.git Delete two useless forward declarations * eglot.el (eglot-mode, eglot-editing-mode-map): Remove forward decls. --- 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)