From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: doing `M-x org-mode' loses point Date: Fri, 16 Jun 2006 21:17:43 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FrJpC-0003HI-Bc for emacs-orgmode@gnu.org; Fri, 16 Jun 2006 15:17:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FrJpB-0003Fr-Bh for emacs-orgmode@gnu.org; Fri, 16 Jun 2006 15:17:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FrJpB-0003FZ-6G for emacs-orgmode@gnu.org; Fri, 16 Jun 2006 15:17:45 -0400 Received: from [194.134.35.144] (helo=smtp04.wanadoo.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FrJyr-00061K-Kw for emacs-orgmode@gnu.org; Fri, 16 Jun 2006 15:27:45 -0400 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: Eduardo Ochs Cc: emacs-orgmode@gnu.org On Jun 16, 2006, at 16:41, Eduardo Ochs wrote: > > So, is this org-mode-jumps-to-the-first-header-line a bug or a > feature? Is there a standard workaround? Org-mode repositions the curser when it changes the visibility in a buffer, to make sure that the screen is used when you switch to overview mode, for example. The change you see is because when switching to org-mode, the default setting is to hide everything except for top-level headlines. So visibility is changed when you enter org-mode, and consequently the cursor moves. In your case, changeing the visibility is as unwanted as moving the cursor. You can turn this off globally with (setq org-startup-folded nil) Or turn it off for just this buffer by adding this line to the file: #+STARTUP: showall If you generally dislike the cursor motion after visibility change, you can also do (setq org-cycle-hook nil) Hope this helps. - Carsten -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477