GNU bug report logs -
#43919
27.1.50; Customize save may add (sort-fold-case t t)
Previous Next
Reported by: Teemu Likonen <tlikonen <at> iki.fi>
Date: Sun, 11 Oct 2020 05:55:02 UTC
Severity: minor
Tags: fixed, patch
Found in version 27.1.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
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.
[.emacs.el (application/emacs-lisp, inline)]
This bug report was last modified 4 years and 222 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.