GNU bug report logs - #76156
31.0.50; Wrong STATE when customizing allout-command-prefix

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Mauro Aranda <maurooaranda@HIDDEN>; Keywords: patch; dated Sun, 9 Feb 2025 11:49:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) patch. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 76156 <at> debbugs.gnu.org:


Received: (at 76156) by debbugs.gnu.org; 15 Feb 2025 12:37:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 15 07:37:58 2025
Received: from localhost ([127.0.0.1]:53841 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tjHQk-0003fo-5U
	for submit <at> debbugs.gnu.org; Sat, 15 Feb 2025 07:37:58 -0500
Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:52307)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tjHQh-0003fO-MY
 for 76156 <at> debbugs.gnu.org; Sat, 15 Feb 2025 07:37:56 -0500
Received: by mail-pl1-x634.google.com with SMTP id
 d9443c01a7336-22100006bc8so16443385ad.0
 for <76156 <at> debbugs.gnu.org>; Sat, 15 Feb 2025 04:37:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739623069; x=1740227869; darn=debbugs.gnu.org;
 h=in-reply-to:content-language:references:cc:to:from:subject
 :user-agent:mime-version:date:message-id:from:to:cc:subject:date
 :message-id:reply-to;
 bh=sAb7A8qZldE/HEyZrlQjoJOZ+NxNwxtuY0mlpJSH9zA=;
 b=CFZp8rPviW/Tfr2S9YDQFVEr+sP3SJ+JBLsa+heeJQiStOKQuxMi4G4Z9vtKLqF+om
 KsP4hUEw70AmL+EB7AJTcX6tV0d1pBotbFnCI9R2E1XQ99pXg5ylCPIUmbr5c3QiSLYG
 05ZZu2qg5RoaSAofa61TbJusif20+sSyEpXqFSGndwSl9zhbDnbcoKr/4XQqzwi/iTsB
 8FXVy6qmwGtq4E1D5TBxvaGyZDoXRSVh2hsuJmJ7IfLWNhmd8YKwu+U47yY6ZefvK0q5
 gAe+Yx8CdqRJpantHIy3CD7APBIV+ylOy7bqMC4XN6+k1aDJpr9/hEKbN669Rsb36iza
 Zb0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739623069; x=1740227869;
 h=in-reply-to:content-language:references:cc:to:from:subject
 :user-agent:mime-version:date:message-id:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=sAb7A8qZldE/HEyZrlQjoJOZ+NxNwxtuY0mlpJSH9zA=;
 b=jr0iKNVxvhLGmO2XwNH8iNCXkfuVtGWk/Gkp5nJWxnuDh30zok8yegVIke/6TRvwnY
 bH1n8lTrs/abim4XDgOV4tcQRLluXbJh3a+xlXJ0yQWmGfTRGYaaCeTnyn+tBTHWHsYC
 4JbfGK2pLhZIAZvxFBcVUNik50h7P/GTwnnPHf2AsOg9CyyB3cyUNSxoJhdWkQYK31m0
 m9e6z4zoHDypfO4RwbiTgYFUPQccpkmLfbuvGPUA7it/pNsJU4iRuGL7mmEj+fYdUC+G
 2nRVJrjzZJ3S0X9N7LvP1eIUD3GPGfg830aSzu0mcg5QpR30izUHsxocl3mXdigw6SDM
 tc0Q==
X-Gm-Message-State: AOJu0YwFDTYVFIy/hKEvD7groPlojofjNRidsD2Y0AYwfu3b7VoaR2PR
 kT1HrM1xtasjH/5cYw4SYXN1uJu7wpXp3AeQvYgRF6fO40f64qYXQ+p6dQ==
X-Gm-Gg: ASbGncuGYGEuSlsABwd2QxXnxTbrgOFzpgT6V+ZEcZEl4cneNzHcjDM0RHtMuCaYIrV
 ZEXk+9jvCLbtIvtfGmWKQTkuA2Kwl4nB4pxsVMUczgQCFuZF99czkPORygg85BfrSaF8H6XgWUl
 PATntUP2q369gxHODgfFeCgTHnW5keN7whtSEI54kJ4F2LeLqTrn9Dp3hLTrzaaGJLncxzsX3I1
 xU7nZt+2WthwiN8VdJTFUmAEZtA3IMN1WxlIt/jXwCJoFr2Jo7QfHhG1b6jMgXCBWx1NAQ7b8xp
 Nr5XdavswsB1v+9kTwUywQ==
X-Google-Smtp-Source: AGHT+IFOWNYWBHv4rMKlw/WLJJyv4fddrJm4vy/iwJGz39nFlCnzhGaQoZ6bINxb3vABZFzTcCWkmw==
X-Received: by 2002:a17:902:ecc7:b0:216:1543:195d with SMTP id
 d9443c01a7336-22104068654mr35255445ad.25.1739623069417; 
 Sat, 15 Feb 2025 04:37:49 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-220d53643ddsm42917305ad.70.2025.02.15.04.37.47
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 15 Feb 2025 04:37:48 -0800 (PST)
Content-Type: multipart/mixed; boundary="------------uhNU9mnX9DiJ0K6oIUvZ7lq1"
Message-ID: <b7d50176-dc48-40e5-af81-f1a33b95c60f@HIDDEN>
Date: Sat, 15 Feb 2025 09:37:46 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#76156: 31.0.50; Wrong STATE when customizing
 allout-command-prefix
From: Mauro Aranda <maurooaranda@HIDDEN>
To: "Basil L. Contovounesios" <basil@HIDDEN>
References: <ac356c22-cd5d-4d68-83a3-3ae25c8dfe56@HIDDEN>
 <a81fdcf5-5c03-4038-aa05-565ca40e9813@HIDDEN>
 <877c5t7c41.fsf@HIDDEN>
 <dc9992c7-26bd-451d-bf7c-ecfd01ffda8a@HIDDEN>
 <87wmdsiu1p.fsf@HIDDEN>
 <647fa1a0-fb57-40c5-adb9-1abf5b5f4528@HIDDEN>
Content-Language: en-US
In-Reply-To: <647fa1a0-fb57-40c5-adb9-1abf5b5f4528@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76156
Cc: 76156 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

This is a multi-part message in MIME format.
--------------uhNU9mnX9DiJ0K6oIUvZ7lq1
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Mauro Aranda <maurooaranda@HIDDEN> writes:

 > "Basil L. Contovounesios" <basil@HIDDEN> writes:
 >
 >> Mauro Aranda [2025-02-13 21:22 -0300] wrote:
 >>
 >>> "Basil L. Contovounesios" <basil@HIDDEN> writes:
 >>>> Mauro Aranda [2025-02-09 08:57 -0300] wrote:
 >>>>> Mauro Aranda <maurooaranda@HIDDEN> writes:
 >>>>>
 >>>>>> After emacs -Q:
 >>>>>> (require 'allout)
 >>>>>> M-x customize-option RET allout-command-prefix
 >>>>>>
 >>>>>> The Customize buffer shows up, with STATE being:
 >>>>>> EDITED, shown value does not take effect until you set or save it.
 >>>>>>
 >>>>>> That's wrong, it should say STANDARD.
 >>>>
 >>>> Agreed, but this must be common to all key-sequence user options,
 >     right?
 >>>>
 >>>> I see the same state with:
 >>>>
 >>>> - cua-rectangle-mark-key
 >>>> - flyspell-auto-correct-binding
 >>>> - footnote-prefix
 >>>> - gud-key-prefix
 >>>> - hide-ifdef-mode-prefix-key
 >>>> - outline-minor-mode-prefix
 >>>> - viper-toggle-key
 >>>
 >>> Right.  Thanks for finding those.
 >>>
 >>>> So I think this was a regression somewhere in Emacs 27;
 >>>> the startup state looks as expected in Emacs versions 24 through 26.
 >>>
 >>> I can't try Emacs 26, sadly.  But I take your word. Problem is, with
 >>> the widget being obsolete, there's no much incentive to go chasing the
 >>> cause, at least for me.
 >>
 >> I asked Git, so you can give me my word back ;).
 >>
 >>   283fd5f2f6f3fa1f650c5a77f9e3587faddd6881 is the first bad commit
 >>   Author: Mauro Aranda <maurooaranda@HIDDEN>
 >>   Date:   2019-09-27 18:06:36 +0200
 >>
 >>   Don't discard customizations in progress when adding comments
 >  (Bug#5358)
 >>
 >> The bisect covered emacs-26.3..emacs-27.2.  In every step I checked the
 >> state of viper-toggle-key, which has been a vector since 2005, and a
 >> key-sequence since Emacs 25.
 >>
 >
 > Thanks! I was looking into it, and wasn't sure if that was the culprit
 > commit.
 >
 >> Starting with the 'bad' commit, the user option shows up as EDITED in
 >> emacs -Q.  This is because default-value returns [(control ?z)], whereas
 >> widget-value returns "^Z" in the function custom-variable-modified-p.
 >
 > Yes.  I'm trying to see if calling the :value-to-external on value
 > is enough, but I think I'm running into the issue you mentioned:
 > key-parse is dropping the trailing space, so no luck so far.

I came up with a fix for custom-variable-modified-p, in the attached
patch.

With the patch, all of these options show its state as STANDARD, which
is what should happen:
- allout-command-prefix
- cua-rectangle-mark-key
- flyspell-auto-correct-binding
- footnote-prefix
- gud-key-prefix
- hide-ifdef-mode-prefix-key
- outline-minor-mode-prefix
- viper-toggle-key

I've found that converting those to use the key widget instead is
potentially not backward compatible, and introduces too many
complications that I concluded it's not worth it, so I didn't pursue it
anymore.

I've done extensive testing on other types to avoid regressions, and
didn't find any.


--------------uhNU9mnX9DiJ0K6oIUvZ7lq1
Content-Type: text/x-patch; charset=UTF-8;
 name="0001-Fix-comparison-of-current-values-for-the-key-sequenc.patch"
Content-Disposition: attachment;
 filename*0="0001-Fix-comparison-of-current-values-for-the-key-sequenc.pa";
 filename*1="tch"
Content-Transfer-Encoding: base64

RnJvbSBkMGYwOGY3YjNmNGJiMTVmYzQ5ZjI2MjMxNDY3Nzc4OWM1MWJiMDU1IE1vbiBTZXAg
MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNYXVybyBBcmFuZGEgPG1hdXJvb2FyYW5kYUBnbWFp
bC5jb20+CkRhdGU6IFNhdCwgMTUgRmViIDIwMjUgMDk6MjY6NDYgLTAzMDAKU3ViamVjdDog
W1BBVENIXSBGaXggY29tcGFyaXNvbiBvZiBjdXJyZW50IHZhbHVlcyBmb3IgdGhlIGtleS1z
ZXF1ZW5jZSA6dHlwZQoKKiBsaXNwL2N1cy1lZGl0LmVsIChjdXN0b20tdmFyaWFibGUtbW9k
aWZpZWQtcCk6IFJvdW5kLXRyaXAKdGhlIG9wdGlvbiB2YWx1ZSBiZWZvcmUgY29tcGFyaW5n
IGl0IGFnYWluc3QgdGhlIHdpZGdldCdzIHZhbHVlLgpUaGlzIG1vc3RseSBmaXhlcyBjb21w
YXJpc29uIGFnYWluc3QgdGhlIG9ic29sZXRlIGtleS1zZXF1ZW5jZQp3aWRnZXQsIGJ1dCBj
b3VsZCBmaXggb3RoZXIgY29ybmVyIGNhc2VzLCB3aGVuIHRoZSB3aWRnZXQKYWNjZXB0cyBk
aWZmZXJlbnQgdHlwZXMgYXMgdmFsdWVzLiAgKEJ1ZyM3NjE1NikKCiogdGVzdC9saXNwL2N1
cy1lZGl0LXRlc3RzLmVsIChjdXMtZWRpdC10ZXN0LWJ1Zzc2MTU2KQooY3VzLWVkaXQtdGVz
dC1idWc3NjE1Ni0yKTogTmV3IHRlc3Qgb3B0aW9ucy4KKGN1cy1lZGl0LXRlc3QtdW5lZGl0
ZWQtb3B0aW9uKTogTmV3IHRlc3QuCi0tLQogbGlzcC9jdXMtZWRpdC5lbCAgICAgICAgICAg
IHwgMTcgKysrKysrKysrKysrLS0tLS0KIHRlc3QvbGlzcC9jdXMtZWRpdC10ZXN0cy5lbCB8
IDE4ICsrKysrKysrKysrKysrKysrKwogMiBmaWxlcyBjaGFuZ2VkLCAzMCBpbnNlcnRpb25z
KCspLCA1IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2xpc3AvY3VzLWVkaXQuZWwgYi9s
aXNwL2N1cy1lZGl0LmVsCmluZGV4IGZlYmJjOGQxYjhiLi4yMWU3NDRiYWU1ZCAxMDA2NDQK
LS0tIGEvbGlzcC9jdXMtZWRpdC5lbAorKysgYi9saXNwL2N1cy1lZGl0LmVsCkBAIC0zMDU0
LDExICszMDU0LDE4IEBAIGN1c3RvbS12YXJpYWJsZS1tb2RpZmllZC1wCiAgICAgKGxldCog
KChmb3JtICh3aWRnZXQtZ2V0IHdpZGdldCA6Y3VzdG9tLWZvcm0pKQogICAgICAgICAgICAo
c3ltYm9sICh3aWRnZXQtZ2V0IHdpZGdldCA6dmFsdWUpKQogICAgICAgICAgICAoZ2V0IChv
ciAoZ2V0IHN5bWJvbCAnY3VzdG9tLWdldCkgJ2RlZmF1bHQtdmFsdWUpKQotICAgICAgICAg
ICAodmFsdWUgKGlmIChkZWZhdWx0LWJvdW5kcCBzeW1ib2wpCi0gICAgICAgICAgICAgICAg
ICAgICAgKGNvbmRpdGlvbi1jYXNlIG5pbAotICAgICAgICAgICAgICAgICAgICAgICAgICAo
ZnVuY2FsbCBnZXQgc3ltYm9sKQotICAgICAgICAgICAgICAgICAgICAgICAgKGVycm9yICh0
aHJvdyAnZ2V0LWVycm9yIHQpKSkKLSAgICAgICAgICAgICAgICAgICAgKHN5bWJvbC12YWx1
ZSBzeW1ib2wpKSkKKyAgICAgICAgICAgKHZhbHVlLXdpZGdldCAoY2FyICh3aWRnZXQtZ2V0
IHdpZGdldCA6Y2hpbGRyZW4pKSkKKyAgICAgICAgICAgOzsgUm91bmQtdHJpcCB0aGUgdmFs
dWUsIGZvciB0aGUgc2FrZSBvZiB3aWRnZXRzIHRoYXQgYWNjZXB0CisgICAgICAgICAgIDs7
IHZhbHVlcyBvZiBkaWZmZXJlbnQgdHlwZXMgKGUuZy4sIHRoZSBvYnNvbGV0ZSBrZXktc2Vx
dWVuY2Ugd2lkZ2V0CisgICAgICAgICAgIDs7IHdoaWNoIHRha2VzIGVpdGhlciBzdHJpbmdz
IG9yIHZlY3RvcnMuICAoQnVnIzc2MTU2KQorICAgICAgICAgICAodmFsdWUKKyAgICAgICAg
ICAgICh3aWRnZXQtYXBwbHkgdmFsdWUtd2lkZ2V0IDp2YWx1ZS10by1leHRlcm5hbAorICAg
ICAgICAgICAgICAgICAgICAgICAgICAod2lkZ2V0LWFwcGx5IHZhbHVlLXdpZGdldCA6dmFs
dWUtdG8taW50ZXJuYWwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAoaWYgKGRlZmF1bHQtYm91bmRwIHN5bWJvbCkKKyAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgKGNvbmRpdGlvbi1jYXNlIG5pbAorICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZ1bmNhbGwgZ2V0IHN5bWJv
bCkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZXJy
b3IgKHRocm93ICdnZXQtZXJyb3IgdCkpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgKHN5bWJvbC12YWx1ZSBzeW1ib2wpKSkpKQogICAgICAgICAgICAo
b3JpZy12YWx1ZSAod2lkZ2V0LXZhbHVlIChjYXIgKHdpZGdldC1nZXQgd2lkZ2V0IDpjaGls
ZHJlbikpKSkpCiAgICAgICAobm90IChlcXVhbCAoaWYgKG1lbXEgZm9ybSAnKGxpc3AgbWlz
bWF0Y2gpKQogICAgICAgICAgICAgICAgICAgICAgIDs7IE1pbWljIGBjdXN0b20tdmFyaWFi
bGUtdmFsdWUtY3JlYXRlJy4KZGlmZiAtLWdpdCBhL3Rlc3QvbGlzcC9jdXMtZWRpdC10ZXN0
cy5lbCBiL3Rlc3QvbGlzcC9jdXMtZWRpdC10ZXN0cy5lbAppbmRleCA4Yzc2OTdhYzYzNS4u
MTY2MmE3ZWUzMmUgMTAwNjQ0Ci0tLSBhL3Rlc3QvbGlzcC9jdXMtZWRpdC10ZXN0cy5lbAor
KysgYi90ZXN0L2xpc3AvY3VzLWVkaXQtdGVzdHMuZWwKQEAgLTEzNCw1ICsxMzQsMjMgQEAg
Y3VzLWVkaXQtdGVzdC1idWc2MzI5MAogICA7OyBObyBlbXB0eSBrZXkvdmFsdWUgcGFpcnMg
c2hvdWxkIHNob3cgdXAuCiAgIChzaG91bGQtbm90IChzZWFyY2gtZm9yd2FyZCAia2V5IiBu
aWwgdCkpKQogCisoZGVmY3VzdG9tIGN1cy1lZGl0LXRlc3QtYnVnNzYxNTYgIlxDLWMgIgor
ICAiS2V5LXNlcXVlbmNlIG9wdGlvbiB0aGF0IG1pZ2h0IHNob3cgdXAgYXMgRURJVEVEIGV2
ZW4gdGhvdWdoIGl0J3Mgbm90LiIKKyAgOnR5cGUgJ2tleS1zZXF1ZW5jZSkKKworKGRlZmN1
c3RvbSBjdXMtZWRpdC10ZXN0LWJ1Zzc2MTU2LTIgWyhjb250cm9sID96KV0KKyAgIktleS1z
ZXF1ZW5jZSBvcHRpb24gdGhhdCBtaWdodCBzaG93IHVwIGFzIEVESVRFRCBldmVuIHRob3Vn
aCBpdCdzIG5vdC4iCisgIDp0eXBlICdrZXktc2VxdWVuY2UpCisKKyhlcnQtZGVmdGVzdCBj
dXMtZWRpdC10ZXN0LXVuZWRpdGVkLW9wdGlvbiAoKQorICAiVGVzdCB0aGF0IGN1c3RvbWl6
aW5nIHVuZWRpdGVkIG9wdGlvbnMgZG9lc24ndCBzaG93IHVwIGFzIEVESVRFRC4iCisgIChk
b2xpc3QgKG9wdGlvbiAnKGN1cy1lZGl0LXRlc3QtYnVnNzYxNTYKKyAgICAgICAgICAgICAg
ICAgICAgY3VzLWVkaXQtdGVzdC1idWc3NjE1Ni0yCisgICAgICAgICAgICAgICAgICAgIGN1
cy1lZGl0LXRlc3QtZm9vMSkpCisgICAgKGN1c3RvbWl6ZS1vcHRpb24gb3B0aW9uKQorICAg
IChsZXQgKCh3aWRnZXQgKGNhciBjdXN0b20tb3B0aW9ucykpKQorICAgICAgKHNob3VsZCAo
ZXEgKHdpZGdldC1nZXQgd2lkZ2V0IDpjdXN0b20tc3RhdGUpICdzdGFuZGFyZCkpKQorICAg
IChraWxsLWJ1ZmZlcikpKQorCiAocHJvdmlkZSAnY3VzLWVkaXQtdGVzdHMpCiA7OzsgY3Vz
LWVkaXQtdGVzdHMuZWwgZW5kcyBoZXJlCi0tIAoyLjM0LjEKCg==

--------------uhNU9mnX9DiJ0K6oIUvZ7lq1--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76156; Package emacs. Full text available.

Message received at 76156 <at> debbugs.gnu.org:


Received: (at 76156) by debbugs.gnu.org; 14 Feb 2025 12:47:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 14 07:47:14 2025
Received: from localhost ([127.0.0.1]:47497 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiv69-0007oZ-Lm
	for submit <at> debbugs.gnu.org; Fri, 14 Feb 2025 07:47:14 -0500
Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:61652)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tiv67-0007o5-80
 for 76156 <at> debbugs.gnu.org; Fri, 14 Feb 2025 07:47:12 -0500
Received: by mail-pl1-x635.google.com with SMTP id
 d9443c01a7336-21f44e7eae4so36971475ad.2
 for <76156 <at> debbugs.gnu.org>; Fri, 14 Feb 2025 04:47:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739537225; x=1740142025; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=6d0ZwmxvOY24K6iPPnt03XzSlT46D+Yc2O59JIzpFsQ=;
 b=GopCLqQ3kLXVRwyNYLXdnefbUMbdelR//IViDQWunVijejLRnRshdIuaKAYS+h/YZc
 LHNzGfgnbt63bvDihfRxfItiOX+JnA4vdT58UnU37edR7H4Ctqda+Gh63aDXMBQtHtv+
 EBZe4vQaU0RtqoHQKd+96MRW729WHBi67A/m4TwkLzz1uE7rBLA6uRLArHip0zbAMOh2
 7fZFu1k98HEXppprLje6uTQscQ46GqL4p2hwwUsTT1/8flYFO+388vBOT4wLisSlqesz
 U1EkVb/pjdGUQBLWVnfcACQg9OPQSxsIuCrNMi3Xk3C1acCfxYr3k5FYHSqgvW9GS7Ug
 yMZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739537225; x=1740142025;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=6d0ZwmxvOY24K6iPPnt03XzSlT46D+Yc2O59JIzpFsQ=;
 b=LpboU+FdrslCL1DwAFqR4C4qe6JYZMHJo0n/d6RaZbJS+uhoGHyIaEVbWpngPbCTCG
 d75AK6oiNNpQDbm4j7G2+HSbHCN4BL4ZuU6MugKv57TN60++OG4sblcnGDV2vE7zf8SW
 oAvewiLDfz7lKj8RAyv2appM40HyCbDHz4S1JBWYRnQQP7cNfTyBIt1/f5PBXP6wjVV9
 PN7xmjt/8T5TueTsowNkV7PNVMpOFzXtGTBAaxXXbg03f2yeEUxK+B4ooztTRn2rAY55
 6gI2QfGfi9IVJErjQ+PZ4aNZ1QthSBZG28g3gL8OxyvTVGgu7Peg/+74HMNZCbNOeAHN
 olZQ==
X-Gm-Message-State: AOJu0YzMDtnSSfhmsfzkp4p+LdXIeZSWV32Gmj8sFNCNR6P4l89DgR+Q
 gFKfnUlAdV45ZlR7yARh18gEGclJdAz7NWmBOWKHP6EQbFWWd977
X-Gm-Gg: ASbGncvmg8JHiuXwu8n4S55eaOyCFVnPClfEFPo7k9JfgcSYOyeONIk+YOO59AGto4w
 XKOaksQUkONkwBiSGBDvKTJ8MKeP0pkDREQguGI2R48rAWZ45/3266Np686UGc0K7LqRKPiRV5m
 Q1vpAcwmuMfyPwXYZDDHQ4Bvg0RS+Hcr9NVCU+YUZIGJsu0+GKbj6N7ATpIhphTRVJrhF8OcUda
 aVGbNNaZwbcUJN1BmLvJ9NvSnP32Y6rORqN/tIfIL9SbLdZqDvHdDugm8odKOlS8WmVbKqUI8LQ
 LdXDVIITwfeJwnQ/M8YT3Q==
X-Google-Smtp-Source: AGHT+IEOHfsXWnPQhCiFQlyfy8OU+gVTuUGpGY/NTgCOlDodrA5JMQf+6Bgy9Q392oZgMELJ+KSABA==
X-Received: by 2002:a05:6a21:7886:b0:1ee:88d8:9499 with SMTP id
 adf61e73a8af0-1ee88d89541mr1682117637.22.1739537225033; 
 Fri, 14 Feb 2025 04:47:05 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 41be03b00d2f7-adb5a92d385sm2760150a12.76.2025.02.14.04.47.03
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 14 Feb 2025 04:47:04 -0800 (PST)
Message-ID: <647fa1a0-fb57-40c5-adb9-1abf5b5f4528@HIDDEN>
Date: Fri, 14 Feb 2025 09:47:01 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#76156: 31.0.50; Wrong STATE when customizing
 allout-command-prefix
To: "Basil L. Contovounesios" <basil@HIDDEN>
References: <ac356c22-cd5d-4d68-83a3-3ae25c8dfe56@HIDDEN>
 <a81fdcf5-5c03-4038-aa05-565ca40e9813@HIDDEN>
 <877c5t7c41.fsf@HIDDEN>
 <dc9992c7-26bd-451d-bf7c-ecfd01ffda8a@HIDDEN>
 <87wmdsiu1p.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <87wmdsiu1p.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76156
Cc: 76156 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

"Basil L. Contovounesios" <basil@HIDDEN> writes:

 > Mauro Aranda [2025-02-13 21:22 -0300] wrote:
 >
 >> "Basil L. Contovounesios" <basil@HIDDEN> writes:
 >>> Mauro Aranda [2025-02-09 08:57 -0300] wrote:
 >>>> Mauro Aranda <maurooaranda@HIDDEN> writes:
 >>>>
 >>>>> After emacs -Q:
 >>>>> (require 'allout)
 >>>>> M-x customize-option RET allout-command-prefix
 >>>>>
 >>>>> The Customize buffer shows up, with STATE being:
 >>>>> EDITED, shown value does not take effect until you set or save it.
 >>>>>
 >>>>> That's wrong, it should say STANDARD.
 >>>
 >>> Agreed, but this must be common to all key-sequence user options, 
right?
 >>>
 >>> I see the same state with:
 >>>
 >>> - cua-rectangle-mark-key
 >>> - flyspell-auto-correct-binding
 >>> - footnote-prefix
 >>> - gud-key-prefix
 >>> - hide-ifdef-mode-prefix-key
 >>> - outline-minor-mode-prefix
 >>> - viper-toggle-key
 >>
 >> Right.  Thanks for finding those.
 >>
 >>> So I think this was a regression somewhere in Emacs 27;
 >>> the startup state looks as expected in Emacs versions 24 through 26.
 >>
 >> I can't try Emacs 26, sadly.  But I take your word. Problem is, with
 >> the widget being obsolete, there's no much incentive to go chasing the
 >> cause, at least for me.
 >
 > I asked Git, so you can give me my word back ;).
 >
 >   283fd5f2f6f3fa1f650c5a77f9e3587faddd6881 is the first bad commit
 >   Author: Mauro Aranda <maurooaranda@HIDDEN>
 >   Date:   2019-09-27 18:06:36 +0200
 >
 >   Don't discard customizations in progress when adding comments 
(Bug#5358)
 >
 > The bisect covered emacs-26.3..emacs-27.2.  In every step I checked the
 > state of viper-toggle-key, which has been a vector since 2005, and a
 > key-sequence since Emacs 25.
 >

Thanks! I was looking into it, and wasn't sure if that was the culprit
commit.

 > Starting with the 'bad' commit, the user option shows up as EDITED in
 > emacs -Q.  This is because default-value returns [(control ?z)], whereas
 > widget-value returns "^Z" in the function custom-variable-modified-p.

Yes.  I'm trying to see if calling the :value-to-external on value
is enough, but I think I'm running into the issue you mentioned:
key-parse is dropping the trailing space, so no luck so far.






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76156; Package emacs. Full text available.

Message received at 76156 <at> debbugs.gnu.org:


Received: (at 76156) by debbugs.gnu.org; 14 Feb 2025 12:35:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 14 07:35:01 2025
Received: from localhost ([127.0.0.1]:47461 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiuuK-0007Ai-SY
	for submit <at> debbugs.gnu.org; Fri, 14 Feb 2025 07:35:01 -0500
Received: from mta-14-3.privateemail.com ([198.54.127.110]:36335)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <basil@HIDDEN>)
 id 1tiuuI-0007AK-IZ
 for 76156 <at> debbugs.gnu.org; Fri, 14 Feb 2025 07:34:59 -0500
Received: from mta-14.privateemail.com (localhost [127.0.0.1])
 by mta-14.privateemail.com (Postfix) with ESMTP id 4YvWhq58RPz3hhSC;
 Fri, 14 Feb 2025 07:34:51 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=contovou.net;
 s=default; t=1739536491;
 bh=GtjSFSGPIvc9644noTCaVz3MXofvBs2RkAsxzPbKjRA=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=T7BaullfULPPDmyTC1v15cOftjU1oECDF8aEhk4eL82z8JnE3aHqjyiXdObxM9xrH
 1SdeDEjUNXhAUCUITLQ4A4Y+Y89n/tiFnTExQLUvt+UJWGeCWZtj70E1Yuew3Rxg+a
 lSnJQPnyNQmPrDwrVC3XQxm8mNK+0HWw2KVix0vfZqhobggSWOWH3g9g803jP8hPwR
 F0OHaU3FR3394+jn4isbWSh0iuRXQVUxOofTaIduaMhMkuVxF1mQaEbnlU6audizK3
 Ny1RESCLpFnP74IFromcozZzX7cpnb5s+Xaypa6ldbYFk3SOqKYRQo5bHcUiV9Dc1F
 6kwWWja4mtltg==
Received: from localhost (unknown [31.46.244.117])
 by mta-14.privateemail.com (Postfix) with ESMTPA;
 Fri, 14 Feb 2025 07:34:48 -0500 (EST)
From: "Basil L. Contovounesios" <basil@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
Subject: Re: bug#76156: 31.0.50; Wrong STATE when customizing
 allout-command-prefix
In-Reply-To: <dc9992c7-26bd-451d-bf7c-ecfd01ffda8a@HIDDEN>
References: <ac356c22-cd5d-4d68-83a3-3ae25c8dfe56@HIDDEN>
 <a81fdcf5-5c03-4038-aa05-565ca40e9813@HIDDEN>
 <877c5t7c41.fsf@HIDDEN>
 <dc9992c7-26bd-451d-bf7c-ecfd01ffda8a@HIDDEN>
Date: Fri, 14 Feb 2025 13:34:42 +0100
Message-ID: <87wmdsiu1p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Virus-Scanned: ClamAV using ClamSMTP
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76156
Cc: 76156 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Mauro Aranda [2025-02-13 21:22 -0300] wrote:

> "Basil L. Contovounesios" <basil@HIDDEN> writes:
>> Mauro Aranda [2025-02-09 08:57 -0300] wrote:
>>> Mauro Aranda <maurooaranda@HIDDEN> writes:
>>>
>>>> After emacs -Q:
>>>> (require 'allout)
>>>> M-x customize-option RET allout-command-prefix
>>>>
>>>> The Customize buffer shows up, with STATE being:
>>>> EDITED, shown value does not take effect until you set or save it.
>>>>
>>>> That's wrong, it should say STANDARD.
>>
>> Agreed, but this must be common to all key-sequence user options, right?
>>
>> I see the same state with:
>>
>> - cua-rectangle-mark-key
>> - flyspell-auto-correct-binding
>> - footnote-prefix
>> - gud-key-prefix
>> - hide-ifdef-mode-prefix-key
>> - outline-minor-mode-prefix
>> - viper-toggle-key
>
> Right.=C2=A0 Thanks for finding those.
>
>> So I think this was a regression somewhere in Emacs 27;
>> the startup state looks as expected in Emacs versions 24 through 26.
>
> I can't try Emacs 26, sadly.=C2=A0 But I take your word.=C2=A0 Problem is=
, with
> the widget being obsolete, there's no much incentive to go chasing the
> cause, at least for me.

I asked Git, so you can give me my word back ;).

  283fd5f2f6f3fa1f650c5a77f9e3587faddd6881 is the first bad commit
  Author: Mauro Aranda <maurooaranda@HIDDEN>
  Date:   2019-09-27 18:06:36 +0200

  Don't discard customizations in progress when adding comments (Bug#5358)

The bisect covered emacs-26.3..emacs-27.2.  In every step I checked the
state of viper-toggle-key, which has been a vector since 2005, and a
key-sequence since Emacs 25.

Starting with the 'bad' commit, the user option shows up as EDITED in
emacs -Q.  This is because default-value returns [(control ?z)], whereas
widget-value returns "^Z" in the function custom-variable-modified-p.

>>> and the key-sequence widget requires another format for its value.
>> What format is that?
> A vector.=C2=A0 This has been the case for quite some time, I think.

That makes sense, but unfortunately it wasn't clear to me from its
documentation and usage in the wild.

>> - widget-key-sequence-value-to-external via key-parse/read-kbd-macro
>>=C2=A0=C2=A0 drops the trailing space (this surprised me), but this shoul=
dn't give
>>=C2=A0=C2=A0 rise to the current issue, given it behaved the same in Emac=
s 26, and
>>=C2=A0=C2=A0 also given the other affected user options.
>
> This is the one that matters.=C2=A0 The value is "C-c SPC", and it doesn't
> match with [3 32].=C2=A0 But again, no incentive for me to touch that cod=
e,
> since we should be using either the key widget, or keeping it as a
> string.

Right.

Thanks,
--=20
Basil




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76156; Package emacs. Full text available.

Message received at 76156 <at> debbugs.gnu.org:


Received: (at 76156) by debbugs.gnu.org; 14 Feb 2025 00:22:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 13 19:22:39 2025
Received: from localhost ([127.0.0.1]:46210 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tijTa-0008HU-R7
	for submit <at> debbugs.gnu.org; Thu, 13 Feb 2025 19:22:39 -0500
Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]:48264)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tijTX-0008HC-8A
 for 76156 <at> debbugs.gnu.org; Thu, 13 Feb 2025 19:22:36 -0500
Received: by mail-oa1-x2b.google.com with SMTP id
 586e51a60fabf-2b86794e3abso755421fac.0
 for <76156 <at> debbugs.gnu.org>; Thu, 13 Feb 2025 16:22:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739492549; x=1740097349; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=STMgK06nLnt4nDfid/G36zBvAge6o1ZdLcet+49aEdM=;
 b=d4gpq3n/feUqtImMOLUI2k4/mmmQPQcDOBHFykPdcEUG54VDlOdL82eJfbORyILTwv
 hxBf1HEVQPBFWA+cAJp/i8ZgirvqYsd2vtzFst3bTzQYiSmavVHhoJaSGq8P//9Gyg34
 nuYkV/Yv2BFq4KFuOtzWuS/tpB6c1MnjmyToAcJszu7CzzSn2G6zxcW7T+MWqFf9RRUK
 uwvyym4A+O3rc8rwU3tdCGjLvAG+qNjuVzyx6kWFcWh5tSZiWeUFd7i0ZaOM/vGYw+B4
 /PBlLZdt9Pqnsk8yH54al1GzoAGuB7BgmP2CrTxP6hPiVcR9gqDZeMZw41dmmJFJgJ0w
 U8wQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739492549; x=1740097349;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=STMgK06nLnt4nDfid/G36zBvAge6o1ZdLcet+49aEdM=;
 b=PJs3tZgs5wI9NACX47dced1KndUMovG9Joh7iyCHYsLyB31GkeZ1jt9RQnXanVmzo/
 lz2RqjFoou7WbmvrzwDEIqPuEmZIeZ4bHX6QTin3sOS+JktupSvBPAb3b+tnewpL+Qfn
 COMAwJ9SLOZo43l3CiTa660C2CTLLoo1RHcbme1DSeSs6IV8VokP1lZhJ6LRExkfPVdB
 EKzXzx+n0e5fIS0VK5FUhalSzkF0uznBJZAUYSUbUZCc/m5PwzKZA+uJTnqs0HVv51pQ
 qkjUmfiNwcdnSulw8HDL81Z+MM73hloEOWox9dNX7CaNNhylerS39xE5aMfYSJp1+nsp
 JqGg==
X-Gm-Message-State: AOJu0YwsLJalSjpNl49nslrO11pQqeyJyb+2rpGa1na9sgISZNBCNwOS
 rvwaLIOI7UZnKgLyOAMkcnaiE1m2xux0cI5Vgu7vxGDMSBVV9PQdq6G56Q==
X-Gm-Gg: ASbGncvANjEoHqBs7nG8Ic8TS60Nqh73723Gq6LA6Cl/wSwlWN7wEtlSQSIAwAUIw8W
 PsoF240m/KYmPtzoLvH1lBKNcDU2mLrFtR9HT5/taa3kNawjHELRpxCmFdX1+/SraHaSPxbC9wY
 l4gKr778Qaq1C4XA5bGa7ZxL7YyCic//fo1O0tYgrDJr4nAcNu+H59LzcwcExu+lQvcr5sGSp/t
 06pKODMXj158G2jxYh9iZBcfCS5G13tnkTOW7kwnR4z/iIxYwX3nEoNsaNDZOi1S1Rh8iRRf/wS
 C++O7ma3zYEMPK5f3+y6jA==
X-Google-Smtp-Source: AGHT+IF7swjywKvybMA/I2x29a3Yl4hYIyEQiezeXVir2H50BqPVgOWTyZAaIxmf14OlLdb+iTE4qQ==
X-Received: by 2002:a05:6870:828f:b0:296:e4bb:80f5 with SMTP id
 586e51a60fabf-2b8d6836236mr6207856fac.36.1739492547595; 
 Thu, 13 Feb 2025 16:22:27 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 586e51a60fabf-2b95a6bf587sm1267360fac.31.2025.02.13.16.22.25
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 13 Feb 2025 16:22:25 -0800 (PST)
Message-ID: <dc9992c7-26bd-451d-bf7c-ecfd01ffda8a@HIDDEN>
Date: Thu, 13 Feb 2025 21:22:23 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#76156: 31.0.50; Wrong STATE when customizing
 allout-command-prefix
To: "Basil L. Contovounesios" <basil@HIDDEN>
References: <ac356c22-cd5d-4d68-83a3-3ae25c8dfe56@HIDDEN>
 <a81fdcf5-5c03-4038-aa05-565ca40e9813@HIDDEN>
 <877c5t7c41.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <877c5t7c41.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76156
Cc: 76156 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

"Basil L. Contovounesios" <basil@HIDDEN> writes:

 > Mauro Aranda [2025-02-09 08:57 -0300] wrote:
 >
 >> Mauro Aranda <maurooaranda@HIDDEN> writes:
 >>
 >>> After emacs -Q:
 >>> (require 'allout)
 >>> M-x customize-option RET allout-command-prefix
 >>>
 >>> The Customize buffer shows up, with STATE being:
 >>> EDITED, shown value does not take effect until you set or save it.
 >>>
 >>> That's wrong, it should say STANDARD.
 >
 > Agreed, but this must be common to all key-sequence user options, right?
 >
 > I see the same state with:
 >
 > - cua-rectangle-mark-key
 > - flyspell-auto-correct-binding
 > - footnote-prefix
 > - gud-key-prefix
 > - hide-ifdef-mode-prefix-key
 > - outline-minor-mode-prefix
 > - viper-toggle-key

Right.  Thanks for finding those.

 > So I think this was a regression somewhere in Emacs 27;
 > the startup state looks as expected in Emacs versions 24 through 26.

I can't try Emacs 26, sadly.  But I take your word.  Problem is, with
the widget being obsolete, there's no much incentive to go chasing the
cause, at least for me.

 >> The commit that introduced this is:
 >>
 >> commit f7c2fe3337bb5e5721d17f40f79dbc1275e17b0d
 >> Author: Basil L. Contovounesios <basil@HIDDEN>
 >> Date:   Wed Feb 28 16:38:21 2024 +0100
 >>
 >>     Pacify some docstring control char warnings
 >>
 >>     Other instances are discussed in the following thread:
 >> https://lists.gnu.org/r/emacs-devel/2024-02/msg00797.html
 >>
 >>     * lisp/allout.el (allout-command-prefix): Declare :type as
 >>     key-sequence.  Mark up key sequences in docstring.
 >>
 >> The :type was changed from string to key-sequence, but not the value,
 >
 > Yes, I was trying to avoid changing the default value.

 >> and the key-sequence widget requires another format for its value.
 >
 > What format is that?

A vector.  This has been the case for quite some time, I think.

 > - The manual entry for key-sequence links to
 >   (info "(elisp) Key Sequences") which e.g. includes the text:
 >
 >     ‘"\C-xl"’ represents the key sequence ‘C-x l’
 >
 >   according to which I would (and did) interpret "\C-c " as also being a
 >   key sequence.
 >
 > - widget-key-sequence-validate takes any string or vector.
 >
 > - widget-key-sequence-value-to-internal delegates to key-description,
 >   which works as desired: (key-description "\C-c ") => "C-c SPC".
 >
 > - widget-key-sequence-value-to-external via key-parse/read-kbd-macro
 >   drops the trailing space (this surprised me), but this shouldn't give
 >   rise to the current issue, given it behaved the same in Emacs 26, and
 >   also given the other affected user options.

This is the one that matters.  The value is "C-c SPC", and it doesn't
match with [3 32].  But again, no incentive for me to touch that code,
since we should be using either the key widget, or keeping it as a
string.

 >> Furthermore, the key-sequence widget has been marked as obsolete since
 >> 2022.
 >
 > Yes, at the time I probably thought that in the future someone would
 > switch the remaining key-sequence user options to some other default
 > format, but I didn't want to undertake that :).

Understandable :).  Maybe I'll give it a shot, but I don't know if it
can be backward compatible.

 >> Because of compatibility, I recommend keeping the :type as string,
 >> since other widgets are more restrictive.
 >
 > No objections from me, although the UI for strings representing keys
 > leaves something to be desired :).

OK, so I'll try to convert these options to use the key widget.

Thanks for your response.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76156; Package emacs. Full text available.

Message received at 76156 <at> debbugs.gnu.org:


Received: (at 76156) by debbugs.gnu.org; 13 Feb 2025 21:45:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 13 16:45:37 2025
Received: from localhost ([127.0.0.1]:45885 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tih1c-0003hl-5C
	for submit <at> debbugs.gnu.org; Thu, 13 Feb 2025 16:45:36 -0500
Received: from mta-12-4.privateemail.com ([198.54.127.107]:35095)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <basil@HIDDEN>)
 id 1tih1a-0003hX-0R
 for 76156 <at> debbugs.gnu.org; Thu, 13 Feb 2025 16:45:34 -0500
Received: from mta-12.privateemail.com (localhost [127.0.0.1])
 by mta-12.privateemail.com (Postfix) with ESMTP id 4Yv7yZ48tDz3hhV1;
 Thu, 13 Feb 2025 16:45:26 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=contovou.net;
 s=default; t=1739483126;
 bh=c4VykaMCO9rm7r5p9743iNGdPCYfL88aiQbzUyOnxtc=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=NPDifVgXp8j59zs0QgRcrOhvaIoAT5xdlmuNRDeRzZp2epkpcCe5IV5FDqmqlDnZp
 ic5jtVm74zCmuygWgzL/HMo03W6W5W00Mh2II0GLZ8D5Of5+BTBAxQOrKVQ5DGg6SU
 IQ1rEBukXAQWoevGrnOM+QUasLG0jRKoI1anVZ/O3NeQaLIdH4zq4viyyft9AprBfE
 u8r2Zis7e6N8jvDo8kmERhFVItQdkvfxdbVvZodEny0tVpdwaHE6d76NSilT3guPXo
 hDP6G06x8a6ovUGEDZy2RdiUPzx+quRc+HrXkCQPUk3o2QQ4fwaJLliKstqznVo33V
 PkTA4DKUTamOQ==
Received: from localhost (unknown [31.46.241.105])
 by mta-12.privateemail.com (Postfix) with ESMTPA;
 Thu, 13 Feb 2025 16:45:24 -0500 (EST)
From: "Basil L. Contovounesios" <basil@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
Subject: Re: bug#76156: 31.0.50; Wrong STATE when customizing
 allout-command-prefix
In-Reply-To: <a81fdcf5-5c03-4038-aa05-565ca40e9813@HIDDEN>
References: <ac356c22-cd5d-4d68-83a3-3ae25c8dfe56@HIDDEN>
 <a81fdcf5-5c03-4038-aa05-565ca40e9813@HIDDEN>
Date: Thu, 13 Feb 2025 22:45:18 +0100
Message-ID: <877c5t7c41.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Virus-Scanned: ClamAV using ClamSMTP
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76156
Cc: 76156 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Mauro Aranda [2025-02-09 08:57 -0300] wrote:

> Mauro Aranda <maurooaranda@HIDDEN> writes:
>
>> After emacs -Q:
>> (require 'allout)
>> M-x customize-option RET allout-command-prefix
>>
>> The Customize buffer shows up, with STATE being:
>> EDITED, shown value does not take effect until you set or save it.
>>
>> That's wrong, it should say STANDARD.

Agreed, but this must be common to all key-sequence user options, right?

I see the same state with:

- cua-rectangle-mark-key
- flyspell-auto-correct-binding
- footnote-prefix
- gud-key-prefix
- hide-ifdef-mode-prefix-key
- outline-minor-mode-prefix
- viper-toggle-key

So I think this was a regression somewhere in Emacs 27;
the startup state looks as expected in Emacs versions 24 through 26.

> The commit that introduced this is:
>
> commit f7c2fe3337bb5e5721d17f40f79dbc1275e17b0d
> Author: Basil L. Contovounesios <basil@HIDDEN>
> Date:   Wed Feb 28 16:38:21 2024 +0100
>
>     Pacify some docstring control char warnings
>
>     Other instances are discussed in the following thread:
>     https://lists.gnu.org/r/emacs-devel/2024-02/msg00797.html
>
>     * lisp/allout.el (allout-command-prefix): Declare :type as
>     key-sequence.  Mark up key sequences in docstring.
>
> The :type was changed from string to key-sequence, but not the value,

Yes, I was trying to avoid changing the default value.

> and the key-sequence widget requires another format for its value.

What format is that?

- The manual entry for key-sequence links to
  (info "(elisp) Key Sequences") which e.g. includes the text:

    =E2=80=98"\C-xl"=E2=80=99 represents the key sequence =E2=80=98C-x l=E2=
=80=99

  according to which I would (and did) interpret "\C-c " as also being a
  key sequence.

- widget-key-sequence-validate takes any string or vector.

- widget-key-sequence-value-to-internal delegates to key-description,
  which works as desired: (key-description "\C-c ") =3D> "C-c SPC".

- widget-key-sequence-value-to-external via key-parse/read-kbd-macro
  drops the trailing space (this surprised me), but this shouldn't give
  rise to the current issue, given it behaved the same in Emacs 26, and
  also given the other affected user options.

> Furthermore, the key-sequence widget has been marked as obsolete since
> 2022.

Yes, at the time I probably thought that in the future someone would
switch the remaining key-sequence user options to some other default
format, but I didn't want to undertake that :).

> Because of compatibility, I recommend keeping the :type as string,
> since other widgets are more restrictive.

No objections from me, although the UI for strings representing keys
leaves something to be desired :).

Thanks,
--=20
Basil




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76156; Package emacs. Full text available.

Message received at 76156 <at> debbugs.gnu.org:


Received: (at 76156) by debbugs.gnu.org; 9 Feb 2025 11:57:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 09 06:57:30 2025
Received: from localhost ([127.0.0.1]:43427 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1th5wH-0006Bx-PX
	for submit <at> debbugs.gnu.org; Sun, 09 Feb 2025 06:57:30 -0500
Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:42028)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1th5wC-0006BZ-BX
 for 76156 <at> debbugs.gnu.org; Sun, 09 Feb 2025 06:57:28 -0500
Received: by mail-pl1-x630.google.com with SMTP id
 d9443c01a7336-21f4a4fbb35so41381215ad.0
 for <76156 <at> debbugs.gnu.org>; Sun, 09 Feb 2025 03:57:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739102238; x=1739707038; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:cc:content-language
 :references:to:from:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=zqv+BpLKGp9p02vwtL2EPxOm22V5iZhXvMBx/a4bXzY=;
 b=Mxj1H09SeuamggzP7yQ2pQiHvjcvWaeaWvUiM+jgm59kyBHOwVP2gueGmimZNNQRZZ
 9ljckgmFyboqr+gR0wOaNMW17R0PTSI5o93MgzI7zLgprylPDUJ3vmQ7R2cuENJQdqwW
 aZd2AcjEhDpUIeTUdFEcpnyoEoZF7XXKujbWypZ+FWzr0g7c/eQpEYdAGOYSv0KwSvQ4
 ZqR+nVazx8XjKSMtRlMSiilE6k6QQN+B53uu4h41eBuaUAOHyGEq4a4HC2j6L359n2Zi
 jAvUI/jOoli4jWmXRditVoInZPfJGyg0kGsnGJ6Nv3Fy1IRvkHEjQPpHXLCxiRmXeX2j
 M6jA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739102238; x=1739707038;
 h=content-transfer-encoding:in-reply-to:cc:content-language
 :references:to:from:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=zqv+BpLKGp9p02vwtL2EPxOm22V5iZhXvMBx/a4bXzY=;
 b=QW9G4SnXLdK/taEte5SPM2Pwws8pUgy/sMTwOuqT1oH3yUGj6EGVKz8CcqwZnQ1t4x
 J+THJOE/8+3HqJ3mxSVu/ebHHiQbcxJWrcZNAxK17fma1LQTjArjWBDtzMoMRAhPlsd6
 ZfRmmwdVH77XQALVtGc/QesIoMMo/h027QuNIQq0tOsF2t+WH9qsF8ljeE+Xqeqo/Nav
 /zw/IhkbZCfljyjVQ5gpGK38HxH9uhriLSQULYPAX5kFqE0axHW4Qb/po8sON6n3eSN9
 ovMOFWynmi3uVvJApBw+rfOIVryDVBr/AgH4Gd7Zs/wIyRZU0E2IXD/2FnnYbyrCf9EP
 K/DQ==
X-Gm-Message-State: AOJu0YyVWaZAaZhiA0KfEewMaeJRco3ef6P1wXQa6wdvCcGdlbKUu2cN
 73pGKUf4jP8wkMKhpIilAROnLbNRP62mfECoL+E4OlWdjtEy79SeEVJKJw==
X-Gm-Gg: ASbGncsYD20xN+e+vBQ2zvayEqzhF4T55VxxMk7vkHo40cKRNM4CwNYQTmDBpRSuuRz
 e2UeYhsPnjpNDO/nvffYkU+NLMflI7tfG13uniP7D5i4enWtw5SsieOqoB+z9afmwKOabTBMZwA
 kf+Pw5TitLOAyxjMC7hl5PNgEzOjr1NBiubjpRXKtq8Y2H8heCEV86gKjcs+tjynNrzwGmXfHsu
 nTsFqQHuil20MHWOIjOhfqjiQnDPuhb/jpU4FqT4c9arBXmvu2errhOqfvGqpxE+VvfJhPYQpcZ
 +tBK99ahH9Rro9GFhYypog==
X-Google-Smtp-Source: AGHT+IEGQmDlsIqXKpfJG86VvEvVmAyP31QX0jCjLB4SKOVHS8GZIi9CY6pjZuqvxgTcOFj9Vm/tDw==
X-Received: by 2002:a17:903:2b06:b0:215:a2f4:d4ab with SMTP id
 d9443c01a7336-21f4f120a28mr148865565ad.7.1739102237757; 
 Sun, 09 Feb 2025 03:57:17 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-21f60238538sm33168705ad.120.2025.02.09.03.57.16
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 09 Feb 2025 03:57:17 -0800 (PST)
Message-ID: <a81fdcf5-5c03-4038-aa05-565ca40e9813@HIDDEN>
Date: Sun, 9 Feb 2025 08:57:15 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#76156: 31.0.50; Wrong STATE when customizing
 allout-command-prefix
From: Mauro Aranda <maurooaranda@HIDDEN>
To: 76156 <at> debbugs.gnu.org
References: <ac356c22-cd5d-4d68-83a3-3ae25c8dfe56@HIDDEN>
Content-Language: en-US
In-Reply-To: <ac356c22-cd5d-4d68-83a3-3ae25c8dfe56@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76156
Cc: basil@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Mauro Aranda <maurooaranda@HIDDEN> writes:

 > After emacs -Q:
 > (require 'allout)
 > M-x customize-option RET allout-command-prefix
 >
 > The Customize buffer shows up, with STATE being:
 > EDITED, shown value does not take effect until you set or save it.
 >
 > That's wrong, it should say STANDARD.
 >

The commit that introduced this is:

commit f7c2fe3337bb5e5721d17f40f79dbc1275e17b0d
Author: Basil L. Contovounesios <basil@HIDDEN>
Date:   Wed Feb 28 16:38:21 2024 +0100

     Pacify some docstring control char warnings

     Other instances are discussed in the following thread:
     https://lists.gnu.org/r/emacs-devel/2024-02/msg00797.html

     * lisp/allout.el (allout-command-prefix): Declare :type as
     key-sequence.  Mark up key sequences in docstring.

The :type was changed from string to key-sequence, but not the value,
and the key-sequence widget requires another format for its value.
Furthermore, the key-sequence widget has been marked as obsolete since
2022.

Because of compatibility, I recommend keeping the :type as string,
since other widgets are more restrictive.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76156; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Feb 2025 11:48:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 09 06:48:27 2025
Received: from localhost ([127.0.0.1]:43409 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1th5nW-0005kl-Lq
	for submit <at> debbugs.gnu.org; Sun, 09 Feb 2025 06:48:27 -0500
Received: from lists.gnu.org ([2001:470:142::17]:48488)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1th5nS-0005kP-G3
 for submit <at> debbugs.gnu.org; Sun, 09 Feb 2025 06:48:25 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <maurooaranda@HIDDEN>)
 id 1th5nM-00071S-3o
 for bug-gnu-emacs@HIDDEN; Sun, 09 Feb 2025 06:48:16 -0500
Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <maurooaranda@HIDDEN>)
 id 1th5nI-0000ro-VT
 for bug-gnu-emacs@HIDDEN; Sun, 09 Feb 2025 06:48:15 -0500
Received: by mail-pl1-x62e.google.com with SMTP id
 d9443c01a7336-21f44e7eae4so50798215ad.2
 for <bug-gnu-emacs@HIDDEN>; Sun, 09 Feb 2025 03:48:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739101691; x=1739706491; darn=gnu.org;
 h=content-transfer-encoding:subject:from:to:content-language
 :user-agent:mime-version:date:message-id:from:to:cc:subject:date
 :message-id:reply-to;
 bh=yAkrviYOmzz/ugxcHtuUTL1bGOYijekY0+DTCR5N10M=;
 b=LuTM4TDuej/Vg48OktfhcGcuLl+B0Ey14DSHQpk6aIVFXF855BI8Ex4CqqxgDvmxG2
 EcKuXMWJ9N24ESL0jK5jZxJUJ+CEZlPaIOWDjBLYhfGBAGZR/o5/gguO+JPhRIy8NhHk
 dSm+kFfMieECY72P1eY3rsaVpsKSUYr3odJ3agdx23Dpwopi4qwgX/hbcAIcjqcsgAEs
 /LrmujgEj0mtSs3EBiatmX0462p8HOFD3mZmwKOPjcTH0wfd5vyty+YHP2U8SOnGPkJO
 QMBowUt6m3eZJnaNdT5nUIr+9OQxbo4On5yh7SaV5BhdZrL5p+ifwM3ZUAe++wWFuhTb
 bEoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739101691; x=1739706491;
 h=content-transfer-encoding:subject:from:to:content-language
 :user-agent:mime-version:date:message-id:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=yAkrviYOmzz/ugxcHtuUTL1bGOYijekY0+DTCR5N10M=;
 b=wvyYaXbfpzJj8vDUTC1EO1VBoHEuOGaMKeiDOgkdoaDa+rNdkmT2VMcODkvczTXHua
 g3cIePL9dn663RnhdhMghXyQO5OGkjgmTOOyDmfRm1eyKUVu5Un1jIKEG93aS3hYQVgV
 QzVSSSwnMw4NJPQwOSSa3Vz1Tz8tn6HajtJqEOaLNbLdTTJ4dq3gezsYq0M8n12jbPEr
 vCwUtyI/UuP60VylJiZXsCHhKabK5NcZKwaDOPCCbsL3cp4WcNZoPF46u0RwZ6bOP+1u
 0mfAsOcWXDCJXqBaoGrNf4IgXN+5vEmepnpUvx0XvE0MJ9viElO/YhbP+0P3p0+Qm3QO
 MHow==
X-Gm-Message-State: AOJu0YzW1qfkRcTDli5HZmVQRoM6YKure/pxQGDmKcSVfv/NhnpnSxEK
 A7IDvJD9osxPxy88ElI5HaNFl7AuYaefU/N3Bs+tEPcKz1wXk/2sEWn2Gw==
X-Gm-Gg: ASbGncu1YN0ipHaV34U9oCNBu9afx6KYcY4QMsSxj467WdQ/oW+nc4so4mfGS+QZdLw
 DuBwZgyRXp4FFIsOf6ZnAA0qRqDbAOab6k9DSxEUbSZArks7IWdhJGV+8Ika/1uQ5dXrZIHh1gM
 VJu6jmopfgGGvaybnRWgYqwVcFZS3ZuN0BlvwJ1ZQdRjDyD438tck4/quDS7ijTKPKrv5DM90tI
 fgYcP65c8uHQc8+5nGGY8PkV6Afy27zv7MVsjGXrf9UtD1eX06AqGgpdo5XEstjoVsbpFLiDL06
 6w3t0cmqe2CdHAWGpiD9oQ==
X-Google-Smtp-Source: AGHT+IHRNKgVHK5rA2tOYfovsU2/1gj20vUWHZerihFFbLSZlbS86VwQEtgffJr1QGcUJIuk/I3HLw==
X-Received: by 2002:a17:903:228b:b0:216:7926:8d69 with SMTP id
 d9443c01a7336-21f4e7832d9mr134029645ad.47.1739101691040; 
 Sun, 09 Feb 2025 03:48:11 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-21f3650e671sm58777695ad.33.2025.02.09.03.48.09
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 09 Feb 2025 03:48:10 -0800 (PST)
Message-ID: <ac356c22-cd5d-4d68-83a3-3ae25c8dfe56@HIDDEN>
Date: Sun, 9 Feb 2025 08:48:08 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: bug-gnu-emacs@HIDDEN
From: Mauro Aranda <maurooaranda@HIDDEN>
Subject: 31.0.50; Wrong STATE when customizing allout-command-prefix
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2607:f8b0:4864:20::62e;
 envelope-from=maurooaranda@HIDDEN; helo=mail-pl1-x62e.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

After emacs -Q:
(require 'allout)
M-x customize-option RET allout-command-prefix

The Customize buffer shows up, with STATE being:
EDITED, shown value does not take effect until you set or save it.

That's wrong, it should say STANDARD.


In GNU Emacs 31.0.50 (build 94, x86_64-pc-linux-gnu, GTK+ Version
  3.24.33, cairo version 1.16.0) of 2025-02-09 built on tbb-desktop
Repository revision: 35fa7126903a0ac6a28901d194f0753acf60928d
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12201001
System Description: Ubuntu 22.04.5 LTS

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR
GTK3 ZLIB

Important settings:
   value of $LC_MONETARY: es_AR.UTF-8
   value of $LC_NUMERIC: es_AR.UTF-8
   value of $LC_TIME: es_AR.UTF-8
   value of $LANG: en_US.UTF-8
   value of $XMODIFIERS: @im=ibus
   locale-coding-system: utf-8-unix

Major mode: Custom

Minor modes in effect:
   tooltip-mode: t
   global-eldoc-mode: t
   show-paren-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   minibuffer-regexp-mode: t
   line-number-mode: t
   indent-tabs-mode: t
   transient-mark-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date subr-x mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tabify
allout thingatpt help-fns byte-opt gv bytecomp byte-compile radix-tree
help-mode cus-edit pp cus-start cus-load icons wid-edit cl-loaddefs
cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt
fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode
register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads dbusbind inotify lcms2 dynamic-setting system-font-setting
font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar
make-network-process tty-child-frames emacs)

Memory information:
((conses 16 74542 9593) (symbols 48 8266 0) (strings 32 20714 2567)
  (string-bytes 1 510475) (vectors 16 13329)
  (vector-slots 8 145690 9748) (floats 8 30 19) (intervals 56 351 0)
  (buffers 992 13))





Acknowledgement sent to Mauro Aranda <maurooaranda@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#76156; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 15 Feb 2025 15:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.