emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Brian van den Broek <brian.van.den.broek@gmail.com>
To: Charles Millar <millarc@verizon.net>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Possible bug - shifting headline - hashmark and what follows is considered part of headline that is shifted
Date: Fri, 23 May 2014 12:30:07 -0400	[thread overview]
Message-ID: <CAF6DajL330zGq5pyhfCy1715upW-=ob7Z5SQODiqXM4wH51NUg@mail.gmail.com> (raw)
In-Reply-To: <537F709F.7030103@verizon.net>

[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]

On May 23, 2014 12:02 PM, "Charles Millar" <millarc@verizon.net> wrote:
>
> Hi Bastien,
>
> Bastien wrote:
>>
>> Hi Charles,
>>
>> Charles Millar <millarc@verizon.net> writes:
>>
>>> If I attempt to move headline 2b above 2a (M-up)
>>>
>>> * 1
>>> ** 2a
>>> ** 2b
>>>
>>> #  LocalWords:  XXXXXXXX YYYYYYYY
>>>
>>> the result is
>>>
>>> * 1
>>> ** 2b
>>>
>>> #  LocalWords:  XXXXXXXX YYYYYYYYY
>>> ** 2a
>>
>>
>> Yes, #  LocalWords:  XXXXXXXX YYYYYYYYY is part of the ** 2b headline.
>>
> Should it be as such, since # LocalWords since it is associated with
ispell/flyspell and really has nothing to do with headline ** 2b?
>
> Of course what I neglected to mention was that I would expect, which
would be
>
> * 1
> ** 2b
> ** 2a
>
> #  LocalWords:  XXXXXXXX YYYYYYYYY
>
> Regards,
> Charlie

Hi Charlie and all,

As I understand the parsing of an org file, if you have a heading of level
n, everything below it until a heading of level m, m < n, is it its
subtree. Org doesn't know that you want that line at the bottom of buffer
(say) and not associated with the current headline and current active
subtrees.

Many of my org files have a final top level config headline to hold various
in-buffer settings. Would that work for your case?

Best,

Brian vdB

[-- Attachment #2: Type: text/html, Size: 1927 bytes --]

  reply	other threads:[~2014-05-23 16:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-23 15:28 Possible bug - shifting headline - hashmark and what follows is considered part of headline that is shifted Charles Millar
2014-05-23 15:33 ` Bastien
2014-05-23 16:00   ` Charles Millar
2014-05-23 16:30     ` Brian van den Broek [this message]
2014-05-23 16:23   ` Charles Millar
2014-05-23 17:27     ` Bastien
2014-05-23 17:51       ` Charles Millar
2014-05-23 19:21         ` Bastien
2014-05-23 20:13           ` Charles Millar
2014-05-24  7:41           ` Sebastien Vauban
2014-05-24  7:59             ` Bastien
2014-05-24 13:19               ` Charles Millar
2014-05-24 14:54                 ` 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='CAF6DajL330zGq5pyhfCy1715upW-=ob7Z5SQODiqXM4wH51NUg@mail.gmail.com' \
    --to=brian.van.den.broek@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=millarc@verizon.net \
    /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).