emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: c-c ' strips final newline or adds blank line, but never neither
Date: Sun, 27 Jul 2014 13:50:38 +0200	[thread overview]
Message-ID: <87r415flbl.fsf@bzg.ath.cx> (raw)
In-Reply-To: <CAJcAo8sm5XOpvY2mb8fCdL0Gtb2H=bOn+R+42nqEOA+6+OqXrw@mail.gmail.com>	(Samuel Wales's message of "Thu, 24 Jul 2014 15:48:24 -0700")

Hi Samuel,

Samuel Wales <samologist@gmail.com> writes:

> i find that when i do c-c ' on a source block, it either strips the
> final newline in the editing buffer or adds an unwanted blank line in
> the source block.

I can't reproduce this.

With (setq org-src-strip-leading-and-trailing-blank-lines nil) there
is no change in the number of trailing newlines.

With (setq org-src-strip-leading-and-trailing-blank-lines t), blank
lines at the beginning and end of an *Org Src* editing buffer are
stripped away.

This is Org-mode version 8.3beta (release_8.3beta-74-g16e21a).

Hopefully someone can provide a reproducible recipe.

Thanks,

-- 
 Bastien

      parent reply	other threads:[~2014-07-28 17:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-24 22:48 c-c ' strips final newline or adds blank line, but never neither Samuel Wales
2014-07-25  8:01 ` Thorsten Jolitz
2014-07-25 22:45   ` Samuel Wales
2014-07-26 10:23     ` Thorsten Jolitz
2014-07-26 21:54       ` Samuel Wales
2014-07-25 22:47   ` Samuel Wales
2014-07-27 11:50 ` Bastien [this message]

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=87r415flbl.fsf@bzg.ath.cx \
    --to=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@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).