From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanrong Lin Subject: Re: Re: Bug with org-startup-folded? Date: Sat, 01 Dec 2007 17:46:05 -0500 Message-ID: <4751E42D.5000200@gmail.com> References: <474D8FA4.6000703@gmail.com> <474EDB33.2080008@gmail.com> <474F40AD.6090002@gmail.com> <8763zjly2f.fsf@bzg.ath.cx> <47507A20.8050600@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iyb6F-0000Mf-56 for emacs-orgmode@gnu.org; Sat, 01 Dec 2007 17:46:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iyb6D-0000KI-Rp for emacs-orgmode@gnu.org; Sat, 01 Dec 2007 17:46:14 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iyb6D-0000Jn-LW for emacs-orgmode@gnu.org; Sat, 01 Dec 2007 17:46:13 -0500 Received: from py-out-1112.google.com ([64.233.166.176]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iyb6D-0005hv-8H for emacs-orgmode@gnu.org; Sat, 01 Dec 2007 17:46:13 -0500 Received: by py-out-1112.google.com with SMTP id a73so5744659pye for ; Sat, 01 Dec 2007 14:46:12 -0800 (PST) In-Reply-To: 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: Carsten Dominik Cc: emacs-orgmode@gnu.org Hi, Carsten, Following my last email, I wonder whether you can consider doing one of these two things in org-mode: 1. org-agenda-to-appt does not explicitly open a buffer for every org-file in the org-agenda-files, or 2. org-agenda-to-appt will honor the global org-startup-folded option. It seems the buffers opened by org-agenda-to-appt does honor the folding settings in the "#STARTUP" per file option. So I think it is natural and consistent for org-agenda-to-appt to honor the global options too when opening org-mode files. Thank you for giving it a thought. Wanrong Carsten Dominik wrote: > Hi Wanrong, > > unfortunately I am not able to reproduce what you describe, > so my suspicion is that it is still something in you setup. > I recommend that you try things with an absolutely minimum > setup, and with emacs -Q.... > > -- Carsten > > On 11/30/07, Wanrong Lin wrote: > >> Bastien wrote: >> >>> 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)) >>> >>> >>> >> I did my way because I want to set org-agenda-file-regexp and >> consistently use it any place the regexp is needed. >> >>>> 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. >>> >>> >> Yes, this happens with every .org file. My org files have no local >> options at all, and all those variables you mentioned seem OK to me. The >> most puzzling thing, as I said before, is if you open a file the second >> time, the folding works, but not on the same file when opened the first >> time. Why would first time/second time make a difference on how org-mode >> behaves? Who is tracking whether the file is opened the first time or >> not? Scratching my head hard... >> >> Wanrong >> >> >> >> >> >> >> _______________________________________________ >> 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 >> >>