From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.bugs Subject: bug#43919: 27.1.50; Customize save may add (sort-fold-case t t) Date: Sun, 11 Oct 2020 08:54:08 +0300 Message-ID: <878scd48an.fsf@iki.fi> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24812"; mail-complaints-to="usenet@ciao.gmane.io" To: 43919@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 11 07:55:55 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 1kRUKo-0006Kr-8s for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Oct 2020 07:55:54 +0200 Original-Received: from localhost ([::1]:44868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRUKm-0000Tt-GO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Oct 2020 01:55:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRUK1-0000SK-B9 for bug-gnu-emacs@gnu.org; Sun, 11 Oct 2020 01:55:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55713) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kRUJy-0000qV-Jk for bug-gnu-emacs@gnu.org; Sun, 11 Oct 2020 01:55:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kRUJy-0001JO-IP for bug-gnu-emacs@gnu.org; Sun, 11 Oct 2020 01:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Teemu Likonen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Oct 2020 05:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43919 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.16023956694999 (code B ref -1); Sun, 11 Oct 2020 05:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Oct 2020 05:54:29 +0000 Original-Received: from localhost ([127.0.0.1]:39026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRUJR-0001IZ-8N for submit@debbugs.gnu.org; Sun, 11 Oct 2020 01:54:29 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRUJM-0001IN-ES for submit@debbugs.gnu.org; Sun, 11 Oct 2020 01:54:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRUJL-0000R5-RG for bug-gnu-emacs@gnu.org; Sun, 11 Oct 2020 01:54:24 -0400 Original-Received: from lahtoruutu.iki.fi ([185.185.170.37]:40706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRUJI-0000eD-8T for bug-gnu-emacs@gnu.org; Sun, 11 Oct 2020 01:54:23 -0400 Original-Received: from mithlond (mobile-access-bceec8-208.dhcp.inet.fi [188.238.200.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: tlikonen) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id C90B41B0039A for ; Sun, 11 Oct 2020 08:54:15 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1602395655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=wbpLs7utlPefv16ydYUeFEv8ELh5/kvgt4+nQQWE+R8=; b=in5WF+ViYJy3WS5R2GE4LrZ/InWyo33LtGGkrEFS41h+dbDl+0uwceyfOKYlsfwEYz0or6 vCnl0cfRcxEOqkhGfGAXV3dp8trl6LGqxzR22shJGuyrtgimxwpCdQoYwHoJQBNNfkagrZ AOW8WoKgIr9N0YngbnyLUXX60VL/K6Ka0kChVDKQyf38KbFpRgcVUVW53zJJNpIeGD1TUI OFsX9Ayipf8aRm1z7vQJuS6md16IPNOVXRIRfVijs2gkcKecF5A3vryM9FYqj6x4NZvuk4 ZnM7rNSi21VkmV5MimsMr1IV+nXkiluZHzIF/Ckwtlt88gJrJJ9kN8Ba6+tbzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1602395655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=wbpLs7utlPefv16ydYUeFEv8ELh5/kvgt4+nQQWE+R8=; b=JG9JMonfNoQTWr5GBDiXxE9As+8caxvK7wOMpXubqRKUBlrLAy1ttlYTx2gYpS1BJBPvJv 5gVJVGqPPbyLEUU2Mu55gPKILXMuXSqbiOlMvwngT+E2+spS4dv3fLK7VLJHFnrw5tEKQl AX0Luf6usxTscb/X1X0l18NzCSnxRvq+LyHX5c625UhhrrAM1XlPThCke9s8rjvqBYKK3F nKII3DCP+xDPkDSdocPV18jkreCpIB09nghFwMazLDjSk3rCgjITSdYW3FcQd8AS2rVfbh bwdk5qmt3JVFi0hjtwu703LVqV5C98JHqK3D2hppDPpLIkBT3pdZ+OIUqQGCBg== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1602395655; a=rsa-sha256; cv=none; b=k76IO48P+cFy0ZiVbDIhMTEZWLUS0vJD0XtmHwczIY3v+NQIv1ngDkCF9HQdCCuYQBdAbj /FlKH7Icj0OdI4hQuQtdSohkuL/IIXLxyZ4zMebOneLbkPtYSlrKb4yrv9RDKGltOn/vCj 6/bZq4jWbpqzIXu9Qr/4cBS0YENcBgAmR5/jnG3F9WpAQB8BtjgIz9AhWgOv2WF6GHvp5p 3yr8nprrwTh48JxvEOIA8vhFs455SCKZuAPj0QhCNTY3JkVvpCUEysIjEAS2WZsdMrtSli IZ4CBu8/MvKgcgjnFsCbNr456NpMf0s3O0gVmWG+3x+L3eWbnB5rUqzqOq7fsA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@iki.fi Received-SPF: pass client-ip=185.185.170.37; envelope-from=tlikonen@iki.fi; helo=lahtoruutu.iki.fi X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 01:54:16 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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, 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-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:190262 Archived-At: --=-=-= Content-Type: text/plain This issue shows when initialization file has (custom-set-variables ...) with sort-fold-case set, like this: (custom-set-variables '(sort-fold-case t)) Saving some other variable through the customize interface will add additional "t" symbol to the sort-fold-case form: (custom-set-variables ;; Other variables... '(sort-fold-case t t)) Some other customize changes change the form back to (sort-fold-case t), that is, with single "t" symbol. Everything seems to be working but this behavior is harmful when Emacs initialization files are in version control system (like Git) and sort-fold-case variable keeps changing back and forth. You can reproduce the bug with this recipe: 1. Create ~/.emacs.el file with the following content (also attached file). (custom-set-variables '(sort-fold-case t)) 2. Start Emacs. 3. Use customize interface to change and save some other variable, for example: M-x customize-variable RET show-trailing-whitespace RET Change variable's value to "t" and save it "for future sessions". 4. Now the custom-set-variables form in ~/.emacs.el file looks like this: (custom-set-variables '(show-trailing-whitespace t) '(sort-fold-case t t)) See the added "t" in sort-fold-case. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline; filename=.emacs.el Content-Transfer-Encoding: quoted-printable (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(sort-fold-case t)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) --=-=-=--