From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: [babel] How to make source blocks immutable whil editing org files in Org mode in Emacs Date: Mon, 24 Mar 2014 18:01:53 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0139fc3ab76ebc04f5623837 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSDsS-0007BZ-EQ for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 19:01:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSDsR-0006Ru-Bl for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 19:01:56 -0400 Received: from mail-oa0-x22e.google.com ([2607:f8b0:4003:c02::22e]:36760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSDsR-0006Ro-6w for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 19:01:55 -0400 Received: by mail-oa0-f46.google.com with SMTP id i7so6684300oag.33 for ; Mon, 24 Mar 2014 16:01:54 -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" --089e0139fc3ab76ebc04f5623837 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Context: Just logged about 60 hours doing a literate programming project with Org and elisp. Calling org-edit-special to break out into my customized editing environment has worked quite well. There, Smartparens (strict mode) or Paredit keep parentheses balanced. Sometimes I get lazy though and want to make a change to the source block and invariable screw up the parentheses and break my system. Desire: I would like to set a flag that disallows any editing of source blocks whilst in org mode. Obviously one could still see the code, just not modify it. Sure, discipline would also be an options but most bad edits seem like easy ones, but if it were easy you wouldn't make it in the first place. Research: Read http://orgmode.org/guide/Working-With-Source-Code.html and didn't find that kind of feature. Googled and didn't find a fix. Question: How have you folks dealt with this? Is there a solution out there? Would you like such a thing? Regards, --=20 Grant Rettke | ACM, AMA, COG, IEEE gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates --089e0139fc3ab76ebc04f5623837 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Context:=C2=A0

=
Just logged about 60 hours doing a literate programming project with
Org and elisp. Calling=C2=A0org-edit-special to break out into my = customized editing
environment has worked quite well. There, Smartparens (strict mode) or= Paredit keep parentheses
balanced. Sometimes I get lazy though a= nd want to make a change to the source
block and invariable screw= up the parentheses and break my system.=C2=A0

Desire:

I would like to set a = flag that disallows any editing of source blocks whilst in org mode.
<= div>Obviously one could still see the code, just not modify it. Sure, disci= pline would also be an
options but most bad edits seem like easy ones, but if it were easy yo= u wouldn't make it in the
first place.

Research:

Read=C2=A0http://orgmode.org/guide/Working-Wi= th-Source-Code.html and didn't find that kind of feature.
Googled and didn't find a fix.

Question:<= /div>

How have you folks dealt with this? Is there a sol= ution out there? Would you like such a thing?

Regards,

--
Grant Rett= ke | ACM, AMA, COG, IEEE
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
=E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates
--089e0139fc3ab76ebc04f5623837--