[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [Prelim. patch] extend org-meta-return to keywords
From: |
Thierry Banel |
Subject: |
Re: [O] [Prelim. patch] extend org-meta-return to keywords |
Date: |
Sat, 22 Nov 2014 14:53:55 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
M-RET working "as expected" is appealing.
Your patch makes M-RET moreuseful than it is now.
I vote +1.
There are a few issues thought.
I guess they can be worked out.
For instance:
#+HEA|DER: :var v="hello" (cursor is the pipe |)
ischanged into
#+HEA
#+HEADER: |DER: :var v="hello"
which is pretty useless
Also if #+HEADER: is immediately followed by a #+BEGIN_SRC,
the patch (for an unknown reason) is ignored,
and the old behavior applies.
Thanks for this
Thierry
Le 19/11/2014 15:41, Rasmus a écrit :
> Hi,
>
> Something I have wanted for a while is to have M-RET work "as
> expected"(?) on keyword lines such as #+LATEX_HEADER, #+CAPTION etc.
>
> An "animation" to illustrate, where '|' is point:
>
> #+CAPTION: this is a |long caption
>
> # click <M-RET> ⇒
>
> #+CAPTION: this is a
> #+CAPTION: |long caption
>
> Would anyone else like this?
>
> Attached is a quick patch that works surprisingly well. I would work
> more on it if you guys agree this would be useful. It probably need
> much more work for corner-cases (any ideas what these are)?
>
> Thanks,
> Rasmus
>
- Re: [O] [patch] extend org-meta-return to keywords, (continued)
- Re: [O] [patch] extend org-meta-return to keywords, Rasmus, 2014/11/23
- Re: [O] [patch] extend org-meta-return to keywords, Nicolas Goaziou, 2014/11/25
- [O] M-RET vs C-RET, Sebastien Vauban, 2014/11/25
- Re: [O] M-RET vs C-RET, Nicolas Goaziou, 2014/11/25
- Re: [O] M-RET vs C-RET, Rasmus, 2014/11/25
- Re: [O] M-RET vs C-RET, Nicolas Goaziou, 2014/11/26
- Re: [O] M-RET vs C-RET, Rasmus, 2014/11/26
- Re: [O] M-RET vs C-RET, Andreas Leha, 2014/11/27
- Re: [O] [patch] extend org-meta-return to keywords, Rasmus, 2014/11/23
- Re: [O] [patch] extend org-meta-return to keywords, Nicolas Goaziou, 2014/11/23
Re: [O] [Prelim. patch] extend org-meta-return to keywords,
Thierry Banel <=