From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Platon Pronko Newsgroups: gmane.emacs.help Subject: Re: Debugger entered--Lisp error: (excessive-lisp-nesting) Date: Fri, 9 Jun 2023 14:38:03 +0800 Message-ID: <36f11258-080d-0dc0-509d-2022ea40dd7c@gmail.com> References: <5be8d927-9c6a-f6f9-3b06-7ac2d0f68045@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1703"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Cc: uzibalqa via Users list for the GNU Emacs text editor To: uzibalqa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 09 08:38:38 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q7Vld-0000Ka-PO for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Jun 2023 08:38:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7VlF-0005P9-CB; Fri, 09 Jun 2023 02:38:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7VlE-0005P1-4a for help-gnu-emacs@gnu.org; Fri, 09 Jun 2023 02:38:12 -0400 Original-Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7VlC-0008TZ-5H for help-gnu-emacs@gnu.org; Fri, 09 Jun 2023 02:38:11 -0400 Original-Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-39c84863e34so363424b6e.2 for ; Thu, 08 Jun 2023 23:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686292688; x=1688884688; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CDKyHoACAawIRfzwuLjlQnZcnMjIWgvdKtN0Y94khDQ=; b=VTHKa5cgjZXo7hGyQ7FxyCJ2eEkUTRgi5JZbSyKh0VKXXezU2dUlrm9R5Sj5peRWHz gCGBnivfgPfCwXPmuMYc/0xgPkguotKs0w2cd/whjgM11yUgB/WmP0XAZ72KvnSg2u6j y5xZjitqFLqragDSie6QynMUP3P11uN7/AY8LiD354n5UZ54T1m58M9lQDtrcuUFfA/K o7lQAXYYG+O8/1IhQSZcT2mUXW/sC4R5r1M58sQU8lU950Y5850V394aYidZJtDHdkor DJGKCUAdZx84T17qge3eO1vBCXkkguB4EtYF3F9CF+1Z8TFe+Dk088gCC3/eIg9hIg3x 5vEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686292688; x=1688884688; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CDKyHoACAawIRfzwuLjlQnZcnMjIWgvdKtN0Y94khDQ=; b=HWaZM1KwLawJQGq1sRCbWdc5i4nYHo67P8olxAsJ0jgMIEKdmDv2bNE2vB/y765Oaq 5RENODPdGtoBy9SSN7gLUPvt7mU2fGZylEK8R+zj4G/K1lXKud3iMOU7cnTFIGWGSQug 7KfB2EDhs4tNQ5R7w4ET1KNr2Nh2yuXFVb61iRnLJ1Kug5GyuctljbFdOW0By17OITXG iKL+tl3rWhxoIEeemrsM7uFlL+G5bzLJ2zH9dgkgh/qS9H5+vT9N3G03OXu7/+B/pMdH qL51tFfcvb+Hf0qpeN8GOKsppbfz9/Zx/RUOxricGrAe6F+j+uNaz++QN7OurZ38PfDD kB/w== X-Gm-Message-State: AC+VfDzRhIzTXf1KiMaVjsL3zfjuLj1/KTST/ltC6GcVoMDl8A06pk7K sz4P8NpkByVa/SM+vzIXI90= X-Google-Smtp-Source: ACHHUZ7bTE8Dg/xrlCz70+CV/zqbIbzZjGSlp4b4gOjq/JQ3yb+D5/lwBwIbtkpK3zcrg6EWXyiZQQ== X-Received: by 2002:a05:6808:2198:b0:39a:bda7:adc1 with SMTP id be24-20020a056808219800b0039abda7adc1mr1045519oib.2.1686292688283; Thu, 08 Jun 2023 23:38:08 -0700 (PDT) Original-Received: from [192.163.0.137] ([103.24.106.35]) by smtp.gmail.com with ESMTPSA id ge13-20020a17090b0e0d00b00259bcb44113sm4006600pjb.32.2023.06.08.23.38.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jun 2023 23:38:07 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::22b; envelope-from=platon7pronko@gmail.com; helo=mail-oi1-x22b.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.091, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143899 Archived-At: 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