diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 52a974fa21e..dca32ba7011 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-04-01 Daniel Colascione <dancol@dancol.org> | ||
| 2 | |||
| 3 | * minibuffer.el (minibuffer-complete): Prevent assertion failure | ||
| 4 | when trying to complete the prompt. | ||
| 5 | |||
| 1 | 2014-03-31 Leo Liu <sdl.web@gmail.com> | 6 | 2014-03-31 Leo Liu <sdl.web@gmail.com> |
| 2 | 7 | ||
| 3 | * emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): Refactor | 8 | * emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): Refactor |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index bbb7114610d..8e84a2fd307 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -1092,9 +1092,10 @@ If no characters can be completed, display a list of possible completions. | |||
| 1092 | If you repeat this command after it displayed such a list, | 1092 | If you repeat this command after it displayed such a list, |
| 1093 | scroll the window of possible completions." | 1093 | scroll the window of possible completions." |
| 1094 | (interactive) | 1094 | (interactive) |
| 1095 | (completion-in-region (minibuffer-prompt-end) (point-max) | 1095 | (when (<= (minibuffer-prompt-end) (point)) |
| 1096 | minibuffer-completion-table | 1096 | (completion-in-region (minibuffer-prompt-end) (point-max) |
| 1097 | minibuffer-completion-predicate)) | 1097 | minibuffer-completion-table |
| 1098 | minibuffer-completion-predicate))) | ||
| 1098 | 1099 | ||
| 1099 | (defun completion--in-region-1 (beg end) | 1100 | (defun completion--in-region-1 (beg end) |
| 1100 | ;; If the previous command was not this, | 1101 | ;; If the previous command was not this, |