Re: [O] Insert heading above current one

2017-09-30 Thread Luciano Passuello
On Sat, Sep 30, 2017 at 5:21 PM, Nicolas Goaziou wrote: > M-RET and C-RET/C-u M-RET are > different beasts, just don't expect them to behave exactly the same. And then you hit exactly the heart of our discussion right there. Im my line of reasoning, org-insert-heading and org-insert-heading-respe

Re: [O] Insert heading above current one

2017-09-30 Thread Nicolas Goaziou
Luciano Passuello writes: > Isn't that consistent with the regular org-insert-heading (M-RET)? > When cursor is in the beginning of a headline, there's no way to > create a heading below that line (using standard M-RET). It will > always create it above. So, having the cursor in the beginning of

Re: [O] Insert heading above current one

2017-09-30 Thread Luciano Passuello
Hello, On Sat, Sep 30, 2017 at 4:29 AM, Nicolas Goaziou wrote: > OTOH, if we force the previous behaviour, as you suggest, there is no > way to insert a new headline after the current subtree when point is at > the beginning of a headline. A feature is lost. Isn't that consistent with the regula

Re: [O] Insert heading above current one

2017-09-30 Thread Rasmus
Hi, Nicolas Goaziou writes: >>> Looks like this was an intended change: >>> http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=2b03e945a19701194e510791a96006c5eee9edc6 >>> >>> Related discussion: >>> http://lists.gnu.org/archive/html/emacs-orgmode/2016-10/msg00080.html >>> >>> PS: The commit me

Re: [O] Insert heading above current one

2017-09-30 Thread Nicolas Goaziou
Hello, Luciano Passuello writes: > I also think the earlier behavior made more sense. Then we have to agree to disagree, I guess. > The variable > org-insert-heading-respect-content (or the universal argument) > controls how a new headline is inserted BELOW the current header > (either add imm

Re: [O] Insert heading above current one

2017-09-29 Thread Luciano Passuello
Hi, thanks for the replies! >> To add, I also think that the earlier behavior made sense, if the point is >> at bolp, insert before, else insert after. > > I think the current behaviour makes more sense, if the command is called > with an universal argument. Indeed, what would be the point of usin

Re: [O] Insert heading above current one

2017-09-29 Thread Nicolas Goaziou
Hello, Kaushal Modi writes: > On Fri, Sep 29, 2017 at 10:41 AM Kaushal Modi > wrote: > >> Looks like this was an intended change: >> http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=2b03e945a19701194e510791a96006c5eee9edc6 >> >> Related discussion: >> http://lists.gnu.org/archive/html/emacs-

Re: [O] Insert heading above current one

2017-09-29 Thread Kaushal Modi
On Fri, Sep 29, 2017 at 10:41 AM Kaushal Modi wrote: > Looks like this was an intended change: > http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=2b03e945a19701194e510791a96006c5eee9edc6 > > Related discussion: > http://lists.gnu.org/archive/html/emacs-orgmode/2016-10/msg00080.html > > PS: The

Re: [O] Insert heading above current one

2017-09-29 Thread Kaushal Modi
On Fri, Sep 29, 2017 at 10:14 AM Luciano Passuello wrote: > Hello everybody, first message here. > > According to org-insert-heading documentation: "If point is at the > beginning of a heading, insert a new heading or a new headline above > the current one." > > I like this behavior very much, an