From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Shy groups and * ...eh, what? Date: Sat, 22 Oct 2022 06:24:39 +0200 Message-ID: <87edv0mqns.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24957"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 22 07:22:56 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 1om6yF-0006Jt-PW for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 22 Oct 2022 07:22:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1om63z-0002pp-4D; Sat, 22 Oct 2022 00:24:47 -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 1om63x-0002pg-Jy for help-gnu-emacs@gnu.org; Sat, 22 Oct 2022 00:24:45 -0400 Original-Received: from mout.web.de ([212.227.15.4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1om63u-0006yV-WB for help-gnu-emacs@gnu.org; Sat, 22 Oct 2022 00:24:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1666412680; bh=DprbunnmrbRdYSNiVvQTgDrit5Zd8/ffilh9cqhqAgU=; h=X-UI-Sender-Class:From:To:Subject:Date; b=TF6DUy1NaqlvKCRay4V1V4BNNBu/IXKdZAhJ2ik1/xRJxn4MmcfEk7+mNLV1Vc7Q3 ZWH0Ks72cIN6YktIb9ZrgSBupJa5OfD15RNIfELm8UfxgAmkJxHYFZ43Uf0zHXB/qX 3Sa/OuMtK5YBCuaHlYHTpY8tCAp0UZe9KfiwD3yQHW5eVjfPSYPNE2iwYzbGiE/KbA 8bqhqZTDaXN2gV2eR9G4p4+M62bA0l1AAL+ielFsFAvp2HIUglFh2JlpgETRx3QWvB 75yc4W3fHjyh4istq5DP6+0oA0Er9jeOCyGYlzlu0TguKSN/x9651e8cqLdvmrcssv lfWtwgPVpXVuQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([188.105.185.54]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MOlwp-1oSVHT1cFj-00PyLy; Sat, 22 Oct 2022 06:24:40 +0200 X-Provags-ID: V03:K1:fENCTg72w8mnN0IYArtH9o6nH7HDpOfVBGRrIANZZiq4zMPRv4+ QreTg0l8oLvArWbOtMw9Re1swkFMVoCQoysAqkCLyXURBaRd8gpqePCMYMHHGAhWTKiDGK1 ErAsM2wBC5oHA3ywYQmb1+K5CqLZ5YA4A+cxdOceKB2sNx+ODm5al0lSmW5HrEfKGASrK/Y eilQRe6GA3hS0KD1MctMg== UI-OutboundReport: notjunk:1;M01:P0:yU48daDzoek=;maz8mojnktLwog+qVrSGxyEohRH 33zyhSLbxHTifMVmxvxSFx9Ar6RKDQyX+Ws2QZH2f4bnAwEY/sCrzfQFykW/oqbAz9tMPp8by V44rpD2Foffq4IVLuZ4dVsqy6mhkyDeC9XNcmyIkHOeNekEOjwI7ktuBLGNAAYLB4t8QoQpq6 qf+s5+MWaYC65uMrIuiPv4zbd929udM5dFiU3/tUJDosVUTOYQrBNpjJVqAlmjTHNyequmsTj 043fJ8KIYdQtBlQmV9kNo2COKUCMCkzzmIOP49QKJ1CrhCId5XiOn1wZTzuOMnhZQOhai9dCR tQV4IbFHtsY1CvcbvGo6A6MsQdFuNXtwRSMl/wIOUonstfHMKbGAUzJazOedndTVMGhfztqqQ 93HD04CJK2fmVDzpaGjDL9M8ofHDktjoBzeyrhK8T/CHMp8Cx4aMhxeu/Q6LAYIEt9FFXbm/W b1sO55r8g4q+tGQLYJEBLBDMp6Nof1IalYFx2T80PlaerisuzO343/5Y/P6DTSqHGStbYYMRU pSy2N/Xq6w1potKKsPUCcneuTbIC+Ztcpn3LmUikQ05iOpmAhMn7JEseaBNaWyTvpEzAlmOEs xLHEi9SUrob79laavGm8nuV052jGnmWTO22Kd8SsJGBPjkkiBKNqHRJQ0rdHMAy1yCUfAbQf2 epT0TejST2gfABlragpMMVRiegdNBDY1CZDTqwISicKoXAwnce6KW7JFAE/DaWn0vlz/xz3dg Zf+pHQ7+huNskGwqUvw9+LyJxqJ7C22A0N/NPOi0RpFo69tJlbb1tM4NCDo87dlt8NknRHC2 Received-SPF: pass client-ip=212.227.15.4; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, 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.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140260 Archived-At: Hello, I wanted to be sure I correctly understood that if you give multiple RX arguments to the `rx' `*' operator, they are implicitly interpreted as a sequence (AFAIU, that's the case. An implicit `or' would also make sense, that's why I wondered). Anyway, here is what I tried: (string-match-p (rx bos (* "a" "b") eos) "a") ==> 0 (string-match-p (rx bos (* "a" "b") eos) "b") ==> nil Eh - what? With evaluated `rx' forms this is (string-match-p "\\`\\(?:ab\\)*\\'" "a") ==> 0 (string-match-p "\\`\\(?:ab\\)*\\'" "b") ==> nil Makes no sense to me. When I change the wrapping shy groups to normal groups the result makes more sense to me: (string-match-p "\\`\\(ab\\)*\\'" "a") ==> nil (string-match-p "\\`\\(ab\\)*\\'" "b") ==> nil Do I miss something or is it just a bug? TIA, Michael.