From 6ee4328ca1495afb90fa8b3377781e1b3667ec5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sat, 5 Jan 2019 13:03:01 +0000 Subject: [PATCH] Appease checkdoc * eglot.el (eglot--post-self-insert-hook) (eglot--pre-command-hook, eglot--before-change) (eglot--eclipse-jdt-contact): Fix docstrings. --- lisp/progmodes/eglot.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 6de3adf9763..53e60fd6ef0 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1481,11 +1481,11 @@ THINGS are either registrations or unregisterations." "If non-nil, value of the last inserted character in buffer.") (defun eglot--post-self-insert-hook () - "Set `eglot--last-inserted-char.'" + "Set `eglot--last-inserted-char'." (setq eglot--last-inserted-char last-input-event)) (defun eglot--pre-command-hook () - "Reset `eglot--last-inserted-char.'" + "Reset `eglot--last-inserted-char'." (setq eglot--last-inserted-char nil)) (defun eglot--CompletionParams () @@ -1510,7 +1510,7 @@ THINGS are either registrations or unregisterations." (defvar-local eglot--change-idle-timer nil "Idle timer for didChange signals.") (defun eglot--before-change (start end) - "Hook onto `before-change-functions'." + "Hook onto `before-change-functions' with START and END." ;; Records START and END, crucially convert them into LSP ;; (line/char) positions before that information is lost (because ;; the after-change thingy doesn't know if newlines were @@ -2352,7 +2352,8 @@ If SKIP-SIGNATURE, don't try to send textDocument/signatureHelp." (ignore (eglot--warn "JAVA_HOME env var not set"))))) (defun eglot--eclipse-jdt-contact (interactive) - "Return a contact for connecting to eclipse.jdt.ls server, as a cons cell." + "Return a contact for connecting to eclipse.jdt.ls server, as a cons cell. +If INTERACTIVE, prompt user for details." (cl-labels ((is-the-jar (path) -- 2.39.2