Commit a19f0977 authored by Stefan Monnier's avatar Stefan Monnier

* lisp/minibuffer.el (completion-at-point): Emit warning for ill-behaved

completion functions.
parent 73486689
2014-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
* minibuffer.el (completion-at-point): Emit warning for ill-behaved
completion functions.
2014-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
* ses.el (ses--letref): Quote value before it gets re-evaluated.
......
......@@ -2106,7 +2106,11 @@ The completion method is determined by `completion-at-point-functions'."
(completion-in-region start end collection
(plist-get plist :predicate))))
;; Maybe completion already happened and the function returned t.
(_ (cdr res)))))
(_
(when (cdr res)
(message "Warning: %S failed to return valid completion data!"
(car res)))
(cdr res)))))
(defun completion-help-at-point ()
"Display the completions on the text around point.
......
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