]> git.eshelyaron.com Git - emacs.git/commitdiff
Delete two useless forward declarations
authorJoão Távora <joaotavora@gmail.com>
Thu, 3 May 2018 14:47:39 +0000 (15:47 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 3 May 2018 14:47:39 +0000 (15:47 +0100)
* eglot.el (eglot-mode, eglot-editing-mode-map): Remove forward decls.

lisp/progmodes/eglot.el

index bb0427aca73dff090ecc8684353cc1a02d85a82a..f25c7bd3466b784c89f4bd7666c65dde0c8e8d13 100644 (file)
@@ -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)