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 qCxjLM3/w18BPwAA0tVLHw (envelope-from ) for ; Sun, 29 Nov 2020 20:08:45 +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 yKMMKM3/w1/ASwAAbx9fmQ (envelope-from ) for ; Sun, 29 Nov 2020 20:08:45 +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 55B6E94011A for ; Sun, 29 Nov 2020 20:08:45 +0000 (UTC) Received: from localhost ([::1]:45854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjT00-0003s7-AB for larch@yhetil.org; Sun, 29 Nov 2020 15:08:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjSz9-0003qc-2f for emacs-orgmode@gnu.org; Sun, 29 Nov 2020 15:07:51 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:40939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjSz7-00083Z-EF for emacs-orgmode@gnu.org; Sun, 29 Nov 2020 15:07:50 -0500 Received: by mail-wm1-x32d.google.com with SMTP id a3so18724583wmb.5 for ; Sun, 29 Nov 2020 12:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vlj8IrLqrxOYCGxSFbB97uvoap6R3eb7juL9iK5Tp6E=; b=VQDzVXWox0XlX8zXwqi1UztbCmAhYHHpr5scdq1iZ2yUnh1NGbrhRAVNIfb9GpqPtA 0pJaz9QJf30rx+WeOOFwS/x+mz+iIVurN30qJFhu3C+A5767b0ZQ4AwOb+Tdo1uAlLOs 1CvfZ5q9jnBE+ee+VAwsSFBYec1WwGu6/oaBNTsn50eghfJjDTzU4o+bZlL9P3McR+2s dsFd44yle162trnLgWr08+/PNt9JZExoOGmWfm4m72wPYykfNE1R7uiv32bvmJz5c/W7 B6JIaeuDcjgaw97EJxM6qpTqX9S5fqv0oGgr3DXpu7Ql7apRtCb7UxUGfAuTdTQBgyYb YkVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vlj8IrLqrxOYCGxSFbB97uvoap6R3eb7juL9iK5Tp6E=; b=XDd0DWUhd1LlqD1yAJ7UnBt3JkMQ8he7IHDtcGpCgAxuosUDO+hfhw/kfk0fY763BQ /STHCOuvkBQgjc4AToqasUU/VM9D4W289IQI+dCYxM5sWrHhqO74OCWw34uyDiC4aTiW GEOV00UThMD3bS9Hk6IlUIZr72W7qNOIU/Rb9Zzz2AA4XIj9tdKdqwqosjOgBcV1KMYK QLMZ+h4M/XI2M0zy0Ng1vN6zomDYVaehHOSxw3pBEOfrNKmx4kQcEA7lXqdF73tZ3+Nz Gz2Nm7+MGz8CacafbKZJO5mfnZE9HI4z2LDVxeTvEhmZqmF2frhrAfNGpWOvMHoEETm0 rIpw== X-Gm-Message-State: AOAM533RBnUOAkhQecc1nGx1n54/D0HyZOWIyRQGDhQYqKzFYHWrDRgv 6n/fEh8/tOVfVUFqdni98+7DpSAKuGy+gQ9nwAc= X-Google-Smtp-Source: ABdhPJxhQveU2/CH/nTj5oIabaKCIxtboXk3E9+mNVb7708plWh4oaZoDgFioQcWLUc6b3peh91Tl1q5s52Q2K82MzE= X-Received: by 2002:a05:600c:2f88:: with SMTP id t8mr17076210wmn.90.1606680461130; Sun, 29 Nov 2020 12:07:41 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Tom Gillespie Date: Sun, 29 Nov 2020 15:07:29 -0500 Message-ID: Subject: Re: Emacs inserts hardwired org-agenda-files variable, overwriting user options To: daniela-spit@gmx.it Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=tgbugs@gmail.com; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: -2.98 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=VQDzVXWo; dmarc=pass (policy=none) header.from=gmail.com; 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: iEMuLlDE4pxi 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 packages ;;; 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)) 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. Best, Tom