emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Clemente <n142857@gmail.com>
To: Org-mode Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: demoting a heading inserts spaces in column-0 text
Date: Thu, 11 Dec 2014 19:36:58 +0700	[thread overview]
Message-ID: <CAJKAhPCBK2E=CjynT5xP7jAzb23g1BQELhMs-RfTWx4r=+Pesw@mail.gmail.com> (raw)
In-Reply-To: <871tod3bu5.fsf@nicolasgoaziou.fr>

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

> >    Proposal: if text starts in column 0, don't move the text; move
> >    only the headers.
>
> Then, in this case, :CLOCK: drawer will not move either. Unless
> "headers" is defined as "stuff not too far from the headline". But it is
> too vague to be usable.

> There no such thing as a your "headers" in Org. :CLOCK: and "Text" are
> treated equally, as contents of the headline.

  Of course everything's text, but if there's no distinction between
drawers/headers and text, that's the problem. Those headers are metadata
written and managed by org and must follow some rules, whereas the rest of
text is data typed by the user and relatively free. Those headers must even
follow strict processes (like being "repaired" to make CLOCK appear after
PROPERTIES), so I wouldn't say they are normal text.
  Maybe you are referring to the non-drawers metadata, i.e. to those notes
that you can add with C-c C-z. That's in the limbo between org data and
text, that's the tricky part. I don't know whether that should be indented
together with the drawers, probably yes.
  So, I think org should detect its own syntax (:CLOCK: ... :END: etc.), and
do automatic changes only to its own syntax, not to text typed by the user
unless the user asks for it.

--
Daniel

On Sat, Dec 6, 2014 at 6:40 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Daniel Clemente <n142857@gmail.com> writes:
>
> >   There was a change (cba2f0a2a3024ae5bf71e1a12ba99778a92902a2, Sat
> >   Nov 8 14:35:24 2014 +0100) which made :CLOCK: etc entries shift to
> >   the right when the tree is being shifted to the right ("demoted",
> >   e.g. using M-S-Right).
> >
> >
> > But now it changes from this:
> >
> > **** some
> >       :CLOCK:
> >       CLOCK: [2013-11-12 Sel 10:45]--[2013-11-12 Sel 11:40] =>  0:55
> >       :END:
> > Text
> >
> >
> >
> >   to this:
> >
> > ***** some
> >        :CLOCK:
> >        CLOCK: [2013-11-12 Sel 10:45]--[2013-11-12 Sel 11:40] =>  0:55
> >        :END:
> >  Text
> >
> >
> >
> >    while what I expected was this:
> >
> > ***** some
> >        :CLOCK:
> >        CLOCK: [2013-11-12 Sel 10:45]--[2013-11-12 Sel 11:40] =>  0:55
> >        :END:
> > Text
> >
> >
> >
> >
> >    Proposal: if text starts in column 0, don't move the text; move
> >    only the headers.
>
> Then, in this case, :CLOCK: drawer will not move either. Unless
> "headers" is defined as "stuff not too far from the headline". But it is
> too vague to be usable.
>
> >    An old behaviour (reported in
> http://permalink.gmane.org/gmane.emacs.orgmode/92450) was not to move
> anything in this case, that's bad and was fixed. I think the proposal is
> better.
> >    org-adapt-indentation=nil would write all headers in column 0 by
> >    default, which is ugly and doesn't give the desired result.
>
> There no such thing as a your "headers" in Org. :CLOCK: and "Text" are
> treated equally, as contents of the headline.
>
>
> Regards,
>
> --
> Nicolas Goaziou
>

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

  reply	other threads:[~2014-12-11 12:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-05 13:02 demoting a heading inserts spaces in column-0 text Daniel Clemente
2014-12-05 23:40 ` Nicolas Goaziou
2014-12-11 12:36   ` Daniel Clemente [this message]
2014-12-12 18:25     ` Nicolas Goaziou
2014-12-13 10:28       ` Daniel Clemente
2014-12-13 11:33         ` Nicolas Goaziou
2014-12-13 13:38           ` Daniel Clemente
2014-12-13 14:10             ` Nicolas Goaziou
     [not found]               ` <87iohequ70.wl-n142857@gmail.com>
2014-12-22  5:43                 ` Fwd: " Daniel Clemente
2014-12-22 11:34                   ` Nicolas Goaziou
2014-12-22 15:28                     ` Sebastien Vauban
2014-12-23  8:41                       ` Nicolas Goaziou
2015-01-09 16:02                     ` Daniel Clemente
2015-01-13 11:10                       ` Nicolas Goaziou
2015-01-16 14:29                         ` Daniel Clemente

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='CAJKAhPCBK2E=CjynT5xP7jAzb23g1BQELhMs-RfTWx4r=+Pesw@mail.gmail.com' \
    --to=n142857@gmail.com \
    --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).