aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorNoam Postavsky2017-06-05 19:18:14 -0400
committerNoam Postavsky2017-06-14 07:03:05 -0400
commit5647c4a2c62054ad3dae3d6d83739b7cc4d10c9f (patch)
treee3c1e4a8056245755c80ea934461b07c49189fda /lisp
parent32d8dba625fc50ccbe28e35afcf1f0529d611e00 (diff)
downloademacs-5647c4a2c62054ad3dae3d6d83739b7cc4d10c9f.tar.gz
emacs-5647c4a2c62054ad3dae3d6d83739b7cc4d10c9f.zip
Give a fixed default value for icomplete-prospects-height (Bug#26939)
* lisp/icomplete.el (icomplete-prospects-height): Default to 2. (icomplete-prospects-length): Remove. * etc/NEWS: Announce removal.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/icomplete.el15
1 files changed, 6 insertions, 9 deletions
diff --git a/lisp/icomplete.el b/lisp/icomplete.el
index cd352de65b4..a4153e806df 100644
--- a/lisp/icomplete.el
+++ b/lisp/icomplete.el
@@ -56,10 +56,6 @@
56 :link '(info-link "(emacs)Icomplete") 56 :link '(info-link "(emacs)Icomplete")
57 :group 'minibuffer) 57 :group 'minibuffer)
58 58
59(defvar icomplete-prospects-length 80)
60(make-obsolete-variable
61 'icomplete-prospects-length 'icomplete-prospects-height "23.1")
62
63(defcustom icomplete-separator " | " 59(defcustom icomplete-separator " | "
64 "String used by Icomplete to separate alternatives in the minibuffer." 60 "String used by Icomplete to separate alternatives in the minibuffer."
65 :type 'string 61 :type 'string
@@ -91,13 +87,14 @@ Otherwise this should be a list of the completion tables (e.g.,
91 :version "24.4") 87 :version "24.4")
92 88
93;;;_* User Customization variables 89;;;_* User Customization variables
94(defcustom icomplete-prospects-height 90(defcustom icomplete-prospects-height 2
95 ;; 20 is an estimated common size for the prompt + minibuffer content, to 91 ;; We used to compute how many lines 100 characters would take in
96 ;; try to guess the number of lines used up by icomplete-prospects-length. 92 ;; the current window width, but the return value of `window-width'
97 (+ 1 (/ (+ icomplete-prospects-length 20) (window-width))) 93 ;; is unreliable on startup (e.g., if we're in daemon mode), so now
94 ;; we simply base the default value on an 80 column window.
98 "Maximum number of lines to use in the minibuffer." 95 "Maximum number of lines to use in the minibuffer."
99 :type 'integer 96 :type 'integer
100 :version "23.1") 97 :version "26.1")
101 98
102(defcustom icomplete-compute-delay .3 99(defcustom icomplete-compute-delay .3
103 "Completions-computation stall, used only with large-number completions. 100 "Completions-computation stall, used only with large-number completions.