From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [Patch] don't add indent for empty line when exiting, a code edit Date: Fri, 14 Mar 2014 10:00:02 +0100 Message-ID: <87vbvhb1f1.fsf@bzg.ath.cx> References: <531E5738.7040003@lbl.gov> <87k3bzcmrv.fsf@bzg.ath.cx> <87mwguh4d2.fsf@bzg.ath.cx> <877g7ynf8d.fsf@bzg.ath.cx> <87bnx9napl.fsf@bzg.ath.cx> <532230E9.200@miszellen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WONyS-0005sq-Pj for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 05:00:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WONyN-0003RN-DT for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 05:00:16 -0400 Received: from rs249.mailgun.us ([209.61.151.249]:55104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WONyN-0003RJ-83 for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 05:00:11 -0400 In-Reply-To: <532230E9.200@miszellen.de> (Florian Beck's message of "Thu, 13 Mar 2014 23:27:53 +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: Florian Beck Cc: emacs-orgmode@gnu.org Hi Florian, Florian Beck writes: > On 13.03.2014 20:46, Bastien wrote: >> Ok, let me take some fresh air and come back to this later on. > > How about this: > > (while (re-search-forward "\\(^\\).+" nil t) > (replace-match indent nil nil nil 1))) Works fine here, I pushed this solution. Thanks! -- Bastien