From: Platon Pronko <platon7pronko@gmail.com>
To: uzibalqa <uzibalqa@proton.me>
Cc: uzibalqa via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: Debugger entered--Lisp error: (excessive-lisp-nesting)
Date: Fri, 9 Jun 2023 14:38:03 +0800 [thread overview]
Message-ID: <36f11258-080d-0dc0-509d-2022ea40dd7c@gmail.com> (raw)
In-Reply-To: <nFVQYFE9Zkg1vmr6tqiZ9OysaLAzpz5SAOvhSnO2pgWEphyFjcZh0JSWV7trhLl7-JiBhKJnDpYCEKBAg9lzLFy8m5gieHof_D-yCm33Xfc=@proton.me>
On 2023-06-08 19:51, uzibalqa wrote:
> Would you be so kind to show me how I can enable outline-minor-mode when the user enables
> tematika-minor-mode so as to avoid the infinite recursion problem ?
>
> I also need a way to disable outline-minor-mode when tematika-minor-mode is disabled.
Here's a way to do it using hooks:
(define-minor-mode tematika-minor-mode "activates outline-minor-mode" :lighter " Tematika")
(defun tematika--toggle-outline-mode ()
(if tematika-minor-mode
(outline-minor-mode)
(outline-minor-mode -1)))
(add-hook 'tematika-minor-mode-hook 'tematika--toggle-outline-mode)
--
Best regards,
Platon Pronko
PGP 2A62D77A7A2CB94E
prev parent reply other threads:[~2023-06-09 6:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-08 7:07 Debugger entered--Lisp error: (excessive-lisp-nesting) uzibalqa
2023-06-08 8:50 ` Platon Pronko
2023-06-08 11:51 ` uzibalqa
2023-06-09 6:38 ` Platon Pronko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=36f11258-080d-0dc0-509d-2022ea40dd7c@gmail.com \
--to=platon7pronko@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=uzibalqa@proton.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).