unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Mauro Aranda <maurooaranda@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 65401@debbugs.gnu.org
Subject: bug#65401: 30.0.50; custom-theme-directory :type could be enhanced
Date: Sun, 20 Aug 2023 08:28:48 -0300	[thread overview]
Message-ID: <5a90736e-2a04-3f6c-9b0c-ef60e80426a0@gmail.com> (raw)
In-Reply-To: <83pm3ivufg.fsf@gnu.org>

Eli Zaretskii <eliz@gnu.org> writes:

 >> Date: Sun, 20 Aug 2023 07:48:09 -0300
 >> From: Mauro Aranda <maurooaranda@gmail.com>
 >>
 >> 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






  reply	other threads:[~2023-08-20 11:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-20 10:48 bug#65401: 30.0.50; custom-theme-directory :type could be enhanced Mauro Aranda
2023-08-20 11:12 ` Eli Zaretskii
2023-08-20 11:28   ` Mauro Aranda [this message]
2023-08-20 12:26     ` Eli Zaretskii
2023-08-20 12:35       ` Mauro Aranda
2023-08-20 13:32         ` Eli Zaretskii
2023-08-20 13:43           ` Mauro Aranda
2023-08-21  8:00             ` Philip Kaludercic
2023-08-21 11:05               ` Eli Zaretskii
2023-08-21 12:39                 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-21 14:46                   ` Mauro Aranda
2023-08-26  8:02                     ` Eli Zaretskii
2023-08-21 14:41               ` Mauro Aranda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5a90736e-2a04-3f6c-9b0c-ef60e80426a0@gmail.com \
    --to=maurooaranda@gmail.com \
    --cc=65401@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).