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#12065: 24.1; `custom-magic-show': set to "no", cannot get back again Date: Fri, 05 Aug 2016 20:25:23 -0400 Message-ID: <87wpju7ngs.fsf@users.sourceforge.net> References: <04EBBBCAD8654AC7B0EB2447BE595FEC@us.oracle.com> <87h9ay94y7.fsf@users.sourceforge.net> <2e75b433-131f-49c8-9939-2c00ba7e2827@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1470443185 11486 195.159.176.226 (6 Aug 2016 00:26:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Aug 2016 00:26:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) Cc: 12065@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 06 02:26:21 2016 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 1bVpRR-0001fD-7n for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Aug 2016 02:26:17 +0200 Original-Received: from localhost ([::1]:47580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVpRO-00060L-1p for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Aug 2016 20:26:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVpRH-000603-MP for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2016 20:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVpRC-0002Kz-LJ for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2016 20:26:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVpRC-0002Kt-HV for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2016 20:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bVpRC-000563-2i for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2016 20:26:02 -0400 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: Sat, 06 Aug 2016 00:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12065 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 12065-submit@debbugs.gnu.org id=B12065.147044312419545 (code B ref 12065); Sat, 06 Aug 2016 00:26:02 +0000 Original-Received: (at 12065) by debbugs.gnu.org; 6 Aug 2016 00:25:24 +0000 Original-Received: from localhost ([127.0.0.1]:56979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVpQZ-00055B-W0 for submit@debbugs.gnu.org; Fri, 05 Aug 2016 20:25:24 -0400 Original-Received: from mail-io0-f174.google.com ([209.85.223.174]:33498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVpQX-00054y-VZ for 12065@debbugs.gnu.org; Fri, 05 Aug 2016 20:25:23 -0400 Original-Received: by mail-io0-f174.google.com with SMTP id 38so314052747iol.0 for <12065@debbugs.gnu.org>; Fri, 05 Aug 2016 17:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Gxeco0Uw06otBcvdb+KqMk5TMtpHVWtPTDxCt3gy6zM=; b=oeRWE3PlWi7bWRhBNBiS1uCP02nCTCYc1nXfy9i0jTPUiBSwsW90IoRUh+shuE5EA5 Iu70D+jkZm4R5kWeH9Gkv0NePPnVSL2MvcmkT0taSjE9DyuW4BiSlUu97xGMoa5TEI4d Xvx5CqpzBBbui2fwfCLSEn5bO+PabWbM4oV1vaMmaqmO/eUUirk9DLjK9wuqLphChmXz FsOaHYOjzfWtn+PcNwGHaey+V4lhPxaVeGE/Z80/XCH0q4CkLwWuVUu7nXhowUlMP2mW ilDdF4XIxxVx4lZv0M7v2H9La+ZPDx1aWfYKx5+/s1oN02DLIqB2McAhtwrif1g8iDHs gMRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=Gxeco0Uw06otBcvdb+KqMk5TMtpHVWtPTDxCt3gy6zM=; b=CqGIWnt2YoU1eFsObvldcHV2ijmdexLVlaN2a/0d8JS+6ao5OWlr129bwXmb+fi8hR NDwarCg4mWUljisXz53cm9//3xl0e7qLGD4Qh6kF6TW6sJV7WtyhMAuiBMKUoSjbe6FA dAWvQSyWan454AmZzFaEqstOia8S+X43gHp0P6bVkTnmXmDhsT2+ClapeZQIRivgUxAr OHwDddy+RHbV/QjsBjwZoZW3wWWKR2rNxAMSyzn6H+JHplRFxHfvscki9Vi/HcnZNmxh GKPodGjSszSCUIMG9E5XaCxz2seR+PaQJ4mzu5rR/DXvWeNz6huCpwFM64WKQM9lD9NQ 7Xkg== X-Gm-Message-State: AEkoouuPzSRnfgbp2eTWgxPuK5d/Y5utGtA/TZxMW+7tHbxX6JfCY56CHm2NLDIuqCnMUA== X-Received: by 10.107.28.11 with SMTP id c11mr97344890ioc.7.1470443116425; Fri, 05 Aug 2016 17:25:16 -0700 (PDT) Original-Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id x13sm5909320ite.1.2016.08.05.17.25.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Aug 2016 17:25:15 -0700 (PDT) In-Reply-To: <2e75b433-131f-49c8-9939-2c00ba7e2827@default> (Drew Adams's message of "Fri, 5 Aug 2016 17:03:51 -0700 (PDT)") 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:121871 Archived-At: Drew Adams writes: > The point of this bug is that using the Value menu is a one-way > street, exceptionally, in the case of this one option. That's > not normal - why should this option be an exception to how > Emacs Customize works? And if you change the value to short > or long there is no such problem. I thought maybe the point of that option is to hide the button. It's easy enough to exclude the button from hiding, just move that code outside of the conditional: diff --git i/lisp/cus-edit.el w/lisp/cus-edit.el index ef12745..de219cb 100644 --- i/lisp/cus-edit.el +++ w/lisp/cus-edit.el @@ -2053,24 +2053,24 @@ custom-magic-value-create (setq text (concat (match-string 1 text) (symbol-name category) (match-string 2 text)))) + (insert " ") + (when (and (eq category 'group) + (not (and (eq custom-buffer-style 'links) + (> (widget-get parent :custom-level) 1)))) + (insert-char ?\s (* custom-buffer-indent + (widget-get parent :custom-level)))) + (push (widget-create-child-and-convert + widget 'choice-item + :help-echo "Change the state of this item." + :format (if hidden "%t" "%[%t%]") + :button-prefix 'widget-push-button-prefix + :button-suffix 'widget-push-button-suffix + :mouse-down-action 'widget-magic-mouse-down-action + :tag " State ") + children) (when (and custom-magic-show (or (not hidden) (memq category custom-magic-show-hidden))) - (insert " ") - (when (and (eq category 'group) - (not (and (eq custom-buffer-style 'links) - (> (widget-get parent :custom-level) 1)))) - (insert-char ?\s (* custom-buffer-indent - (widget-get parent :custom-level)))) - (push (widget-create-child-and-convert - widget 'choice-item - :help-echo "Change the state of this item." - :format (if hidden "%t" "%[%t%]") - :button-prefix 'widget-push-button-prefix - :button-suffix 'widget-push-button-suffix - :mouse-down-action 'widget-magic-mouse-down-action - :tag " State ") - children) (insert ": ") (let ((start (point))) (if (eq custom-magic-show 'long) @@ -2080,8 +2080,8 @@ custom-magic-value-create (insert " (lisp)")) ((eq form 'mismatch) (insert " (mismatch)"))) - (put-text-property start (point) 'face 'custom-state)) - (insert "\n")) + (put-text-property start (point) 'face 'custom-state))) + (insert "\n") (when (and (eq category 'group) (not (and (eq custom-buffer-style 'links) (> (widget-get parent :custom-level) 1))))