[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot a65d3f4 53/69: Make message and warning helpers p
From: |
João Távora |
Subject: |
[elpa] externals/eglot a65d3f4 53/69: Make message and warning helpers private |
Date: |
Fri, 22 Jun 2018 11:55:03 -0400 (EDT) |
branch: externals/eglot
commit a65d3f4495c9e0ddf0d443f7c9042bb59b46eb38
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Make message and warning helpers private
* jsonrpc.el (jsonrpc--message): Rename from jsonrpc-message.
(jsonrpc--warn): Rename from jsonrpc-warn.
(jsonrpc--process-sentinel): Use jsonrpc--message.
(jsonrpc-shutdown, jsonrpc--connection-receive)
(jsonrpc--process-filter): Use jsonrpc--warn.
---
jsonrpc.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/jsonrpc.el b/jsonrpc.el
index 868233a..4c2140c 100644
--- a/jsonrpc.el
+++ b/jsonrpc.el
@@ -126,7 +126,7 @@ object, using the keywords `:code', `:message' and `:data'."
(jsonrpc-error-message . ,message)
(jsonrpc-error-data . ,data))))))
-(defun jsonrpc-message (format &rest args)
+(defun jsonrpc--message (format &rest args)
"Message out with FORMAT with ARGS."
(message "[jsonrpc] %s" (apply #'format format args)))
@@ -135,9 +135,9 @@ object, using the keywords `:code', `:message' and `:data'."
(jsonrpc-log-event
server (if (stringp format)`(:message ,(format format args)) format)))
-(defun jsonrpc-warn (format &rest args)
+(defun jsonrpc--warn (format &rest args)
"Warning message with FORMAT and ARGS."
- (apply #'jsonrpc-message (concat "(warning) " format) args)
+ (apply #'jsonrpc--message (concat "(warning) " format) args)
(let ((warning-minimum-level :error))
(display-warning 'jsonrpc
(apply #'format format args)
@@ -278,7 +278,7 @@ connection object, called when the process dies .")
(pcase-let ((`(,_success ,error ,_timeout) triplet))
(funcall error `(:code -1 :message "Server died"))))
(jsonrpc--request-continuations connection))
- (jsonrpc-message "Server exited with status %s" (process-exit-status
proc))
+ (jsonrpc--message "Server exited with status %s" (process-exit-status
proc))
(process-put proc 'jsonrpc-sentinel-done t)
(delete-process proc)
(funcall (jsonrpc--on-shutdown connection) connection)))))
@@ -332,8 +332,8 @@ connection object, called when the process dies .")
(condition-case-unless-debug oops
(jsonrpc--json-read)
(error
- (jsonrpc-warn "Invalid JSON: %s %s"
- (cdr oops)
(buffer-string))
+ (jsonrpc--warn "Invalid JSON: %s %s"
+ (cdr oops)
(buffer-string))
nil))))
(when json-message
;; Process content in another
@@ -438,7 +438,7 @@ originated."
(if error (funcall (nth 1 continuations) error)
(funcall (nth 0 continuations) result)))
(;; An abnormal situation
- id (jsonrpc-warn "No continuation for id %s" id)))
+ id (jsonrpc--warn "No continuation for id %s" id)))
(jsonrpc--call-deferred connection))))
(cl-defmethod jsonrpc-connection-send ((connection jsonrpc-process-connection)
@@ -484,7 +484,7 @@ originated."
(delete-process proc)
(accept-process-output nil 0.1)
while (not (process-get proc 'jsonrpc-sentinel-done))
- do (jsonrpc-warn
+ do (jsonrpc--warn
"Sentinel for %s still hasn't run, deleting it!" proc)))
(defun jsonrpc-forget-pending-continuations (connection)
- [elpa] externals/eglot 68c266e 45/69: Avoid more catastrophes, (continued)
- [elpa] externals/eglot 68c266e 45/69: Avoid more catastrophes, João Távora, 2018/06/22
- [elpa] externals/eglot bf9c850 52/69: Get rid of jsonrpc-obj, João Távora, 2018/06/22
- [elpa] externals/eglot 0b474ec 63/69: Fix use of jsonrpc-message in tests, João Távora, 2018/06/22
- [elpa] externals/eglot 44e9647 46/69: Simplify JSONRPC connection shutdown, João Távora, 2018/06/22
- [elpa] externals/eglot 47b957d 65/69: Let's not send Content-type for now., João Távora, 2018/06/22
- [elpa] externals/eglot 61d1276 66/69: Fix another bug in jsonrpc-connection-send, João Távora, 2018/06/22
- [elpa] externals/eglot 2917214 47/69: Merge master into jsonrpc-refactor, João Távora, 2018/06/22
- [elpa] externals/eglot f730fff 48/69: Merge branch 'master' into jsonrpc-refactor, João Távora, 2018/06/22
- [elpa] externals/eglot aaca7de 60/69: Fix ridiculous bug, João Távora, 2018/06/22
- [elpa] externals/eglot d87f4bf 55/69: jsonrpc--log-event should also be private, João Távora, 2018/06/22
- [elpa] externals/eglot a65d3f4 53/69: Make message and warning helpers private,
João Távora <=
- [elpa] externals/eglot 9e9dc57 30/69: Merge branch 'master' into jsonrpc-refactor (using regular merge), João Távora, 2018/06/22
- [elpa] externals/eglot 6c9d41e 38/69: Add reasonably sophisticated deferred action tests, João Távora, 2018/06/22
- [elpa] externals/eglot 2da7d92 50/69: Simplify JSONRPC status setting, João Távora, 2018/06/22
- [elpa] externals/eglot 69a622a 64/69: Fix some typos, João Távora, 2018/06/22
- [elpa] externals/eglot 7371f68 57/69: * jsonrpc.el: Rewrite commentary., João Távora, 2018/06/22
- [elpa] externals/eglot 6531c8b 58/69: Merge branch 'master' into jsonrpc-refactor, João Távora, 2018/06/22
- [elpa] externals/eglot 59cc3fb 61/69: jsonrpc-connection-receive is now a public convenience function, João Távora, 2018/06/22
- [elpa] externals/eglot d371f05 49/69: Request dispatcher's return value determines response, João Távora, 2018/06/22
- [elpa] externals/eglot 0f20fdf 68/69: Tiny README.md change, João Távora, 2018/06/22
- [elpa] externals/eglot cef3c29 22/69: Heroically merge master into jsonrpc-refactor (using imerge), João Távora, 2018/06/22