소스 검색

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.
Kyle Meyer 6 년 전
부모
커밋
c0f2d5d0bf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lisp/org-archive.el

+ 1 - 1
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.