From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanrong Lin Subject: Re: Bug: return key does not show the subtree the first time on a newly opened org file Date: Wed, 27 Feb 2008 12:14:10 -0500 Message-ID: <47C59A62.1090300@gmail.com> References: <47C59703.8020804@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 1JUPrR-0005zF-Um for emacs-orgmode@gnu.org; Wed, 27 Feb 2008 12:14:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUPrP-0005wL-2T for emacs-orgmode@gnu.org; Wed, 27 Feb 2008 12:14:28 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUPrO-0005w3-Bl for emacs-orgmode@gnu.org; Wed, 27 Feb 2008 12:14:26 -0500 Received: from fg-out-1718.google.com ([72.14.220.157]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUPrN-0007um-Rs for emacs-orgmode@gnu.org; Wed, 27 Feb 2008 12:14:26 -0500 Received: by fg-out-1718.google.com with SMTP id d23so12738224fga.30 for ; Wed, 27 Feb 2008 09:14:21 -0800 (PST) In-Reply-To: <47C59703.8020804@gmail.com> 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 Forgot to mention this: To reproduce the bug, after opening an org file, don't do anything (don't even move the cursor), just press the return key. I use "session.el", so when I open an org file, the cursor will go to the the position of my last change in the buffer, and I can arrange the point to be on a heading. If you don't use "session.el", here is another way to reproduce the bug: Open a test org file "test.org" and put the following into it, * TODO A Test :mytag: SCHEDULED: <2008-02-27 Wed> *Close* the file, do a tag search on "mytag", in the search result press "TAB" key to jump to the "TODO A Test" heading, which should be folded. Press return key and you will see the failure. Do it again and it works. Wanrong Wanrong Lin wrote: > Hi, > > I have the following in my org-mode configuration: > > (setq org-return-follows-link t) > > Also, by default my org files are in overview mode (folded) when opened. > > Usually, if my cursor is at the beginning of a heading, I can use the > return key to cycle the visibility of its subtree. However, this does > not work when I open an org file and do it the first time (the return > key will just insert a blank line before the heading). But after the > first time, it works fine again. > > Thanks a lot for looking into this. > > Wanrong > > > >