* Customisation system: :type is not checked
@ 2020-03-20 21:44 H. Dieter Wilhelm
2020-03-21 14:22 ` Noam Postavsky
0 siblings, 1 reply; 3+ messages in thread
From: H. Dieter Wilhelm @ 2020-03-20 21:44 UTC (permalink / raw)
To: help-gnu-emacs
Hello Emacs-26.3
Maybe I'm reading too much from (info "(elisp) Simple Types")?
There the manual says that the customisation widget provides
completions, which is working. But it also says that the example
defcustom below
(defcustom apdl-ansys-launcher nil
"This string variable stores the Ansys launcher executable.
When the respective executable is not in your search path, you
...
this for the current session only."
:type '(file :must-match t)
:group 'APDL-initialise)
MUST be a file and should even match an existing file. But this
statement is not checked from the widget! I can set the value to any
string. What am I doing wrong or is my disappointment justified?
Thank you
Dieter
--
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Customisation system: :type is not checked
2020-03-20 21:44 Customisation system: :type is not checked H. Dieter Wilhelm
@ 2020-03-21 14:22 ` Noam Postavsky
2020-03-21 17:28 ` H. Dieter Wilhelm
0 siblings, 1 reply; 3+ messages in thread
From: Noam Postavsky @ 2020-03-21 14:22 UTC (permalink / raw)
To: H. Dieter Wilhelm; +Cc: Help Gnu Emacs mailing list
On Fri, 20 Mar 2020 at 17:44, H. Dieter Wilhelm
<dieter@duenenhof-wilhelm.de> wrote:
> (defcustom apdl-ansys-launcher nil
> :type '(file :must-match t)
> MUST be a file and should even match an existing file. But this
> statement is not checked from the widget! I can set the value to any
> string. What am I doing wrong or is my disappointment justified?
It's been reported as a bug. Someone reported there that the file
existence is only checked from M-x customize-set-value
https://debbugs.gnu.org/25678
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Customisation system: :type is not checked
2020-03-21 14:22 ` Noam Postavsky
@ 2020-03-21 17:28 ` H. Dieter Wilhelm
0 siblings, 0 replies; 3+ messages in thread
From: H. Dieter Wilhelm @ 2020-03-21 17:28 UTC (permalink / raw)
To: Noam Postavsky; +Cc: Help Gnu Emacs mailing list
Hello Noam
Noam Postavsky <npostavs@gmail.com> writes:
> On Fri, 20 Mar 2020 at 17:44, H. Dieter Wilhelm
> <dieter@duenenhof-wilhelm.de> wrote:
>
>> (defcustom apdl-ansys-launcher nil
>
>> :type '(file :must-match t)
>
>> MUST be a file and should even match an existing file. But this
>> statement is not checked from the widget! I can set the value to any
>> string. What am I doing wrong or is my disappointment justified?
>
> It's been reported as a bug. Someone reported there that the file
> existence is only checked from M-x customize-set-value
Great, thank you very much! (didn't know about customize-set-value which
is working quite nicely :-)
> https://debbugs.gnu.org/25678
Thank you Drew for updating your bug report
Dieter
--
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-21 17:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-20 21:44 Customisation system: :type is not checked H. Dieter Wilhelm
2020-03-21 14:22 ` Noam Postavsky
2020-03-21 17:28 ` H. Dieter Wilhelm
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).