From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Ufimtsev Subject: Re: bug:? org babel updating images (C-c C-c) triggers "show as text" (C-c C-c) in imagemagick buffer. Date: Mon, 11 May 2015 11:18:13 -0400 (EDT) Message-ID: <1833352958.12212588.1431357493734.JavaMail.zimbra@redhat.com> References: <871tirxu9b.fsf@gmail.com> <87fv773ued.fsf@yale.edu> <1114892671.11496378.1431112923690.JavaMail.zimbra@redhat.com> <873834zjn4.fsf@ucl.ac.uk> <86fv74xj70.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrpTI-0007Hh-K2 for emacs-orgmode@gnu.org; Mon, 11 May 2015 11:18:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrpTE-0000Ey-Hd for emacs-orgmode@gnu.org; Mon, 11 May 2015 11:18:20 -0400 Received: from mx3-phx2.redhat.com ([209.132.183.24]:32871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrpTE-0000ED-AC for emacs-orgmode@gnu.org; Mon, 11 May 2015 11:18:16 -0400 In-Reply-To: <86fv74xj70.fsf@example.com> 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org ----- Original Message ----- > From: "Sebastien Vauban" > To: emacs-orgmode@gnu.org > Sent: Sunday, May 10, 2015 4:37:39 PM > Subject: Re: [O] bug:? org babel updating images (C-c C-c) triggers "show as text" (C-c C-c) in imagemagick buffer. > > Eric S Fraga wrote: > > On Friday, 8 May 2015 at 15:22, Leo Ufimtsev wrote: > >> I use org-babel to make graphviz diagrams in my notes. > >> > >> I open resulting images in the side panel via C-u C-c C-o (or right-click > >> image). > >> (See 20 screen shot) > >> > >> Now it shows the image fine at first. > >> > >> Then I run org-babel in the text buffer (on the left) to update the image > >> on disk (C-c C-c). > >> But for some reason, this also calls 'show as text' 'C-c C-c' > >> (image-toggle-display) in the side panel and causes the image to look > >> like bits of text. > >> > >> I then have to constantly go to the side panel to return it back to image. > >> (C-c C-c). > >> > >> Sometimes I it happens after the 2nd update of the image. But eventually > >> I'll see text. > > > > this happens to me all the time so it's nothing unique in your > > configuration. I also find it very annoying and would love to see a > > solution. > > IIUC, you should retrain yourselves to use other key bindings than the > "do-it-all" C-c C-c. > > For executing code, that's C-c C-v C-e (or e on the beginning of the > code block -- speed key). Thank you for the suggestion. Unfortunately the C-c C-v C-e produces the same effect. It seems there's something else going on there :-/ Hmmm. > For images, that's C-c C-x C-v. > > In fact, I never use C-c C-c in Org. I've even customized: > > (setq org-babel-no-eval-on-ctrl-c-ctrl-c t) > > to be sure to unlearn C-c C-c. > > Best regards, > Seb > > -- > Sebastien Vauban > > > -- Leo Ufimtsev | Intern Software Engineer @ Eclipse Team