Current state of the main branch is not compatible with Emacs-26.
Loading /home/ubuntu/src/org-mode/lisp/org-compat.el (source)... Eager macro-expansion failure: (wrong-number-of-arguments (2 . 2) 6)It is again `setq-local' call with multiple variables. See the attached patch that splits it into several parts.
From 9bb21fe2354206d3edf0cc7e145f9d4c5a7bd2ec Mon Sep 17 00:00:00 2001 From: Max Nikulin <maniku...@gmail.com> Date: Fri, 11 Aug 2023 22:13:17 +0700 Subject: [PATCH] org-macs.el: Fix Emacs-26 compatibility lisp/org-macs.el (org-string-width): Avoid multiple variables in `setq-local' since it is not supported by Emacs-26. The code caused the issue was added in 0c29f53ab8723. --- lisp/org-macs.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 9533d7b07..442c607d7 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -1117,9 +1117,9 @@ (defun org-string-width (string &optional pixels) result))) (current-char-property-alias-alist char-property-alias-alist)) (with-current-buffer (get-buffer-create " *Org string width*") - (setq-local display-line-numbers nil - line-prefix nil - wrap-prefix nil) + (setq-local display-line-numbers nil) + (setq-local line-prefix nil) + (setq-local wrap-prefix nil) (setq-local buffer-invisibility-spec (if (listp current-invisibility-spec) (mapcar (lambda (el) -- 2.25.1