1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-02 11:21:42 +00:00

(pcomplete): Instead of interactive-p,

use an arg set non-nil by the interactive spec.
This commit is contained in:
Richard M. Stallman 2004-10-26 08:33:14 +00:00
parent da67fa9af8
commit 060a33bb97

View File

@ -347,12 +347,12 @@ modified to be an empty string, or the desired separation string."
;;; User Functions:
;;;###autoload
(defun pcomplete ()
(defun pcomplete (&optional interactively)
"Support extensible programmable completion.
To use this function, just bind the TAB key to it, or add it to your
completion functions list (it should occur fairly early in the list)."
(interactive)
(if (and (interactive-p)
(interactive "p")
(if (and interactively
pcomplete-cycle-completions
pcomplete-current-completions
(memq last-command '(pcomplete