]> git.eshelyaron.com Git - emacs.git/commitdiff
Add package prefix to jsonrpc defconst
authorStefan Kangas <stefankangas@gmail.com>
Tue, 25 Aug 2020 22:37:40 +0000 (00:37 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 25 Aug 2020 22:42:06 +0000 (00:42 +0200)
* lisp/jsonrpc.el (jsonrpc-default-request-timeout): Rename from
'jrpc-default-request-timeout'.
(jrpc-default-request-timeout): Make into obsolete variable alias
for 'jsonrpc-default-request-timeout'.  (Bug#40054)

lisp/jsonrpc.el

index ff8f250a22e9a9d3eb51203d58051d323da47e5d..2d50df70fd4db035123c1d44eb14567e15bf0d95 100644 (file)
@@ -329,7 +329,10 @@ ignored."
                            :method method
                            :params params))
 
-(defconst jrpc-default-request-timeout 10
+(define-obsolete-variable-alias 'jrpc-default-request-timeout
+  'jsonrpc-default-request-timeout "28.1")
+
+(defconst jsonrpc-default-request-timeout 10
   "Time in seconds before timing out a JSONRPC request.")
 
 \f
@@ -617,7 +620,7 @@ With optional CLEANUP, kill any associated buffers."
                                     params
                                     &rest args
                                     &key success-fn error-fn timeout-fn
-                                    (timeout jrpc-default-request-timeout)
+                                    (timeout jsonrpc-default-request-timeout)
                                     (deferred nil))
   "Does actual work for `jsonrpc-async-request'.