all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Van Holder <tim.vanholder@gmail.com>
To: 7205@debbugs.gnu.org
Subject: bug#7205: 24.0.50; Font customizations not being applied properly at startup
Date: Wed, 13 Oct 2010 14:31:57 +0200	[thread overview]
Message-ID: <AANLkTincJAea8PFWd2mz=KOF_yMCmrLPTZ9fbuJKYnGR@mail.gmail.com> (raw)
In-Reply-To: <874ocqe8uk.fsf@leeloo.anubex.internal>

On 13 October 2010 11:32, Tim Van Holder <tim.vanholder@gmail.com> wrote:
> This can't be reproduced with 'emacs -Q'.

Actually, it turns out customized faces keep on being lost - it's not
just my old ones.
This means I have a recipe with "emacs -Q" as well:

1) emacs -Q
2) eval (setq custom-file "~/bug7205.el")
3) customize font-lock-comment-face, changing the color to "HotPink",
save for future sessions
3) customize font-lock-function-name-face, changing the color to
"Goldenrod", save for future sessions
4) Exit emacs

At this point bug7205.el contains:

(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.
 '(font-lock-comment-face ((t (:foreground "HotPink"))))
 '(font-lock-function-name-face ((t (:foreground "Goldenrod")))))

5) emacs -Q
6) eval (setq custom-file "~/bug7205.el")
7) eval (load-file custom-file)
8) customize font-lock-comment-face: color is HotPink, but state is STANDARD
9) customize font-lock-function-name-face: color is Goldenrod, but
state is STANDARD
10) save for future sessions on font-lock-function-name-face
11) Exit emacs

At this point, bug7205.el contains just the stubs - at the point of
the save, Custom did not see any faces as customized, so it did not
emit anything:

(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.
 )





  reply	other threads:[~2010-10-13 12:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-13  9:32 bug#7205: 24.0.50; Font customizations not being applied properly at startup Tim Van Holder
2010-10-13 12:31 ` Tim Van Holder [this message]
2010-10-14  8:26   ` Tim Van Holder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTincJAea8PFWd2mz=KOF_yMCmrLPTZ9fbuJKYnGR@mail.gmail.com' \
    --to=tim.vanholder@gmail.com \
    --cc=7205@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.