From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25678: 25.1; defcustom type `(file :must-match t)' seems not to work Date: Fri, 17 Feb 2017 18:57:56 -0500 Message-ID: <871suwl69n.fsf@users.sourceforge.net> References: <77a3abe9-258c-4863-a87d-2f236babafe4@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487375833 10234 195.159.176.226 (17 Feb 2017 23:57:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Feb 2017 23:57:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 25678@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 18 00:57:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cesOh-0002B7-Hx for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2017 00:57:07 +0100 Original-Received: from localhost ([::1]:56520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cesOn-00073n-CF for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Feb 2017 18:57:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cesOh-00071y-GM for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2017 18:57:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cesOc-00086m-LK for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2017 18:57:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45730) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cesOc-00086c-Gz for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2017 18:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cesOc-0002MU-AA for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2017 18:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Feb 2017 23:57: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: Original-Received: via spool by 25678-submit@debbugs.gnu.org id=B25678.14873758139061 (code B ref 25678); Fri, 17 Feb 2017 23:57:02 +0000 Original-Received: (at 25678) by debbugs.gnu.org; 17 Feb 2017 23:56:53 +0000 Original-Received: from localhost ([127.0.0.1]:43929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cesOT-0002M4-47 for submit@debbugs.gnu.org; Fri, 17 Feb 2017 18:56:53 -0500 Original-Received: from mail-io0-f173.google.com ([209.85.223.173]:35424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cesOQ-0002Ls-PJ for 25678@debbugs.gnu.org; Fri, 17 Feb 2017 18:56:51 -0500 Original-Received: by mail-io0-f173.google.com with SMTP id j18so3421940ioe.2 for <25678@debbugs.gnu.org>; Fri, 17 Feb 2017 15:56:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7vTxFzSmXvbhkoGh8d8C/6rO3yo9zYPRzmdYLxOFfbI=; b=FnLFJADRtb5Ebbf7tHaG21umAl4Y4e8Lx9wXMAnuEFHbJDSwKZtU1RI8E3sYSgktmI U44GJPsWi2j6mX4nzKiMVxBJcmOHvXpqX/Kz9T4Z3aeO5dtb9TFD0eOh/VwizeREXsy7 45X6Wggvxm2n3gRUsonnslWdFtkirvIdOKYmuTAfurTeC/2bzCnJIeR0pn1N85tkqtWZ yGRt+8LqLSbIZColwCmMbhD0C2LOnfK2ISVO5YfU4pYCbcVDPnmXhMQjjc+0T0z549HI rscG8/c3+bQm8YBqulrXUMHdTNwd70dxV23OslDbMgNUCFzkZW1+amJp/Ap6WLF9S/9F NLOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=7vTxFzSmXvbhkoGh8d8C/6rO3yo9zYPRzmdYLxOFfbI=; b=cii6ZrcdMH16WpdwSlVR/4DZxNqypSZuiiUhdNzdwPrZpCCE5TkaYbCYXHhM0dAyOO ZqHOj5RzYApAO8R/r8MQlYXtBCIXGpeUUMdIHm8XP3L+ykTH6aiM7SANq/wS8MYem624 ZSc8jyiF0g6kNvpkCvhu7atxL4LjFgqlE3x1byC5zUE5Q7w82S+GCtrOD5MFhOHeBmvC VmzUflRhF3jwvydHKk9nlALFIs0SgHqOy4LomOLPFRCUQippym3WuKmFExHSKSUFmnBY B/6o9YPXbhKAOfXvqQK+rm25grii42z/m80L4hsvunWbIV2BhmkksKJ+shFKesC+88oP tvGA== X-Gm-Message-State: AMke39lABfuS3W+U1b1cW3AdPJ7arE3gQ3bqIxmPmJFk3Q/QOjp2IHGUWZ6j4/m7Pks1NQ== X-Received: by 10.107.130.80 with SMTP id e77mr8721195iod.193.1487375805255; Fri, 17 Feb 2017 15:56:45 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id n75sm1262398itg.19.2017.02.17.15.56.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Feb 2017 15:56:44 -0800 (PST) In-Reply-To: <77a3abe9-258c-4863-a87d-2f236babafe4@default> (Drew Adams's message of "Fri, 10 Feb 2017 10:32:23 -0800 (PST)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129470 Archived-At: Drew Adams writes: > (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? It looks like `widget-file-prompt-value' consults it, but I can't tell when this function is called.