[O] Calc in src blocks: No org-babel-execute function for calc!

2014-07-04 Thread Julien Cubizolles
How do I enable calc as a valid source block? The following code

#+BEGIN_SRC calc
2 + 3
#+END_SRC

gives the error in the title.

Julien.




Re: [O] Calc in src blocks: No org-babel-execute function for calc!

2014-07-04 Thread Thorsten Jolitz
Julien Cubizolles j.cubizol...@free.fr writes:

 How do I enable calc as a valid source block? The following code

 #+BEGIN_SRC calc
 2 + 3
 #+END_SRC

 gives the error in the title.

Add it to `org-babel-load-languages', e.g. like this

,
| (org-babel-do-load-languages
|  (quote org-babel-load-languages)
|  (quote ((emacs-lisp . t)
|  (calc . t) ...)))
`

in your init.el or via customize. See

,[ C-h v org-babel-load-languages RET ]
| org-babel-load-languages is a variable defined in `org.el'.
| Its value is shown below.
| 
| Documentation:
| Languages which can be evaluated in Org-mode buffers.
| This list can be used to load support for any of the languages
| below, note that each language will depend on a different set of
| system executables and/or Emacs modes.  When a language is
| loaded, then code blocks in that language can be evaluated
| with `org-babel-execute-src-block' bound by default to C-c
| C-c (note the `org-babel-no-eval-on-ctrl-c-ctrl-c' variable can
| be set to remove code block evaluation from the C-c C-c
| keybinding.  By default only Emacs Lisp (which has no
| requirements) is loaded.
| 
| You can customize this variable.
| 
| This variable was introduced, or its default value was changed, in
| version 24.1 of Emacs.
| 
| 
| Value: ((emacs-lisp . t)
|  (dot . t)
|  (calc . t)
|  (ditaa . t)
|  (R . t)
|  (C . t)
|  (gnuplot . t)
|  (shell . t)
|  (ledger . t)
|  (org . t)
|  (picolisp . t)
|  (clojure . t)
|  (lilypond . t)
|  (plantuml . t)
|  (latex . t))
| 
| Original value was ((emacs-lisp . t))
| 
| [back]
`

-- 
cheers,
Thorsten




Re: [O] unwelcome tmp and ltxpng directories in my home

2014-07-04 Thread Joseph Vidal-Rosset
#+OPTIONS: latex:t
Le   jeu.   03   juil.   2014   à   07:03:37   ,   Joseph   Vidal-Rosset
joseph.vidal.ros...@gmail.com a envoyé ce message:
 Thank you Nick for this helpful email.

 The good news is that I have succeeded to get the png image in /tmp/ltxpng/ 
 directory.

 The bad news is that my gnus persist in saying to me that there is no 
 /tmp/ltxpng/image.png ...  here is the message :

 Loading reftex...done
 Loading reftex...done
 Creating LaTeX Image...
 Failed to create dvi file from /tmp/orgtex6500qb1.tex
 Ispell process killed
 Starting new Ispell process [aspell::fr] ...
 Mark set
 Sending...
 Mark set [2 times]
 mm-insert-file-contents: Opening input file: aucun fichier ou dossier de ce 
 type, /tmp/ltxpng/latex6500dRv_882193079df36c558aa30f292b503a46cfd2aa88.png
 Auto-saving...

 I attach the orgtex6500qb1.tex  and orgtex6500qb1.log

 Again thanks for this help.

 Best regards,

 Jo.

Hello Nick, hi everybody,

Because I just have seen the solution to this problem, I inform you that
this bug was  made by \usepacakge{minted} in my setup.  I have deleted
all references to minted in my ~/.emacs.d/init.el and I have succeeded
to sent to me an email with a formula in a png image. 

Like the following one: 

$$ A \to B $$

I hope it will help also somebody else, maybe. 

Bye bye,

Jo. 


[O] [BABEL] Can all languages deal with multi-line headers?

2014-07-04 Thread Thorsten Jolitz

Hi List, 

I wonder if I can assume that all ob-xxx.el languages, even those
written before the new parser/exporter framework existed, know how to
deal with multi-line headers like:

,
| #+name: foo
| #+header_args: :var x=bar
| #+begin_src lang
| ...
| #+end_src
`

(I would think that argument parsing is done by the framework-core and
was thus updated once and for all languages with Org 8+, but want to be
sure). 

-- 
cheers,
Thorsten




Re: [O] Problem with org-mode after upgradiing to org 8

2014-07-04 Thread Roland Everaert
Hi,

After further investigation, it is the call to the function
(org-agenda-to-appt) inside the function bh/org-agenda-to-appt that is
causing the error.

The body of the function:

; Erase all reminders and rebuilt reminders for today from the agenda
(defun bh/org-agenda-to-appt ()
  (interactive)
  (setq appt-time-msg-list nil)
 (org-agenda-to-appt)
)


I will deactivate the call to bh/org-agenda-to-appt, so I can have a normal
life again and use emacs and org-mode without any problem. I will review
and clean my configuration when times permit.

I am anyway curious to know why that function call generate such error.

Thanks for your help,


Roland.




On Thu, Jul 3, 2014 at 10:10 AM, Roland Everaert reveatw...@gmail.com
wrote:

 Hi John,

 I am using Bernt's configuration (at least a part of it) for years without
 problems until I switch to org 8.

 I hame commented most of my init.el file and uncomment bits of
 configuration lines one at a time. and I have found where is located the
 problem. I have know to investigate why it is a problem.

 The offending line is (bh/org-agenda-to-appt), this is one of the function
 from the configuration of Bernt, so I have now to check my version against
 the one on his page to see if he doesn't update it.

 And to answer your question, the loaded version of org-mode is Org-mode
 version beta_8.3 (beta_8.3-16-g16c71d6 @
 /home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/)

 I will also perform a make clean  make of my installation of org-mode
 just in case some their is some garbage left from previous version.


 Thanks for your help,


 Roland.





 On Tue, Jul 1, 2014 at 5:55 PM, John Hendy jw.he...@gmail.com wrote:

 On Tue, Jul 1, 2014 at 5:04 AM, Roland Everaert reveatw...@gmail.com
 wrote:
  I have upgraded using git on a Linux fedora 20 64 bit.
 
  I perform the following commands from the directory of org-mode:
 
  make clean
  git pull
  make

 I usually do git pull  make clean  make, but don't know if that
 makes a difference, so that's probably fine.

  I have also read the following page:
  http://orgmode.org/worg/org-8.0.html
 
  And search for all variables in my configuration that start with
 org-export,
  but I have none of them.

 Well, I'm interested in the original error, Autoloading failed to
 define function org-element-cache-reset, not anything to do with
 org-export. You should be able to start emacs without any errors, and
 I think that's the primary thing to troubleshoot first.

  My configuration is heavily inspired by this article:
  http://doc.norang.ca/org-mode.html

 Bernt's page is one of the most advanced orgmode setups documented
 that I've ever seen. I wouldn't get too deep into that before figuring
 out what's going on at the basic level.

 
  I have quickly browsed it in case some specific changes needs to be
 done,
  but the only ones concernes the exporters that I have not configured
 yet.
 
  Which lines from the my ~/.emacs.d/init.el, would you like to see?

 How are you telling Emacs where Orgmode lives? My suggestion would be
 the following:

 Create a minimal .emacs file with just the following (change path to
 wherever your orgmode git repo is):

 (add-to-list 'load-path ~/path/to/org.git/lisp/)

 From a command line, run:

 $ emacs -Q

 Then from Emacs, run:

 M-x load-file [press enter] /path/to/minimal-config/from/above [press
 enter]

 Then run:

 M-x org-version

 You should get something like this:

 Org-mode version 8.2.6 (release_8.2.6-950-ge599e8 @
 /home/jwhendy/.elisp/org.git/lisp/)

 If you don't get any errors, close emacs, copy some lines from your
 real config into that minimal config, and repeat the process (emacs
 -Q - M-x load-file...) until you get the error again. Then you'll
 know what's causing it. Doing it this way helps know that you've at
 least got the right Org-mode loaded (not the one built in to your
 Emacs), and from there we can track the issue.

 Once that's all set, getting exporters going is a pretty simple
 matter. I have this in my .emacs:

 (require 'ox-latex)
 (require 'ox-html)
 (require 'ox-beamer)
 (require 'ox-md)
 (require 'ox-odt)
 (require 'ox-taskjuggler)

 (add-to-list 'org-latex-classes
  '(beamer
\\documentclass\[presentation\]\{beamer\}
(\\section\{%s\} . \\section*\{%s\})
(\\subsection\{%s\} . \\subsection*\{%s\})
(\\subsubsection\{%s\} . \\subsubsection*\{%s\})))

 That handles it all for me.

 Also, please keep cc'ing the Org list. They know much more than I do,
 and as you provide more information can probably help you better than
 I can as well.


 Good luck!
 John


 
 
  Roland.
 
 
 
 
 
 
  On Mon, Jun 30, 2014 at 1:39 PM, John Hendy jw.he...@gmail.com wrote:
 
 
  On Jun 30, 2014 4:48 AM, Roland Everaert reveatw...@gmail.com
 wrote:
  
   Second part of the message:
  
   Information from M-x org-version:
  
   Org-mode version beta_8.3 (beta_8.3-16-g16c71d6 @
   

Re: [O] MobileOrg

2014-07-04 Thread Nick Dokos
Aric Gregson aorc...@mac.com writes:

 That's what I was looking for. Didn't realize I could do that...



Can you please include some context in your replies? It should be
possible to figure out what you are talking about without having
to retrieve the whole thread.

Thanks!
-- 
Nick




Re: [O] MobileOrg

2014-07-04 Thread Nick Dokos
Aric Gregson aorc...@mac.com writes:

 That's what I was looking for. Didn't realize I could do that...


So, after I sent my please include context reply, I went back and
did retrieve the thread and to my surprise, I found out you were
replying to a previous suggestion of mine :-)

So, yes, please: include context!
-- 
Nick




Re: [O] Generating indexes

2014-07-04 Thread Nick Dokos
John Tait johngt...@gmail.com writes:

 Is is possible to produce an index using lines beginning with #+INDEX
 in usual HTML or PDF export without setting up a publishing project?


It should be possible to use the machinery that publishing uses in the
HTML case, but I haven't tried.

For PDF, it is fairly easy: you have to add some stuff in the preamble
and then add a line to print the index - like this:

--8---cut here---start-8---
#+LATEX_HEADER: \usepackage{makeidx}
#+LATEX_HEADER: \makeindex

* foo
#+INDEX: this
this

#+LATEX: \printindex
--8---cut here---end---8---

You have to make sure that your org-latex-pdf-process runs the
makeindex program. I use texi2dvi and it does that automatically.
I presume latexmk would also. But if you use the default of three calls
to pdflatex, you will need to modify it. Do 

C-h v org-latex-pdf-process RET

for more info.
-- 
Nick




Re: [O] Problem with org-mode after upgradiing to org 8

2014-07-04 Thread John Hendy
On Fri, Jul 4, 2014 at 5:55 AM, Roland Everaert reveatw...@gmail.com wrote:
 Hi,

 After further investigation, it is the call to the function
 (org-agenda-to-appt) inside the function bh/org-agenda-to-appt that is
 causing the error.

 The body of the function:

 ; Erase all reminders and rebuilt reminders for today from the agenda
 (defun bh/org-agenda-to-appt ()
   (interactive)
   (setq appt-time-msg-list nil)
  (org-agenda-to-appt)
 )

I know approximately nothing about elisp... but my intuitive
interpretation is that it's setting the variable appt-time-msg-list to
the value nil. When I do M-x help RET appt-msg-[TAB], I don't get any
completions listed. Does that variable still exist?

When googling that variable, I find evidence of people referring to
it, but I'm not sure it's built into emacs -- are you sure you don't
need to add something else, such as appt.el?
- http://www.emacswiki.org/emacs-en/appt.el


John



 I will deactivate the call to bh/org-agenda-to-appt, so I can have a normal
 life again and use emacs and org-mode without any problem. I will review and
 clean my configuration when times permit.

 I am anyway curious to know why that function call generate such error.

 Thanks for your help,


 Roland.




 On Thu, Jul 3, 2014 at 10:10 AM, Roland Everaert reveatw...@gmail.com
 wrote:

 Hi John,

 I am using Bernt's configuration (at least a part of it) for years without
 problems until I switch to org 8.

 I hame commented most of my init.el file and uncomment bits of
 configuration lines one at a time. and I have found where is located the
 problem. I have know to investigate why it is a problem.

 The offending line is (bh/org-agenda-to-appt), this is one of the function
 from the configuration of Bernt, so I have now to check my version against
 the one on his page to see if he doesn't update it.

 And to answer your question, the loaded version of org-mode is Org-mode
 version beta_8.3 (beta_8.3-16-g16c71d6 @
 /home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/)

 I will also perform a make clean  make of my installation of org-mode
 just in case some their is some garbage left from previous version.


 Thanks for your help,


 Roland.





 On Tue, Jul 1, 2014 at 5:55 PM, John Hendy jw.he...@gmail.com wrote:

 On Tue, Jul 1, 2014 at 5:04 AM, Roland Everaert reveatw...@gmail.com
 wrote:
  I have upgraded using git on a Linux fedora 20 64 bit.
 
  I perform the following commands from the directory of org-mode:
 
  make clean
  git pull
  make

 I usually do git pull  make clean  make, but don't know if that
 makes a difference, so that's probably fine.

  I have also read the following page:
  http://orgmode.org/worg/org-8.0.html
 
  And search for all variables in my configuration that start with
  org-export,
  but I have none of them.

 Well, I'm interested in the original error, Autoloading failed to
 define function org-element-cache-reset, not anything to do with
 org-export. You should be able to start emacs without any errors, and
 I think that's the primary thing to troubleshoot first.

  My configuration is heavily inspired by this article:
  http://doc.norang.ca/org-mode.html

 Bernt's page is one of the most advanced orgmode setups documented
 that I've ever seen. I wouldn't get too deep into that before figuring
 out what's going on at the basic level.

 
  I have quickly browsed it in case some specific changes needs to be
  done,
  but the only ones concernes the exporters that I have not configured
  yet.
 
  Which lines from the my ~/.emacs.d/init.el, would you like to see?

 How are you telling Emacs where Orgmode lives? My suggestion would be
 the following:

 Create a minimal .emacs file with just the following (change path to
 wherever your orgmode git repo is):

 (add-to-list 'load-path ~/path/to/org.git/lisp/)

 From a command line, run:

 $ emacs -Q

 Then from Emacs, run:

 M-x load-file [press enter] /path/to/minimal-config/from/above [press
 enter]

 Then run:

 M-x org-version

 You should get something like this:

 Org-mode version 8.2.6 (release_8.2.6-950-ge599e8 @
 /home/jwhendy/.elisp/org.git/lisp/)

 If you don't get any errors, close emacs, copy some lines from your
 real config into that minimal config, and repeat the process (emacs
 -Q - M-x load-file...) until you get the error again. Then you'll
 know what's causing it. Doing it this way helps know that you've at
 least got the right Org-mode loaded (not the one built in to your
 Emacs), and from there we can track the issue.

 Once that's all set, getting exporters going is a pretty simple
 matter. I have this in my .emacs:

 (require 'ox-latex)
 (require 'ox-html)
 (require 'ox-beamer)
 (require 'ox-md)
 (require 'ox-odt)
 (require 'ox-taskjuggler)

 (add-to-list 'org-latex-classes
  '(beamer
\\documentclass\[presentation\]\{beamer\}
(\\section\{%s\} . \\section*\{%s\})
(\\subsection\{%s\} . \\subsection*\{%s\})

Re: [O] A simple org tangle and weave makefile

2014-07-04 Thread Rainer M Krug
Following an older thread.

I would like to use a make file to export my document, and I am
essentially following Eric's suggestion. But I have some problems which
I did not manage to solve:

html: I would like to have syntax highlighting in the document, but I
don't manage. I have added the following

,
| ;;Initialization of my org version
| ;; Enable org languages
| (org-babel-do-load-languages
|  'org-babel-load-languages
|  '((R . t)
|(latex . t)
|(sh . t)
|(plantuml . t)
|(emacs-lisp . t)
|))
| 
| ;; Setup org-ref
| (require 'reftex-cite)
| (require 'dash)
| (org-babel-load-file ~/.emacs.d/org-ref/org-ref.org)
| (setq reftex-default-bibliography '(~/Documents/Mendeley/bibliography.bib))
| (setq org-ref-default-bibliography '(~/Documents/Mendeley/bibliography.bib))
| 
| (setq org-src-fontify-natively t)
`

to a minimal init.el which I use to initialize the emacs session using
the following in the make file:

,
| PROJECT=prodMixStands
| EMACS=emacs
| BATCH_EMACS=$(EMACS) --batch -Q --no-desktop -l ~/.emacs.d/init.minimal.el
| html:
| $(BATCH_EMACS) $(PROJECT).org -f org-html-export-to-html
`

The result is still without syntax highlighting - what am I missing?

Thanks

Rainer



Eric Schulte schulte.e...@gmail.com writes:

 Grant Rettke g...@wisdomandwonder.com writes:

 Hi,

 My goals was to have a simple makefile to tangle and weave a document;
 so org-mk was out of scope.

 Just wondering; how could I have done it better?

 ##
 INIT=.emacs.el

 $(INIT): TC3F.org
 time emacs --batch --no-init-file --load .org-mode.emacs.el
 --find-file TC3F.org --funcall org-babel-tangle --kill

 TC3F.html: $(INIT)
 time emacs --batch --no-init-file --load .org-mode.emacs.el
 --find-file TC3F.org --funcall org-html-export-to-html --kill

 clean:
 rm $(INIT)
 rm TC3F.html
 ##

 Kind regards,


 I don't know if this is better, but its closer to what I use locally.


 EMACS=emacs
 BATCH_EMACS=$(EMACS) --batch -Q -l init.el

 %.html: %.org
   $(BATCH_EMACS) $*.org -f org-html-export-to-html

 %.tex: %.org init.el
   $(BATCH_EMACS) $*.org -f org-latex-export-to-latex

 %.el: %.org init.el
   $(BATCH_EMACS) $*.org -f org-babel-tangle

 # two fancier alternatives to the above which provide a default file
 # name and encode language information

 %.el: %.org init.el
   $(BATCH_EMACS) $*.org \
   --eval '(org-babel-tangle nil $@ (quote emacs-lisp))'

 %.sh: %.org init.el
   $(BATCH_EMACS) $*.org \
   --eval '(org-babel-tangle nil $@ (quote bash))'



 Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi
 g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
 “Wisdom begins in wonder.” --Socrates
 ((λ (x) (x x)) (λ (x) (x x)))
 “Life has become immeasurably better since I have been forced to stop
 taking it seriously.” --ThompsonH


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpLFli_mL4Zy.pgp
Description: PGP signature


[O] source code block language 'makefile' and listings package

2014-07-04 Thread Rainer M Krug
Hi

I used the source block language 'makefile'

#+begin_src R makefile
...
#+end_src

and now I would like top export this block to html. I am using the
listings package for this, and it supports the syntax, but the
language is called 'make', while org uses 'makefile'

Is there a way of telling the tex exporter to export 'makefile' blocks
as language 'make', or can I easily tell listings that the language
'makefile' is equal to 'make'?

Thanks,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpm5fu70SRYl.pgp
Description: PGP signature


Re: [O] source code block language 'makefile' and listings package

2014-07-04 Thread Thomas S. Dye
Aloha Rainer,

Rainer M Krug rai...@krugs.de writes:

 Hi

 I used the source block language 'makefile'

 #+begin_src R makefile
 ...
 #+end_src

 and now I would like top export this block to html. I am using the
 listings package for this, and it supports the syntax, but the
 language is called 'make', while org uses 'makefile'

 Is there a way of telling the tex exporter to export 'makefile' blocks
 as language 'make', or can I easily tell listings that the language
 'makefile' is equal to 'make'?

You can configure the listings package with the commands
\lstnewenvironment and \lstset.  There is a worked example here:

http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-12-4

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] babel evaluation of python and utf-8

2014-07-04 Thread Alan Schmitt
On 2014-06-26 18:07, Daniel Clemente n142...@gmail.com writes:

 
 #+BEGIN_SRC python :prefix # -*- coding: utf-8 -*- :results output
 print(u'é')
 #+END_SRC
 

 I also see the same problem here. Even if you include   # -*- coding: utf-8 
 -*-as the first line.

 Shouldn't org-babel already be using utf-8 instead of ASCII for input/output?

 By the way, with Python3 it doesn't happen since it doesn't need the 
 coding:utf-8 declaration anymore.

Should this be considered a bug, or do we require python 3 for such
things?

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


pgpI513c3HbyQ.pgp
Description: PGP signature


[O] How do I review a day

2014-07-04 Thread Robert Inder
I'm starting to use Org mode's time logging stuff.

I'd like to be able to review everything I have worked on today.

Not the total hours, but each individual burst of work.

So an ordered list of the CLOCK entries would be fine.

I'm sure this should be possible, but I can't see how to do it...

Is there a way?

Robert.

-- 
Robert Inder,0131 229 1052 / 07808 492 213
Interactive Information Ltd,   3, Lauriston Gardens, Edinburgh EH3 9HH
Registered in Scotland, Company no. SC 150689
   Interactions speak louder than words



Re: [O] How do I review a day

2014-07-04 Thread Russell Adams
On Fri, Jul 04, 2014 at 06:46:58PM +0100, Robert Inder wrote:
 I'm starting to use Org mode's time logging stuff.

 I'd like to be able to review everything I have worked on today.

 Not the total hours, but each individual burst of work.

 So an ordered list of the CLOCK entries would be fine.

 I'm sure this should be possible, but I can't see how to do it...

 Is there a way?

 Robert.

Robert,

Agenda view with log mode ('l' key in agenda).

I also suggest you use inactive timestamps, then they can be added to
the log using '[' while in the agenda view.

This is very similar to my workstyle. With all of my professional
projects I keep a project journal. My todos and notes are in the
outline, and each time I change tasks, leave and return to the
keyboard, or feel it needed I press F9 which I have configured to
insert an inactive timestamp. Thus my notes files are riddled with
timestamps, but they don't get in the way as I tend to put them
between paragraphs.

Inevitably when someone asks how my hours were used, I can pull up my
agenda with logging and inactive timestamps and export to html. This
makes it easy to provide documentation to justify my time. It also
lets me track what was going on if and when a problem occurred.

Only with Org!

One note on using inactive timestamps vs active. The active timestamps
always show up in the agenda, and are used as appointment
reminders. The inactive ones you have to choose to include which is
why I use them.

My F9 macro:

 ;; Insert immediate timestamp
 (define-key global-map (kbd f9)
   '(lambda () (interactive)
  (when (eq major-mode 'org-mode)
(org-insert-time-stamp nil t t)
(insert \n

Enjoy!

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3



[O] Prompting for user name when running block on remote machine

2014-07-04 Thread Andreas
Hi,

I was running in to an issue when trying to run a piece of code on a remote
machine.
I run the following:
#+begin_src https://plus.google.com/s/%23%2Bbegin_src sh :dir (concat
/ssh: (read-string login name: ) @some.other.place:)
 echo $USER
#+end_src https://plus.google.com/s/%23%2Bend_src

the idea here was that the code block would prompt the user for the login
name and proceed to evalue the code on the remote machine. This works as I
want it.
However now when I try to edit the code in the block and press TAB for
indentation the block prompts me again for a user name: twice.

I'm not sure how to go further from here or why this last thing happens.
I'm guessing that the header string is read when the code block tries to
determine what code is in there but is there a way to get the behaviour I
want without this side effect?

Regards
Andreas