all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#25678: 25.1; defcustom type `(file :must-match t)' seems not to work
@ 2017-02-10 18:32 Drew Adams
  2017-02-17 23:57 ` npostavs
  2020-08-29 15:33 ` Mauro Aranda
  0 siblings, 2 replies; 9+ messages in thread
From: Drew Adams @ 2017-02-10 18:32 UTC (permalink / raw)
  To: 25678

(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?

If this is just confusion on my part, please consider clarifying the
description of the behavior in the doc: (elisp) `Simple Types'.

(I see the same behavior if `(file :must-match t)' is used within a
complex type, e.g. as the :value-type of an alist entry.)


In GNU Emacs 25.1.1 (x86_64-w64-mingw32)
 of 2016-11-15
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --without-dbus --without-compress-install 'CFLAGS=-O2
 -static -g3''





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-09-10 13:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.