From: Michael Albinus Date: Fri, 23 Apr 2021 17:57:50 +0000 (+0200) Subject: * lisp/net/tramp-cmds.el (tramp-recompile-elpa-command-completion-p): X-Git-Tag: emacs-28.0.90~2756 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5d287b4605d11dfbe56f77c719942198a807ba58;p=emacs.git * lisp/net/tramp-cmds.el (tramp-recompile-elpa-command-completion-p): Check, whether Tramp has a package description. --- diff --git a/lisp/net/tramp-cmds.el b/lisp/net/tramp-cmds.el index 6342cf52873..a3cf6f3211a 100644 --- a/lisp/net/tramp-cmds.el +++ b/lisp/net/tramp-cmds.el @@ -482,7 +482,8 @@ It is completed by \"M-x TAB\" only if package.el is loaded, and Tramp is an installed ELPA package." ;; We cannot apply `package-installed-p', this would also return the ;; builtin package. - (tramp-compat-funcall 'package--user-installed-p 'tramp)) + (and (assq 'tramp (bound-and-true-p package-alist)) + (tramp-compat-funcall 'package--user-installed-p 'tramp))) ;;;###tramp-autoload (defun tramp-recompile-elpa ()