From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Danjou Subject: Weird behaviour with org-yank and org-startup-indented Date: Fri, 15 Oct 2010 16:56:08 +0200 Message-ID: <87bp6vpks7.fsf@keller.adm.naquadah.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=59077 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6lhk-0001Ns-MA for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 10:56:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6lhh-0004DJ-Ml for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 10:56:20 -0400 Received: from prometheus.naquadah.org ([212.85.154.174]:37098 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6lhh-0004CT-Hv for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 10:56:17 -0400 Received: from keller.adm.naquadah.org (unknown [IPv6:2a01:e35:2e39:e900:222:faff:fe9d:ce44]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 200525C0F1 for ; Fri, 15 Oct 2010 16:56:09 +0200 (CEST) Received: from jd by keller.adm.naquadah.org with local (Exim 4.72) (envelope-from ) id 1P6lhY-0002TU-IG for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 16:56:08 +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 Hi, I'm using org 7.01h with Emacs 24 trunk. When I set org-startup-indented to t, I observe the following: ** TODO Some stuff I select "stuff" and press M-w. Then I go the the line under and press C-y (org-yank). Now I got: ** TODO Some stuff ** TODO Some instead of: ** TODO Some stuff stuff Note that after M-w, `kill-ring' has a correct first entry of "stuff": (#("stuff" 0 5 (fontified t face org-level-2)) ...) But on C-y (org-yank) something happens, and it paste the wrong text. I think it's trying to be smart but it's not. I've found that setting org-startup-indented to nil fix that behaviour. What's wrong? --=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info