emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] Exporting results in "Wrong type argument" when "+CALL" is used
@ 2021-01-30 23:10 Rodrigo Morales
  2021-01-30 23:21 ` Rodrigo Morales
  2021-01-31 20:24 ` ccberry--- via General discussions about Org-mode.
  0 siblings, 2 replies; 3+ messages in thread
From: Rodrigo Morales @ 2021-01-30 23:10 UTC (permalink / raw)
  To: emacs-orgmode


As the subject states, executing some exporting commands (see list in
step 2 below) results in an error when there is at least one "#+CALL"
statement.

The backtrace is shown below.

#+begin_example
Debugger entered--Lisp error: (wrong-type-argument consp nil)
  org-babel-exp-code(nil lob)
  org-babel-exp-do-export(nil lob)
  org-babel-exp-process-buffer()
  org-export-as(md nil nil nil nil)
  org-export-to-buffer(md "*Org MD Export*" nil nil nil nil nil #f(compiled-function () #<bytecode 0x156896a2a639>))
  org-md-export-as-markdown(nil nil nil)
  (lambda (a s v b) (org-md-export-as-markdown a s v))(nil nil nil nil)
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)
#+end_example

You can reproduce this bug by

1. Open the file =main.org= by loading the =init.el= file (see
   attachments). You can accomplish this by executing the following
   command.

#+begin_src sh
emacs -Q -l ~/Downloads/init.el ~/Downloads/main.org
#+end_src

2. Execute any of the following
  + =org-md-export-to-markdown=.
  + =org-latex-export-as-latex=.
  + =org-html-export-as-html=.

3. The error might occur.

I'm currently using GNU Emacs 27.1

-- 
Greetings,
Rodrigo Morales.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [bug] Exporting results in "Wrong type argument" when "+CALL" is used
  2021-01-30 23:10 [bug] Exporting results in "Wrong type argument" when "+CALL" is used Rodrigo Morales
@ 2021-01-30 23:21 ` Rodrigo Morales
  2021-01-31 20:24 ` ccberry--- via General discussions about Org-mode.
  1 sibling, 0 replies; 3+ messages in thread
From: Rodrigo Morales @ 2021-01-30 23:21 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 90 bytes --]


I forgot including the attachments, they are included in this reply.

Sorry about that.


[-- Attachment #2: init.el --]
[-- Type: text/plain, Size: 136 bytes --]

(require 'ox-md)

(setq org-confirm-babel-evaluate nil)

(org-babel-do-load-languages 'org-babel-load-languages
			     '((shell . t)))

[-- Attachment #3: main.org --]
[-- Type: application/vnd.lotus-organizer, Size: 142 bytes --]

[-- Attachment #4: Type: text/plain, Size: 33 bytes --]


-- 
Greetings,
Rodrigo Morales.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [bug] Exporting results in "Wrong type argument" when "+CALL" is used
  2021-01-30 23:10 [bug] Exporting results in "Wrong type argument" when "+CALL" is used Rodrigo Morales
  2021-01-30 23:21 ` Rodrigo Morales
@ 2021-01-31 20:24 ` ccberry--- via General discussions about Org-mode.
  1 sibling, 0 replies; 3+ messages in thread
From: ccberry--- via General discussions about Org-mode. @ 2021-01-31 20:24 UTC (permalink / raw)
  To: Rodrigo Morales; +Cc: emacs-orgmode@gnu.org



> On Jan 30, 2021, at 3:10 PM, Rodrigo Morales <moralesrodrigo1100@gmail.com> wrote:
> 
> 
> As the subject states, executing some exporting commands (see list in
> step 2 below) results in an error when there is at least one "#+CALL"
> statement.
> 
> The backtrace is shown below.
> 
> #+begin_example
> Debugger entered--Lisp error: (wrong-type-argument consp nil)
>  org-babel-exp-code(nil lob)

[snip]

There is a malformed line:

#+CALL: foo

and M-x org-lint fails to find it. See (info "(org) Evaluating Code Blocks")

Using  

#+CALL: foo()

works.

Curiously enough, placing that line at the very end of file (i.e. with no trailing newline) works.

HTH,

Chuck




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-31 20:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-30 23:10 [bug] Exporting results in "Wrong type argument" when "+CALL" is used Rodrigo Morales
2021-01-30 23:21 ` Rodrigo Morales
2021-01-31 20:24 ` ccberry--- via General discussions about Org-mode.

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