[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r116925: Prevent assertion failure when trying to co
From: |
Daniel Colascione |
Subject: |
[Emacs-diffs] trunk r116925: Prevent assertion failure when trying to complete the prompt |
Date: |
Tue, 01 Apr 2014 20:48:11 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 116925
revision-id: address@hidden
parent: address@hidden
committer: Daniel Colascione <address@hidden>
branch nick: trunk
timestamp: Tue 2014-04-01 13:48:02 -0700
message:
Prevent assertion failure when trying to complete the prompt
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/minibuffer.el
minibuffer.el-20091113204419-o5vbwnq5f7feedwu-8622
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2014-03-31 01:31:17 +0000
+++ b/lisp/ChangeLog 2014-04-01 20:48:02 +0000
@@ -1,3 +1,8 @@
+2014-04-01 Daniel Colascione <address@hidden>
+
+ * minibuffer.el (minibuffer-complete): Prevent assertion failure
+ when trying to complete the prompt.
+
2014-03-31 Leo Liu <address@hidden>
* emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): Refactor
=== modified file 'lisp/minibuffer.el'
--- a/lisp/minibuffer.el 2014-03-05 07:04:01 +0000
+++ b/lisp/minibuffer.el 2014-04-01 20:48:02 +0000
@@ -1092,9 +1092,10 @@
If you repeat this command after it displayed such a list,
scroll the window of possible completions."
(interactive)
- (completion-in-region (minibuffer-prompt-end) (point-max)
- minibuffer-completion-table
- minibuffer-completion-predicate))
+ (when (<= (minibuffer-prompt-end) (point))
+ (completion-in-region (minibuffer-prompt-end) (point-max)
+ minibuffer-completion-table
+ minibuffer-completion-predicate)))
(defun completion--in-region-1 (beg end)
;; If the previous command was not this,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r116925: Prevent assertion failure when trying to complete the prompt,
Daniel Colascione <=