From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: Is there some kind of verbatim environment for org? Date: Thu, 09 Oct 2008 16:53:33 +0200 Message-ID: <87fxn5n7ki.fsf@baldur.tsdh.de> References: <87skr6koty.fsf@baldur.tsdh.de> <87wsghj3kh.fsf@kassiopeya.MSHEIMNETZ> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Knwtm-0000fk-Ps for emacs-orgmode@gnu.org; Thu, 09 Oct 2008 10:53:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Knwtk-0000eZ-PM for emacs-orgmode@gnu.org; Thu, 09 Oct 2008 10:53:53 -0400 Received: from [199.232.76.173] (port=59093 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Knwtk-0000e4-Fz for emacs-orgmode@gnu.org; Thu, 09 Oct 2008 10:53:52 -0400 Received: from main.gmane.org ([80.91.229.2]:37847 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Knwtj-00012e-DO for emacs-orgmode@gnu.org; Thu, 09 Oct 2008 10:53:51 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Knwtc-0004Rq-Mq for emacs-orgmode@gnu.org; Thu, 09 Oct 2008 14:53:44 +0000 Received: from dhcp248.uni-koblenz.de ([141.26.71.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Oct 2008 14:53:44 +0000 Received: from tassilo by dhcp248.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Oct 2008 14:53:44 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sebastian Rose writes: Hi Sebastian, > with a current version of Org-mode you may press C-c ' to create such > a region or edit an existing one. Not shure when this feature made it > into org. But 6.09 has this feature. Here it is: ,----[ C-h k C-c ' ] | C-c ' runs the command org-edit-special, which is an interactive compiled Lisp | function in `org.el'. | | It is bound to C-c ', , | . | | (org-edit-special) | | Call a special editor for the stuff at point. | When at a table, call the formula editor with `org-table-edit-formulas'. | When at the first line of an src example, call `org-edit-src-code'. | When in an #+include line, visit the include file. Otherwise call | `ffap' to visit the file at point. `---- I guess, that's what you mean. But at least in my version, that's no too big improvement. Let's say I have this: #+BEGIN_SRC artist +-----+ (Abb. 23b) ENABLE------------------| & | +-----+ | | | >=1 | +-----| |---RUN | | | | | X-----| |-----+ +-----+ Y-----| | RUN---| | +-----+ #+END_SRC If I hit `C-c '' in that block, it'll open the graphic in artist mode. That's great, but still the graphic is font-locked like in the screenshot of my previous posting, because org thinks it's a table. And TAB in the first line moves point one line up and messages "Should not happen...". On other positions in the block, it indents like in text-mode, and on even other positions it acts like in org tables (Jump to the next "cell"). While I can live with TAB freaking out (Hey, `C-c '' switches to artist mode. Yay!), the broken font-locking is disturbing me. Is it possible to fontify everything in #+BEGIN...#+END blocks with some special face which takes precedence over the usual org font-locking? Bye, Tassilo