Commit 2395f2b9 authored by Daniel Colascione's avatar Daniel Colascione
Browse files

Prevent assertion failure when trying to complete the prompt

parent 8ec49c53
2014-04-01 Daniel Colascione <dancol@dancol.org>
* minibuffer.el (minibuffer-complete): Prevent assertion failure
when trying to complete the prompt.
2014-03-31 Leo Liu <sdl.web@gmail.com> 2014-03-31 Leo Liu <sdl.web@gmail.com>
   
* emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): Refactor * emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): Refactor
......
...@@ -1092,9 +1092,10 @@ If no characters can be completed, display a list of possible completions. ...@@ -1092,9 +1092,10 @@ If no characters can be completed, display a list of possible completions.
If you repeat this command after it displayed such a list, If you repeat this command after it displayed such a list,
scroll the window of possible completions." scroll the window of possible completions."
(interactive) (interactive)
(completion-in-region (minibuffer-prompt-end) (point-max) (when (<= (minibuffer-prompt-end) (point))
minibuffer-completion-table (completion-in-region (minibuffer-prompt-end) (point-max)
minibuffer-completion-predicate)) minibuffer-completion-table
minibuffer-completion-predicate)))
(defun completion--in-region-1 (beg end) (defun completion--in-region-1 (beg end)
;; If the previous command was not this, ;; If the previous command was not this,
......
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