From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GZuUDc4BxF/KUQAA0tVLHw (envelope-from ) for ; Sun, 29 Nov 2020 20:17:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mLvzCM4BxF+tOgAA1q6Kng (envelope-from ) for ; Sun, 29 Nov 2020 20:17:18 +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 A6695940484 for ; Sun, 29 Nov 2020 20:17:17 +0000 (UTC) Received: from localhost ([::1]:51320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjT8F-0006jP-9N for larch@yhetil.org; Sun, 29 Nov 2020 15:17:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjT7I-0006iv-Tf for emacs-orgmode@gnu.org; Sun, 29 Nov 2020 15:16:16 -0500 Received: from static.rcdrun.com ([95.85.24.50]:41549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjT7H-0002Gp-16 for emacs-orgmode@gnu.org; Sun, 29 Nov 2020 15:16: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 00000000002C000E.000000005FC4018C.00003D0E; Sun, 29 Nov 2020 20:16:12 +0000 Date: Sun, 29 Nov 2020 23:15:02 +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-Disposition: inline Content-Transfer-Encoding: 8bit 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: -2.28 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: 2FVnUW2B/9iW * daniela-spit@gmx.it [2020-11-29 21:54]: > I have identified a problem. Let a user set the files to be used for > Org Agenda in .emacs as follows, and consider the situation when the > file writing.rcl.org does not exist. > > (setq org-agenda-files > '("~/02histr/gadmin/writing.rcl.org" > "~/02histr/gadmin/meeting.rcl.org" > "~/02histr/gadmin/household.rcl.org")) > > Emacs demands that the file writing.rcl.org be removed from org-agenda-files. > Then Emacs sabotages the user's settings by hardwiring org-agenda-files at the > end of the file .emacs by inserting: I know that nugging. Look what I have found for variable `org-agenda-files' by using inspection with {C-h v RET org-agenda-files RET} ,---- | Documentation: | The files to be used for agenda display. | | If an entry is a directory, all files in that directory that are matched | by ‘org-agenda-file-regexp’ will be part of the file list. | | If the value of the variable is not a list but a single file name, then | the list of agenda files is actually stored and maintained in that file, | one agenda file per line. In this file paths can be given relative to | ‘org-directory’. Tilde expansion and environment variable substitution | are also made. | | Entries may be added to this list with ‘M-x org-agenda-file-to-front’ | and removed with ‘M-x org-remove-file’. `---- Maybe you could try the approach to customize it not to be a list by single file name. Then in that file name you put files one by one.