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: Fri, 13 May 2016 14:12:20 +0200 Message-ID: <87d1oq9mxn.fsf@saiph.selenimh> References: <87vb2ki8vl.fsf@saiph.selenimh> <87eg969697.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1C27-0000E9-B7 for emacs-orgmode@gnu.org; Fri, 13 May 2016 08:17:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1C25-0003Iv-57 for emacs-orgmode@gnu.org; Fri, 13 May 2016 08:17:30 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:44506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1C24-0003Io-VQ for emacs-orgmode@gnu.org; Fri, 13 May 2016 08:17:29 -0400 In-Reply-To: <87eg969697.fsf@gmail.com> (Aaron Ecay's message of "Thu, 12 May 2016 20:00:20 -0400") 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: David Dynerman Cc: emacs-orgmode@gnu.org Hello, Aaron Ecay writes: > Is this a correct change? Previously, C-x C-s in the org-src buffer > would save the underlying .org file, which was useful. AFAICS this now > would not work. Why do you think so ? C-x C-s is still bound to `org-edit-src-save'. Do you have an ECM demonstrating the issue? > I also wonder whether autosave will work correctly from > the org-src buffer. Again, why wouldn't it work? It calls `org-edit-src-save'. > I think the other suggestion in this thread (to use write-region) is > a better solution. The problem is about `write-file' (C-x C-w). If this function is not behaving as expected, it should be fixed, if possible. In any case, I think the lines of code I removed were useless anyway. Do you have any use case in mind for them? Regards, -- Nicolas Goaziou