From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Write file while editing babel code block doesn't work as expected [8.3.4 (release_8.3.4-778-g8127b3 @ /usr/local/share/emacs/site-lisp/org/)] Date: Sun, 15 May 2016 19:03:57 +0200 Message-ID: <87twhzuubm.fsf@saiph.selenimh> References: <87vb2ki8vl.fsf@saiph.selenimh> <87eg969697.fsf@gmail.com> <87d1oq9mxn.fsf@saiph.selenimh> <20160515041152.GA1188@smoon.vl-lomov.ru> <87h9dzwyzw.fsf@saiph.selenimh> <20160515110016.GB1188@smoon.vl-lomov.ru> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1zXR-0006YO-Ew for emacs-orgmode@gnu.org; Sun, 15 May 2016 13:09:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1zXP-00070O-I1 for emacs-orgmode@gnu.org; Sun, 15 May 2016 13:09:08 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:33914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1zXP-00070I-By for emacs-orgmode@gnu.org; Sun, 15 May 2016 13:09:07 -0400 In-Reply-To: <20160515110016.GB1188@smoon.vl-lomov.ru> (Vladimir Lomov's message of "Sun, 15 May 2016 19:00:16 +0800") 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" To: Vladimir Lomov Cc: emacs-orgmode@gnu.org Hello, Vladimir Lomov writes: > Correct me if I understand you wrong, but you suggest to bind ~F2~ key > to ~org-edit-src-save~. But then this will work only in Org buffer, and > how about LaTeX mode then. Or I should bind ~F2~ to something like that: > (global-set-key [f2] > (if (functionp org-edit-src-save) org-edit-src-save save-buffer)) Actually, I meant to bind F2 to `org-edit-src-save' in `org-src-mode-map'. > On second thought, I considered org-src buffer as auxiliary buffer, > depending on (main) Org document buffer, so saving org-src buffer should > save Org document buffer. This is the case already with C-x C-s, not for `save-buffer'. Regards, -- Nicolas Goaziou