diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-04-29 14:24:09 -0300 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-04-29 14:24:09 -0300 |
commit | 14a7fbd8c24c542236744e24593170790453e256 (patch) | |
tree | e68bd2f216f784f1154e7e755a804cb374bfdc03 /lisp/pcomplete.el | |
parent | 38b3645acf4533f7afbdaa848cce50c4386352dd (diff) | |
download | emacs-14a7fbd8c24c542236744e24593170790453e256.tar.gz |
* lisp/pcomplete.el (pcomplete-std-complete): Don't abuse
completion-at-point.
Diffstat (limited to 'lisp/pcomplete.el')
-rw-r--r-- | lisp/pcomplete.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el index 6ee617d9862..5111e632c2f 100644 --- a/lisp/pcomplete.el +++ b/lisp/pcomplete.el @@ -545,8 +545,9 @@ Same as `pcomplete' but using the standard completion UI." ;; variables to parse args, so there's no point autoloading it. ;; ;;;###autoload (defun pcomplete-std-complete () - (let ((completion-at-point-functions '(pcomplete-completions-at-point))) - (completion-at-point))) + (let ((data pcomplete-completions-at-point)) + (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data) + (plist-get :predicate (nthcdr 3 data))))) ;;; Pcomplete's native UI. |