From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diep Pham Van Subject: Error while editing sh source code. Date: Fri, 8 Jun 2012 17:19:56 +0700 Message-ID: <20120608171956.0a04d175@favadi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScwId-0007Mj-5T for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 06:20:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScwIb-0002fX-3L for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 06:20:10 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:60058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScwIa-0002d5-TL for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 06:20:09 -0400 Received: by dakp5 with SMTP id p5so2377904dak.0 for ; Fri, 08 Jun 2012 03:20:04 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 --=20 PH=E1=BA=A0M V=C4=83n =C4=90i=E1=BB=87p h : http://favadi.com e : imeo@favadi.com m : +84 984 339 841 _ ASCII ribbon campaign ( ) - against HTML email X & vCards / \