From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: [bug]x2 #+BEGIN_EXAMPLE can not work and #+BEGIN_SRC indent error Date: Sun, 7 Sep 2008 09:09:12 +0200 Message-ID: <61B03E1B-7CD3-422F-B7CD-7414EC604CB4@uva.nl> References: <85fxpqecss.fsf@modprobe.cn> <87hca65kmo.fsf@gollum.intra.norang.ca> <851w16e23i.fsf@modprobe.cn> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcEOu-0001up-8N for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 03:09:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcEOs-0001uQ-7E for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 03:09:35 -0400 Received: from [199.232.76.173] (port=44022 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcEOs-0001uN-2g for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 03:09:34 -0400 Received: from mx20.gnu.org ([199.232.41.8]:2035) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KcEOp-0002BX-8c for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 03:09:33 -0400 Received: from ey-out-1920.google.com ([74.125.78.144]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcEOe-0004GI-Tk for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 03:09:24 -0400 Received: by ey-out-1920.google.com with SMTP id 4so486585eyg.24 for ; Sun, 07 Sep 2008 00:09:15 -0700 (PDT) In-Reply-To: <851w16e23i.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: "S.P.Tseng" Cc: emacs-orgmode@gnu.org Hi Tseng, I don't think the indentation function in Org is good enough to apply it to the entire file anyway, so no action on this thread. Sorry. - Carsten On Aug 3, 2008, at 2:04 PM, S.P.Tseng wrote: > Bernt Hansen writes: > >> S.P.Tseng writes: >> >>> 2. Press tab at the line "Exclusive or.", indent error. >>> #+BEGIN_SRC emacs-lisp >>> (defun org-xor (a b) >>> "Exclusive or." >>> (if a (not b) b)) >>> #+END_SRC >> >> Switch to the appropriate mode first with C-c ' anywhere inside the >> SRC >> block and then indent works fine. You switch back to org-mode with >> another C-c ' > > In fact I want to stop org-mode treat [[xxxx.xx][xxxx]] as link with > #+BEGIN_EXAMPLE and #+END_EXAMPLE just like ":". >> >> I don't think it's reasonable that org-mode should know all of the >> indentation requirements for all other modes. > > I do not mean org-mode should know all of the indentation > requirements for all > other modes. I think the code between #+BEGIN_SRC and #+END_SRC is > better to > stop indent when I press Tab in them. > > Then I can use follow code two indent the whole buffer. > ,---- > | (defun iwb () > | "indent whole buffer" > | (interactive) > | (delete-trailing-whitespace) > | (indent-region (point-min) (point-max) nil) > | (untabify (point-min) (point-max))) > `---- > > For the moment, If I use the function iwb to indent the whole > buffer, the indent > of the code between #+BEGIN_SRC and #+END_SRC will be destroy. > > > > _______________________________________________ > 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