From mboxrd@z Thu Jan 1 00:00:00 1970 From: pinard@iro.umontreal.ca (=?utf-8?Q?Fran=C3=A7ois?= Pinard) Subject: org-yank improvement? Date: Sun, 04 Mar 2012 07:47:47 -0500 Message-ID: <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]:48027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4Aqu-0004h5-WE for emacs-orgmode@gnu.org; Sun, 04 Mar 2012 07:47:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4Aqt-0008WS-Go for emacs-orgmode@gnu.org; Sun, 04 Mar 2012 07:47:52 -0500 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:51382 helo=mercure.epsilon-ti.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4Aqt-0008Vu-Au for emacs-orgmode@gnu.org; Sun, 04 Mar 2012 07:47:51 -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 Hi again, Org people! I often cut a list item (or a hierarchy of list items) to reinsert it into another heading which I know contains only list items. All the headings are collapsed, so what I usually do is position the cursor at the beginning of the /next/ heading and yank the list item there, this has the effect of inserting it at the end of the previous heading, no need to open it. However, by mistake, it happens that the cursor is on the only visible bullet star of the next heading (I'm using clean mode, as probably everybody does!) instead of really being at the start of the line. In this case, yanking is physically done between two stars in the string of stars (all but the last being hidden) making the outline level, which breaks the layout of course. I just undo, reposition the cursor better with Ctrl-A and retry. 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. Of course, it is my error. Yet, Org mode could be friendlier, here! Fran=C3=A7ois