From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: [RFC] Org Minor Mode? Date: Sun, 13 Apr 2014 18:00:01 +0200 Message-ID: <87eh11w77i.fsf@gmail.com> References: <87ha61f4rk.fsf@gmail.com> <8738hlkn64.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZMo0-0000kS-7L for emacs-orgmode@gnu.org; Sun, 13 Apr 2014 11:58:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZMnu-0000wb-Ba for emacs-orgmode@gnu.org; Sun, 13 Apr 2014 11:58:52 -0400 Received: from plane.gmane.org ([80.91.229.3]:51561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZMnu-0000wQ-4y for emacs-orgmode@gnu.org; Sun, 13 Apr 2014 11:58:46 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WZMnt-0008F6-1s for emacs-orgmode@gnu.org; Sun, 13 Apr 2014 17:58:45 +0200 Received: from e178190200.adsl.alicedsl.de ([85.178.190.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Apr 2014 17:58:45 +0200 Received: from tjolitz by e178190200.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Apr 2014 17:58:45 +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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Thorsten Jolitz writes: > >> What do you think - is there any chance that Org-mode switches from >> static hardcoded regexp strings (all over the place) to dynamic >> regexps calculated at runtime (using libraries like drx.el or rx.el)? > > I hope not. The syntax should stabilize, not drift away. This is not so much about changing the syntax but rather about the common programming practice to define and change/modify a variable or constant in one place only. #+begin_src emacs-lisp (defvar BOL "^") ; once (looking-at (concat BOL "foo")) ; many times #+end_src instead of #+begin_src emacs-lisp (looking-at "^foo") ; many times #+end_src The need to abstract from the Org star '*' too would only arise from need to deal with Emacs Lisp coding conventions (;;; Level1 Headline), which is a (unfortunately very important) special case. In all other cases it would be only about BOL ("^") and EOL ("$") in regexps. >> There would be a cost definitely, but then a true org-minor-mode could >> become reality that offers the full power of Org-mode in programming >> mode's comment section (I'm actually working on it by merging outshine >> with orgstruct: [[https://github.com/tj64/omm][omm.el]]). > I don't see why you would need the "full power of Org-mode" (whatever > that means) in mere comments. That means that Org headlines are much more 'intelligent' than outline headlines (they know about todos, priorities, tags, timestamps, properties, planning, clocking, being archived etc.) and one could have that kind of intelligent headlines in other modes too with a true org-minor-mode. -- cheers, Thorsten