From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: [RFC] Org Minor Mode? Date: Fri, 25 Apr 2014 10:00:46 +0200 Message-ID: <87vbtxg7o1.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wdb4H-0002LD-R5 for emacs-orgmode@gnu.org; Fri, 25 Apr 2014 04:01:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wdb4A-0001XS-AZ for emacs-orgmode@gnu.org; Fri, 25 Apr 2014 04:01:09 -0400 Received: from plane.gmane.org ([80.91.229.3]:52661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wdb4A-0001XD-4h for emacs-orgmode@gnu.org; Fri, 25 Apr 2014 04:01:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wdb48-0002jZ-Lj for emacs-orgmode@gnu.org; Fri, 25 Apr 2014 10:01:00 +0200 Received: from e178058074.adsl.alicedsl.de ([85.178.58.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Apr 2014 10:01:00 +0200 Received: from tjolitz by e178058074.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Apr 2014 10:01:00 +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 Ilya Shlyakhter writes: > On 4/19/2014 8:57 AM, Bastien wrote: >> Hi Thorsten, >> >> Thorsten Jolitz writes: >> >>> In summary, its about: >>> >>> 1. generalize the regexp constants and vars (allow for comment-syntax, >>> when org-minor-mode) >>> >>> 2. deal with hardcoded regexp-snippets in functions (my proposoal: >>> replace "^" with org-BOL, "$" with org-EOL, "\\*" with org-STAR) >>> >>> 3. outcomment new lines after calls to Org commands. >> >> I still think there is a simpler way, I'll explore this and >> I'll let you know. >> > > What about using advice on regexp functions to transform the regexps > (when invoked in org-minor-mode buffers) so that $ is replaced with "; > $" etc? Its definitely one option, but its always said in the manuals that, if possible, one should rather modify the sources than using advices, and since Org-mode is not abandon-ware at all, I thought I ask first how chances are for such modifications. > One other issue is the use of the number of stars to determine outline > level. Since outshine should bring the look&feel of Org-mode to programming language buffers, using other language elements (like e.g. functions) as outline items is not only a technical problem, but a conceptual problem too. In Org-mode, functions are stored in src-blocks, they are not headlines. Thus they should be treated in outshine rather like plain lists or drawers or other elements that change visibility but are no headline. -- cheers, Thorsten