emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] Is Org Babel an X11 application?
@ 2012-03-02  7:11 Thorsten
  2012-03-02 15:01 ` Eric Schulte
  2012-03-02 15:03 ` Rick Frankel
  0 siblings, 2 replies; 4+ messages in thread
From: Thorsten @ 2012-03-02  7:11 UTC (permalink / raw)
  To: emacs-orgmode


Hi List, 

having figured out that it is really nice to have one emacs daemon
running and then open several emacsclient-windows managed by tmux (a
modern gnu screen) instead of winring.el e.g (a console session)
I tried to use Org Babel with that setting. Only to find out that the
results of code block evaluations seem to be inserted as pictures in the
org document - and need X11 or there is an error message.

Is that true - Org Babel only works in an X11 session and not on the
console? Or is there some configuration/trick to make it work on a
console too? 

-- 
cheers,
Thorsten

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

* Re: [babel] Is Org Babel an X11 application?
  2012-03-02  7:11 [babel] Is Org Babel an X11 application? Thorsten
@ 2012-03-02 15:01 ` Eric Schulte
  2012-03-02 15:03 ` Rick Frankel
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Schulte @ 2012-03-02 15:01 UTC (permalink / raw)
  To: Thorsten; +Cc: emacs-orgmode

Can you provide a minimal example?  I have a similar usage pattern
(emacs daemon and a mixture of X11 and screen Emacs windows) and I have
never experienced what you describe.

Also, try to reproduce with Emacs -Q, maybe you have some inline-image
configuration set.

Best,

Thorsten <quintfall@googlemail.com> writes:

> Hi List, 
>
> having figured out that it is really nice to have one emacs daemon
> running and then open several emacsclient-windows managed by tmux (a
> modern gnu screen) instead of winring.el e.g (a console session)
> I tried to use Org Babel with that setting. Only to find out that the
> results of code block evaluations seem to be inserted as pictures in the
> org document - and need X11 or there is an error message.
>
> Is that true - Org Babel only works in an X11 session and not on the
> console? Or is there some configuration/trick to make it work on a
> console too? 

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

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

* Re: [babel] Is Org Babel an X11 application?
  2012-03-02  7:11 [babel] Is Org Babel an X11 application? Thorsten
  2012-03-02 15:01 ` Eric Schulte
@ 2012-03-02 15:03 ` Rick Frankel
  2012-03-02 17:57   ` Thorsten
  1 sibling, 1 reply; 4+ messages in thread
From: Rick Frankel @ 2012-03-02 15:03 UTC (permalink / raw)
  To: emacs-orgmode

On 02.03.2012 02:11, Thorsten wrote:
> Hi List,
>
> results of code block evaluations seem to be inserted as pictures in 
> the
> org document - and need X11 or there is an error message.
>
> Is that true - Org Babel only works in an X11 session and not on the
> console? Or is there some configuration/trick to make it work on a
> console too?

Are you running babel code which generates images (e.g., dot, mscgen, 
etc.)?
If so, check if =org-display-inline-images= is being executed in the
=org-babel-after-execute-hook=. It automatically replaces the file link
results with the inline image, therefore requiring a GUI emacs.

rick

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

* Re: [babel] Is Org Babel an X11 application?
  2012-03-02 15:03 ` Rick Frankel
@ 2012-03-02 17:57   ` Thorsten
  0 siblings, 0 replies; 4+ messages in thread
From: Thorsten @ 2012-03-02 17:57 UTC (permalink / raw)
  To: emacs-orgmode

Rick Frankel <rick@rickster.com> writes:

Hi Eric, Hi Rick,

> Are you running babel code which generates images (e.g., dot, mscgen,
> etc.)?
> If so, check if =org-display-inline-images= is being executed in the
> =org-babel-after-execute-hook=. It automatically replaces the file link
> results with the inline image, therefore requiring a GUI emacs.

Yes, that was the culprit:
,---------------------------------------------------------------
| org-babel-after-execute-hook is a variable defined in `ob.el'.
| Its value is (org-display-inline-images)
`---------------------------------------------------------------

thanks for the tip
-- 
cheers,
Thorsten

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

end of thread, other threads:[~2012-03-02 17:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-02  7:11 [babel] Is Org Babel an X11 application? Thorsten
2012-03-02 15:01 ` Eric Schulte
2012-03-02 15:03 ` Rick Frankel
2012-03-02 17:57   ` Thorsten

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