Subject: Re: bug#43260: 28.0.50; package-installed-p returns nil for tablegen-mode (not published in melpa) which is installed via quelpa

From: Stefan Kangas <[email-masked]>
Date: Wed, 25 Nov 2020 01:32:18 -0800

Zhiwei Chen <[email-masked]> writes:

> To reproduce:
>
> (unless (package-installed-p 'use-package)
>   (package-refresh-contents)
>   (package-install 'use-package))
> (eval-and-compile
>   (setq use-package-always-ensure nil)
>   (setq use-package-always-defer nil)
>   (setq use-package-always-demand nil)
>   (setq use-package-expand-minimally nil)
>   (setq use-package-enable-imenu-support t))
> (eval-when-compile
>   (require 'use-package))
>
> ;; Bootstrap `quelpa'.
> (use-package quelpa
>   :ensure t
>   :custom
>   (quelpa-update-melpa-p nil)
>   (quelpa-self-upgrade-p nil)
>   (quelpa-checkout-melpa-p nil))
>
> (use-package quelpa-use-package
>   :ensure t
>   :config
>   (quelpa-use-package-activate-advice)
>   :custom
>   (quelpa-use-package-inhibit-loading-quelpa t))
>
> ;; LLVM IR
> (use-package llvm-mode
>   :ensure t
>   :quelpa (llvm-mode :fetcher url
>                      :url "https://raw.githubusercontent.com/llvm/llvm-project/master/llvm/utils/emacs/llvm-mode.el")
>   :mode ("\\.ll\\'" . llvm-mode))
>
> ;; TableGen description
> (use-package tablegen-mode
>   :ensure t
>   :quelpa (tablegen-mode :fetcher url
>                          :url "https://raw.githubusercontent.com/llvm/llvm-project/master/llvm/utils/emacs/tablegen-mode.el")
>   :mode ("\\.td\\'" . tablegen-mode))
>
> Run:
>
> M-: (package-installed-p 'tablegen-mode) RET
>
> It returns nil for tablegen-mode while t for llvm-mode.

It seems like this bug was fixed in quelpa:
https://github.com/quelpa/quelpa/issues/205

Do you still think there is a bug in Emacs?  If yes, could you please
provide a recipe to reproduce it that does not involve installing any
third-party packages?  Otherwise, can we close this bug?

Thanks in advance.