From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Julian M. Burgos" Subject: Re: Saving within a source code block... a bug? Date: Tue, 23 Apr 2013 08:54:33 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUYzn-0005Ea-Sq for emacs-orgmode@gnu.org; Tue, 23 Apr 2013 04:54:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUYzm-0000lF-80 for emacs-orgmode@gnu.org; Tue, 23 Apr 2013 04:54:39 -0400 Received: from hafgarpur.hafro.is ([130.208.64.48]:42929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUYzl-0000l8-SQ for emacs-orgmode@gnu.org; Tue, 23 Apr 2013 04:54:38 -0400 In-reply-to: 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: John Hendy Cc: emacs-orgmode Thanks John. I have C-s binded to the "save-buffer" function, while in org-mode C-x C-s gives you the "org-save-all-org-buffers" function. When running the later by hand, things work as they should. I need to redefine my key bindings. All the best, Julian John Hendy writes: > On Mon, Apr 22, 2013 at 10:39 AM, Julian M. Burgos wr= ote: >> >> Hello fellow "org-moders": >> >> I just switch to org-mode 8.0.1 and noticed a regression to a >> missbehaviour (a bug?) that happened at some point in a previous versi= on and >> was later fixed. This is the issue: I am working in an org-mode file >> with R code blocks, and I do C-c' to edit one of them. I do some >> changes, and press C-s to save the changes. At this point, I get a >> request to choose a file to save the changes into (this should not >> happen, the changes should just be saved into my org file). Then I >> choose a file name, press RET, and the filename is not created, but >> instead the changes are saved into my org mode file. Then, if I do mo= re >> changes and do C-s save again, now org-mode behaves the way it should:= I >> do not get asked for a filename and the changes are saved in my org mo= de >> file. > > Do you have any special settings regarding key bindings? I've not used > this, but tried to reproduce with a simple example in a file I was > already working on. Here was my block: > > #+begin_src R :session r :results output :exports results > > a <- 1 + 2 > a > > #+end_src > > - Edit with =3DC-c '=3D (single quote, not backtick like I first tried = as > I edit tables this way!) > - Code is highlighted in original buffer in yellow; new buffer opens > with contents > - Add line =3Db <- 3 + 4=3D > - C-x C-s to save, minibuffer reports that it's saving/wrote my file > - The additional line above appears in file > - =3DC-c '=3D to close minibuffer > > I can't reproduce. C-s, for me, is bound to isearch-forward. > > Org-mode version 8.0 (release_8.0-2-g77476c) > > Thought I'd see if this was release dependent, so I pulled and did > =3Dmake clean && make && make doc=3D just now and I get the same > [successful] behavior. > > Org-mode version 8.0.1 (release_8.0.1-14-g2e6769) > > > Best regards, > John > > >> Hopefully this is clear. Let me know if you have questions. >> Thanks!! >> >> Julian >> >> -- >> Julian Mariano Burgos, PhD >> Hafranns=C3=B3knastofnunin/Marine Research Institute >> Sk=C3=BAlagata 4, 121 Reykjav=C3=ADk, Iceland >> S=C3=ADmi/Telephone : +354-5752037 >> Br=C3=A9fs=C3=ADmi/Telefax: +354-5752001 >> Netfang/Email: julian@hafro.is >> --=20 Julian Mariano Burgos, PhD Hafranns=C3=B3knastofnunin/Marine Research Institute Sk=C3=BAlagata 4, 121 Reykjav=C3=ADk, Iceland S=C3=ADmi/Telephone : +354-5752037 Br=C3=A9fs=C3=ADmi/Telefax: +354-5752001 Netfang/Email: julian@hafro.is