From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: bug in exporter (org-babel-exp-process-buffer)
Date: Tue, 10 Jun 2014 14:11:45 -0700 [thread overview]
Message-ID: <alpine.OSX.2.00.1406101345300.4023@charles-berrys-macbook.local> (raw)
In-Reply-To: <871tuwilfs.fsf@selenimh.mobile.lan>
On Tue, 10 Jun 2014, Nicolas Goaziou wrote:
> Hello,
>
> Charles Berry <ccberry@ucsd.edu> writes:
>
>> The use of `org-confirm-babel-evaluate' as a function breaks inline src
>> blocks just as was described in this thread from last year:
>>
>> http://lists.gnu.org/archive/html/emacs-orgmode/2013-11/msg00669.html
>>
>
> [...]
>
>> I believe that Eric's patch or something like it would fix the current
>> problem in org-babel-exp-process-buffer:
>>
>> (inline-src-block
>> - (let* ((info (org-babel-parse-inline-src-block-match))
>> + (let* ((head (match-beginning 0))
>> + (info (append (org-babel-parse-inline-src-block-match)
>> + (list nil nil head)))
>> (params (nth 2 info)))
>> (setf (nth 1 info)
>>
>> Can this be fixed, please?
>
> I tried to apply these changes in maint, but I see no difference with
> current behaviour when exporting the ECM provided in the thread above.
> Am I missing something?
>
Sorry, my bad.
`:exports results' needs to be added to the src block:
#+BEGIN_SRC emacs-lisp :exports results
[...]
When run with master, after the prompt for evaluating the src block, an
error is thrown. *Messages* shows
,----
| Evaluate this emacs-lisp code block on your system? (y or n) y
| executing Emacs-Lisp code block...
| Code block evaluation complete.
| cond: Wrong type argument: integer-or-marker-p, nil
`----
evidently the result of (goto-char ,head) with nil as the value of head
when trying to evaluate src_R{...}.
Adding the lines results in correct export with no prompt at the
(later) inline src block.
HTH,
Chuck
next prev parent reply other threads:[~2014-06-10 21:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-10 0:22 bug in exporter (org-babel-exp-process-buffer) Charles Berry
2014-06-10 20:00 ` Nicolas Goaziou
2014-06-10 21:11 ` Charles C. Berry [this message]
2014-06-11 20:15 ` Nicolas Goaziou
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=alpine.OSX.2.00.1406101345300.4023@charles-berrys-macbook.local \
--to=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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).