summaryrefslogtreecommitdiff
path: root/lisp/jsonrpc.el
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2020-08-26 00:37:40 +0200
committerStefan Kangas <stefankangas@gmail.com>2020-08-26 00:42:06 +0200
commit65543b5a879315031d275c7a9a9eb2e26452eb10 (patch)
tree8f36d5712d7cc15832b76db38cd5731189ba31dc /lisp/jsonrpc.el
parent375e87409a3a016615db6a1bc67ac143d39254d9 (diff)
downloademacs-65543b5a879315031d275c7a9a9eb2e26452eb10.tar.gz
emacs-65543b5a879315031d275c7a9a9eb2e26452eb10.tar.bz2
emacs-65543b5a879315031d275c7a9a9eb2e26452eb10.zip
Add package prefix to jsonrpc defconst
* 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)
Diffstat (limited to 'lisp/jsonrpc.el')
-rw-r--r--lisp/jsonrpc.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/jsonrpc.el b/lisp/jsonrpc.el
index ff8f250a22e..2d50df70fd4 100644
--- a/lisp/jsonrpc.el
+++ b/lisp/jsonrpc.el
@@ -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.")
@@ -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'.