From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Indentation problem Date: Wed, 27 May 2009 13:15:53 -0400 Message-ID: <87ab4yh3g6.fsf@gollum.intra.norang.ca> References: <87skiqhcwk.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9MjS-0000vp-8X for emacs-orgmode@gnu.org; Wed, 27 May 2009 13:16:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9MjO-0000v3-Hl for emacs-orgmode@gnu.org; Wed, 27 May 2009 13:16:01 -0400 Received: from [199.232.76.173] (port=47629 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9MjO-0000v0-C9 for emacs-orgmode@gnu.org; Wed, 27 May 2009 13:15:58 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:60499) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M9MjO-0006sc-2J for emacs-orgmode@gnu.org; Wed, 27 May 2009 13:15:58 -0400 In-Reply-To: (Spike Spiegel's message of "Thu\, 28 May 2009 01\:05\:28 +0800") 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: Spike Spiegel Cc: emacs-orgmode@gnu.org Spike Spiegel writes: > On Wed, May 27, 2009 at 9:51 PM, Bernt Hansen wrote: >> Is your TAB key bound to the correct function? =C2=A0(C-h k TAB) gives me >> =C2=A0- runs the command yas/expand >> =C2=A0 in my regular setup and >> =C2=A0- runs the command org-cycle >> =C2=A0 in my minimal emacs setup >> >> Both work the same for me. > > I haven't figured out what yet, but cleaning out my settings and only > importing a few selected ones and re-checking out 6.27a made it work, > should have done that before sorry. On the other hand I'm not sure > what you mean with "regular setup" and "minimal emacs setup". With the > orgmode loaded c-h k tells me org-cycle. My regular setup is http://doc.norang.ca/org-mode.html and minimal emacs set up is 'emacs -q -l ~/minimal.emacs' which just load basics org stuff without all of my customizations. ,----[ minimal.emacs ] | (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp")) | (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org= -mode)) | (require 'org-install) `---- I use the minimal emacs setup for testing to make sure I haven't messed up org with local configuration stuff. > > that said, if I copy paste something I still get the long lines > incorrectly indented. For example, given: > ** TODO something to do > SCHEDULED: <2009-05-30 Sat> > [2009-05-27 Wed] > > and then pasting stuff from the c-h k I get: > ** TODO something to do > SCHEDULED: <2009-05-30 Sat> > [2009-05-27 Wed] > This is the command invoked in Org-moe by the TAB key. It's main purp= ose > is outine visibility cycling, but it also invokes other actions > in special contexts. > > (Note that positioning the cursor after Wed] then RET and then TAB > moved the cursor to the expected position) > > thoughts? I get the same thing. To fix it I insert a blank line before the pasted te= xt, hit TAB on the second line so both line 1 and 2 are indented then M-q to fill to fix it up. I don't expect org-mode to do that automagically for me. -Bernt