that buffer contents get erased during completion.
+2007-03-10 Martin Rudalics <rudalics@gmx.at>
+
+ * complete.el (PC-do-completion): Bind dirlength to nil to avoid
+ that buffer contents get erased during completion.
+
2007-03-10 Glenn Morris <rgm@gnu.org>
* woman.el (woman-change-fonts): Add a hack to deal with
(pred minibuffer-completion-predicate)
(filename (funcall PC-completion-as-file-name-predicate))
(dirname nil) ; non-nil only if a filename is being completed
- (dirlength 0)
+ ;; The following used to be "(dirlength 0)" which caused the erasure of
+ ;; the entire buffer text before `point' when inserting a completion
+ ;; into a buffer.
+ dirlength
(str (buffer-substring beg end))
(incname (and filename (string-match "<\\([^\"<>]*\\)>?$" str)))
(ambig nil)