Fix glitch in custom setter for `org-agenda-file'

This commit is contained in:
Daniel - 2020-01-05 12:17:37 +01:00
parent e234912180
commit 541940d7dc
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ the new one instead."
(setq x (assoc ctf file-alist) had x)
(unless x
(setq x (cons ctf (abbreviate-file-name buffer-file-name))))
(setq x (cons ctf (abbreviate-file-name value))))
(setq file-alist (append (delq x file-alist) (list x)))
(org-store-new-agenda-file-list (mapcar 'cdr file-alist))
(org-install-agenda-files-menu)