From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#65401: 30.0.50; custom-theme-directory :type could be enhanced Date: Sun, 20 Aug 2023 08:28:48 -0300 Message-ID: <5a90736e-2a04-3f6c-9b0c-ef60e80426a0@gmail.com> References: <6e426233-31f9-b93e-302b-0d789a7cea44@gmail.com> <83pm3ivufg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30480"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: 65401@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 20 13:29:18 2023 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 1qXgcO-0007ib-23 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Aug 2023 13:29:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXgcA-00039l-QC; Sun, 20 Aug 2023 07:29:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qXgc8-00039d-SF for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 07:29:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qXgc8-00049o-Ka for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 07:29:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXgcA-0000gL-5J for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 07:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Aug 2023 11:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65401 X-GNU-PR-Package: emacs Original-Received: via spool by 65401-submit@debbugs.gnu.org id=B65401.16925309392612 (code B ref 65401); Sun, 20 Aug 2023 11:29:02 +0000 Original-Received: (at 65401) by debbugs.gnu.org; 20 Aug 2023 11:28:59 +0000 Original-Received: from localhost ([127.0.0.1]:53233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXgc7-0000g4-4C for submit@debbugs.gnu.org; Sun, 20 Aug 2023 07:28:59 -0400 Original-Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]:52572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXgc6-0000fs-4J for 65401@debbugs.gnu.org; Sun, 20 Aug 2023 07:28:58 -0400 Original-Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3a7e68f4214so1898406b6e.1 for <65401@debbugs.gnu.org>; Sun, 20 Aug 2023 04:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692530931; x=1693135731; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=t4UR3oLMdPGtIhb7tW/exFHxuzzw1LplT9BGS0DKkiQ=; b=nx90RExYMgEmOlC8oqotkPNdiycLTDw126zoZ9duKG+eT9oHp/ZBi9peu+LueN6D4U 7bteLiJ/ENSjoc+4cNLhxN328w2uoxbWTwhSv4aHofDi79xkJtuf1o9AakDGQtvFd5m9 fkDAy8VSu/7Q61Vll3An1sqU/DsisEze2z36kMoGxN/JmXwVEZgJUZYu0BvLnN6naxur 14eCf1gaRDKfX+VlxzmhxnaXTeXrr0SsvFDAzet1C845DSmD4fBC2hnEqB/JF4DV/PqY Saz+Q6e89xLPPql3iHWSQJ2glQLxyWqboRYs4FEvKKec7XW+55g/B0o5nzqBxARYtr9y uHEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692530931; x=1693135731; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=t4UR3oLMdPGtIhb7tW/exFHxuzzw1LplT9BGS0DKkiQ=; b=aayGIkCvBhX4pOuSdKKlSJWxYWpSCljU/cLKONngQds5OGJ8a8OvIsglIYgOQfBaBy ubyx1JPXuOOvXKggul9aEVycVL0DHo7dSz12iVqnRM/b70rjP4cnaQCV4Ih2Sq0T1k7p yokxHAz7q8iY5176S3x3JOl9dv5KekcMqD2OXG9eS2KvaUNLbT+NGeRzZDYPxb81k0bg iTNn6rSEaka/GQSjpA4X2xcqojTcB1DKeqOh8EuB/vpo1kxyyrrpW3ARnIzHM3EcaeRP M71ZxNhh2BOqsijD8ezpVne3WV0cPaRi1AZD9kbGGPEag+Qf+vBIONDY1H1QuGCXMceH 0CZg== X-Gm-Message-State: AOJu0YxaNVp2ao4IJa4Hjf2zaUqpuEBIL6CbaiDM5hMCMTDrztnKFVrL IeqeUYqXLhHrq3D9c3zFYna78ICX9ew= X-Google-Smtp-Source: AGHT+IEB+TeR7N7PXOfQumuI3mHdBBhH93y61QfD/bSUlAR36RNB2WvBulT3kIfrXux4w5r8G1mGpw== X-Received: by 2002:a05:6870:8194:b0:1c3:c43d:838 with SMTP id k20-20020a056870819400b001c3c43d0838mr6304676oae.39.1692530930762; Sun, 20 Aug 2023 04:28:50 -0700 (PDT) Original-Received: from [192.168.0.234] ([186.127.128.249]) by smtp.gmail.com with ESMTPSA id ef13-20020a0568701a8d00b001c548ecc52asm3078489oab.13.2023.08.20.04.28.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Aug 2023 04:28:50 -0700 (PDT) Content-Language: en-US In-Reply-To: <83pm3ivufg.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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267987 Archived-At: Eli Zaretskii writes: >> Date: Sun, 20 Aug 2023 07:48:09 -0300 >> From: Mauro Aranda >> >> The user option custom-theme-directory is supposed to hold a directory >> name.  But its :type is a string. >> >> I realize that it isn't really a bug, but in order to offer better >> completion, at least, I'd like to change the type to be directory.  So >> I'm filing this bug report to see if people would object to such a >> change. > > Does the directory have to exist? I don't think so.  And I don't see a reason to force the existence by putting a non-nil :must-match property. The function custom-theme--load-path takes care of filtering out custom-theme-directory if it doesn't exist. And to check I evaled: (defcustom custom-theme-directory user-emacs-directory   "Default user directory for storing custom theme files. The command `customize-create-theme' writes theme files into this directory.  By default, Emacs searches for custom themes in this directory first---see `custom-theme-load-path'."   :initialize #'custom-initialize-delay   :type 'directory   :group 'customize   :version "22.1") M-x customize-option RET custom-theme-directory Changed the value to something like "~/nonexistent" and set it for the session. M-x customize-create-theme Answer y at the prompt Give the theme a dummy name. Action the Save Theme button The theme was created under: ~/nonexistent/dummy-theme.el