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#25152: 25.1; Customize: errors for `restricted-sexp' in `repeat' Date: Sat, 5 Sep 2020 13:53:21 -0300 Message-ID: References: <45d48716-1ac9-4cb3-9c64-042dddee4e77@default> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000062a8f805ae93d3a3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8041"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 25152@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 05 18:54: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 1kEbS5-0001vH-OJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Sep 2020 18:54:09 +0200 Original-Received: from localhost ([::1]:57312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEbS4-0003PO-Re for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Sep 2020 12:54:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEbRx-0003P3-U9 for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 12:54:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEbRx-00052P-KM for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 12:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kEbRx-0006ag-JL for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 12:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Sep 2020 16:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25152 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 25152-submit@debbugs.gnu.org id=B25152.159932482025307 (code B ref 25152); Sat, 05 Sep 2020 16:54:01 +0000 Original-Received: (at 25152) by debbugs.gnu.org; 5 Sep 2020 16:53:40 +0000 Original-Received: from localhost ([127.0.0.1]:43980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEbRc-0006a7-Go for submit@debbugs.gnu.org; Sat, 05 Sep 2020 12:53:40 -0400 Original-Received: from mail-wm1-f46.google.com ([209.85.128.46]:50789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEbRb-0006Zv-9h for 25152@debbugs.gnu.org; Sat, 05 Sep 2020 12:53:39 -0400 Original-Received: by mail-wm1-f46.google.com with SMTP id e17so9503303wme.0 for <25152@debbugs.gnu.org>; Sat, 05 Sep 2020 09:53:39 -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=Y2BS4ShWnJggwWl0OoHVS7p+t+dzS8pBgN54kVKPdPY=; b=g2FV1xw6Wifg7QVebKntBu8osryY4tS1rMkzFqX8ZfX/CxnEGmz4DedEZVL8LjzZPF qSQYOIDvGORIku2lVu20AA1LssH+6VmsMFFVJoEQCloadhHZTaUuA1EzKqebf6cPIIet x6IhwGYxUehXhwz0mZrWnq73f4ZY9w2Eo9gG7Si2HdE5PWeKLBQI3R5fafxcBXIjM8Wd qJz151IlRz8+C4P/HgSHcrdcHxZxNnr1txthoszogscnqqB+XLWjeKj2Z9SurLSlaGaB 6U+ihmGYY5XrACK7TGQN9hjcANd8Ntvbnb1doDvWxzd9mIJTHk6/9l1kbFdmJbeYMmjf Z6kg== 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=Y2BS4ShWnJggwWl0OoHVS7p+t+dzS8pBgN54kVKPdPY=; b=S4h1VBEskbLWJORLwdBCtW4M/xZexNfXIXf9S5QEmo+8x9dfrK3pL9Q8PVPLFKMsoz uxB6DDYQT+3iFzfNg/q+58FTUsQmYdCymWhGYn41AiU68P+g2ZrJbZN8LutvjDfZCDyj 3Tenjz+xMi5Tr5vtuOg4r+6iFDcKOMV3ytslhx3IWykciLog9ib+RwVSuhunBNpg8e+F GET/4Mg87TEH+fJOI2NIgJg9TeGX1P5ythIxv5Z2gbJtktH48Qkk/Izz8yXN4hJTzOLM xdePgSSMr1DqGG18KtslZyVhxeIrSYFCA0QA6lNP8UnCbSopPGig7IFxkB57qFb77EKT A9aQ== X-Gm-Message-State: AOAM531ZjCH1ewrk6LBYpKUzXuHDZV05AfnGDjo28ejuQRb/monDSeeF N2KS4b10KC2hAImLKBYw2jUhRmBfBpQC+DLxxr0= X-Google-Smtp-Source: ABdhPJwknlvAVjX/pGKNfYgNb1l0ZuehT/5KHiguvL8rZZ1K1+FpBiYuQtnIV+BtWds2HgwSy0b9BI1+/MG6sYbhdco= X-Received: by 2002:a1c:a9c2:: with SMTP id s185mr13173737wme.100.1599324813436; Sat, 05 Sep 2020 09:53:33 -0700 (PDT) In-Reply-To: <45d48716-1ac9-4cb3-9c64-042dddee4e77@default> 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:187282 Archived-At: --00000000000062a8f805ae93d3a3 Content-Type: text/plain; charset="UTF-8" Drew Adams writes: >> To sum it up, the prompt is an unfortunate mistake, and maybe we could >> protect against that, but I think the real problem comes from the >> defcustom, which fails to provide a valid default value. > > Thanks for this explanation. Makes sense. > > Can we somehow help users by raising an error when they > do this? Seems like a simple mistake to make. I think it makes sense, but I'm not sure where would be the right place to do it. --00000000000062a8f805ae93d3a3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Drew Adams <dr= ew.adams@oracle.com> writes:

>> To sum it up, the promp= t is an unfortunate mistake, and maybe we could
>> protect against= that, but I think the real problem comes from the
>> defcustom, w= hich fails to provide a valid default value.
>
> Thanks for thi= s explanation.=C2=A0 Makes sense.
>
> Can we somehow help users= by raising an error when they
> do this?=C2=A0 Seems like a simple m= istake to make.

I think it makes sense, but I'm not sure where w= ould be the right place
to do it.
--00000000000062a8f805ae93d3a3--