From: npostavs@users.sourceforge.net
To: Drew Adams <drew.adams@oracle.com>
Cc: 25678@debbugs.gnu.org
Subject: bug#25678: 25.1; defcustom type `(file :must-match t)' seems not to work
Date: Fri, 17 Feb 2017 18:57:56 -0500 [thread overview]
Message-ID: <871suwl69n.fsf@users.sourceforge.net> (raw)
In-Reply-To: <77a3abe9-258c-4863-a87d-2f236babafe4@default> (Drew Adams's message of "Fri, 10 Feb 2017 10:32:23 -0800 (PST)")
Drew Adams <drew.adams@oracle.com> writes:
> (defcustom foo-file ""
> ""
> :type '(file :must-match t) :group 'convenience)
>
> M-x customize-option foo-file
>
> I don't see anything that prevents you from using a file name that
> corresponds to no existing file. I don't see that completion (`M-TAB')
> enforces it to name an existing file. And I don't see that simply
> inserting a bad file name is prevented, nor is setting the option to a
> bad file name or saving it prevented.
>
> What effect does (file :must-match t) actually have, if any?
It looks like `widget-file-prompt-value' consults it, but I can't tell
when this function is called.
next prev parent reply other threads:[~2017-02-17 23:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-10 18:32 bug#25678: 25.1; defcustom type `(file :must-match t)' seems not to work Drew Adams
2017-02-17 23:57 ` npostavs [this message]
2018-01-14 23:07 ` Tim Landscheidt
2020-03-21 17:36 ` H. Dieter Wilhelm
2020-08-29 15:33 ` Mauro Aranda
2020-08-30 13:56 ` Lars Ingebrigtsen
2020-08-30 15:22 ` Mauro Aranda
2020-09-09 17:21 ` Mauro Aranda
2020-09-10 13:13 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871suwl69n.fsf@users.sourceforge.net \
--to=npostavs@users.sourceforge.net \
--cc=25678@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.