diff options
| author | Stefan Kangas | 2020-08-26 00:37:40 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2020-08-26 00:42:06 +0200 |
| commit | 65543b5a879315031d275c7a9a9eb2e26452eb10 (patch) | |
| tree | 8f36d5712d7cc15832b76db38cd5731189ba31dc | |
| parent | 375e87409a3a016615db6a1bc67ac143d39254d9 (diff) | |
| download | emacs-65543b5a879315031d275c7a9a9eb2e26452eb10.tar.gz 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)
| -rw-r--r-- | lisp/jsonrpc.el | 7 |
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." | |||
| 329 | :method method | 329 | :method method |
| 330 | :params params)) | 330 | :params params)) |
| 331 | 331 | ||
| 332 | (defconst jrpc-default-request-timeout 10 | 332 | (define-obsolete-variable-alias 'jrpc-default-request-timeout |
| 333 | 'jsonrpc-default-request-timeout "28.1") | ||
| 334 | |||
| 335 | (defconst jsonrpc-default-request-timeout 10 | ||
| 333 | "Time in seconds before timing out a JSONRPC request.") | 336 | "Time in seconds before timing out a JSONRPC request.") |
| 334 | 337 | ||
| 335 | 338 | ||
| @@ -617,7 +620,7 @@ With optional CLEANUP, kill any associated buffers." | |||
| 617 | params | 620 | params |
| 618 | &rest args | 621 | &rest args |
| 619 | &key success-fn error-fn timeout-fn | 622 | &key success-fn error-fn timeout-fn |
| 620 | (timeout jrpc-default-request-timeout) | 623 | (timeout jsonrpc-default-request-timeout) |
| 621 | (deferred nil)) | 624 | (deferred nil)) |
| 622 | "Does actual work for `jsonrpc-async-request'. | 625 | "Does actual work for `jsonrpc-async-request'. |
| 623 | 626 | ||