From c0f2d5d0bfffb35233b35b606438ed1797c09b23 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 3 Mar 2019 22:17:05 -0500 Subject: [PATCH] org-archive: Make substring call compatible with Emacs 24 * lisp/org-archive.el (org-archive--compute-location): Pass 0 rather than nil for FROM for Emacs 24 compatibility. --- lisp/org-archive.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-archive.el b/lisp/org-archive.el index 206a76a08..827c9c84b 100644 --- a/lisp/org-archive.el +++ b/lisp/org-archive.el @@ -164,7 +164,7 @@ an error if LOCATION is not a valid archive location." (unless (string-match "::" location) (error "Invalid archive location: %S" location)) (let ((current-file (buffer-file-name (buffer-base-buffer))) - (file-fmt (substring location nil (match-beginning 0))) + (file-fmt (substring location 0 (match-beginning 0))) (heading-fmt (substring location (match-end 0)))) (cons ;; File part.