From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: About indentation when the src block is under a list Date: Sun, 28 Apr 2013 18:59:19 +0800 Message-ID: <87zjwix6ns.fsf@gmail.com> Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UWOzj-0004la-Rf for emacs-orgmode@gnu.org; Sun, 28 Apr 2013 06:38:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UWOzi-00019X-SA for emacs-orgmode@gnu.org; Sun, 28 Apr 2013 06:38:11 -0400 Received: from plane.gmane.org ([80.91.229.3]:49519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UWOzi-00019N-MN for emacs-orgmode@gnu.org; Sun, 28 Apr 2013 06:38:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UWOzc-0003Ys-Do for emacs-orgmode@gnu.org; Sun, 28 Apr 2013 12:38:04 +0200 Received: from 115.236.9.86 ([115.236.9.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Apr 2013 12:38:04 +0200 Received: from zhangweize by 115.236.9.86 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Apr 2013 12:38:04 +0200 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 --text follows this line-- Here is an example: * array ** search - example #+BEGIN_SRC c /* find score in scores ,* return the index if found or -1 */ int search(int scores[], int n, int score){ int i = 0; for(; i - test The indentation of the src block is OK, but it is relative to the second-level headline ("**search"), rather than the list "- example". In this way, I can not create another list item ("- test") at the point (illustrated by ) by Alt+Enter. I tried the variable org-indent-indentation-per-level, org-adapt-indentation and so on, but failed to indent the src block relative to the list item. So anyone please give me some hint.