From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode Date: Thu, 19 Nov 2015 22:47:42 +0100 Message-ID: <87io4x4q69.fsf@gmx.us> References: <87oaf4wn30.fsf@bernoul.li> <87vb9c7bui.fsf@nicolasgoaziou.fr> <87a8qofq62.fsf@bernoul.li> <8737w9564w.fsf@nicolasgoaziou.fr> <878u5vr5nj.fsf@bernoul.li> <87d1v6l6ws.fsf@nicolasgoaziou.fr> <87poz5bwfs.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzX3e-0000Pb-Q3 for emacs-orgmode@gnu.org; Thu, 19 Nov 2015 16:47:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzX3Z-0004Z5-Pn for emacs-orgmode@gnu.org; Thu, 19 Nov 2015 16:47:58 -0500 Received: from plane.gmane.org ([80.91.229.3]:35189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzX3Z-0004Yl-IW for emacs-orgmode@gnu.org; Thu, 19 Nov 2015 16:47:53 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZzX3U-0000uA-Ja for emacs-orgmode@gnu.org; Thu, 19 Nov 2015 22:47:48 +0100 Received: from tsn109-201-152-16.dyn.nltelcom.net ([109.201.152.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Nov 2015 22:47:48 +0100 Received: from rasmus by tsn109-201-152-16.dyn.nltelcom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Nov 2015 22:47:48 +0100 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 Hi Jonas, Jonas Bernoulli writes: > Nicolas Goaziou writes: > >> Jonas Bernoulli writes: >> >>> Nicolas Goaziou writes: >>> >>>> Jonas Bernoulli writes: >>>> >>>>> Thanks. But could you please change it to >>>>> >>>>> (if (or outline-minor-mode orgstruct-mode) >>>>> (call-interactively #'show-children) >>>>> ...) >>>> >>>> You could set `orgstruct-mode' to a non-nil value whenever >>>> `outline-minor-mode' is enabled. >>> >>> I could (instead I am currently just maintaining a local patch), >>> but what is the reasoning for not just doing what I suggested? >> >> There is no reason for Org's core to know about `outline-minor-mode', or >> any other minor mode in the wild. > > I wouldn't group `outline-minor-mode' among "any other minor mode > in the wild", after all it was Outline which gave birth to Org and > `outline-minor-mode' is part of `outline.el'. Didn't Carsten write > `outline-magic.el' (containing `outline-cycle') before moving on to > greater things? Unfortunately though `outline-magic.el' does not appear > to have aged so well (at least that's how I remember it from when I last > checked). orgstruct-mode is a mess and we plan to address it. When someone finds the time to do so. Indeed, there was a thread about the issue of org-show-children some time ago. Cheers, Rasmus -- Dung makes an excellent fertilizer