* Re: c-c ' in babel source blocks strips final newline or adds blank line upon returning, but never neither
@ 2014-07-26 21:51 Samuel Wales
2014-07-26 22:07 ` Thorsten Jolitz
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Wales @ 2014-07-26 21:51 UTC (permalink / raw
To: Thorsten Jolitz; +Cc: emacs-orgmode
hi thorsten,
i think there are several misunderstanding here.
first, i am not talking about outorg at all. i am talking about babel
source code blocks. i have changed the subject header to make that
more obvious. outorg is not relevant to this thread, as far as i can
tell.
second, emacs behavior is not built in. it depends on
require-final-newline. if babel would respect require-final-newline,
i would be happy. however, it does not. so it is not an emacs issue
in this respect.
third, before posting the original post, i fully tested both the
variable that you suggested and require-final-newline. the value of
the former determines which bug occurs.
i hope that's enough to get us all on the same page. i have very
severe rsi so i limit typing to less than 4 minutes at a time. i
won't be able to reply for some time.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c-c ' in babel source blocks strips final newline or adds blank line upon returning, but never neither
2014-07-26 21:51 c-c ' in babel source blocks strips final newline or adds blank line upon returning, but never neither Samuel Wales
@ 2014-07-26 22:07 ` Thorsten Jolitz
0 siblings, 0 replies; 2+ messages in thread
From: Thorsten Jolitz @ 2014-07-26 22:07 UTC (permalink / raw
To: emacs-orgmode
Samuel Wales <samologist@gmail.com> writes:
hi samuel,
> i think there are several misunderstanding here.
maybe not?
> first, i am not talking about outorg at all. i am talking about babel
> source code blocks. i have changed the subject header to make that
> more obvious. outorg is not relevant to this thread, as far as i can
> tell.
Me too, but I had to deal with this because doing C-c ' in babel
src-blocks in an *outorg-edit-buffer* might introduce
newlines/indentation even if no editing takes place, and these unwanted
changes cause problems because they are propagated to the original
source file in the outorg conversion process.
So I would say we talk about the same thing, just in a different
context.
> second, emacs behavior is not built in. it depends on
> require-final-newline. if babel would respect require-final-newline,
> i would be happy. however, it does not. so it is not an emacs issue
> in this respect.
Ah, `require-final-newline' was the var I was looking for when dealing
with this. Thx for the tip.
> third, before posting the original post, i fully tested both the
> variable that you suggested and require-final-newline. the value of
> the former determines which bug occurs.
Just gave a hint at the risk that you might be aware of it already.
> i hope that's enough to get us all on the same page. i have very
> severe rsi so i limit typing to less than 4 minutes at a time. i
> won't be able to reply for some time.
Anyway, the issue deserves some attention.
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-26 22:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-26 21:51 c-c ' in babel source blocks strips final newline or adds blank line upon returning, but never neither Samuel Wales
2014-07-26 22:07 ` Thorsten Jolitz
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.