+2013-10-04 Jorgen Schaefer <forcer@forcix.cx>
+
+ * minibuffer.el (completion--replace): Be careful that `end' might be
+ a marker.
+
2013-10-03 Daiki Ueno <ueno@gnu.org>
Add support for package signature checking.
(setq end (- end suffix-len))
(setq newtext (substring newtext 0 (- suffix-len))))
(goto-char beg)
- (insert-and-inherit newtext)
- (delete-region (point) (+ (point) (- end beg)))
+ (let ((length (- end beg))) ;Read `end' before we insert the text.
+ (insert-and-inherit newtext)
+ (delete-region (point) (+ (point) length)))
(forward-char suffix-len)))
(defcustom completion-cycle-threshold nil