From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden Newsgroups: gmane.emacs.help Subject: Re: Adding functionality to a minor mode Date: Mon, 07 Feb 2022 22:15:31 +0000 Message-ID: References: <8735kvtdvh.fsf@ericabrahamsen.net> <87k0e6zh4u.fsf@web.de> <87ee4ez76h.fsf@web.de> Reply-To: goncholden Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32664"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 07 23:16:57 2022 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 1nHCJc-0008Iy-VB for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 23:16:56 +0100 Original-Received: from localhost ([::1]:48838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHCJb-0001k2-TJ for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 17:16:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHCIc-0001jB-UF for help-gnu-emacs@gnu.org; Mon, 07 Feb 2022 17:15:55 -0500 Original-Received: from mail-40137.protonmail.ch ([185.70.40.137]:50990) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHCIW-00026A-FB for help-gnu-emacs@gnu.org; Mon, 07 Feb 2022 17:15:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1644272133; bh=WoKaHmNYiztZa6AhudkGMBWw159CRZ5m9GgmDddwNnM=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=HylUMzIaZjf6QVgX/i3L/T+W5M2IPjkThKcgkfB+pDKu5W5XsJZXhMqgVdGuz1F0y csvPY/xf4jVP0J4Vae4DcOM8czgErkNhIrh0h3wl/x6gGKt1gK2e3/WGuvtQ32LJFT sLV472NcmNesIa0RFyNJPJxy9THI/02J1x3mDVzdSZvghca5ULeRbqIUwO0suK/PyX 4e1PVwyzDS31cPasM/xzBBdZJygrVrR+afJQdoeZLJTCpctFMWBViLXCmg+axhyJGh FpUfMJ+IQihTcfsLWlBuCTojZRsHlBOeTqgq5CNEzV1001W72ksRWqQu/GR37Jt/Ap EaFc9Lty2Yjvw== In-Reply-To: <87ee4ez76h.fsf@web.de> Received-SPF: pass client-ip=185.70.40.137; envelope-from=goncholden@protonmail.com; helo=mail-40137.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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" Xref: news.gmane.io gmane.emacs.help:135811 Archived-At: ------- Original Message ------- On Monday, February 7th, 2022 at 9:40 PM, Michael Heerdegen wrote: > goncholden goncholden@protonmail.com writes: > > > > M-: (macroexpand-1 '(define-minor-mode rich-minor-mode ...)) RET to s= ee > > > > > > the macroexpanded code of your definition - helps in understanding. > > > > > > Debugger entered--Lisp error: (wrong-type-argument stringp \.\.\.) > > You should of course macroexpand your complete definition, not the one I = abbreviated. > > Michael. I would have to copy the whole function on the minibuffer. Is there an eas= ier way to call macroexpand on rich-minor-mode?