Make 'jsonrpc-default-request-timeout' a defcustom
* lisp/jsonrpc.el (jsonrpc-default-request-timeout): New defcustom, replaces a defconst. (jsonrpc): New customization group. * etc/NEWS: Announce the change. (Bug#74338)
This commit is contained in:
parent
5339c6f69e
commit
d953179320
2 changed files with 14 additions and 2 deletions
3
etc/NEWS
3
etc/NEWS
|
@ -2133,6 +2133,9 @@ The command 'makefile-switch-to-browser' command is now obsolete,
|
|||
together with related commands used in the "*Macros and Targets*"
|
||||
buffer. We recommend using an alternative like 'imenu' instead.
|
||||
|
||||
---
|
||||
*** 'jsonrpc-default-request-timeout' is now a defcustom.
|
||||
|
||||
|
||||
* New Modes and Packages in Emacs 30.1
|
||||
|
||||
|
|
|
@ -466,8 +466,17 @@ ignored."
|
|||
(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.")
|
||||
(defgroup jsonrpc nil
|
||||
"JSON-RPC customization."
|
||||
:prefix "jsonrpc-"
|
||||
:group 'comm)
|
||||
|
||||
(defcustom jsonrpc-default-request-timeout 10
|
||||
"Time in seconds before timing out a JSON-RPC request without response."
|
||||
:version "30.1"
|
||||
:type 'number
|
||||
:safe 'numberp
|
||||
:group 'jsonrpc)
|
||||
|
||||
|
||||
;;; Specific to `jsonrpc-process-connection'
|
||||
|
|
Loading…
Add table
Reference in a new issue