matlab-complete.el:

(matlab-complete-symbol): Check if matlab-shell was loaded before
checking if the shell is active.
This commit is contained in:
Eric Ludlam 2020-11-30 13:59:51 -05:00
parent c22998376b
commit 93a7478486

View file

@ -399,7 +399,7 @@ The last type of semantic used while completing things.")
(defun matlab-complete-symbol (&optional arg)
"Complete a partially typed symbol in a MATLAB mode buffer."
(interactive "P")
(if (and (matlab-shell-active-p) matlab-shell-ask-MATLAB-for-completions)
(if (and (featurep 'matlab-shell) (matlab-shell-active-p) matlab-shell-ask-MATLAB-for-completions)
;; Use MATLAB shell if active and asking for completions is enabled.
(matlab-complete-symbol-with-shell arg)
;; Else, do the antique version.