From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cGSPKP6SVF9aPwAA0tVLHw (envelope-from ) for ; Sun, 06 Sep 2020 07:42:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QBxhJP6SVF9mHQAAbx9fmQ (envelope-from ) for ; Sun, 06 Sep 2020 07:42:54 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 34DBD94021E for ; Sun, 6 Sep 2020 07:42:54 +0000 (UTC) Received: from localhost ([::1]:40360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEpK8-0004za-Gc for larch@yhetil.org; Sun, 06 Sep 2020 03:42:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEpJg-0004zT-Ib for emacs-orgmode@gnu.org; Sun, 06 Sep 2020 03:42:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47893) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEpJg-0001yg-9g; Sun, 06 Sep 2020 03:42:24 -0400 Received: from [2a01:e35:2fe1:f780:d122:b755:abc5:9fce] (port=35912 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kEpJg-0005Wp-03; Sun, 06 Sep 2020 03:42:24 -0400 Received: by guerry (Postfix, from userid 1000) id 1DA911A60D69; Sun, 6 Sep 2020 09:42:22 +0200 (CEST) From: Bastien To: Dominick Samperi Subject: Re: Bug: No colors in first file opened [9.3.7 (9.3.7-dist @ c:/w/.emacs.d/org-9.3.7/lisp/)] Organization: GNU References: <874kof1897.fsf@gnu.org> Date: Sun, 06 Sep 2020 09:42:22 +0200 In-Reply-To: (Dominick Samperi's message of "Thu, 3 Sep 2020 11:28:40 -0400") Message-ID: <87wo17jqqp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: odvCcJtxAdOU Hi Dominick, thanks for sharing this on the list. I don't use Windows, so it is difficult for me to understand what can go wrong. Dominick Samperi writes: > My current work-around is to map F12 to (org-mode-restart). > > After installing a fresh version of Emacs 27.1 using the Windows > installer, and copying > org-9.3.7 to ~/.emacs.d, the first file I open is not colorized until > I use F12. My init.el contains: > (add-to-list 'load-path "~/.emacs.d/org-9.3.7/lisp") > (setq auto-mode-alist (cons '("\\.s?txt?\\'" . org-mode) auto-mode-alist)) > (require 'org) > > This happens when the first file I open has name foo.org, or bar.txt. > There are no problems when I continue to open files. Note this other Emacs bug report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43196 Perhaps the discussion there gives you useful hints. Best, -- Bastien