GNU bug report logs - #65145
‘enable-theme’ completion for themes loaded by ‘require-theme’

Previous Next

Package: emacs;

Reported by: Shynur Xie <one.last.kiss <at> outlook.com>

Date: Tue, 8 Aug 2023 10:37:01 UTC

Severity: normal

Tags: notabug

Done: Mauro Aranda <maurooaranda <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 65145 <at> debbugs.gnu.org (full text, mbox):

From: Mauro Aranda <maurooaranda <at> gmail.com>
To: Shynur Xie <one.last.kiss <at> outlook.com>
Cc: 65145 <at> debbugs.gnu.org
Subject: Re: bug#65145: ‘enable-theme’ completion for themes loaded by ‘require-theme’
Date: Tue, 8 Aug 2023 20:09:29 -0300
Shynur Xie <one.last.kiss <at> outlook.com> writes:

> Hi, friends.  I find that if we use
>
>     (require-theme 'X-theme)
>
> to load ‘X-theme’, minibuffer doesn’t provide the completion for
> ‘X-theme’ when calling ‘enable-theme’ interactively.  But the
> following code
>
>     (require-theme 'X-theme)
>     (enable-theme 'X)
>
> works fine.

I can't reproduce it.  I did:
emacs -Q
(require-theme 'leuven-theme)
M-x enable-theme
TAB

And "leuven" was inserted at the minibuffer.

I tried on Emacs 28, Emacs 29 and master.

> Is it an intended behavior that ‘enable-theme’ doesn’t provide
> completion for those themes loaded by ‘require-theme’?
> If so, please ignore this report and excuse my intrusion. If not, can
> we fix it?

It should offer the completion, and at least it does for me. What were
the steps that you followed? And on which Emacs version?





This bug report was last modified 1 year and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.