Backport: Parse pcomplete arguments regardless of pcomplete-cycle-completions

* pcomplete.el (pcomplete-parse-arguments): Parse arguments regardless
of pcomplete-cycle-completions's value.

Fixes: debbugs:18950
(cherry picked from commit dfa8729c10)
This commit is contained in:
Samer Masterson 2015-01-16 05:35:51 +03:00 committed by Dmitry Gutov
parent a3505cb3ef
commit 7b8cba98bf
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2015-01-16 Samer Masterson <samer@samertm.com> (tiny change)
* pcomplete.el (pcomplete-parse-arguments): Parse arguments
regardless of pcomplete-cycle-completions's value. (Bug#18950)
2015-01-13 Michael Albinus <michael.albinus@gmx.de>
* filenotify.el (file-notify-descriptors, file-notify-handle-event):

View file

@ -755,8 +755,7 @@ this is `comint-dynamic-complete-functions'."
pcomplete-index 0
pcomplete-stub (pcomplete-arg 'last))
(let ((begin (pcomplete-begin 'last)))
(if (and pcomplete-cycle-completions
(listp pcomplete-stub) ;??
(if (and (listp pcomplete-stub) ;??
(not pcomplete-expand-only-p))
(let* ((completions pcomplete-stub) ;??
(common-stub (car completions))