From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: proposal to make C-c C-c not remove latex overlays Date: Tue, 15 Jul 2014 18:52:09 -0400 Message-ID: <87fvi25j6u.fsf@alphaville.bos.redhat.com> References: <87wqbf37it.fsf@andrew.cmu.edu> <87k37fa2a5.fsf@gmail.com> <85zjgaxr4u.fsf@andrew.cmu.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7BaI-00074d-DW for emacs-orgmode@gnu.org; Tue, 15 Jul 2014 18:52:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7BaC-0007Mu-AV for emacs-orgmode@gnu.org; Tue, 15 Jul 2014 18:52:30 -0400 Received: from plane.gmane.org ([80.91.229.3]:59275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7BaC-0007MB-3J for emacs-orgmode@gnu.org; Tue, 15 Jul 2014 18:52:24 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X7BaA-0006IM-KB for emacs-orgmode@gnu.org; Wed, 16 Jul 2014 00:52:22 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jul 2014 00:52:22 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jul 2014 00:52:22 +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 John Kitchin writes: > Aaron Ecay writes: > > Thanks for the advice idea, that is a nice one. It doesn't work for me > like this though: > > #+BEGIN_SRC emacs-lisp > (defadvice org-ctrl-c-ctrl-c (around latex-overlays) > "ignore latex overlays in C-cC-c" > (let ((org-latex-fragment-image-overlays nil)) > ad-do-it)) > #+END_SRC > > maybe because that is a buffer local variable? > You probably forgot to activate it: (ad-activate 'org-ctrl-c-ctrl-c) -- Nick