From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#47424: 28.0.50; enable-theme shows an empty list Date: Sat, 3 Apr 2021 19:14:29 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19164"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47424@debbugs.gnu.org, Daniel =?UTF-8?Q?Mart=C3=ADn?= To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 04 02:15:23 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSqQF-0004sP-AR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Apr 2021 02:15:23 +0200 Original-Received: from localhost ([::1]:38154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSqQE-0003Xk-9k for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Apr 2021 20:15:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSqPw-0003Tz-Fz for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2021 20:15:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSqPv-0001Hb-IG for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2021 20:15:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lSqPv-0007bp-Ac for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2021 20:15:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Apr 2021 00:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47424 X-GNU-PR-Package: emacs Original-Received: via spool by 47424-submit@debbugs.gnu.org id=B47424.161749527829156 (code B ref 47424); Sun, 04 Apr 2021 00:15:03 +0000 Original-Received: (at 47424) by debbugs.gnu.org; 4 Apr 2021 00:14:38 +0000 Original-Received: from localhost ([127.0.0.1]:34587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSqPW-0007aB-5u for submit@debbugs.gnu.org; Sat, 03 Apr 2021 20:14:38 -0400 Original-Received: from mail-pj1-f49.google.com ([209.85.216.49]:35688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSqPT-0007Zt-NU for 47424@debbugs.gnu.org; Sat, 03 Apr 2021 20:14:36 -0400 Original-Received: by mail-pj1-f49.google.com with SMTP id il9-20020a17090b1649b0290114bcb0d6c2so6224559pjb.0 for <47424@debbugs.gnu.org>; Sat, 03 Apr 2021 17:14:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=iPoytxdDf1M9B1Z5FRlVknyz3okuI/ScmqnXAJMPplQ=; b=lf4NnRC1M+QQwjDu5i1kf7WI7s3/+NtSzO7kuVRJJmt5U28Lc1mIvOJE2BSuHZqdif neemzEk1JMHWJP/PYMaBhPJbWIFvY8rMvS06hnRispfbSxI5RfmxSOSFXONwFCO7qJso K4buadMdl0LLy16G01ovT9q8IPB7CNZg/DL/12A9pginHYpddc4XQTROC9cxibRWUS1O p1DfH5+21+IarHqDeMbCqsktwCf991SH/Hd68TnIiGgiYGOeosr7kRlyk9k5xvCxzHal SajjJTVNO45dud6ECOhybkETlKX43NgTNvUzGQ1UiklcKmZjiaZu0onxrw2PoIk3YWbF P6YQ== X-Gm-Message-State: AOAM532TDsQiuW0O+O7XIl45b+uMbqbBr7o7WnJ3r4ugZfAODLuRGRcC wy6Cu1q3E7r6W6ryB9E1TkxfZumiP288r40D3LSrRPxh X-Google-Smtp-Source: ABdhPJxpiq9fklH0vxU5u2S8TNjwJG+ZL8b34/Za8+jGtZZB4+GxkA2YAU9kb6msV/EbRgFAOcDyHDGl8urscUXBNiQ= X-Received: by 2002:a17:90a:bd09:: with SMTP id y9mr19844260pjr.179.1617495270031; Sat, 03 Apr 2021 17:14:30 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 3 Apr 2021 19:14:29 -0500 In-Reply-To: (Stefan Monnier's message of "Fri, 26 Mar 2021 21:57:31 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203503 Archived-At: Stefan Monnier writes: >> According to the documentation, `enable-theme' enables variable and face >> settings of already loaded themes, so I think it makes sense that it >> doesn't offer completions in emacs -Q, because there is no loaded theme >> yet. >> >> Perhaps you wanted to do M-x load-theme, which should properly complete >> with themes from etc/themes, among other directories? > > I know it works as documented, but I don't think it's the behavior we > really want. We should autoload themes, just like we autoload pretty > much everything else. I'm not exactly sure why we bother differentiating between loading a theme and enabling it. Technically, I understand that there is a difference. But why should a user have to fiddle around with it? I have themes in the Emacs distribution or installed from some ELPA repository. I am now interested in exactly one thing: enable this installed theme. Or don't. Load as necessary. As a user, I am almost completely indifferent to what symbols are defined in my Emacs session. IOW, I'd be in favour of removing one of `enable-theme' or `load-theme' and ensure we always DTRT and DWIM (which includes autoloading when necessary). (If someone needs a way to reload themes (besides `load-file', I suppose), we could have a new function `theme-reload'.)