changeset 106131:aef9a4af6024

(symbol-complete): Use completion-in-region.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 19 Nov 2009 22:03:36 +0000
parents a035929f0418
children 57f23ca20a76
files lisp/ChangeLog lisp/progmodes/sym-comp.el
diffstat 2 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Nov 19 22:02:53 2009 +0000
+++ b/lisp/ChangeLog	Thu Nov 19 22:03:36 2009 +0000
@@ -1,5 +1,7 @@
 2009-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* progmodes/sym-comp.el (symbol-complete): Use completion-in-region.
+
 	* filecache.el (file-cache-add-file): Use push and cons.
 	(file-cache-delete-file-regexp): Use push.
 	(file-cache-complete): Use completion-in-region.
--- a/lisp/progmodes/sym-comp.el	Thu Nov 19 22:02:53 2009 +0000
+++ b/lisp/progmodes/sym-comp.el	Thu Nov 19 22:03:36 2009 +0000
@@ -143,14 +143,9 @@
               (lambda (str)
                 (car-safe (cdr-safe
                            (funcall symbol-completion-transform-function
-                                    str))))))
-         (minibuffer-completion-table completions)
-         (minibuffer-completion-predicate predicate)
-         (ol (make-overlay (- (point) (length pattern)) (point) nil nil t)))
-      (overlay-put ol 'field 'sym-comp)
-      (unwind-protect
-          (call-interactively 'minibuffer-complete)
-        (delete-overlay ol))))
+                                    str)))))))
+    (completion-in-region (- (point) (length pattern)) (point)
+                          completions predicate)))
 
 (eval-when-compile (require 'hippie-exp))