From 14a7fbd8c24c542236744e24593170790453e256 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 29 Apr 2011 14:24:09 -0300 Subject: [PATCH] * lisp/pcomplete.el (pcomplete-std-complete): Don't abuse completion-at-point. --- lisp/ChangeLog | 5 +++++ lisp/pcomplete.el | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 48e4530461f..4d9c16b1744 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-04-29 Stefan Monnier + + * pcomplete.el (pcomplete-std-complete): Don't abuse + completion-at-point. + 2011-04-28 Juanma Barranquero * calc/calccomp.el (math-comp-to-string-flat-term): Simplify by 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. -- 2.39.2