branch: elpa/bash-completion commit 3ccc76e2cd6dde2bc5acb3d8e07e2cc451857ba0 Author: Stephane Zermatten <szerm...@gmx.net> Commit: Stephane Zermatten <steph...@fuzzy.zia>
Mark bash-completion-refresh as obsolete. bash-completion-refresh doesn't do anything anymore. It used to refresh the copy of the completion table kept in memory, but bash-completion.el now uses the completion table of the Bash process directly. --- bash-completion.el | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/bash-completion.el b/bash-completion.el index 295f74046d..69a4c76919 100644 --- a/bash-completion.el +++ b/bash-completion.el @@ -1329,18 +1329,15 @@ completion candidates." ;;;###autoload (defun bash-completion-refresh () - "Force a refresh the completion table. + "Does nothing. -This can be called after changing the completion table on BASH, -or after starting a new BASH job. +This command is obsolete and doesn't do anything useful anymore. +It used to refresh the copy of the completion table kept in +memory, but bash-completion.el now uses the completion table of +the Bash process directly." + (interactive)) -This is only useful when `bash-completion-use-separate-processes' -is t." - (interactive) - (let* ((process (get-buffer-process (current-buffer)))) - (unless process - (error "No process is available in this buffer")) - (bash-completion--get-process))) +(make-obsolete 'bash-completion-refresh "no longer useful.") ;;;###autoload (defun bash-completion-reset ()