]> git.eshelyaron.com Git - emacs.git/commitdiff
Correctly call completion-in-region in shell.el
authorMadhu <enometh@net.meer>
Thu, 19 Aug 2021 16:01:06 +0000 (18:01 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 19 Aug 2021 16:02:07 +0000 (18:02 +0200)
* 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

index 292f267d2e1df21360ea27efc45ac22fb0d3aa03..5cdc0385a6f972e25a734b3be7311eaaf57b3d8e 100644 (file)
@@ -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 ()