From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: Babel code indentation problem Date: Thu, 03 Mar 2016 12:50:44 +0200 Message-ID: <87h9gnj0mz.fsf@iki.fi> References: <87mvqgouqy.fsf@iki.fi> <8737s7dg1q.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abQqu-0000vm-MP for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 05:51:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abQqr-0006dh-8x for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 05:51:28 -0500 Received: from plane.gmane.org ([80.91.229.3]:48009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abQqq-0006cu-Ub for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 05:51:25 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1abQqk-0002D4-4i for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 11:51:18 +0100 Received: from host-137-163-18-130.edu.hel.fi ([137.163.18.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Mar 2016 11:51:18 +0100 Received: from jarmo.hurri by host-137-163-18-130.edu.hel.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Mar 2016 11:51:18 +0100 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 Eric S Fraga writes: > On Thursday, 3 Mar 2016 at 10:01, Jarmo Hurri wrote: > > [...] > >> So the problem is not in indentation in Processing mode itself, but the >> error appears upon return from editing. This suggests that the issue >> is in the communication between the editing mode and Org mode. As you >> can see, I have different indentation settings for C and Processing, so >> that might be one thing that makes the difference appear. > > I think it is because you are using TABs to indent instead of spaces > and therefore the indentation doesn't look right in the org mode view. > You can tell emacs to not use tabs to indent and I think this will > sort your problem out. Yes! Problem solved with (setq-default indent-tabs-mode nil) Thank you very much! Jarmo