From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Danjou 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: (Julien Danjou's message of "Mon, 18 Oct 2010 16:37:12 +0200") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 To: Carsten Dominik Cc: emacs-orgmode@gnu.org, emacs-devel@gnu.org List-Id: emacs-orgmode.gnu.org 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