From mboxrd@z Thu Jan 1 00:00:00 1970 From: PT Subject: Re: Stuck in a folded section when subtree is folded Date: Mon, 7 Sep 2009 17:15:46 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkhpD-0003m4-2q for emacs-orgmode@gnu.org; Mon, 07 Sep 2009 13:16:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mkhp8-0003dX-Qw for emacs-orgmode@gnu.org; Mon, 07 Sep 2009 13:16:18 -0400 Received: from [199.232.76.173] (port=41839 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mkhp7-0003cu-SZ for emacs-orgmode@gnu.org; Mon, 07 Sep 2009 13:16:13 -0400 Received: from lo.gmane.org ([80.91.229.12]:45909) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mkhp7-00076M-8E for emacs-orgmode@gnu.org; Mon, 07 Sep 2009 13:16:13 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mkhp4-0001gL-LE for emacs-orgmode@gnu.org; Mon, 07 Sep 2009 19:16:10 +0200 Received: from dsl51B613A0.pool.t-online.hu ([81.182.19.160]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Sep 2009 19:16:10 +0200 Received: from spamfilteraccount by dsl51B613A0.pool.t-online.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Sep 2009 19:16:10 +0200 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 PT gmail.com> writes: > > If a header has some text content under it and the cursor is in > the text then pressing TAB folds the content, but it doesn't > change the cursor position, so the cursor is stuck in the folded > part and, for example, beginning-of-line doesn't work, you can > only get out from the folded part if you press cursor up/down > For the time being I fixed it for myself with an advice. Here it is if someone's interested: (defadvice org-cycle (after my-org-cycle activate) (if (outline-invisible-p) (outline-previous-visible-heading 1)))