From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: steve-humphreys@gmx.com Newsgroups: gmane.emacs.help Subject: Re: [External] : Use the characters "+" and "-" in regular expressions Date: Thu, 20 May 2021 10:41:46 +0200 Message-ID: References: <20210519213207.GD4855@tuxteam.de> <20210520082613.GC1127@tuxteam.de> 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="13001"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "help-gnu-emacs@gnu.org" To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 20 10:49:42 2021 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 1ljeNC-0003Du-F2 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 10:49:42 +0200 Original-Received: from localhost ([::1]:51302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljeNB-0006bJ-0i for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 04:49:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljeFk-0000oZ-4M for help-gnu-emacs@gnu.org; Thu, 20 May 2021 04:42:01 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:48211) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljeFe-0005CE-Kw for help-gnu-emacs@gnu.org; Thu, 20 May 2021 04:41:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621500106; bh=WMvV40HF0xMnNz5kl1iWsP5DMEEKZrzWVoXv2nG9OkI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Xf+nAOxi39dJSOVTmPbfmW0JklIkm+Fc5/cM20iJ9Mqk8GJsaD5BUxT+HWJaOGP8R JXTyVnQ9rwWEn8KkyUH/RHIll0R7AQ2jG06CO3wmAYH2+E3s/LSwkGvlP5ATPHFy7y UnW4oTz0ygFdaQUVi9xuUITl4q8uFjqfystKZ5xo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs16.server.lan [172.19.170.184]) (via HTTP); Thu, 20 May 2021 10:41:46 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <20210520082613.GC1127@tuxteam.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:0QFcDswpoY2JbCByKdBvLkRRn32gC/QYtTyApetZ794bRx+t3i72av+htphYnnKDD/KFk zfDF0yC9cccoV6DYHdUp5lVVewBKKmaHYGdPVD7pABlLoprXJpyIxOf5Cl1zs9SCqT9yMFLpHbu+ bcAR3lUTqjP0GiNDNMZ6EVXhM/T+fC7UQJnKty72PenzVm601gcTweNs6i6jbC+DlAAOYYRLX7JA +wWZJ3S+ukqAaMthEbPMLolPxcgpTG9bxcz6WN5Cbib/5K043K9uOma+J54PkPnDLw3sT/H+0Rhg mY= X-UI-Out-Filterresults: notjunk:1;V03:K0:rRZOL6oPKrs=:DpueuPO2N6uL3codZg7L+6 JfSJw/5BLgwel68z7/9pbbuo/f/FRuG5IhNo8J8UUvwB+ChtYalm3NSmr4cQhTLpkKRL1RDn/ 8Er2MJN7rxKUOSV4RWEF3/LZEitdXrIXJnFfiZjrE/5m4Rdp1Z+uZH17GCTLUK6l5xaNASLEN EH9NTn9pnGqy9mFvGIOVlrpepqsX7v8hZkO958AC90imSZQ03vEsr01HEvc4pZf9Dr2VMq1XT gEJaDi3dzjJwriXHOa0AkrQ3PV7Rje6fjwyrvuZ8Rf6roWiRTcjBEMT+JaVa6kIkKKuNQvhjj LVZto2Bd5LfiHZ+Wk+fXLykkjWaxkt2l+wzohyQkJywdwBreTRnz4Y9TPwjDAdHjshKrxCl5i cTrIX0D6auq0+z9kFLMsuilY/DJtVMc1A4zww50bMjDGxM+v0b/KeVl/3kJ8k2RQp5cMULefK hyKrSFwpAyWsaUoK/XY2AdcpIoADVuCpPWYtyurZf8xAl4PPktCSB7ExfvAOsucj7Z3MZ9Sel 0jNre/iVvWH0OU6AFMUb9o9SNyK72lUwfFEyJoQ99ir3xwchonq7bUVGkNKmeML1VFABjndjl q4SFeHp7Ehi7YrJgwfjKkV3apocUfeb5fIO4v1u6Ovl+sS3l79lnuSvoKcaaqTIQ8K43dSucl yjyfnxqG8ph6XfVUYZDZkg7XxIv0HwyCdVj1ywN+owGA7AGwtby7wOElYhY/T3pmW+TxMmAod M+3yPOxJ0AIqwpW4Vv3R3VgWtfEb3OGaYYRs2Lt/O7bIqoBOnNnapSfEQF3foslquAGXIue1 Received-SPF: pass client-ip=212.227.15.15; envelope-from=steve-humphreys@gmx.com; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:129951 Archived-At: You are right. Have got it now, thanks. > Sent: Thursday, May 20, 2021 at 8:26 PM > From: tomas@tuxteam.de > To: steve-humphreys@gmx.com > Cc: "help-gnu-emacs@gnu.org" > Subject: Re: [External] : Use the characters "+" and "-" in regular exp= ressions > > 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 >