From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Shlyakhter Subject: Re: [RFC] Org Minor Mode? Date: Tue, 29 Apr 2014 14:44:37 -0400 Message-ID: References: <87ha61f4rk.fsf@gmail.com> <8738hlkn64.fsf@gmail.com> <87eh11w77i.fsf@gmail.com> <87oazykbp5.fsf@bzg.ath.cx> <87k3amfxae.fsf@gmail.com> <87ioq5hoze.fsf@bzg.ath.cx> <87d2gdtyqq.fsf@gmail.com> <878ur1pjdo.fsf@bzg.ath.cx> <87fvkwwcfz.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfD6Y-0006S7-Pi for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 14:50:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfD6T-00021p-I3 for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 14:50:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:52363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfD6T-0001y8-CC for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 14:50:05 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WfD6R-0000xH-Nv for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 20:50:03 +0200 Received: from pat-19.broadinstitute.org ([69.173.127.119]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Apr 2014 20:50:03 +0200 Received: from ilya239 by pat-19.broadinstitute.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Apr 2014 20:50:03 +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 Bastien writes: > We should absolutely avoid advice in code. Fully agree. (I was thinking of using an flet-like construct to temporarily rebind functions for the duration of calls, rather than permanent advice -- see elu-flet in https://github.com/notestaff/elu/blob/master/elu.el -- but, still agree.) What would be the downside of abstracting away the headline syntax in the Org code? (Other than the admittedly significant issue of disturbing well-tested core code. On the other hand, abstracted code would be more readable & maintainable; see e.g. Org syntax defined with an rx-like extension: https://github.com/notestaff/elu/blob/master/rxx-org.el , or with Thorsten's drx.el ) Obviously this would be a lot of work, but the upside of having a full Org minor mode (in particular for outshine-type use) would make it worth it, for me at least.