GNU bug report logs - #78822
28.2; Debian 12 GNU Emacs Custom custom-set-variables and init.el

Previous Next

Package: emacs;

Reported by: Barry Davidson <m4 <at> danwin1210.de>

Date: Wed, 18 Jun 2025 02:01:02 UTC

Severity: normal

Found in version 28.2

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Barry Davidson <m4 <at> danwin1210.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.2; Debian 12 GNU Emacs Custom custom-set-variables and init.el
Date: Wed, 18 Jun 2025 04:59:43 +0300
Hello!
I manually added in init.el, custom-set-variables:
`(backup-directory-alist
  '(,(cons ".*" (concat user-emacs-directory "bkup/"))))
It worked well until I added some settings through Custom.
I added this through Customize interface, Custom wrote:
'(speedbar-highlight-face ((t (:background "yellow")))))
and Custom went and rewrote both custom-set-faces and
custom-set-variables and my manually added text was
replaced by:
'(backup-directory-alist '((".*" . "~/.emacs.d/bkup/")))
Is it a bug or intended feature?

There is some ambiguous information on the web about init.el,
therefore the question I have is:
If my init file is byte-compiled, do I need to use
(eval '(setq ...
instead of
(setq ... ?
Thanks!





This bug report was last modified 3 days ago.

Previous Next


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