From: Samuel Wales <samologist@gmail.com>
To: Jeff Horn <jrhorn424@gmail.com>
Cc: Bastien <bzg@altern.org>,
nicholas.dokos@hp.com, Org-mode ml <emacs-orgmode@gnu.org>,
Nicolas Goaziou <n.goaziou@gmail.com>
Subject: Re: Refiling list items
Date: Fri, 28 Jun 2013 14:09:32 -0700 [thread overview]
Message-ID: <CAJcAo8uN3DfuLrA6ZOqAK_UM6uV_DAY-8kBzYwO0P_VHYyrLhQ@mail.gmail.com> (raw)
In-Reply-To: <CA+K2SAyMp=V6zLBVkAvxmnBDf-U2mqv3x+hKiyKKi0-YOWyqmA@mail.gmail.com>
I confirm the following bug in git master.
P.S. One possibility for the OP's question would be to allow a
special prefix arg to select the list item and its children as a
region then call refile region.
On 1/17/12, Jeff Horn <jrhorn424@gmail.com> wrote:
> On Wed, Aug 17, 2011 at 05:32, Bastien <bzg@altern.org> wrote:
>> I pushed three small changes to the org-refile interface:
>>
>> 1. before prompting the user for a refile target, put the point at the
>> beginning of the region/subtree to refile. This will make sure
>> everyone understands we are refiling headlines, not text.
>>
>> 2. Improve the prompt itself, explicitely saying whether we are refiling
>> a subtree or a region (containing subtree(s)).
>>
>> 3. Add a new option `org-refile-active-region-within-subtree' which,
>> when turned on, allows the user to refile the active region, turning
>> the first line into a headline using `org-toggle-heading'.
>>
>> I think these are improvements going in the right direction -- let me
>> know what you think. On the overall, I'm with Nicolas in thinking that
>> we need to be extra careful when we try to extend a functionality to
>> heterogeneous elements.
>
> I've just come across an instance when this functionality was useful
> again. I like the solution you've implemented, Bastien. There's just a
> small problem I see right now, which pops up in particular with the
> example outline from my OP.
>
> ,----[ Sample Outline ]
> | * Headline 1
> | - List level 1
> | - List level 2
> | * Headline 2
> | Some text.
> `----
>
> Selecting the region with the second line and third line, inclusive
> (the plain list under Heading 1), refiling with
> `org-refile-active-region-within-subtree' toggled on produces the
> following outline:
>
> ,----[ Results ]
> | * Headline 1
> | 2
> | * Headline 2
> | Some text.
> | ** List level 1
> | - List level
> `----
>
> As you can see, the digit at the end of the list gets orphaned.
>
> --
> Jeffrey Horn
> http://www.failuretorefrain.com/jeff/
>
>
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.
next prev parent reply other threads:[~2013-06-28 21:09 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-06 18:54 Refiling list items Jeff Horn
2011-08-08 4:09 ` Jeff Horn
2011-08-08 9:48 ` Nicolas Goaziou
2011-08-08 22:35 ` Jeff Horn
2011-08-08 23:03 ` Nicolas Goaziou
2011-08-08 23:47 ` Jeff Horn
2011-08-09 0:02 ` Nick Dokos
2011-08-09 2:31 ` suvayu ali
2011-08-09 0:20 ` Nick Dokos
2011-08-09 0:40 ` Jeff Horn
2011-08-09 0:45 ` Jeff Horn
2011-08-10 10:05 ` Nicolas Goaziou
2011-08-10 15:16 ` Jeff Horn
2011-08-17 9:32 ` Bastien
2011-08-22 16:12 ` Jeff Horn
2012-01-18 4:56 ` Jeff Horn
2013-06-28 21:09 ` Samuel Wales [this message]
2013-06-30 23:16 ` Bastien
2013-07-01 21:35 ` Samuel Wales
2013-07-02 7:32 ` Bastien
2011-08-09 1:07 ` Florian Beck
2011-08-08 16:12 ` Florian Beck
2011-08-08 17:05 ` Nicolas Goaziou
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=CAJcAo8uN3DfuLrA6ZOqAK_UM6uV_DAY-8kBzYwO0P_VHYyrLhQ@mail.gmail.com \
--to=samologist@gmail.com \
--cc=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
--cc=jrhorn424@gmail.com \
--cc=n.goaziou@gmail.com \
--cc=nicholas.dokos@hp.com \
/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).