From: Julien Danjou <julien@danjou.info>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org, emacs-devel@gnu.org
Subject: Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented
Date: Wed, 20 Oct 2010 14:31:09 +0200 [thread overview]
Message-ID: <sa38w1txcz6.fsf@cigue.easter-eggs.fr> (raw)
In-Reply-To: <sa3bp6r1s9z.fsf@cigue.easter-eggs.fr> (Julien Danjou's message of "Mon, 18 Oct 2010 16:37:12 +0200")
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*. :)
--
Julien Danjou
// ᐰ <julien@danjou.info> http://julien.danjou.info
next prev parent reply other threads:[~2010-10-20 12:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-15 14:56 Weird behaviour with org-yank and org-startup-indented Julien Danjou
2010-10-17 6:08 ` Carsten Dominik
2010-10-18 14:37 ` Julien Danjou
2010-10-18 14:37 ` Julien Danjou
2010-10-20 12:31 ` Julien Danjou [this message]
2010-10-20 15:09 ` [Orgmode] " Chong Yidong
2010-10-20 15:24 ` Julien Danjou
2010-10-20 15:38 ` Andreas Röhler
2010-10-20 15:58 ` [Orgmode] " Chong Yidong
2010-10-20 15:33 ` Chong Yidong
2010-10-20 15:37 ` Lennart Borgman
2010-10-20 17:38 ` Stefan Monnier
2010-10-21 17:40 ` Chong Yidong
2010-10-21 17:38 ` Carsten Dominik
2010-10-21 17:38 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sa38w1txcz6.fsf@cigue.easter-eggs.fr \
--to=julien@danjou.info \
--cc=carsten.dominik@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.