all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#59184: 29.0.50; customization of faces has to be re-done for each new frame
@ 2022-11-10 19:17 Sam Steingold
  2023-07-16 13:42 ` Mauro Aranda
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Steingold @ 2022-11-10 19:17 UTC (permalink / raw)
  To: 59184

Save the following into test.el

--8<---------------cut here---------------start------------->8---
(custom-set-variables
 '(custom-enabled-themes '(modus-vivendi)))

(custom-set-faces
 '(fringe
   ((((class color) (background dark)) (:background "gold")))))
--8<---------------cut here---------------end--------------->8---

and run `emacs -Q -l test.el`

The screen is dark (because of the dark theme) and the fringes are gold
(because of the face customization).

Now C-x 5 2 (make-frame-command) creates a new frame which is also dark,
as expected, but the fringes a no longer gold - they are dark gray as
per the theme.

If I re-evaluate the `custom-set-faces' form in the original frame (where
the fringes are already gold), the fringes in the new frame become gold
also.

However, a new `make-frame-command' creates a frame with gray fringes.

This does _not_ happen without `custom-enabled-themes'.

Apparently, the theme overrides my customizations.
I hope this is not intentional: "50.1.7 Custom Themes" says:

> Any customizations that you make through the customization buffer
> take precedence over theme settings

Thank you.

-Sam.

In GNU Emacs 29.0.50 (build 2, x86_64-apple-darwin21.6.0, NS
 appkit-2113.60 Version 12.6.1 (Build 21G217)) of 2022-11-07 built on
 3c22fb11fdab.ant.amazon.com
Repository revision: d04433b96215d7d3387573f19cc315de86f2341a
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.6.1

Configured using:
 'configure --with-imagemagick --with-mailutils --with-ns
 PKG_CONFIG_PATH='

Configured features:
ACL GIF GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY
KQUEUE NS PDUMPER PNG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM
ZLIB

Important settings:
  value of $LANG: C
  locale-coding-system: utf-8-unix

Major mode: Org

Minor modes in effect:
  pyvenv-mode: t
  flyspell-mode: t
  display-fill-column-indicator-mode: t
  shell-dirtrack-mode: t
  global-edit-server-edit-mode: t
  winner-mode: t
  which-function-mode: t
  url-handler-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: yas--auto-fill
  transient-mark-mode: (only)
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(shadow emacsbug quail edmacro kmacro nndoc inf-lisp tabify url-http
url-gw url-cache url-auth clhs smtpmail rot13 bbdb-message mailalias
cookie1 markdown-mode cal-move org-element avl-tree ol-eww ol-rmail
ol-mhe ol-irc ol-info ol-gnus nnselect ol-docview doc-view filenotify
jka-compr image-mode exif ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi
org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote
org-src ob-comint org-pcomplete org-list org-faces org-entities
org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol
org-keys oc org-compat org-macs org-loaddefs cal-x cal-china cal-bahai
cal-islam holidays holiday-loaddefs bbdb-anniv cal-iso cal-hebrew lunar
cal-julian solar cal-dst appt diary-lib diary-loaddefs cal-menu calendar
cal-loaddefs flow-fill descr-text dash company-oddmuse company-keywords
company-etags company-gtags company-dabbrev-code company-dabbrev
company-files company-clang company-template company-cmake company-bbdb
yasnippet-snippets yasnippet flymake-proc flymake company-capf company
elpy elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io
esh-arg esh-module esh-groups esh-util elpy-shell elpy-profile
elpy-django s elpy-refactor ido hideshow grep etags fileloop generator
xref python project compat compat-macs view dired-aux package log-edit
noutline outline mhtml-mode css-mode eww xdg url-queue thingatpt mm-url
color js cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs sgml-mode facemenu mm-archive sort smiley
gnus-cite textsec uni-scripts idna-mapping uni-confusable textsec-check
gnus-bcklg qp gnus-async gnus-dup mail-extr gnus-ml hl-line disp-table
spam spam-stat gnus-uu yenc nndraft nnmh gnus-agent gnus-srvr gnus-score
score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime
smime dig utf-7 gnus-cache gnus-sum shr pixel-fill kinsoku url-file svg
dom browse-url url url-proxy url-privacy url-expand url-methods
url-history url-cookie generate-lisp-file url-domsuf url-util bbdb-gnus
gnutls network-stream nsm nntp gnus-group gnus-undo cl-print tramp-cmds
gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7
nnoo gnus-spec gnus-int gnus-range message sendmail mailcap yank-media
puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
gmm-utils mailheader gnus-win misearch multi-isearch bug-reference
shortdoc help-fns radix-tree apropos dabbrev skeleton smerge-mode diff
vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view pcvs-util vc-dir ewoc vc
add-log vc-hg vc-bzr tramp-cache time-stamp tramp-sh tramp
tramp-loaddefs trampver tramp-integration cus-start files-x tramp-compat
rx parse-time iso8601 ls-lisp format-spec remember cl-extra sh-script
smie executable flyspell ispell display-fill-column-indicator tex-mode
compile shell pcomplete comint ansi-osc ansi-color vc-git diff-mode
easy-mmode vc-dispatcher midnight dired dired-loaddefs cus-edit pp
warnings icons gnus nnheader gnus-util text-property-search time-date
mail-utils range mm-util mail-prsvr wid-edit bbdb-mua bbdb-com crm
mailabbrev bbdb bbdb-site timezone modus-vivendi-theme modus-themes
pcase edit-server advice server winner ring which-func imenu edebug
debug backtrace help-mode find-func url-handlers url-parse auth-source
cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt
gv bytecomp byte-compile url-vars help-at-pt desktop frameset
cl-loaddefs cl-lib cus-load info fb2-reader-autoloads async-autoloads
f-autoloads ein-autoloads bbdb-autoloads yaml-mode-autoloads
dash-autoloads with-editor-autoloads yasnippet-snippets-autoloads
compat-autoloads markdown-mode-autoloads websearch-autoloads
elpy-autoloads s-autoloads company-autoloads polymode-autoloads
edit-server-autoloads request-autoloads rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 850919 173155)
 (symbols 48 55886 11)
 (strings 32 356317 55890)
 (string-bytes 1 8996090)
 (vectors 16 120399)
 (vector-slots 8 2935659 221812)
 (floats 8 1387 1239)
 (intervals 56 26070 5188)
 (buffers 984 70))

-- 
Sam Steingold (https://aphar.dreamwidth.org/) on darwin Ns 10.3.2113
https://lastingimpactpsychology.com https://steingoldpsychology.com
https://mideasttruth.com https://thereligionofpeace.com https://jihadwatch.org
Never succeed from the first try - if you do, nobody will think it was hard.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-02 22:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-10 19:17 bug#59184: 29.0.50; customization of faces has to be re-done for each new frame Sam Steingold
2023-07-16 13:42 ` Mauro Aranda
2023-09-02 22:09   ` Stefan Kangas

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.