emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Wanrong Lin <wrglin@gmail.com>
To: Carsten Dominik <dominik@science.uva.nl>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Bug with org-startup-folded?
Date: Sat, 01 Dec 2007 17:46:05 -0500	[thread overview]
Message-ID: <4751E42D.5000200@gmail.com> (raw)
In-Reply-To: <acf852aa0712010346u7fb263aes3a84cfabc4a784c5@mail.gmail.com>


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 <wrglin@gmail.com> wrote:
>   
>> Bastien wrote:
>>     
>>> Wanrong Lin <wanrong.lin@gmail.com> 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
>>
>>     

  parent reply	other threads:[~2007-12-01 22:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-28 15:56 Bug with org-startup-folded? Wanrong Lin
2007-11-29 15:30 ` Wanrong Lin
2007-11-29 22:43   ` Wanrong Lin
2007-11-30 12:25     ` Bastien
2007-11-30 21:01       ` Wanrong Lin
     [not found]         ` <acf852aa0712010346u7fb263aes3a84cfabc4a784c5@mail.gmail.com>
2007-12-01 19:31           ` Wanrong Lin
2007-12-01 22:46           ` Wanrong Lin [this message]
2007-12-02  0:23             ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4751E42D.5000200@gmail.com \
    --to=wrglin@gmail.com \
    --cc=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).