From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: C-c ' Date: Fri, 26 Aug 2011 18:23:07 -0400 Message-ID: <87sjonak38.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx4nw-0002dg-0s for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 18:23:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qx4nv-0002g2-3v for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 18:23:11 -0400 Received: from mho-04-ewr.mailhop.org ([204.13.248.74]:25386 helo=mho-02-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx4nu-0002fy-WE for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 18:23:11 -0400 In-Reply-To: (Henri-Paul Indiogine's message of "Fri, 26 Aug 2011 14:48:11 -0700") 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: Henri-Paul Indiogine Cc: emacs-org Henri-Paul Indiogine writes: > Greetings! > > I noticed something strange when I edit a block of source code using C-c '. > > Each time I close the editor, using C-c ' the code block shift 2 > places to the right. That is, 2 black spaces are added at the > beginning of each line. Each time I edit a code block this happens > again. So, each time I edit a code block the code shifts to the right > more and more. > > I waste a lot of time getting rid of these empty spaces. Yes, I can > use a emacs macro, but still .. > > Am I missing something? Hi Henri-Paul, It's not supposed to do that. It is supposed to indent by 2 spaces and then remove those 2 spaces in C-c ' again. There's a variable (that I just found out about yesterday -- Thanks Nick!) which will turn this indentation off completely. Try setting (setq org-src-preserve-indentation t) and see if that helps. Please provide details of your org mode version (M-x org-version RET) and emacs version (M-x emacs-version RET) Regards, Bernt