From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50491: 28.0.50; load-theme in early-init does not fully loads/enables expected faces Date: Sun, 12 Sep 2021 16:21:43 +0300 Message-ID: <838s02exp4.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28336"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50491@debbugs.gnu.org, monnier@iro.umontreal.ca To: Y. E. Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 12 15:23:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mPPRw-0007A9-2t for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Sep 2021 15:23:12 +0200 Original-Received: from localhost ([::1]:40530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPPRu-0007xl-Id for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Sep 2021 09:23:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPPRm-0007vc-GF for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 09:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPPRm-0007qz-7O for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 09:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mPPRl-0000Ky-V3 for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 09:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Sep 2021 13:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50491 X-GNU-PR-Package: emacs Original-Received: via spool by 50491-submit@debbugs.gnu.org id=B50491.16314529261215 (code B ref 50491); Sun, 12 Sep 2021 13:23:01 +0000 Original-Received: (at 50491) by debbugs.gnu.org; 12 Sep 2021 13:22:06 +0000 Original-Received: from localhost ([127.0.0.1]:42251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPPQr-0000JX-OF for submit@debbugs.gnu.org; Sun, 12 Sep 2021 09:22:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPPQm-0000Iy-U4 for 50491@debbugs.gnu.org; Sun, 12 Sep 2021 09:22:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58270) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPPQh-0006wf-44; Sun, 12 Sep 2021 09:21:55 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3973 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPPQg-0006e5-N8; Sun, 12 Sep 2021 09:21:55 -0400 In-Reply-To: (message from Y. E. on Sun, 12 Sep 2021 16:07:04 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:214136 Archived-At: > From: Y. E. > Cc: 50491@debbugs.gnu.org, monnier@iro.umontreal.ca > Date: Sun, 12 Sep 2021 16:07:04 +0300 > > > That could mean any number of things, and it is unreasonable to start > > listing them, because the list will very quickly become outdated, aswe > > add/change stuff in Emacs. > > I totally agree. > That's why I optionally suggested the removal of the phrase > "frame appearance as well as" when listed possible improvements > for this documentation page. But that phrase isn't incorrect: some of the parameters _can_ be set in the early-init file. I'm just saying don't do that unless you really have to, i.e. unless having it in the init files completely doesn't work. > For example, moving `initial-frame-alist' out of early-init > leads to the geometry and font of the initial frame being changed during startup > (it loads as a small frame first, then expands according to my settings), > which is an aesthetically unpleasant behavior. "Aesthetically unpleasant" is not a reason to move stuff into early-init. What you see is startup.el in action: it detects that display parameters have changed, and it applies them. > Also, while moving all the settings out of the early-init file, > I reproduced the white-background-blinking on Emacs startup > mentioned before > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=50491#14 Same thing: as long as it works, leave it alone. > The more lines of code are loaded between the calls of > `scroll-bar-mode' and `load-theme', the longer I see Emacs loading with > the white background (instead of seeing the theme's background). That's the expected and the correct behavior. By contrast, moving this stuff to early-init will bite you eventually. I don't recommend it, and I don't see any bug here that needs to be fixed. > One of the following fixes the issue: > - Place `(scroll-bar-mode -1)' *after* the (load-theme 'misterioso t) line. > - Put `(scroll-bar-mode -1)' to the early-init.el file. My recommendation is to use the former.