From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: make specific orgmode code blocks read only? Date: Mon, 11 Jul 2016 11:57:38 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMdab-0003Ge-Ke for emacs-orgmode@gnu.org; Mon, 11 Jul 2016 11:57:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMdaX-0007Nq-Hm for emacs-orgmode@gnu.org; Mon, 11 Jul 2016 11:57:44 -0400 Received: from mail-qk0-x22d.google.com ([2607:f8b0:400d:c09::22d]:33936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMdaX-0007Nm-Cg for emacs-orgmode@gnu.org; Mon, 11 Jul 2016 11:57:41 -0400 Received: by mail-qk0-x22d.google.com with SMTP id o67so31360637qke.1 for ; Mon, 11 Jul 2016 08:57:41 -0700 (PDT) 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" To: Xebar Saram Cc: org mode I did something like this for sections once. http://kitchingroup.cheme.cmu.edu/blog/2014/09/13/Make-some-org-sections-read-only/ You could probably put a :read-only in some src headers and map over src blocks instead of sections using org-element-map. Xebar Saram writes: > Hi! > I was wondering if possible at all and anyone knew of a way to make > specific orgmode code blocks read only? the rest of the org buffer would be > normal just specific code blocks > > best > > Z -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu