From mboxrd@z Thu Jan 1 00:00:00 1970 From: S.P.Tseng Subject: Fwd: Re: [bug]x2 #+BEGIN_EXAMPLE can not work and #+BEGIN_SRC indent error Date: Mon, 8 Sep 2008 08:57:41 +0800 Message-ID: References: <85fxpqecss.fsf@modprobe.cn> <87hca65kmo.fsf@gollum.intra.norang.ca> <851w16e23i.fsf@modprobe.cn> <61B03E1B-7CD3-422F-B7CD-7414EC604CB4@uva.nl> <851vzw3zm9.fsf@modprobe.cn> <85abej31br.fsf@modprobe.cn> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0951276057==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcV4f-0003vj-MK for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 20:57:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcV4a-0003jX-02 for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 20:57:45 -0400 Received: from [199.232.76.173] (port=51224 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcV4Z-0003iv-JL for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 20:57:43 -0400 Received: from an-out-0708.google.com ([209.85.132.245]:18111) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcV4Y-0007cz-MY for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 20:57:42 -0400 Received: by an-out-0708.google.com with SMTP id c38so199916ana.84 for ; Sun, 07 Sep 2008 17:57:42 -0700 (PDT) In-Reply-To: <85abej31br.fsf@modprobe.cn> 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 --===============0951276057== Content-Type: multipart/alternative; boundary="----=_Part_61222_18032372.1220835461983" ------=_Part_61222_18032372.1220835461983 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline ---------- Forwarded message ---------- From: S. P. Tseng Date: Mon, Sep 8, 2008 at 8:53 AM Subject: Re: [Orgmode] Re: [bug]x2 #+BEGIN_EXAMPLE can not work and #+BEGIN_SRC indent error To: Carsten Dominik Carsten Dominik writes: > Well, I am confused. > >> I never want to let the indentation function in Org apply to the entire file. > > This was statement 1. > >> >> The key '' default bind to functon 'org-cycle'. For example I press 'C-c '' >> in side SRC block as below, and edit, you know they can ident correctly and >> press 'C-c '' to back. Move cursor to line 4, press the TAB key, now the first >> "(" will auto move to the beginning of the line so I say indent will not be >> right. >> >> What I mean is when the cursor in side SRC block, press '' key do nothin. >> So I can write a function to indent the entire file. > > And this was statement 2, seems to be the exact oposite. What am I > misunderstading? In statement 1, I meant "I never want to let the indentation function *in Org* apply to the entire file". In statement 2, I meant "The function to indent the entire file can be writed *by USER*, only if Org-mode's indentation function do nothing when current line is in SRC block." The indentation function Statement 1 is to Org-mode. The indentation function Statement 2 is to user's. Are they oposite? > > Anyway, the parsing effort to figure out if we are in a SRC or EXAMPLE region > is not negligible, and it would burden the indentation function and make it slow. > I have readed the source of funcion 'org-edit-special', that's right the parsing effort to figure out if we are is a SRC block or not cost too much. But I still think it's worth. In face, I turned from muse, and muse is do like that. ------=_Part_61222_18032372.1220835461983 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline


---------- Forwarded message ----------
From: S. P. Tseng <deftsp@gmail.com>
Date: Mon, Sep 8, 2008 at 8:53 AM
Subject: Re: [Orgmode] Re: [bug]x2 #+BEGIN_EXAMPLE can not work and #+BEGIN_SRC indent error
To: Carsten Dominik <dominik@science.uva.nl>


Carsten Dominik <dominik@science.uva.nl> writes:

> Well, I am confused.
>
>> I never want to let the indentation function in Org apply to the entire file.
>
> This was statement 1.
>
>>
>> The key '<tab>' default bind to functon 'org-cycle'. For example I press 'C-c ''
>> in side SRC block as below, and edit, you know they can ident correctly and
>> press 'C-c '' to back. Move cursor to line 4, press the TAB key, now the first
>> "(" will auto move to the beginning of the line so I say indent will not be
>> right.
>>
>> What I mean is when the cursor in side SRC block, press '<tab>' key do nothin.
>> So I can write a function to indent the entire file.
>
> And this was statement 2, seems to be the exact oposite. What am I
> misunderstading?

In statement 1, I meant "I never want to let the indentation function *in Org*
apply to the entire file".

In statement 2, I meant "The function to indent the entire file can be writed
*by USER*, only if Org-mode's indentation function do nothing when current line
is in SRC block."

The indentation function Statement 1 is to Org-mode.
The indentation function Statement 2 is to user's.
Are they oposite?

>
> Anyway, the parsing effort to figure out if we are in a SRC or EXAMPLE region
> is not negligible, and it would burden the indentation function and make it slow.
>
I have readed the source of funcion 'org-edit-special', that's right the parsing
effort to figure out if we are is a SRC block or not cost too much. But I still
think it's worth. In face, I turned from muse, and muse is do like that.



------=_Part_61222_18032372.1220835461983-- --===============0951276057== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0951276057==--