From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Beck Subject: Re: [Patch] don't add indent for empty line when exiting, a code edit Date: Thu, 13 Mar 2014 23:27:53 +0100 Message-ID: <532230E9.200@miszellen.de> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOE6i-00064h-T1 for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 18:28:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOE6a-0000Qi-Gm for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 18:28:08 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::2]:40576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOE6a-0000Q7-99 for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 18:28:00 -0400 In-Reply-To: <87bnx9napl.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode@gnu.org 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))) -- Florian Beck