[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/elpa 88e3655 040/139: Appease checkdoc.el
From: |
João Távora |
Subject: |
[elpa] externals/elpa 88e3655 040/139: Appease checkdoc.el |
Date: |
Mon, 14 May 2018 09:53:31 -0400 (EDT) |
branch: externals/elpa
commit 88e36555fab9375000aca7dccf37d7e0d3a8861a
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Appease checkdoc.el
* eglot.el (eglot--process-send, eglot--next-request-id)
(eglot--current-buffer-VersionedTextDocumentIdentifier)
(eglot--current-buffer-TextDocumentItem)
(eglot--after-change, eglot--signalDidOpen)
(eglot--signalDidClose, eglot--maybe-signal-didChange):
Add docstring.
---
eglot.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/eglot.el b/eglot.el
index 8bb0729..cd546a3 100644
--- a/eglot.el
+++ b/eglot.el
@@ -390,6 +390,7 @@ identifier. ERROR is non-nil if this is an error."
(defvar eglot--expect-carriage-return nil)
(defun eglot--process-send (id proc message)
+ "Send MESSAGE to PROC (ID is optional)."
(let* ((json (json-encode message))
(to-send (format "Content-Length: %d\r\n\r\n%s"
(string-bytes json)
@@ -403,6 +404,7 @@ identifier. ERROR is non-nil if this is an error."
(defvar eglot--next-request-id 0)
(defun eglot--next-request-id ()
+ "Compute the next id for a client request."
(setq eglot--next-request-id (1+ eglot--next-request-id)))
(defun eglot-forget-pending-continuations (process)
@@ -789,6 +791,7 @@ running. INTERACTIVE is t if called interactively."
eglot--versioned-identifier)
(defun eglot--current-buffer-VersionedTextDocumentIdentifier ()
+ "Compute VersionedTextDocumentIdentifier object for current buffer."
(eglot--obj :uri
(concat "file://"
(url-hexify-string
@@ -797,6 +800,7 @@ running. INTERACTIVE is t if called interactively."
:version (eglot--current-buffer-versioned-identifier)))
(defun eglot--current-buffer-TextDocumentItem ()
+ "Compute TextDocumentItem object for current buffer."
(append
(eglot--current-buffer-VersionedTextDocumentIdentifier)
(eglot--obj :languageId (cdr (assoc major-mode
@@ -808,24 +812,29 @@ running. INTERACTIVE is t if called interactively."
(buffer-substring-no-properties (point-min) (point-max))))))
(defun eglot--after-change (start end length)
+ "Hook onto `after-change-functions'.
+Records START, END and LENGTH locally."
(cl-incf eglot--versioned-identifier)
(push (list start end length) eglot--recent-changes)
;; (eglot--message "start is %s, end is %s, length is %s" start end length)
)
(defun eglot--signalDidOpen ()
+ "Send textDocument/didOpen to server."
(eglot--notify (eglot--current-process-or-lose)
:textDocument/didOpen
(eglot--obj :textDocument
(eglot--current-buffer-TextDocumentItem))))
(defun eglot--signalDidClose ()
+ "Send textDocument/didClose to server."
(eglot--notify (eglot--current-process-or-lose)
:textDocument/didClose
(eglot--obj :textDocument
(eglot--current-buffer-TextDocumentItem))))
(defun eglot--maybe-signal-didChange ()
+ "Send textDocument/didChange to server."
(when eglot--recent-changes
(save-excursion
(save-restriction
- [elpa] externals/elpa 3489176 004/139: Add a mode-line construct and some minor fanciness, (continued)
- [elpa] externals/elpa 3489176 004/139: Add a mode-line construct and some minor fanciness, João Távora, 2018/05/14
- [elpa] externals/elpa bc011d0 010/139: Minor cleanup, João Távora, 2018/05/14
- [elpa] externals/elpa e1d36d2 014/139: Fix some byte-compilation warnings, João Távora, 2018/05/14
- [elpa] externals/elpa 1dc2a9f 021/139: Implement spinners and RLS's window/progress, João Távora, 2018/05/14
- [elpa] externals/elpa 95983c9 028/139: Change status to error everytime an error is found, João Távora, 2018/05/14
- [elpa] externals/elpa 328c7ae 025/139: Auto update mode-line after setting some process properties, João Távora, 2018/05/14
- [elpa] externals/elpa 2775dea 003/139: Rename eglot--continuations eglot--pending-continuations, João Távora, 2018/05/14
- [elpa] externals/elpa 75495dc 033/139: Slightly more user friendly start, João Távora, 2018/05/14
- [elpa] externals/elpa 6f6f01d 018/139: Doc fixes, João Távora, 2018/05/14
- [elpa] externals/elpa 0ec7801 012/139: Simplify `eglot--protocol-initialize`, João Távora, 2018/05/14
- [elpa] externals/elpa 88e3655 040/139: Appease checkdoc.el,
João Távora <=
- [elpa] externals/elpa f7f77e1 044/139: Make M-x eglot the main entry point, João Távora, 2018/05/14
- [elpa] externals/elpa 51ff863 046/139: Must re-announce didOpen after reconnect, João Távora, 2018/05/14
- [elpa] externals/elpa d2eca65 045/139: Fix another Flymake sync bug, João Távora, 2018/05/14
- [elpa] externals/elpa c95a0a4 041/139: Multiple servers per project are possible, João Távora, 2018/05/14
- [elpa] externals/elpa e60c7fc 013/139: Overhaul async mechanism safety, João Távora, 2018/05/14
- [elpa] externals/elpa a3545fb 050/139: Rename RPC methods for clarity, João Távora, 2018/05/14
- [elpa] externals/elpa 4d4b85d 061/139: eglot-editing-mode becomes eglot--managed-mode, João Távora, 2018/05/14
- [elpa] externals/elpa 4f246b5 017/139: * eglot.el (eglot-mode-map): Move up before minor mode., João Távora, 2018/05/14
- [elpa] externals/elpa a4f99e0 005/139: Introduce and use `eglot--current-process-or-lose', João Távora, 2018/05/14
- [elpa] externals/elpa 8e6488f 023/139: Don't switch to possibly dead buffer in sentinel, João Távora, 2018/05/14