(symbol-complete): Use completion-in-region.
This commit is contained in:
parent
bed4c97278
commit
31a1c4779e
2 changed files with 5 additions and 8 deletions
|
@ -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.
|
||||
|
|
|
@ -143,14 +143,9 @@ to be set buffer-locally. Variables `symbol-completion-symbol-function',
|
|||
(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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue