From mboxrd@z Thu Jan 1 00:00:00 1970 From: pinard@iro.umontreal.ca (=?utf-8?Q?Fran=C3=A7ois?= Pinard) Subject: Re: org-yank improvement? Date: Tue, 10 Apr 2012 21:43:35 -0400 Message-ID: <86d37f59nf.fsf@iro.umontreal.ca> References: <87ipikr0r0.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHmb0-0004VB-VN for emacs-orgmode@gnu.org; Tue, 10 Apr 2012 21:43:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHmay-0003ph-EX for emacs-orgmode@gnu.org; Tue, 10 Apr 2012 21:43:42 -0400 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:56595 helo=mercure.progiciels-bpi.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHmay-0003pP-8e for emacs-orgmode@gnu.org; Tue, 10 Apr 2012 21:43:40 -0400 In-Reply-To: <87ipikr0r0.fsf@iro.umontreal.ca> (=?utf-8?Q?=22Fran=C3=A7ois?= Pinard"'s message of "Sun, 04 Mar 2012 07:47:47 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org pinard@iro.umontreal.ca (Fran=C3=A7ois Pinard) writes: > [...] so what I usually do is position the cursor at > the beginning of the /next/ heading and yank the list item there. [...] > However, by mistake, it happens that the cursor is on the only visible > bullet star of the next heading (I'm using org-indent-mode > instead of really being at the start of the line. > It never really make sense, in my opinion, to yank in the middle of an > invisible string. Luckily enough, yanking is done through a special > org-yank function, so it is at least theoretically possible to prevent > this. My suggestion would be that whenever yanking into a start string, > that the yanking really occurs at the beginning of it. While revising old email, I'm stumbling on this, and just got a small idea. I do not know if it would work. While playing with the visibility of the stars, maybe that the text between the beginning of the line up to the last and only visible star in a header could be given the "intangible" attribute. I did not play with this in a very long while, but if I remember well, this would prevent inserting in the middle of this region. Fran=C3=A7ois