From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#25678: 25.1; defcustom type `(file :must-match t)' seems not to work Date: Sun, 30 Aug 2020 12:22:34 -0300 Message-ID: References: <77a3abe9-258c-4863-a87d-2f236babafe4@default> <87pn78s0e6.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b16e7705ae19dbe2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11312"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dieter@duenenhof-wilhelm.de, 25678@debbugs.gnu.org, Noam Postavsky , tim@tim-landscheidt.de To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 30 17:23:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kCPAk-0002pQ-9o for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Aug 2020 17:23:10 +0200 Original-Received: from localhost ([::1]:59996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCPAj-00064N-0C for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Aug 2020 11:23:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCPAc-000640-IW for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 11:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39017) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCPAc-0005E5-9R for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 11:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kCPAc-0005g2-5W for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 11:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Aug 2020 15:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25678 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 25678-submit@debbugs.gnu.org id=B25678.159880097421795 (code B ref 25678); Sun, 30 Aug 2020 15:23:02 +0000 Original-Received: (at 25678) by debbugs.gnu.org; 30 Aug 2020 15:22:54 +0000 Original-Received: from localhost ([127.0.0.1]:50563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCPAU-0005fT-8U for submit@debbugs.gnu.org; Sun, 30 Aug 2020 11:22:54 -0400 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:53897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCPAS-0005fH-IO for 25678@debbugs.gnu.org; Sun, 30 Aug 2020 11:22:53 -0400 Original-Received: by mail-wm1-f50.google.com with SMTP id u18so3206600wmc.3 for <25678@debbugs.gnu.org>; Sun, 30 Aug 2020 08:22:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XY2l6calclyu6PiO52aKk2XamuioQ5sUxLDelJt1BeU=; b=qD2loWcyAq3wClPff6RvEt8ML0AQtEPYpiJSiwhxSHYC8ybedHRx/Gqry8ukYTrLT3 WqfNQIb6pYexDkrKlXBt+US0xIQVZJtl//8k6xnsIuHISnjG9praiMRpmNfByOY+5lDb mSzGGxQKzptZ844tRpZFzBz2GKpD7j0jmcnv2MSm74J9MjyL0fICZVdHL0c0QnDeuLPE CulMqRsoUuEz99kqdEuBlzVB7Lvb5Hi2UwpZjsUz584BKRNwEPoC5fb58I81dIxVMs8b cQiNhVaZI+2Rr8q3oE8apNSTMAw1hxm3qR9TcnQZkaG9OQ/XIFitpyF65MC8yZTqO2wr +w+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XY2l6calclyu6PiO52aKk2XamuioQ5sUxLDelJt1BeU=; b=kJrhbqTxqd465MuzJHZKdm3Eti3kqvRilwOcHYNCk7u+kKIUVD22T1Q4ztV7nr4jHx qRI64vI3r0MyiWYM05MxE698cgCRKrJw7XijhuvYVx+HauOIdimEehCMp6MHvfgMK27O nCumfMaVTOpFymj3wCX/q2Y4N4TrM+5VNuMZkF8Q67THfVSHhqJStLwr3ZBTS0dAEC5Q 5/lFSUUyxtKsGjMmv8eiwmpFsh2Nq5Mw8DQx2vmLDnVGYHb980dOzpdKyDFxAQajH5Y+ OpcoU7aU/7uLbJrFa7H9lJAsTiEK8Hf4r8nZN9OoUZUaAZBp8skQmbDax56jx0AWBjpx Iswg== X-Gm-Message-State: AOAM530LIcHRJd0U/UZQ1zOUaKl5sCRetay7p/G50vXybRIhg82fU3PD hqGmRs4stIAMoBAHOdllqcp+ZGdSVmjavT89ZiE= X-Google-Smtp-Source: ABdhPJyv3LEl/t6PdrJwGadse1WDYAM6/HLb9EPYghVvl8ct0Pl8N5acuWl81EFm0rwxgktM6lPzwv1hQI2BQKyjuag= X-Received: by 2002:a7b:cc90:: with SMTP id p16mr7533795wma.100.1598800966805; Sun, 30 Aug 2020 08:22:46 -0700 (PDT) In-Reply-To: <87pn78s0e6.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186707 Archived-At: --000000000000b16e7705ae19dbe2 Content-Type: text/plain; charset="UTF-8" Lars Ingebrigtsen writes: > Mauro Aranda 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! --000000000000b16e7705ae19dbe2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Lars Ingebrigtsen <la= rsi@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.
>
>= ; [...]
>
>> + =C2=A0:match #'(lambda (widget value)
= >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (or (not (widget-get w= idget :must-match))
>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 (file-exists-p value)))
>
> Makes sense to me.= =C2=A0 I've now applied this to Emacs 28 (but I removed the
> #&#= 39;'s before the lambdas first (they're superfluous)).

Noted= .=C2=A0 Thanks for taking the trouble!
--000000000000b16e7705ae19dbe2--