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: Thu, 28 Feb 2008 10:31:47 -0500 Message-ID: <47C6D3E3.8070706@gmail.com> References: <47C59703.8020804@gmail.com> <87ir096est.fsf@bzg.ath.cx> <47C61996.5090603@gmail.com> <87lk55ctff.fsf@bzg.ath.cx> 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 1JUkjt-0001bO-Fa for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 10:32:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUkjr-0001ai-Sw for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 10:32:05 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUkjr-0001af-O1 for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 10:32:03 -0500 Received: from hs-out-0708.google.com ([64.233.178.247]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUkjr-0005mA-Pv for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 10:32:03 -0500 Received: by hs-out-0708.google.com with SMTP id j58so2455908hsj.10 for ; Thu, 28 Feb 2008 07:32:03 -0800 (PST) In-Reply-To: <87lk55ctff.fsf@bzg.ath.cx> 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 Cc: emacs-orgmode@gnu.org Bastien Guerry wrote: > Carsten Dominik writes: > > >>> Yes, but only with this setting will key be added to the >>> "org-mouse-map" key map, and be bound to "org-open-at-point" command >>> under certain contexts (like on the leading stars of a heading). >>> Further, "org-open-at-point" is advised by org-mouse.el, which will >>> do "org-cycle" under certain contexts. >>> >> Yes, this is really an accidental feature by a sequence of events: >> >> org-return-follow-link will add org-return to the mouse-map >> org-mouse.el will activate the stars in a headline >> > > Yes, there is an advice for this in org-mouse.el. > > I think we should remove it since org-mouse.el shouldn't change the > behavior of keystrokes (only the behavior of the mouse.) > > That probably is true. But I have doubt that removing the advice itself and bind the key in some other place will really solve the problem. To me, it seems somehow the first time you open a org-file, some context is not recognized correctly and hence the key map is not activated. If I just execute a command, any command (like "C-g" which does nothing), and then press the return key, it will work. Is that puzzling? :-) Wanrong