From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-yank improvement? Date: Wed, 11 Apr 2012 08:33:53 +0200 Message-ID: <87ehruaib2.fsf@gnu.org> References: <87ipikr0r0.fsf@iro.umontreal.ca> <86d37f59nf.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHr6i-0003rR-Qb for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 02:32:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHr6e-0002s0-Hh for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 02:32:44 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:36381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHr6e-0002rs-8w for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 02:32:40 -0400 Received: by wgbdr1 with SMTP id dr1so393554wgb.30 for ; Tue, 10 Apr 2012 23:32:38 -0700 (PDT) In-Reply-To: <86d37f59nf.fsf@iro.umontreal.ca> (=?iso-8859-1?Q?=22Fran=E7o?= =?iso-8859-1?Q?is?= Pinard"'s message of "Tue, 10 Apr 2012 21:43:35 -0400") 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: =?iso-8859-1?Q?Fran=E7ois?= Pinard Cc: emacs-orgmode@gnu.org Hi François, pinard@iro.umontreal.ca (François Pinard) writes: > pinard@iro.umontreal.ca (François 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. If you play with this idea, make sure basic commands like `org-demote' are still working. -- Bastien