[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 41f7609 67/85: ob-core: Make recent change compatib
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 41f7609 67/85: ob-core: Make recent change compatible with older Emacs versions |
Date: |
Mon, 27 Sep 2021 15:57:52 -0400 (EDT) |
branch: externals/org
commit 41f76092c66cb26f33033143455e0837b9cf4a78
Author: Kyle Meyer <kyle@kyleam.com>
Commit: Kyle Meyer <kyle@kyleam.com>
ob-core: Make recent change compatible with older Emacs versions
* lisp/ob-core.el (org-babel-disassemble-tables): Avoid length> for
compatibility with Emacs versions before 28.
length> and friends were added to Emacs in 0f790464d5 (Add new
predicates for sequence lengths, 2020-12-27), which hasn't yet made it
into a release.
---
lisp/ob-core.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index 3d271f6..b039d32 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -1713,7 +1713,9 @@ of the vars, cnames and rnames."
(lambda (var)
(when (proper-list-p (cdr var))
(when (and (not (equal colnames "no"))
- (or colnames (and (length> (cdr var) 1)
+ ;; Compatibility note: avoid `length>', which
+ ;; isn't available until Emacs 28.
+ (or colnames (and (> (length (cdr var)) 1)
(eq (nth 1 (cdr var)) 'hline)
(not (member 'hline (cddr (cdr
var)))))))
(let ((both (org-babel-get-colnames (cdr var))))
- [elpa] externals/org 4651121 45/85: Merge branch 'bugfix', (continued)
- [elpa] externals/org 4651121 45/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org 98fd6d5 56/85: Remove references to deleted packages, ELPA Syncer, 2021/09/27
- [elpa] externals/org 6300e0e 84/85: test-org-protocol.el: Decode "+" to " " tests, ELPA Syncer, 2021/09/27
- [elpa] externals/org 4b7d80c 50/85: Add faces to improve contextuality of agenda views, ELPA Syncer, 2021/09/27
- [elpa] externals/org d74a824 54/85: org.el (org-fontify-extend-region): Fix headline fontification in edge case, ELPA Syncer, 2021/09/27
- [elpa] externals/org 54c2327 49/85: Allow :var header args to be assigned to cons cells, ELPA Syncer, 2021/09/27
- [elpa] externals/org e0535fa 39/85: ob-sql.el (org-babel-expand-body:sql): Support :prologue :epilogue, ELPA Syncer, 2021/09/27
- [elpa] externals/org ef66170 42/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org 578d99b 57/85: lisp/ob-tangle.el: Add variable declaration, ELPA Syncer, 2021/09/27
- [elpa] externals/org c21dceb 61/85: lisp/org.el: Fix some compiler warnings, ELPA Syncer, 2021/09/27
- [elpa] externals/org 41f7609 67/85: ob-core: Make recent change compatible with older Emacs versions,
ELPA Syncer <=
- [elpa] externals/org c12a159 78/85: ORG-NEWS: Mention proportional image width display, ELPA Syncer, 2021/09/27