From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sOyaBKACxF+jVgAA0tVLHw (envelope-from ) for ; Sun, 29 Nov 2020 20:20:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wO1lAKACxF/oCgAAB5/wlQ (envelope-from ) for ; Sun, 29 Nov 2020 20:20:48 +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 40E64940367 for ; Sun, 29 Nov 2020 20:20:47 +0000 (UTC) Received: from localhost ([::1]:55628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjTBe-0000Fc-6M for larch@yhetil.org; Sun, 29 Nov 2020 15:20:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjTAk-0000FV-V9 for emacs-orgmode@gnu.org; Sun, 29 Nov 2020 15:19:50 -0500 Received: from mout.gmx.net ([212.227.17.22]:37347) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjTAi-0003Kb-Il for emacs-orgmode@gnu.org; Sun, 29 Nov 2020 15:19:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606681186; bh=64PPUp/OcdJy/rZEP45+Pwfl17C2kGAQKiBdGc26fHU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=JCQqkn5AwtHhkTNIqE54fnaJRa5e4jG6gHn1+3IWceEKyjglxh6eqiXPyasqbIpq8 cp4sJweMGrZahbi77fm+7sTFTauY6VamDCXRezJAMue7pZX+O0LIXmFvSO1MyZI5Ge pZ3t5X9fQAmIqFrwBUvFJA1h6N/9lDQd1rOEWjCY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs12.server.lan [172.19.170.180]) (via HTTP); Sun, 29 Nov 2020 21:19:45 +0100 MIME-Version: 1.0 Message-ID: From: daniela-spit@gmx.it To: Tom Gillespie Subject: Re: Emacs inserts hardwired org-agenda-files variable, overwriting user options Content-Type: text/plain; charset=UTF-8 Date: Sun, 29 Nov 2020 21:19:45 +0100 Importance: normal Sensitivity: Normal In-Reply-To: References: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:sQra2LbNd504JH7/sThdTLnE8lCrXXHYx2RBQSgRaLs9nmdb4KPy4H2G8Aoe0r58jZaOv RMQoc2uO3QXmUkBwzkPEqhahVcI3NBfIlgKZLR3GBVeUpb/rJAyxo7NiN216polmAFFv5MwOmfN8 F+/qaYoeOQF1Ol3l+fEHN94BGuWp4SGJ4qHIs+glBknIxk/LTzLr3fqGhUWJrQSCA58i4W5OAYe1 rLbWgw442zDmEyWahtN57QSH53R/XJ+Xw9LIZfWSN6M+m2il+0JTS1GXgK8lx7yYLV1eWt9R3tK5 cw= X-UI-Out-Filterresults: notjunk:1;V03:K0:lLebED7EL5E=:/8hagJ0XoaN3aTzoCeuwbI Yxgj046ezpA6Jz6+p/y2rVNTjzUr7/zsN4fA5LX0Fh96Te2BxorlniAr0I/6GAP8sV/furCP+ d9qxCgwNdmk3C+RO3QC8uBjckSVVkjjw1KsZCYl721ZvLRwCmneyZluzyXeWlc5/o6d1zhYG0 kDfB45ReFElzIGNzB2NFaRPXdIZxYO+nQeJ92QZ3Q5Mi7CsU4MjZEpSY4CxrMkfMeaF1MeRWO MHLX8wkZLXRns5rJhzoAs7EpWknhhpCrD7/LA27xl5nrNzk9YwT/oU9DJ/WDT7FzVjYOFtFEd VWMGoKzv6U60k0jahf2R6jA67b67q53I92NIxYdn8uy+eKxQAOKTygdUxyya+e0RIbzkqBP5J QB4wq/cBQOgBYDaK1bVjxx99NNS5gK0HTCxIYwaSDw54DPqDOuZoXuBJyL6lFwXIC22TGW0bQ BHN6GOiIMt7w6gUHLx+sDUGghxEwi32mfpSgOnGfI5kA5d9/eNJKkjIcYbVJzNNbjkhZ0hDgR W8eYXTn0TfXpjs6XA0v8mqacmIwZdcuYE5TAkIw9sNLkW602ZzGEu920VZJKXMR9BlTWx4FB1 PanNrEzue4ANw= Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=212.227.17.22; envelope-from=daniela-spit@gmx.it; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Org-Mode mailing list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.98 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=JCQqkn5A; 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-TUID: +3Ls7ZvGebS7 > Sent: Sunday, November 29, 2020 at 9:07 PM > From: "Tom Gillespie" > To: daniela-spit@gmx.it > Cc: "Org-Mode mailing list" > Subject: Re: Emacs inserts hardwired org-agenda-files variable, overwrit= ing user options > > Here is a workaround. Emacs klobbering settings in .emacs has caused > many issues for me in the past. The solution I finally came up with > was to ensure that custom variables are loaded before any of my > settings. Near the top of my .emacs (before any calls to setq) I have > the following: > > ;;;; custom set variables > ;;; PLEASE MAKE YOUR WAY TO THE EXIT AND STAY OUT OF MY INIT FILE > ;;; These come first so that they will be overwritten by settings in pac= kages > ;;; in order to prevent stale variables from klobbering new values > (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) > (when (file-exists-p custom-file) > (load custom-file)) Would this affect my own custom (custom-set-variables) (custom-set-faces ;; '(font-lock-comment-face ((t (:foreground "#000000")))) '(font-lock-keyword-face ((t (:foreground "#FFDD00")))) ; yellow '(font-lock-type-face ((t (:foreground "#FFDD00")))) ) ; yellow > If you have that then your list will be retained. However Emacs will > probably continue to ask you to remove the missing file until some > file exists at that path. Not sure about the org agenda behavior for > missing files since I populate org-agenda-files by scanning folders > for existing org files and then having a blacklist to exclude files I > do not want. Yes it gives you hell in its demand to delete or abort, rather than ignoring the file. That's why I called the problem a bug. If you don't find the file, ignore= it. > Best, > Tom >