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: Fri, 06 Jan 2017 17:31:28 +0100 Message-ID: <878tqo176n.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPXQW-0004Pr-RC for emacs-orgmode@gnu.org; Fri, 06 Jan 2017 11:31:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPXQR-0005Tp-T6 for emacs-orgmode@gnu.org; Fri, 06 Jan 2017 11:31:36 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:45269) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cPXQR-0005Td-Lz for emacs-orgmode@gnu.org; Fri, 06 Jan 2017 11:31:31 -0500 In-Reply-To: (Jiajian Huang's message of "Fri, 6 Jan 2017 22:29:50 +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: > Reproduce steps: > > Launch emacs by `emacs -Q`, eval the following snippet(assumed org 9.x > is installed via elpa) > > (package-initialize) > (require 'org) > > open a org buffer, input the source by > #+BEGIN_SRC python > > #+END_SRC > > use C-c ' to edit the block and input > > for i in range(10): # input this line and > # there are 4 spaces before the '#' now > > use C-c ' to close the source block buffer and back to org-mode, we can > see the first line of the block is indented 2 spaces by org while the blank > line > isn't. This is not a bug. See `org-src-preserve-indentation'. Regards, -- Nicolas Goaziou