emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Jiajian Huang <ispinfx@gmail.com>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <878tqnyv1y.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAMWOVxkLDB_yB-5L3i60nE-C-Pch-j68=fWL217pQscKFui_=g@mail.gmail.com> (Jiajian Huang's message of "Sat, 7 Jan 2017 15:09:38 +0800")

Hello,

Jiajian Huang <ispinfx@gmail.com> 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

  reply	other threads:[~2017-01-07 11:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-06 14:29 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/)] Jiajian Huang
2017-01-06 14:31 ` Jiajian Huang
2017-01-06 16:31 ` Nicolas Goaziou
2017-01-07  7:09   ` Jiajian Huang
2017-01-07 11:21     ` Nicolas Goaziou [this message]
2017-01-07 12:48       ` Jiajian Huang
2017-01-07 15:16         ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878tqnyv1y.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=ispinfx@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).