GNU bug report logs -
#65401
30.0.50; custom-theme-directory :type could be enhanced
Previous Next
Reported by: Mauro Aranda <maurooaranda <at> gmail.com>
Date: Sun, 20 Aug 2023 10:49:01 UTC
Severity: normal
Tags: patch
Found in version 30.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Date: Sun, 20 Aug 2023 07:48:09 -0300
>> From: Mauro Aranda <maurooaranda <at> 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
This bug report was last modified 1 year and 268 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.