From: Eli Zaretskii Date: Wed, 16 Aug 2023 17:19:34 +0000 (+0300) Subject: ; Fix defcustom in completion.el X-Git-Tag: emacs-29.1.90~198 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8cf5659ec2fb70681505b9803a2182ab00b509b4;p=emacs.git ; Fix defcustom in completion.el * lisp/completion.el (completion-search-distance): Fix doc string and customization type. (Bug#65327) --- diff --git a/lisp/completion.el b/lisp/completion.el index f119fc6028b..eed6e77da4c 100644 --- a/lisp/completion.el +++ b/lisp/completion.el @@ -322,9 +322,11 @@ This can be time consuming." :type 'boolean) (defcustom completion-search-distance 15000 - "How far to search in the buffer when looking for completions. -In number of characters. If nil, search the whole buffer." - :type 'integer) + "How far in the buffer to search when looking for completions. +Limit is measured in characters. If nil, search the whole buffer." + :type '(choice + (const :tag "No limit" nil) + (integer :tag "Limit in characters"))) (defcustom completions-merging-modes '(lisp c) "List of modes {`c' or `lisp'} for automatic completions merging.