From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [patch] org-delete-indentation Date: Sun, 17 May 2015 10:35:37 +0200 Message-ID: <87fv6v8uue.fsf@nicolasgoaziou.fr> References: <87fv6wh6yr.fsf@gmx.us> <87k2w78uxy.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytu1W-0002Mm-F5 for emacs-orgmode@gnu.org; Sun, 17 May 2015 04:34:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ytu1U-00082P-FV for emacs-orgmode@gnu.org; Sun, 17 May 2015 04:34:14 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:39268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytu1U-00082L-9I for emacs-orgmode@gnu.org; Sun, 17 May 2015 04:34:12 -0400 In-Reply-To: <87k2w78uxy.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 17 May 2015 10:33:29 +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: Rasmus Cc: emacs-orgmode@gnu.org >> + (let ((string (concat " " (prog2 (and ARG (forward-line 1)) >> + (org-trim (delete-and-extract-region (line-beginning-position) >> + (line-end-position))))))) Also, (concat " " (progn (when ARG (forward-line)) (org-trim ...)))