unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Mauro Aranda <maurooaranda@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
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 12:22:34 -0300	[thread overview]
Message-ID: <CABczVwfBft7HALJqM6c-usPnt0aRBg7vm57CRGxEk_JU22S5Nw@mail.gmail.com> (raw)
In-Reply-To: <87pn78s0e6.fsf@gnus.org>

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

Lars Ingebrigtsen <larsi@gnus.org> writes:

> 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)).

Noted.  Thanks for taking the trouble!

[-- Attachment #2: Type: text/html, Size: 795 bytes --]

  reply	other threads:[~2020-08-30 15:22 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
2020-08-30 15:22     ` Mauro Aranda [this message]
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=CABczVwfBft7HALJqM6c-usPnt0aRBg7vm57CRGxEk_JU22S5Nw@mail.gmail.com \
    --to=maurooaranda@gmail.com \
    --cc=25678@debbugs.gnu.org \
    --cc=dieter@duenenhof-wilhelm.de \
    --cc=larsi@gnus.org \
    --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).