From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Re: Bug with org-startup-folded? Date: Fri, 30 Nov 2007 12:25:44 +0000 Message-ID: <8763zjly2f.fsf@bzg.ath.cx> References: <474D8FA4.6000703@gmail.com> <474EDB33.2080008@gmail.com> <474F40AD.6090002@gmail.com> 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 1Iy4wM-0006WD-K0 for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 07:25:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iy4wJ-0006Vq-Sg for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 07:25:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy4wJ-0006Vn-Pq for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 07:25:51 -0500 Received: from nf-out-0910.google.com ([64.233.182.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iy4wJ-0001DV-Jb for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 07:25:51 -0500 Received: by nf-out-0910.google.com with SMTP id f5so2138314nfh for ; Fri, 30 Nov 2007 04:25:50 -0800 (PST) In-Reply-To: <474F40AD.6090002@gmail.com> (Wanrong Lin's message of "Thu, 29 Nov 2007 17:43:57 -0500") 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 Wanrong Lin writes: > (setq org-agenda-file-regexp "\\.org\\'") > (add-to-list 'auto-mode-alist `(,org-agenda-file-regexp . org-mode)) This is weird. Why don't you simply use this: (add-to-list 'auto-mode-alist ("\\.org\\'" . org-mode)) > By inserting some "message" statements (that is how far I can go on > debugging elisp code) in org-mode function, I found that when I visit a > ".org" file for the fist time, "org-mode" function is not called at all! > But the file does open as an normal org-mode file (with "Org" appearing > in the mode-line), except the text is not folded. This looks also weird. I think your configuration is somehow broken. Does this happen with every .org file? You should check the consistence of the global variables `org-startup-options' `org-startup-folded' *and* of local options in your Org file. -- Bastien