From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: How do disallow editing of source blocks while inside of org-mode? Date: Sun, 15 Jun 2014 10:59:15 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwCpx-0008NX-AX for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 11:59:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwCpw-0008V5-8l for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 11:59:17 -0400 Received: from mail-oa0-x22f.google.com ([2607:f8b0:4003:c02::22f]:59305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwCpw-0008Uz-4p for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 11:59:16 -0400 Received: by mail-oa0-f47.google.com with SMTP id n16so4791863oag.20 for ; Sun, 15 Jun 2014 08:59:15 -0700 (PDT) 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" Hi, Working on a large org document with a lot of source blocks, sometimes I get lazy and modify the contents of source blocks while in org-mode. Rather than utilize C-', which takes me to the proper mode, I just make changes directly. Then, I break stuff. It is my fault, totally. What I would like to do, is make it so that source blocks are immutable when displayed inside of org-mode, and only allow changes after going to the proper buffer via C-'. This will save lots of headaches. Does this already exist? Where might I set out exploring how to implement such a thing if it does not? My first thought is to see if an edit is occurring within a source block that has a language immediately to jump to the buffer that C-' would have created for me. Kind regards, Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson