From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen 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, 09 Dec 2020 15:51:50 +0100 Message-ID: <87360f2fsp.fsf@gnus.org> References: <4bd9e603-0d75-4de4-9bd3-6fa94a96e8a4@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9200"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 35133@debbugs.gnu.org, Mauro Aranda To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 09 15:54:42 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 1kn0ra-0002FZ-Ki for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Dec 2020 15:54:42 +0100 Original-Received: from localhost ([::1]:55112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kn0rZ-0001iM-MG for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Dec 2020 09:54:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kn0py-0000zM-8D for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2020 09:53:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kn0py-00045z-0x for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2020 09:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kn0px-0002rn-Tc for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2020 09:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Dec 2020 14:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35133 X-GNU-PR-Package: emacs Original-Received: via spool by 35133-submit@debbugs.gnu.org id=B35133.160752552310950 (code B ref 35133); Wed, 09 Dec 2020 14:53:01 +0000 Original-Received: (at 35133) by debbugs.gnu.org; 9 Dec 2020 14:52:03 +0000 Original-Received: from localhost ([127.0.0.1]:33243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kn0p1-0002qY-D7 for submit@debbugs.gnu.org; Wed, 09 Dec 2020 09:52:03 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:38868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kn0oy-0002pz-SP for 35133@debbugs.gnu.org; Wed, 09 Dec 2020 09:52:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KsEe4OEtGDnKkqyPNUsgeCHEfdCbmeChFYMmz+6auPU=; b=rZlGgQQXiBQrUnuTEXqopypwB4 9LaZNyT2HR2tDbPqZOxI1S/N8HeGkKIB9C6tKKVOLyWAbda3AkMBC+vKqOmkKEs1XbPpT8+fX9Hz7 h7D0QhvS6CKIQEAOr/Up9CVjdoddyYTc6lvQYJn+wobPbNz4Yo9BzTGfGJemnfx/VUNo=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kn0op-0002Ez-Ok; Wed, 09 Dec 2020 15:51:54 +0100 X-Now-Playing: Yves Tumor's _Heaven To A Tortured Mind_: "Hasdallen Lights" In-Reply-To: <4bd9e603-0d75-4de4-9bd3-6fa94a96e8a4@default> (Drew Adams's message of "Wed, 3 Apr 2019 20:05:32 -0700 (PDT)") 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:195513 Archived-At: Drew Adams writes: > 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'. I can confirm that this behaviour is still present in Emacs 28. Mauro, if you have time, could you take a look at this? > 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). Makes sense. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no