From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#35133: 26.1; 1) `:tag' for `restricted-sexp' (not in a choice, set, etc.), 2) Remove `Value Menu' if a no-op Date: Wed, 3 Apr 2019 20:05:32 -0700 (PDT) Message-ID: <4bd9e603-0d75-4de4-9bd3-6fa94a96e8a4@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="232268"; mail-complaints-to="usenet@blaine.gmane.org" To: 35133@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 04 05:11:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBsmS-000yIY-S2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Apr 2019 05:11:09 +0200 Original-Received: from localhost ([127.0.0.1]:41412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBsmR-0003Fa-Ms for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Apr 2019 23:11:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBslP-00025D-6q for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 23:10:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBslO-0003EQ-Bb for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 23:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58254) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBslO-0003Cc-3W for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 23:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hBslN-0003ca-SO for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 23:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Apr 2019 03:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35133 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155434737113857 (code B ref -1); Thu, 04 Apr 2019 03:10:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Apr 2019 03:09:31 +0000 Original-Received: from localhost ([127.0.0.1]:43562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBsks-0003bQ-WE for submit@debbugs.gnu.org; Wed, 03 Apr 2019 23:09:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBskq-0003bC-TM for submit@debbugs.gnu.org; Wed, 03 Apr 2019 23:09:29 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45425) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hBskl-0001eD-Lr for submit@debbugs.gnu.org; Wed, 03 Apr 2019 23:09:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBskk-0001ZV-KY for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 23:09:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBsh9-0001VD-0J for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 23:05:39 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:39196) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hBsh8-0001RF-Jd for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2019 23:05:38 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3434JhR031205 for ; Thu, 4 Apr 2019 03:05:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=xGXB4Yvl4MHtXcIkSY0Z2mgQVkNAUIEWsDaPlJBxS6g=; b=1t7d9xYq0mLF9mCdrGjWkZI+kyFeI1gbyCXGNrkI7LmACurTanBbfZBfX7emh1QVzx8d cU2fK86EaUqxs2CwnZlIkjmmlCf1Ca40rnh39k4dLV6foRpyJ0CY7HvP3gE+JPQo3mvG Pn69IOkA9AXxUdvT8BOqo8IEAFDrj9/78fRpGhDNVFSK7r4PfxVr8eb7QSmyhnoulQL4 hRumczQK9vRzdoUvgTqTtdnQDalKN95NbCopmwLd9fkD0Ud4yFboZQnvK+DLVO8EAZf1 pvvzYobFMD9l1AeGJ9NjLsFhOPUK4I7dI4v1vb/LTkZEC0w8QHBU4lgwMvAnzSKpKlke 2g== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2rj13qcdj4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 04 Apr 2019 03:05:35 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3435Ne2115285 for ; Thu, 4 Apr 2019 03:05:34 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 2rm9mjcwrh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 04 Apr 2019 03:05:34 +0000 Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x3435X6l030974 for ; Thu, 4 Apr 2019 03:05:33 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4822.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9216 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904040020 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9216 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904040020 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 209.51.188.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:157157 Archived-At: 1. Use `M-x customize-option' for each of these: (defcustom foo 42 "Foo..." :type '(restricted-sexp :tag "Positive integer" :match-alternatives ((lambda (x) (and (natnump x) (not (zerop x)= )))) :value ignore)) (defcustom bar 42 "Bar..." :type '(choice (restricted-sexp :tag "Positive integer" :match-alternatives ((lambda (x) (and (natnump x) (not (= zerop x))))) :value ignore))) The `:tag' has no effect for `foo' - there is no label. I think that according to the doc it should have the same effect as for `bar'. 2. In addition, a reasonable and helpful enhancement for `choice' would be to not show `Value Menu' at all if there is only one choice available (i.e., when that button/menu is a no-op). In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30 Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea Windowing system distributor `Microsoft Corp.', version 10.0.17134 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3''