GNU bug report logs - #25678
25.1; defcustom type `(file :must-match t)' seems not to work

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Fri, 10 Feb 2017 18:33:02 UTC

Severity: normal

Tags: fixed

Found in versions 25.1, 26.3

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mauro Aranda <maurooaranda <at> gmail.com>
Cc: dieter <at> duenenhof-wilhelm.de, 25678 <at> debbugs.gnu.org, Noam Postavsky <npostavs <at> gmail.com>, Drew Adams <drew.adams <at> oracle.com>, tim <at> 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
Mauro Aranda <maurooaranda <at> 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




This bug report was last modified 4 years and 257 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.