[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/orgalist cac0393 2/2: Compatibility with old Org releas
From: |
Nicolas Goaziou |
Subject: |
[elpa] externals/orgalist cac0393 2/2: Compatibility with old Org releases |
Date: |
Sun, 6 May 2018 07:55:41 -0400 (EDT) |
branch: externals/orgalist
commit cac039310638e4d8684cc9e4eedcf93e9fadad42
Author: Nicolas Goaziou <address@hidden>
Commit: Nicolas Goaziou <address@hidden>
Compatibility with old Org releases
* orgalist.el (orgalist-send-list): Add compatibility layer with Org <
9.0 (included in Emacs 26.1).
---
orgalist.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/orgalist.el b/orgalist.el
index d6e1635..11e96fa 100644
--- a/orgalist.el
+++ b/orgalist.el
@@ -1026,7 +1026,11 @@ for this list."
(match-beginning 0)))
(plain-list (save-excursion
(goto-char top-point)
- (org-list-to-lisp))))
+ ;; FIXME: Compatibility layer. Remove when
+ ;; we require at least Emacs 26.1.
+ (funcall (if (fboundp 'org-list-to-lisp)
+ 'org-list-to-lisp)
+ 'org-list-parse-list))))
(unless (fboundp transform)
(error "No such transformation function %s" transform))
(let ((txt (funcall transform plain-list)))