GNU bug report logs -
#188
23.0.60; Custom-save deleting custom file
Previous Next
Reported by: Bastien Guerry <bzg <at> altern.org>
Date: Sun, 4 May 2008 13:10:04 UTC
Severity: normal
Tags: moreinfo
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #15 received at 188 <at> emacsbugs.donarmstrong.com (full text, mbox):
Chong Yidong <cyd <at> stupidchicken.com> writes:
>> Saving a change with Custom-save deletes the old custom file (in my
>> case ~/.emacs-custom.el). This is quite annoying if you don't have
>> backups.
>
> Could you be more specific? Please supply an exact recipe for
> reproducing this bug.
Yes, sorry.
Emacs version: GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version
2.12.9) of 2008-05-04 on bzg.ath.cx
1. emacs -Q
2. With an existing ~/.emacs-custom.el file, C-x C-e this:
(setq custom-file "~/.emacs-custom.el")
(load custom-file)
3. M-x customize-face RET font-lock-comment-face RET
4. [Don't do changes...]
5. C-x C-s
Then the custom file is now:
,----
| (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.
| )
|
|
| (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.
| )
`----
As far as I can check, this is a problem with `custom-save-variables'
not writing variables in the custom file if they lack some property.
Can't help further for now.
Thanks,
--
Bastien
This bug report was last modified 14 years and 13 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.