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: Sun, 4 Apr 2021 04:05:43 -0500 Message-ID: References: <83czvaecf5.fsf@gnu.org> 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="37156"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47424@debbugs.gnu.org, monnier@iro.umontreal.ca, mardani29@yahoo.es To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 04 11:06:09 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 1lSyht-0009XC-LD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Apr 2021 11:06:09 +0200 Original-Received: from localhost ([::1]:48286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSyhs-0005oR-9e for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Apr 2021 05:06:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSyhm-0005oI-5k for bug-gnu-emacs@gnu.org; Sun, 04 Apr 2021 05:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51539) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSyhl-0005RD-TQ for bug-gnu-emacs@gnu.org; Sun, 04 Apr 2021 05:06:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lSyhl-0008E5-Ny for bug-gnu-emacs@gnu.org; Sun, 04 Apr 2021 05:06:01 -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 09:06:01 +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.161752715131602 (code B ref 47424); Sun, 04 Apr 2021 09:06:01 +0000 Original-Received: (at 47424) by debbugs.gnu.org; 4 Apr 2021 09:05:51 +0000 Original-Received: from localhost ([127.0.0.1]:34850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSyhb-0008Dd-FU for submit@debbugs.gnu.org; Sun, 04 Apr 2021 05:05:51 -0400 Original-Received: from mail-pl1-f175.google.com ([209.85.214.175]:37844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSyhZ-0008DO-43 for 47424@debbugs.gnu.org; Sun, 04 Apr 2021 05:05:51 -0400 Original-Received: by mail-pl1-f175.google.com with SMTP id h20so4355641plr.4 for <47424@debbugs.gnu.org>; Sun, 04 Apr 2021 02:05:49 -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:mime-version:date :message-id:subject:to:cc; bh=lg0N+A19TxrL34m5xZcj+6ZJ22+/fbeo/ZH9LZF7ZHg=; b=KFuX75vg9FaHaukHyzRDB/323jZimIsd4oFJiyyEHeCumhvZgduZRYyIAwuLGe1y7Y wugcyFVTTrhm3klICCgMnSUBRxQQxf7WMU+ihpZcHkzUi6yOO6NlgxipA3yENWaXcWb0 cXzgeXW5QfW4PNVMHX4hXc8397z9RU1MnJnqKj1FQe722hy0egxYgYhNy77ZDN7y6IAF nPr5kW972L47xMuUhZzBjHDWZwdbJzpH1QfuMRaVmpXJ1fwInydMrj/gf8GLFe9X1/mD mpPq0qDx8y3CdVtO8bYPWPAz1SLxX++kM5XTyTJUcpZRxAJXun3pn1qYtnaIoZ05ykbR Uhug== X-Gm-Message-State: AOAM530FsVbB+QpLYcpclKlcSChTUGmCzt1OpzeQrHhA2il5U96KVnwB l4GLknI7MCdV+DZTHmG0SHRW2pozoXY+2LNt7OY= X-Google-Smtp-Source: ABdhPJxZopQoUhx8UFPriZTHLeVmHys7yx8E0oTLC0mK+xnK8goB83XzMPLp6SbB5nbgXIszQ6X0diLVDrSTSDSSWFo= X-Received: by 2002:a17:902:7788:b029:e9:11:5334 with SMTP id o8-20020a1709027788b02900e900115334mr1395061pll.70.1617527143447; Sun, 04 Apr 2021 02:05:43 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 4 Apr 2021 04:05:43 -0500 In-Reply-To: <83czvaecf5.fsf@gnu.org> 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:203525 Archived-At: Eli Zaretskii writes: >> 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? > > For the same reason that loading a Lisp package shouldn't change the > Emacs state, until the user explicitly activates the features in the > package. It's unclean to have loading activate stuff, and we've > invested an effort during the last years to remove that uncleanliness. I still don't see why a user should need to worry about this distinction or the complexities involved. It seems like a suboptimal interface. We are here talking about user-facing features. I think it should be enough to have one knob to disable themes and one knob to enable them. > With themes, you can load several ones and then enable/disable any of > them whenever you see fit. I don't see why a user would want/need to load a theme if she does not intend to use it. If the user wants to load it for later use, why not just defer loading it until that time? And if a user *really* wants to load a theme for some reason, there is always e.g. `load-file' or `load-library'. What am I missing? > Under your proposal, disabling a theme would be impossible without > unloading it, and that might not be easy to do cleanly. I'm not sure I follow; I see no need to make it symmetrical in that sense. In the same way, we don't bother unloading a library just because the major-mode involved is not used in any buffer. But we do provide a way to autoload major modes. BTW, why would an end-user ever need to unload a theme? Is it not enough to simply disable it?