From 65543b5a879315031d275c7a9a9eb2e26452eb10 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Wed, 26 Aug 2020 00:37:40 +0200 Subject: [PATCH] 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) --- lisp/jsonrpc.el | 7 +++++-- 1 file 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'. -- 2.39.2