From: pinard@iro.umontreal.ca (François Pinard)
To: emacs-orgmode@gnu.org
Subject: org-yank improvement?
Date: Sun, 04 Mar 2012 07:47:47 -0500 [thread overview]
Message-ID: <87ipikr0r0.fsf@iro.umontreal.ca> (raw)
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çois
next reply other threads:[~2012-03-04 12:47 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-04 12:47 François Pinard [this message]
2012-03-04 14:26 ` org-yank improvement? François Pinard
2012-03-04 15:30 ` Memnon Anon
2012-03-04 15:45 ` Thorsten
2012-04-11 6:38 ` Bastien
2012-04-11 7:07 ` Carsten Dominik
2012-04-11 11:50 ` Bernt Hansen
2012-04-11 12:59 ` Bastien
2012-04-12 14:02 ` Thorsten
2012-04-12 14:28 ` Nicolas Goaziou
2012-04-12 16:59 ` Thorsten
2012-04-12 13:56 ` Thorsten
2012-03-04 16:23 ` Bernt Hansen
2012-03-04 16:41 ` Memnon Anon
2012-03-04 18:41 ` Bernt Hansen
2012-04-11 1:31 ` François Pinard
2012-04-11 1:43 ` François Pinard
2012-04-11 6:33 ` Bastien
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ipikr0r0.fsf@iro.umontreal.ca \
--to=pinard@iro.umontreal.ca \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).