(len (min (length string)
(- (point) (point-min)))))
(goto-char (- (point) (length string)))
+ (if completion-ignore-case
+ (setq string (downcase string)))
(while (and (> len 0)
(let ((tail (buffer-substring (point)
(+ (point) len))))
+ (if completion-ignore-case
+ (setq tail (downcase tail)))
(not (string= tail (substring string 0 len)))))
(setq len (1- len))
(forward-char 1))
select the completion near point.\n\n"))
(forward-line 1)
(if window-system
- (while (re-search-forward "[^ \t\n]+" nil t)
- (put-text-property (match-beginning 0) (match-end 0)
+ (while (re-search-forward "[^ \t\n]+\\( [^\t\n]+\\)*" nil t)
+ (put-text-property (match-beginning 0) (point)
'mouse-face 'highlight))))))
(add-hook 'completion-setup-hook 'completion-setup-function)