From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Indentation of org-mode code Date: Wed, 20 Apr 2011 11:45:53 -0400 Message-ID: <87liz5gc3y.fsf@norang.ca> References: <87d3khqa15.fsf@univ-nantes.fr> <87pqohgf4u.fsf@norang.ca> <874o5tq8fy.fsf@univ-nantes.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCbVc-0004Zk-5T for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 13:48:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCbVa-0003hf-S3 for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 13:48:12 -0400 Received: from mho-04-ewr.mailhop.org ([204.13.248.74]:34816 helo=mho-02-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCbVa-0003hC-PK for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 13:48:10 -0400 In-Reply-To: <874o5tq8fy.fsf@univ-nantes.fr> (Manuel Giraud's message of "Wed, 20 Apr 2011 16:54:57 +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: Manuel Giraud Cc: emacs-orgmode Manuel Giraud writes: > Bernt Hansen writes: > >> For indenting lisp code I highlight the region to indent and C-M-\ >> (which is M-x indent-region) > > Yes I know (and do). But if you try this on org-html.el, for example, > big chunks of code are indented differently than they are now. So I > thought that there was some convention for indenting org-mode code. Not that I'm aware of - but you should refrain from making unnecessary whitespace changes to the code base even if the existing code is incorrectly formatted. Reformat the stuff you touch but don't make copious whitespace changes - that just hides what you changed. Regards, Bernt