emacs-diffs
[Top][All Lists]
Advanced

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

master bfa3191: Correctly call completion-in-region in shell.el


From: Lars Ingebrigtsen
Subject: master bfa3191: Correctly call completion-in-region in shell.el
Date: Thu, 19 Aug 2021 12:02:12 -0400 (EDT)

branch: master
commit bfa3191c79df5a5e500a11ec8fab505c3b1cb2f3
Author: Madhu <enometh@net.meer>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Correctly call completion-in-region in shell.el
    
    * lisp/shell.el (shell-dynamic-complete-command)
    (shell-dynamic-complete-environment-variable): Correctly call
    completion-in-region (bug#50125).
    
    Copyright-paperwork-exempt: yes
---
 lisp/shell.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/shell.el b/lisp/shell.el
index 292f267..5cdc038 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -1199,7 +1199,7 @@ Returns t if successful."
     (if data
        (prog2 (unless (window-minibuffer-p)
                 (message "Completing command name..."))
-           (apply #'completion-in-region data)))))
+            (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data))))))
 
 (defun shell-command-completion ()
   "Return the completion data for the command at point, if any."
@@ -1314,7 +1314,7 @@ Returns non-nil if successful."
     (if data
        (prog2 (unless (window-minibuffer-p)
                 (message "Completing variable name..."))
-           (apply #'completion-in-region data)))))
+           (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data))))))
 
 
 (defun shell-environment-variable-completion ()



reply via email to

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