emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] org parser error [9.6.1 (9.6.1-g351279 @ /home/mah/.emacs.d/st


From: Ihor Radchenko
Subject: Re: [BUG] org parser error [9.6.1 (9.6.1-g351279 @ /home/mah/.emacs.d/straight/build/org/)]
Date: Sun, 26 Feb 2023 10:33:57 +0000

"Mark A. Hershberger" <mah@everybody.org> writes:

> 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)
> ...
> 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)

Canceled.

You are re-defining a built-in Elisp function `count-lines'. This
function is used by Org parser. That's why you are getting an error.

Re-defining built-in functions is generally dangerous. You need to know
what you are doing.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]