Re: [Orgmode] Using orgstruct-mode to structure source code

2008-09-05 Thread Carsten Dominik
Hi Tassilo, I though a little bit about this, and using org-struct-mode in a commented block of text is going to be bumpy. No easy path. What I do in such cases: I put tow markers into the buffer hat delimit the text I want to edit in orgstruct-mode. And then I have custom function that

Re: [Orgmode] Using orgstruct-mode to structure source code

2008-09-03 Thread Tassilo Horn
"Eric Schulte" <[EMAIL PROTECTED]> writes: Hi Eric, > Instead of putting org into the source file, would it make sense to > put the source code into an org file. Using MuMaMo-Mode > http://www.emacswiki.org/cgi-bin/wiki/MuMaMo and delimiters like > > #+BEGIN_LISP > > #+END_LISP > > it would be p

Re: [Orgmode] Using orgstruct-mode to structure source code

2008-09-03 Thread Eric Schulte
Instead of putting org into the source file, would it make sense to put the source code into an org file. Using MuMaMo-Mode http://www.emacswiki.org/cgi-bin/wiki/MuMaMo and delimiters like #+BEGIN_LISP #+END_LISP it would be possible to activate the appropriate source mode inside of the blocks,

Re: [Orgmode] Using orgstruct-mode to structure source code

2008-09-03 Thread Tassilo Horn
Carsten Dominik <[EMAIL PROTECTED]> writes: Hi Carsten, > "?..." is not a correct regular expression in Emacs. You are using > wildcard synax, it seems. No, I used (concat comment-starter "?...") to make the comment starter optional. But that's not fully correct. In elisp the comment starter

Re: [Orgmode] Using orgstruct-mode to structure source code

2008-09-03 Thread Carsten Dominik
Hi Tassilo, "?..." is not a correct regular expression in Emacs. You are using wildcard synax, it seems. If you want to allow extra characters # and ; at the begin of the line, try something like "[;#]*..." I am not sure if this will work, in particular if it will make structure ed