From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: How do disallow editing of source blocks while inside of org-mode? Date: Sun, 15 Jun 2014 19:26:22 +0200 Message-ID: <87y4wy3wzl.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwECa-0003N9-Oo for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 13:26:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwECU-0002Oq-Ge for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 13:26:44 -0400 Received: from plane.gmane.org ([80.91.229.3]:44580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwECU-0002Np-AS for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 13:26:38 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WwECR-0007bl-W4 for emacs-orgmode@gnu.org; Sun, 15 Jun 2014 19:26:35 +0200 Received: from g231105037.adsl.alicedsl.de ([92.231.105.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 Jun 2014 19:26:35 +0200 Received: from tjolitz by g231105037.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 Jun 2014 19:26:35 +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 Grant Rettke writes: Hi, > 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. maybe here ,-------------------------------------------- | (defun org-self-insert-command (N) | (interactive "p") | (org-check-before-invisible-edit 'insert) | (cond | ((and org-use-speed-commands ...) | ((and (org-table-p) ...))))) `-------------------------------------------- adding a case like ,--------------------------------- | ((and (org-in-src-block-p) ...)) `--------------------------------- ? -- cheers, Thorsten