From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [RFC] Org Minor Mode? Date: Wed, 28 May 2014 23:47:35 +0200 Message-ID: <8738ft379k.fsf@bzg.ath.cx> References: <87ha61f4rk.fsf@gmail.com> <8738hlkn64.fsf@gmail.com> <87zjj9g87k.fsf@gmail.com> <877g5znrgl.fsf@bzg.ath.cx> <87y4xnzif9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WplhJ-0001LR-S4 for emacs-orgmode@gnu.org; Wed, 28 May 2014 17:47:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WplhE-0003mI-88 for emacs-orgmode@gnu.org; Wed, 28 May 2014 17:47:45 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:56334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WplhE-0003m2-1f for emacs-orgmode@gnu.org; Wed, 28 May 2014 17:47:40 -0400 Received: by mail-wi0-f177.google.com with SMTP id f8so4587669wiw.16 for ; Wed, 28 May 2014 14:47:39 -0700 (PDT) In-Reply-To: <87y4xnzif9.fsf@gmail.com> (Thorsten Jolitz's message of "Tue, 27 May 2014 11:20:58 +0200") 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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org Hi Thorsten, Thorsten Jolitz writes: >> I for one need to have a clearer picture of what such a minor mode >> would really do, without getting prematurily lost in the details of >> possible implementations. > > Its just a better and smarter outshine-mode (major-mode agnostic "Org > look&feel" for programming modes). But what would it *do*? Can you give a simple example of a specific feature? The one about editing source code in buffers other than Org buffers, maybe? > outshine, outorg and navi-mode are all in the mid-range of popular melpa > packages, so there seems to be some real demand ... No doubt! > I started with code (https://github.com/tj64/omm), (FWIW I don't think omm.el is a really good name, it's hard to guess what it is supposed to do. You could use org-minor-mode.el and keep omm- as a prefix?) > but faced the fundamental problem of hardcoded regexps (^, $, and > \\*) all over the Org sources that make Org functions fail on > outcommented headers and in outcommented text sections in general. > > The goals, ideas and even implementations (outshine, orgstruct) are > already there, a first intent to merge them into one library exists > (omm.el), but what to do about this core problem? Circumvent it? Instead of try to adapt tons of Org features so that they run into other modes, we could try to emulate them in temporary buffers, where the peculiarities of the origin mode do not prevent Org functions from running -- see for example how `org-open-at-point' deals with links in comments. This could be generalized to, e.g., handle lists in Emacs lisp comments. -- Bastien