From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hill Newsgroups: gmane.emacs.help Subject: org-mode source blocks Date: Tue, 21 Dec 2010 00:09:13 -0800 (PST) Organization: http://groups.google.com Message-ID: <9c66c8c3-8fb6-40c5-b718-feaa319fe6ee@q18g2000vbk.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1292941131 2251 80.91.229.12 (21 Dec 2010 14:18:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 14:18:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 21 15:18:48 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PV337-00012o-RD for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Dec 2010 15:18:45 +0100 Original-Received: from localhost ([127.0.0.1]:46506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV337-0004yv-4T for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Dec 2010 09:18:45 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!q18g2000vbk.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 219.87.22.201 Original-X-Trace: posting.google.com 1292918953 31338 127.0.0.1 (21 Dec 2010 08:09:13 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 21 Dec 2010 08:09:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q18g2000vbk.googlegroups.com; posting-host=219.87.22.201; posting-account=S6lX4AoAAACY3S6P9ByYWwT1Jmx-rQHX User-Agent: G2/1.0 X-HTTP-Via: 1.1 TWTIPRX001 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.15 (KHTML, like Gecko) Chrome/10.0.612.3 Safari/534.15, gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:183471 X-Mailman-Approved-At: Tue, 21 Dec 2010 09:13:28 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77728 Archived-At: I would like use the Source Code Blocks feature within org-mode. But I found org-mode can't launch the language mode to edit the Source code. 1. Emacs -Q 2. M-x org-mode, then the emacs buffer entered the org-mode. 3. entering following test: #+ srcname trait_demo.cpp #+ begin_src c++ : using namespace std; : int main( void ) : { : string tmp; : while(cin >> tmp) : { : cout << "from pipe: " << tmp << endl; : } : : : return 0; : } #+ end_src 4. C-c ' ;;then emacs lauch a buffer to edit the source code. 5. But the mode is "Picture" not c++ mode. Why? I tried other language like python, it also launch a Picture-mode. I would like to know. what's wrong? My emacs version is 23.2.1 on windows xp. Any body can help? thanks!