unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Mauro Aranda <maurooaranda@gmail.com>
Cc: dieter@duenenhof-wilhelm.de, 25678@debbugs.gnu.org,
	Noam Postavsky <npostavs@gmail.com>,
	tim@tim-landscheidt.de
Subject: bug#25678: 25.1; defcustom type `(file :must-match t)' seems not to work
Date: Sun, 30 Aug 2020 15:56:17 +0200	[thread overview]
Message-ID: <87pn78s0e6.fsf@gnus.org> (raw)
In-Reply-To: <CABczVwd_HPcFdUw32Sr45AVu2Qeb18i5PzAWxQQ3T1WP5b6qgw@mail.gmail.com> (Mauro Aranda's message of "Sat, 29 Aug 2020 12:33:15 -0300")

Mauro Aranda <maurooaranda@gmail.com> writes:

> I think it makes sense to expand the impact of :must-match t to
> Customization buffers, like in the attached patch.

[...]

> +  :match #'(lambda (widget value)
> +             (or (not (widget-get widget :must-match))
> +                 (file-exists-p value)))

Makes sense to me.  I've now applied this to Emacs 28 (but I removed the
#''s before the lambdas first (they're superfluous)).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2020-08-30 13:56 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
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 [this message]
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

  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=87pn78s0e6.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=25678@debbugs.gnu.org \
    --cc=dieter@duenenhof-wilhelm.de \
    --cc=maurooaranda@gmail.com \
    --cc=npostavs@gmail.com \
    --cc=tim@tim-landscheidt.de \
    /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).