From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-edit-special does not indent the blank line after exit editing [9.0.3 (9.0.3-elpa @ /Users/Yomisuko/.emacs.d/elpa/org-20161224/)] Date: Sat, 07 Jan 2017 12:21:45 +0100 Message-ID: <878tqnyv1y.fsf@nicolasgoaziou.fr> References: <878tqo176n.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPp4I-0000ME-6O for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 06:21:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPp4H-0001Yw-Bl for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 06:21:50 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:51761) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cPp4H-0001Yf-5j for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 06:21:49 -0500 In-Reply-To: (Jiajian Huang's message of "Sat, 7 Jan 2017 15:09:38 +0800") 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" To: Jiajian Huang Cc: emacs-orgmode@gnu.org Hello, Jiajian Huang writes: > If it is `nil`, why inserting 2 leading spaces to the code in the org > buffer except the line containing only spaces? Probably because empty lines are not meaningful anyway. We probably should go further and remove all spaces in empty lines. > How can I get > > #+BEGIN_SRC python > a = 1 > b = 2 > for i in range(10): > # 6 spaces before '#' > #+END_SRC > > after exit `org-edit-special` ? You cannot obtain the last empty line. I don't understand why would you want that either. It is only a TAB away from an empty line. Regards, -- Nicolas Goaziou