help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [External] : Use the characters "+" and "-" in regular expressions


From: tomas
Subject: Re: [External] : Use the characters "+" and "-" in regular expressions
Date: Thu, 20 May 2021 10:26:13 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, May 20, 2021 at 09:59:59AM +0200, steve-humphreys@gmx.com wrote:
> I wonder why I am getting 
> 
> Symbol's value as variable is void: message

Because you are using it as a variable down there:
> 
> (message " ")
> (message "*** ***")
> (setq s (string-match "[+]+"  "++++++++++++++++"))
> message("%s" s)
  ^^^ HERE
> (setq s (string-match "[+-]+" "++++++++++++++++"))
> message("%s" s)
> (setq s (string-match "[+-]+" "----------------"))
> message("%s"  s)
  ^^^ AND HERE

Now *STOP*.

Think about it. How could you have debugged it yourself?

That's the only way to improve.

Cheers
 - t

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]