From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented Date: Wed, 20 Oct 2010 14:31:09 +0200 Message-ID: References: <87bp6vpks7.fsf@keller.adm.naquadah.org> <3B1391C6-72E9-4BAA-9197-7B27B26249BC@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1287577890 15765 80.91.229.12 (20 Oct 2010 12:31:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Oct 2010 12:31:30 +0000 (UTC) Cc: emacs-orgmode@gnu.org, emacs-devel@gnu.org To: Carsten Dominik Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 20 14:31:29 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P8XpI-0001Zv-QZ for ged-emacs-devel@m.gmane.org; Wed, 20 Oct 2010 14:31:29 +0200 Original-Received: from localhost ([127.0.0.1]:44686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8XpI-0005Hp-9H for ged-emacs-devel@m.gmane.org; Wed, 20 Oct 2010 08:31:28 -0400 Original-Received: from [140.186.70.92] (port=39477 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8Xp8-0005Hi-UJ for emacs-devel@gnu.org; Wed, 20 Oct 2010 08:31:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8Xp6-0008St-Kc for emacs-devel@gnu.org; Wed, 20 Oct 2010 08:31:18 -0400 Original-Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]:54635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8Xp6-0008SP-Fo; Wed, 20 Oct 2010 08:31:16 -0400 Original-Received: from cigue.easter-eggs.fr (cigue.easter-eggs.fr [10.0.0.33]) by rose.easter-eggs.fr (Postfix) with ESMTPS id 287491428A; Wed, 20 Oct 2010 14:31:07 +0200 (CEST) Original-Received: from jdanjou by cigue.easter-eggs.fr with local (Exim 4.72) (envelope-from ) id 1P8Xoz-0003k7-On; Wed, 20 Oct 2010 14:31:09 +0200 Mail-Followup-To: Carsten Dominik , emacs-orgmode@gnu.org, emacs-devel@gnu.org In-Reply-To: (Julien Danjou's message of "Mon, 18 Oct 2010 16:37:12 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131879 gmane.emacs.orgmode:32157 Archived-At: On Mon, Oct 18 2010, Julien Danjou wrote: > I've done this then: > > * TODO Blalaundo > > I go on `u', press C-space, then C-e. The M-; and execute > (x-selection-value), which returns: "undo". > > So far so good. But if I go on `u', press C-space, then C-e, then M-w, > then M-; to execute (x-selection-value), it returns "* TODO Blala". > > So it seems that when the org-startup-indented is set to t, M-w goes > crazy and set the primary selection wrongly. So it seems that the problem I raise does not interest anybody, but I will continue to debug. This is how to reproduce. In a Org buffer with org-startup-indented set to t, type: ** TODO abcdefgh Then: M-x debug-on-entry x-set-selection Go on `c', activate mark press C-e, press M-w (kill-ring-save). You'll hit several breakpoint until you'll get: Debugger entered--entering a function: * x-set-selection(PRIMARY "** TODO") deactivate-mark() And I've been further: saved-region-selection is nil Then as soon as I select the `c' of the above string, saved-region-selection is set to "** TODO". Which seems *bad*. :) --=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info