From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiajian Huang 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, 7 Jan 2017 20:48:13 +0800 Message-ID: References: <878tqo176n.fsf@nicolasgoaziou.fr> <878tqnyv1y.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114dfc94344e3f0545808c47 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPqPv-00028a-RB for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 07:48:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPqPu-0000Gk-Nx for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 07:48:15 -0500 Received: from mail-vk0-x234.google.com ([2607:f8b0:400c:c05::234]:35881) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cPqPu-0000Gg-IH for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 07:48:14 -0500 Received: by mail-vk0-x234.google.com with SMTP id p9so324083539vkd.3 for ; Sat, 07 Jan 2017 04:48:14 -0800 (PST) In-Reply-To: <878tqnyv1y.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --001a114dfc94344e3f0545808c47 Content-Type: text/plain; charset=UTF-8 Hello, Thanks for you reply. I'm not trying to get the empty line. The example snippet is just for illustration. First of all, I really like the two space indentation/alignment when `org-src-preserve-indentation` is set to `nil`. And since org does not indent the empty line*s, *the fields one empty of `yasnippet` or packages which generate empty lines can not work properly and the indentation of these line*s* are violated as mentioned in the second mail. Best regards, Jiajian Huang On Sat, Jan 7, 2017 at 7:21 PM, Nicolas Goaziou wrote: > 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 > --001a114dfc94344e3f0545808c47 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

Thanks for you reply.
=
I'm not trying to get the empty line. The example snippe= t is just for illustration.

First of all, I really= like the two space indentation/alignment when=C2=A0`org-src-preserve-indentation` is set to `nil`.=C2= =A0And since org does= not indent the empty lines, the=C2=A0fields one= empty of `yasnippet` or packages which generate empty lines can not work p= roperly and the=C2=A0indentation of these lines are violated as=C2= =A0mentioned in the second mail.

Best regards,
Jiajian Huang
--001a114dfc94344e3f0545808c47--