]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/tramp-cmds.el (tramp-recompile-elpa-command-completion-p):
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 23 Apr 2021 17:57:50 +0000 (19:57 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 23 Apr 2021 17:57:50 +0000 (19:57 +0200)
Check, whether Tramp has a package description.

lisp/net/tramp-cmds.el

index 6342cf5287364c1db997a8f3088806b090d7ac21..a3cf6f3211a7de0df690f87d5c97323a83751a11 100644 (file)
@@ -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 ()