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 wHzOA0sMxF+cKAAA0tVLHw (envelope-from ) for ; Sun, 29 Nov 2020 21:02:03 +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 INs8O0oMxF8xJwAAB5/wlQ (envelope-from ) for ; Sun, 29 Nov 2020 21:02:02 +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 17FBE94011A for ; Sun, 29 Nov 2020 21:02:02 +0000 (UTC) Received: from localhost ([::1]:35656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjTpX-0002ba-O1 for larch@yhetil.org; Sun, 29 Nov 2020 16:01:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjTor-0002bC-Ko for emacs-orgmode@gnu.org; Sun, 29 Nov 2020 16:01:17 -0500 Received: from static.rcdrun.com ([95.85.24.50]:54505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjTop-0000FI-HY for emacs-orgmode@gnu.org; Sun, 29 Nov 2020 16:01:16 -0500 Received: from localhost ([::ffff:197.157.0.29]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0007.000000005FC40C18.00004875; Sun, 29 Nov 2020 21:01:12 +0000 Date: Sun, 29 Nov 2020 23:58:33 +0300 From: Jean Louis To: daniela-spit@gmx.it Subject: Re: Emacs inserts hardwired org-agenda-files variable, overwriting user options Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-Spam_score_int: 29 X-Spam_score: 2.9 X-Spam_bar: ++ X-Spam_report: (2.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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.78 X-Scanner: ns3122888.ip-94-23-21.eu 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-TUID: 4+M5SuFsQpjy * daniela-spit@gmx.it [2020-11-29 23:46]: > Yes, but initially people and going to take my dani.el file and if > they happen to delete their file, the whole setup will break down. If you wish to relate the settings to a file, you may use file local variables so when you give them dani.el that variable get defined already in dani.el so that it is self-contained. - M-x add-file-local-variable - org-agenda-files - '("~/Org/my-file") or expand your list Then you get this on the end of file: > Local Variables: > org-agenda-files: '("~/Org/my-file") > End: That would work local file functions using `org-agenda-files' but it will not work for for invokation outside of file.