emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jiajian Huang <ispinfx@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
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, 7 Jan 2017 20:48:13 +0800	[thread overview]
Message-ID: <CAMWOVxn0PQrYH7mf2U_4vAr7mYec3P1b3c1HMZAKoZ+JWNK=fg@mail.gmail.com> (raw)
In-Reply-To: <878tqnyv1y.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]

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 <mail@nicolasgoaziou.fr>
wrote:

> 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
>

[-- Attachment #2: Type: text/html, Size: 2352 bytes --]

  reply	other threads:[~2017-01-07 12:48 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
2017-01-07 12:48       ` Jiajian Huang [this message]
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='CAMWOVxn0PQrYH7mf2U_4vAr7mYec3P1b3c1HMZAKoZ+JWNK=fg@mail.gmail.com' \
    --to=ispinfx@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).