From: "Mark A. Hershberger" <mah@everybody.org>
To: emacs-orgmode@gnu.org
Subject: [BUG] org parser error [9.6.1 (9.6.1-g351279 @ /home/mah/.emacs.d/straight/build/org/)]
Date: Sat, 25 Feb 2023 23:13:32 -0500 [thread overview]
Message-ID: <871qmdhxn7.fsf@everybody.org> (raw)
Loading the following file with "emacs -Q", I'm un-able to type 'C-c
C-c' in the source block to execute it.
#+begin_src elisp
(defun count-lines (dir)
"Number of lines in *.php files in a DIR."
(let ((extdir (concat "../mediawiki/extensions/" dir)))
(if (not (f-directory-p extdir))
""
(let ((files (directory-files-recursively extdir "\\.php$"))
(count 0))
(dolist (file files)
(setq count (+ count (-reduce '+ (mapcar 'file-lines (list file))))))
count))))
#+end_src
When I do the following error appears:
⛔ Warning (org-element-cache): org-element--cache: Org parser error in tmp.org::4740. Resetting.
The error was: (wrong-number-of-arguments (lambda (dir) "Number of lines in *.php files in a DIR." (let ((extdir (concat "../mediawiki/extensions/" dir))) (if (not (f-directory-p extdir)) "" (let ((files (directory-files-recursively extdir "\\.php$")) (count 0)) (dolist (file files) (setq count (+ count (-reduce '+ (mapcar 'file-lines (list file)))))) count)))) 2)
Backtrace:
nil
Please report this to Org mode mailing list (M-x org-submit-bug-report).
Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.16.0)
of 2023-02-23
Package: Org mode version 9.6.1 (9.6.1-g351279 @ /home/mah/.emacs.d/straight/build/org/)
next reply other threads:[~2023-02-26 4:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-26 4:13 Mark A. Hershberger [this message]
2023-02-26 10:33 ` [BUG] org parser error [9.6.1 (9.6.1-g351279 @ /home/mah/.emacs.d/straight/build/org/)] Ihor Radchenko
2023-02-26 10:38 ` Ihor Radchenko
2023-02-26 14:54 ` Mark A. Hershberger
2023-02-26 15:06 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871qmdhxn7.fsf@everybody.org \
--to=mah@everybody.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).