From 8cf5659ec2fb70681505b9803a2182ab00b509b4 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 16 Aug 2023 20:19:34 +0300 Subject: [PATCH] ; Fix defcustom in completion.el * lisp/completion.el (completion-search-distance): Fix doc string and customization type. (Bug#65327) --- lisp/completion.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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. -- 2.39.5