From 8eb78048f040ed6382446926f33ff6d4b7968ec8 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Wed, 6 Mar 2024 13:36:56 +0300 Subject: [PATCH] org-mobile-create-index-file: Fix typo * lisp/org-mobile.el (org-mobile-create-index-file): Fix argument order in the call to `expand-file-name'. Reported-by: Fabian Brosda Link: https://orgmode.org/list/87a5ngxzcr.fsf@gmx.de --- lisp/org-mobile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el index cd65a4766..83e0316fd 100644 --- a/lisp/org-mobile.el +++ b/lisp/org-mobile.el @@ -470,7 +470,7 @@ agenda view showing the flagged items." (insert "#+TAGS: " (mapconcat 'identity tags " ") "\n") (insert "#+ALLPRIORITIES: " org-mobile-allpriorities "\n") (when (file-exists-p (expand-file-name - org-mobile-directory "agendas.org")) + "agendas.org" org-mobile-directory)) (insert "* [[file:agendas.org][Agenda Views]]\n")) (pcase-dolist (`(,_ . ,link-name) files-alist) (insert (format "* [[file:%s][%s]]\n" link-name link-name)))