From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: c-c ' in babel source blocks strips final newline or adds blank line upon returning, but never neither Date: Sun, 27 Jul 2014 00:07:29 +0200 Message-ID: <87tx63g4f2.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBA87-0007rC-Pk for emacs-orgmode@gnu.org; Sat, 26 Jul 2014 18:07:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBA7z-00048z-Rz for emacs-orgmode@gnu.org; Sat, 26 Jul 2014 18:07:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:45014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBA7z-00048p-Lp for emacs-orgmode@gnu.org; Sat, 26 Jul 2014 18:07:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XBA7y-0007LK-EW for emacs-orgmode@gnu.org; Sun, 27 Jul 2014 00:07:42 +0200 Received: from g231227136.adsl.alicedsl.de ([92.231.227.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Jul 2014 00:07:42 +0200 Received: from tjolitz by g231227136.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Jul 2014 00:07:42 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Samuel Wales 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