Commit aa2bddd7 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/icomplete.el (icomplete-completions): Make sure the prefix is already

displayed elsewhere before hiding it.
parent 660efa1a
2013-12-14 Stefan Monnier <>
* icomplete.el (icomplete-completions): Make sure the prefix is already
displayed elsewhere before hiding it.
2013-12-14 Dmitry Gutov <>
* progmodes/ruby-mode.el (ruby-smie-rules): Return nil before
......@@ -9,12 +14,11 @@
2013-12-13 Teodor Zlatanov <>
* progmodes/cfengine.el: Fix `add-hook' doc.
Initialize sensibly.
(cfengine-mode-syntax-functions-regex): Initialize sensibly.
(cfengine3--current-word): Fix parameters.
(cfengine3-make-syntax-cache): Simplify further.
(cfengine3-completion-function, cfengine3--current-function): Use
`assq' for symbols.
(cfengine3-completion-function, cfengine3--current-function):
Use `assq' for symbols.
(cfengine3--current-function): Fix `cfengine3--current-word' call.
2013-12-13 Glenn Morris <>
......@@ -31,8 +35,8 @@
cf-promises doesn't run.
(cfengine3--current-word): Reimplement using
(cfengine3-completion-function, cfengine3--current-function): Use
`cfengine3-make-syntax-cache' directly.
(cfengine3-completion-function, cfengine3--current-function):
Use `cfengine3-make-syntax-cache' directly.
(cfengine3-clear-syntax-cache): New function.
(cfengine3-make-syntax-cache): Simplify and create
`cfengine-mode-syntax-functions-regex' on demand.
......@@ -85,8 +89,8 @@
2013-12-12 Fabián Ezequiel Gallina <>
* progmodes/python.el (python-indent-calculate-indentation): Fix
de-denters cornercase. (Bug#15731)
* progmodes/python.el (python-indent-calculate-indentation):
Fix de-denters cornercase. (Bug#15731)
2013-12-12 Stefan Monnier <>
......@@ -416,9 +416,6 @@ are exhibited within the square braces.)"
;; one line, increase the allowable space accordingly.
(/ prospects-len (window-width)))
(prefix (when icomplete-hide-common-prefix
(try-completion "" comps)))
;; Find the common prefix among `comps'.
;; We can't use the optimization below because its assumptions
;; aren't always true, e.g. when completion-cycling (bug#10850):
......@@ -427,7 +424,14 @@ are exhibited within the square braces.)"
;; ;; Common case.
;; (length most)
;; Else, use try-completion.
(and (stringp prefix) (length prefix))) ;;)
(prefix (when icomplete-hide-common-prefix
(try-completion "" comps)))
(and (stringp prefix)
;; Only hide the prefix if the corresponding info
;; is already displayed via `most'.
(string-prefix-p prefix most t)
(length prefix))) ;;)
prospects comp limit)
(if (or (eq most-try t) (not (consp (cdr comps))))
(setq prospects nil)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment