emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Diep Pham Van <imeo@favadi.com>
To: emacs-orgmode@gnu.org
Subject: Error while editing sh source code.
Date: Fri, 8 Jun 2012 17:19:56 +0700	[thread overview]
Message-ID: <20120608171956.0a04d175@favadi.com> (raw)

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


-- 
PHẠM Văn Điệp

h  : http://favadi.com
e  : imeo@favadi.com
m  : +84 984 339 841
                       _
ASCII ribbon campaign ( )
 - against HTML email  X
             & vCards / \

             reply	other threads:[~2012-06-08 10:20 UTC|newest]

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

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=20120608171956.0a04d175@favadi.com \
    --to=imeo@favadi.com \
    --cc=emacs-orgmode@gnu.org \
    /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).