From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [bug]x2 #+BEGIN_EXAMPLE can not work and #+BEGIN_SRC indent error Date: Thu, 31 Jul 2008 08:00:15 -0400 Message-ID: <87hca65kmo.fsf@gollum.intra.norang.ca> References: <85fxpqecss.fsf@modprobe.cn> 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 1KOWpc-00036c-Fq for emacs-orgmode@gnu.org; Thu, 31 Jul 2008 08:00:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOWpb-00035I-5L for emacs-orgmode@gnu.org; Thu, 31 Jul 2008 08:00:31 -0400 Received: from [199.232.76.173] (port=32781 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOWpa-00034t-UF for emacs-orgmode@gnu.org; Thu, 31 Jul 2008 08:00:30 -0400 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:58104) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KOWpa-0002TF-Ny for emacs-orgmode@gnu.org; Thu, 31 Jul 2008 08:00:30 -0400 In-Reply-To: <85fxpqecss.fsf@modprobe.cn> (S. P. Tseng's message of "Thu\, 31 Jul 2008 15\:24\:35 +0800") 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 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 ' I don't think it's reasonable that org-mode should know all of the indentation requirements for all other modes. -Bernt