emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <eric.schulte@gmx.com>
To: Diep Pham Van <imeo@favadi.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Error while editing sh source code.
Date: Fri, 08 Jun 2012 12:28:58 -0600	[thread overview]
Message-ID: <874nqlk68l.fsf@gmx.com> (raw)
In-Reply-To: <20120608171956.0a04d175@favadi.com> (Diep Pham Van's message of "Fri, 8 Jun 2012 17:19:56 +0700")

Diep Pham Van <imeo@favadi.com> writes:

> I want to write some shell script in my org file, so I add these line
> in it.
>
>    #+name: random line
>    #+begin_src sh
>      cat filename.txt | sort --random-sort | sed -e '1!d'
>    #+end_src
>
> But when I put cursor in src block and press `C-c '`, emacs show that
> error:
>    byte-code: Language mode `sh-mode' fails with: "Invalid file-name"
>
> The other modes (at least python, sql) is run without problem.
>
> Can anybody show me how to fix this?
>
> My emacs version: 23.4.1
> My org-mode version: 7.8.11
>
> And this is my config: https://github.com/favadi/dotemacs

I am able to edit the above with C-' and run it successfully.  However
you should note that spaces are not allowed in code block names, so when
I run this code block my results are simply named "random".

Please try the above with emacs started with the "-Q" option to see if
the problem lies somewhere in your personal configuration.

Thanks,

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

      reply	other threads:[~2012-06-08 18:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-08 10:19 Error while editing sh source code Diep Pham Van
2012-06-08 18:28 ` Eric Schulte [this message]

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=874nqlk68l.fsf@gmx.com \
    --to=eric.schulte@gmx.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=imeo@favadi.com \
    /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).