emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/bash-completion 3ccc76e2cd 4/6: Mark bash-completion-refre


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion 3ccc76e2cd 4/6: Mark bash-completion-refresh as obsolete.
Date: Thu, 26 Jan 2023 15:58:45 -0500 (EST)

branch: elpa/bash-completion
commit 3ccc76e2cd6dde2bc5acb3d8e07e2cc451857ba0
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <stephane@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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]