From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brett Witty Subject: Re: A Microsoftesque detail in org Date: Mon, 18 May 2015 18:33:51 +1000 Message-ID: References: <87382yji8z.fsf@iki.fi> <87lhgqxeq0.fsf@gmx.us> <87k2w754vk.fsf@iki.fi> <874mnaykh0.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6da734201ca30516571028 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuGVP-00037I-8b for emacs-orgmode@gnu.org; Mon, 18 May 2015 04:34:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuGVN-0005pE-Gj for emacs-orgmode@gnu.org; Mon, 18 May 2015 04:34:35 -0400 Received: from mail-yk0-x236.google.com ([2607:f8b0:4002:c07::236]:34816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuGVN-0005p8-Au for emacs-orgmode@gnu.org; Mon, 18 May 2015 04:34:33 -0400 Received: by ykec202 with SMTP id c202so51388663yke.2 for ; Mon, 18 May 2015 01:34:32 -0700 (PDT) In-Reply-To: <874mnaykh0.fsf@gmx.us> 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: Rasmus Cc: Org mailing list --047d7b6da734201ca30516571028 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I agree with Rasmus' position. Just because the org format is plain text, doesn't mean the Emacs keybindings have to act identically to, say, Notepad. Otherwise, what's Emacs for? Similarly, I don't expect TAB to insert tabs into an org-mode document. While there can be a bit of a culture shock getting used to org's "do the useful thing" as opposed to "do the literal thing", I think it's an advantage of the system, not a disadvantage. Headers are sacred in org-mode, so breaking headers with RET seems suboptimal when there's vastly more things you'd care about. Similarly in tables, or drawers or timestamps or... That said, it would be nice to have some sort of customization variable to allow the literal behaviour, but set by default to the current behaviour (similar to org-support-shift-select). BrettW On Mon, May 18, 2015 at 7:15 AM, Rasmus wrote: > Hi Jarmo, > > Jarmo Hurri writes: > > > Rasmus writes: > > >> With your behavior you can (i) break the TODO tag; (ii) break the > cookie; > >> (iii) break the tag. At least (i) and (ii) are quite destructive. > > > > I am not sure what you mean, since a single undo will always heal the > > line again, regardless of where you break it. > > Sure. But that seems orthogonal to the problem at hand. Re (i): Assume > TODO is keyword. We don't know that TO is. Re (ii): [#B] is a cookie. > [#B is not. (iii) iii :tag: is a tag :ta is not. The editor should not > easily produce invalid syntax. > > In any case it's very easy to rebind keys in a hook. If you write a > org.texi patch on how to get purist keybindings we can add it. > > > I am a BIG fan of the Org mode slogan "Your life in plain text." The > > power of plain text has been demonstrated over and over again. You can > > run text manipulating commands on it, you can process it with a large > > array of different programming languages. > > Nobody is disputing that. > > > An undo is a basic text editing feature that everyone should > > know. Reassigning non-standard behaviour to the return key is - in my > > opinion - against the ideology. > > I see that you use Gnus. Did you by any change use RET to open the > article? It's bound to gnus-summary-scroll-up. > > In Emacs25, or maybe even before, RET in at least lisp mode started to > indent automatically via electric-indent-mode. Are you against this? > > What I will agree on is that it would be better if Org used more > "standard" mechanism and e.g. cleverly hooked newline. However, Org > targets a number of versions of Emacs (ATM: 23-25), making this hard. > > >> The attached patch re-enables breaks in region four of > >> org-complex-heading-regexp, i.e. from the cookie up to tags. A quick > >> test suggests it works nicely. > >> > >> WDYT? > > > > Given enough time, I could come up with a situation where I would run a > > keyboard macro in which I would expect the return key to break the line= , > > regardless of where I was on that line (in a tag or whatever). > > In that case there's C-o C-e or M-x newline... > > > I am a very minor player in this game, but I would really, _really_ lik= e > > Org to remain as true to it's slogan as possible. > > I'm still don't see this point. There's Org, "the format", which should > ideally be easy to use in any editor (I wrote a basic syntax parser for > texworks). It's plaintext. Then there's org-mode, the principal editor > of Org. It supposed to be a nice environment for composing text. > > =E2=80=94Rasmus > > -- > This is the kind of tedious nonsense up with which I will not put > > > --047d7b6da734201ca30516571028 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I agree with Rasmus' position. Just bec= ause the org format is plain text, doesn't mean the Emacs keybindings h= ave to act identically to, say, Notepad. Otherwise, what's Emacs for? S= imilarly, I don't expect TAB to insert tabs into an org-mode document.<= br>
While there can be a bit of a culture shock getting used to or= g's "do the useful thing" as opposed to "do the literal = thing", I think it's an advantage of the system, not a disadvantag= e. Headers are sacred in org-mode, so breaking headers with RET seems subop= timal when there's vastly more things you'd care about. Similarly i= n tables, or drawers or timestamps or...

That said, it would b= e nice to have some sort of customization variable to allow the literal beh= aviour, but set by default to the current behaviour (similar to org-support= -shift-select).

BrettW
On Mon, May 18, 2015 at 7:15 AM, Rasmus <rasmus@gm= x.us> wrote:
Hi Jarmo,

Jarmo Hurri <jarmo.hurri@iki.fi> writes:

> Rasmus <ra= smus@gmx.us> writes:

>> With your behavior you can (i) break the TODO tag; (ii) break the = cookie;
>> (iii) break the tag.=C2=A0 At least (i) and (ii) are quite destruc= tive.
>
> I am not sure what you mean, since a single undo will always heal the<= br> > line again, regardless of where you break it.

Sure.=C2=A0 But that seems orthogonal to the problem at hand.=C2=A0 = Re (i): Assume
TODO is keyword.=C2=A0 We don't know that TO is.=C2=A0 Re (ii): [#B] is= a cookie.
[#B is not.=C2=A0 (iii) iii :tag: is a tag :ta is not.=C2=A0 The editor sho= uld not
easily produce invalid syntax.

In any case it's very easy to rebind keys in a hook.=C2=A0 If you write= a
org.texi patch on how to get purist keybindings we can add it.

> I am a BIG fan of the Org mode slogan "Your life in plain text.&q= uot; The
> power of plain text has been demonstrated over and over again. You can=
> run text manipulating commands on it, you can process it with a large<= br> > array of different programming languages.

Nobody is disputing that.

> An undo is a basic text editing feature that everyone should
> know. Reassigning non-standard behaviour to the return key is - in my<= br> > opinion - against the ideology.

I see that you use Gnus.=C2=A0 Did you by any change use RET to open= the
article?=C2=A0 It's bound to gnus-summary-scroll-up.

In Emacs25, or maybe even before, RET in at least lisp mode started to
indent automatically via electric-indent-mode.=C2=A0 Are you against this?<= br>
What I will agree on is that it would be better if Org used more
"standard" mechanism and e.g. cleverly hooked newline.=C2=A0 Howe= ver, Org
targets a number of versions of Emacs (ATM: 23-25), making this hard.

>> The attached patch re-enables breaks in region four of
>> org-complex-heading-regexp, i.e. from the cookie up to tags.=C2=A0= A quick
>> test suggests it works nicely.
>>
>> WDYT?
>
> Given enough time, I could come up with a situation where I would run = a
> keyboard macro in which I would expect the return key to break the lin= e,
> regardless of where I was on that line (in a tag or whatever).

In that case there's C-o C-e or M-x newline...

> I am a very minor player in this game, but I would really, _really_ li= ke
> Org to remain as true to it's slogan as possible.

I'm still don't see this point.=C2=A0 There's Org, "= ;the format", which should
ideally be easy to use in any editor (I wrote a basic syntax parser for
texworks).=C2=A0 It's plaintext.=C2=A0 Then there's org-mode, the p= rincipal editor
of Org.=C2=A0 It supposed to be a nice environment for composing text.

=E2=80=94Rasmus

--
This is the kind of tedious nonsense up with which I will not put



--047d7b6da734201ca30516571028--