From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode Date: Thu, 19 Nov 2015 09:39:31 +0100 Message-ID: <87d1v6l6ws.fsf@nicolasgoaziou.fr> References: <87oaf4wn30.fsf@bernoul.li> <87vb9c7bui.fsf@nicolasgoaziou.fr> <87a8qofq62.fsf@bernoul.li> <8737w9564w.fsf@nicolasgoaziou.fr> <878u5vr5nj.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzKix-00073r-5J for emacs-orgmode@gnu.org; Thu, 19 Nov 2015 03:37:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzKiw-0000nC-2k for emacs-orgmode@gnu.org; Thu, 19 Nov 2015 03:37:47 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:54425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzKiv-0000n3-SS for emacs-orgmode@gnu.org; Thu, 19 Nov 2015 03:37:46 -0500 In-Reply-To: <878u5vr5nj.fsf@bernoul.li> (Jonas Bernoulli's message of "Wed, 18 Nov 2015 10:57:52 +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: Jonas Bernoulli Cc: emacs-orgmode@gnu.org Hello, 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. IMO, using a hook is much more simple than maintaining a local patch. Regards, -- Nicolas Goaziou