unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: goncholden <goncholden@protonmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: Michael Heerdegen <michael_heerdegen@web.de>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Re: Adding functionality to a minor mode
Date: Mon, 07 Feb 2022 20:38:11 +0000	[thread overview]
Message-ID: <XGZBro7m95hQepPtFVW32F_FOT9AxSpEsEYYuvC57llZmiAzW9MabCfqJQu69xiQFe8v7fWwJczI4IdtA_j4RLTFv8f00DaIX9W_Nm10Cxk=@protonmail.com> (raw)
In-Reply-To: <SJ0PR10MB54881ECF12BD05CBC48E2CFEF32C9@SJ0PR10MB5488.namprd10.prod.outlook.com>


------ Original Message -------

On Monday, February 7th, 2022 at 8:26 PM, Drew Adams <drew.adams@oracle.com> wrote:

> Am not sure whether I am executing your suggestion good.
>
> What should I look for?
>
> Debugger entered--Lisp error: (wrong-type-argument stringp \.\.\.)
>
> string-match("\\bARG\\b" \.\.\. nil)

...

> macroexpand-1((define-minor-mode rich-minor-mode \.\.\.))

I'm not following this thread, but it looks like you
passed a symbol `...' as the doc-string argument. That arg needs to be a string. See` C-h f define-minor-mode'.

Am figuring out "(when rich-minor-mode" works.  Looks like it evaluates false when one calls
"(rich-minor-mode 1)".  It was suggested to use macroexpand to help my understanding.




  reply	other threads:[~2022-02-07 20:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-05 10:00 Adding functionality to a minor mode goncholden via Users list for the GNU Emacs text editor
2022-02-05 18:50 ` goncholden
2022-02-07  0:09   ` goncholden
2022-02-07  6:00     ` Eric Abrahamsen
2022-02-07 13:56       ` goncholden
2022-02-07 18:05         ` Michael Heerdegen
2022-02-07 19:18           ` goncholden
2022-02-07 20:26             ` [External] : " Drew Adams
2022-02-07 20:38               ` goncholden [this message]
2022-02-07 20:59                 ` Drew Adams
2022-02-07 21:40             ` Michael Heerdegen
2022-02-07 22:15               ` goncholden
2022-02-07 22:26                 ` Michael Heerdegen
2022-02-08  7:41         ` Kevin Vigouroux via Users list for the GNU Emacs text editor
2022-02-08 13:27         ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-02-08 17:05           ` goncholden
2022-02-08 22:47             ` goncholden

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='XGZBro7m95hQepPtFVW32F_FOT9AxSpEsEYYuvC57llZmiAzW9MabCfqJQu69xiQFe8v7fWwJczI4IdtA_j4RLTFv8f00DaIX9W_Nm10Cxk=@protonmail.com' \
    --to=goncholden@protonmail.com \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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).