X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/36a305a723c63fd345be65c536c52fe9765c14be..0e963201d03d9229bb8ac4323291d2b0119526ed:/lisp/pcomplete.el diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el index 9e55976a8b..41e3be1905 100644 --- a/lisp/pcomplete.el +++ b/lisp/pcomplete.el @@ -1,6 +1,6 @@ ;;; pcomplete.el --- programmable completion -*- lexical-binding: t -*- -;; Copyright (C) 1999-2012 Free Software Foundation, Inc. +;; Copyright (C) 1999-2016 Free Software Foundation, Inc. ;; Author: John Wiegley ;; Keywords: processes abbrev @@ -193,7 +193,7 @@ current command argument." (defcustom pcomplete-expand-before-complete nil "If non-nil, expand the current argument before completing it. -This means that typing something such as '$HOME/bi' followed by +This means that typing something such as `$HOME/bi' followed by \\[pcomplete-argument] will cause the variable reference to be resolved first, and the resultant value that will be completed against to be inserted in the buffer. Note that exactly what gets expanded @@ -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)) @@ -833,7 +832,8 @@ this is `comint-dynamic-complete-functions'." . ,(lambda (comps) (sort comps pcomplete-compare-entry-function))) ,@(cdr (completion-file-name-table s p a))) - (let ((completion-ignored-extensions nil)) + (let ((completion-ignored-extensions nil) + (completion-ignore-case pcomplete-ignore-case)) (completion-table-with-predicate #'comint-completion-file-name-table pred 'strict s p a)))))) @@ -1022,8 +1022,8 @@ string, use it as the completion stub instead of the default (which is the entire text of the current argument). For an example of when you might want to use STUB: if the current -argument text is 'long-path-name/', you don't want the completions -list display to be cluttered by 'long-path-name/' appearing at the +argument text is `long-path-name/', you don't want the completions +list display to be cluttered by `long-path-name/' appearing at the beginning of every alternative. Not only does this make things less intelligible, but it is also inefficient. Yet, if the completion list does not begin with this string for every entry, the current argument @@ -1112,7 +1112,7 @@ Typing SPC flushes the help buffer." (scroll-up)))) (message "")) (t - (setq unread-command-events (list event)) + (push event unread-command-events) (throw 'done nil))))) (if (and pcomplete-last-window-config pcomplete-restore-window-delay)