From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: demoting a heading inserts spaces in column-0 text Date: Sat, 13 Dec 2014 12:33:16 +0100 Message-ID: <87bnn7aio3.fsf@nicolasgoaziou.fr> References: <87k326i71d.wl-n142857@gmail.com> <871tod3bu5.fsf@nicolasgoaziou.fr> <87388mvxgd.fsf@nicolasgoaziou.fr> <87lhmbrgi1.wl-n142857@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xzkw4-0005lx-1c for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 06:32:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xzkvt-0004ki-SG for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 06:32:31 -0500 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:46582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xzkvt-0004ka-MG for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 06:32:21 -0500 In-Reply-To: <87lhmbrgi1.wl-n142857@gmail.com> (Daniel Clemente's message of "Sat, 13 Dec 2014 17:28:06 +0700") 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: Daniel Clemente Cc: Org-mode Org-Mode Daniel Clemente writes: > But these are technical details, not relevant to a non-programmer. Which basically means nothing, because everything ultimately boils down to technical details. > What a new user sees with the default settings as of today is: Aren't you confusing your expectations and new users'? > - he writes a new tree and some text inside > - he clocks in > - he demotes the tree (shift+right) because he wants to change the tree s= tructure. Result: his text also is modified FUD. Neither the text nor its structure are modified. Only indentation is. How it is done is explained in `org-adapt-indentation' docstring. > This breaks user's expectations. At least it breaks my expectations, There we are. > because in a logical tree of nodes, demoting does not mean =E2=80=9Eshift > contents=E2=80=9C. Huh? "Citation needed". > And I thought org was supposed not to break my content. It also kills kittens, in the background. > I also lose controllability because I have no way to rearrange nodes > without side effects. We might fix them. What are exactly these side-effects? > I suggest: > > 1. New default for org-adapt-indentation =3D 'partial, which shifts > every line until the first line which starts at column 0. This may not > shift all drawers in complex cases where you have them in the bottom > of the tree; therefore it's called partial. I'm not really against it, but this is really hackish and probably surprising. AFAICT, you erroneously think regular drawers are an Org internal artifact whereas they are really meant for users. They should be indented like their contents, no like planning info. In any case, I'd favor a solution that takes into consideration the real structure of the section. > This is handling the most common cases. Let's focus on your use case instead of a "most common case" we both know very little about. > 2. With org-adapt-indentation =3D 'partial, new lines added by org > (:CLOCK: drawer, CLOCK lines etc) appear at the same column as the > heading, not at column 0 This would be plain wrong. Indentation is relative to the element above. Heading indentation is but the fallback value. Regards,