emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs inserts hardwired org-agenda-files variable, overwriting user


From: Jean Louis
Subject: Re: Emacs inserts hardwired org-agenda-files variable, overwriting user options
Date: Sun, 29 Nov 2020 23:15:02 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* daniela-spit@gmx.it <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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]