From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Banel Subject: Re: [Prelim. patch] extend org-meta-return to keywords Date: Sat, 22 Nov 2014 14:53:55 +0100 Message-ID: <54709573.7090203@free.fr> References: <87egszw8ui.fsf@gmx.us> 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]:53556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsB8Z-0000Y5-9a for emacs-orgmode@gnu.org; Sat, 22 Nov 2014 08:54:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsB8Q-0003Ow-8k for emacs-orgmode@gnu.org; Sat, 22 Nov 2014 08:54:07 -0500 Received: from smtp2-g21.free.fr ([212.27.42.2]:10120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsB8Q-0003Oq-2Y for emacs-orgmode@gnu.org; Sat, 22 Nov 2014 08:53:58 -0500 Received: from [IPv6:2a01:e35:2e21:def0:bcba:3abd:c61e:580f] (unknown [IPv6:2a01:e35:2e21:def0:bcba:3abd:c61e:580f]) by smtp2-g21.free.fr (Postfix) with ESMTP id 3C3434B025B for ; Sat, 22 Nov 2014 14:50:47 +0100 (CET) In-Reply-To: <87egszw8ui.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: emacs-orgmode@gnu.org 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=3D"hello" (cursor is the pipe |) ischanged into #+HEA #+HEADER: |DER: :var v=3D"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 =C3=A9crit : > 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 =E2=87=92=20 > > #+CAPTION: this is a=20 > #+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 >