From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Introducing a regexp in a docstring brings up M-x Date: Sun, 14 Jul 2024 00:52:04 +0200 Message-ID: <87msmknbvv.fsf@gmx.net> References: <7gjC3Gx6dQllsYog-8MzIDYpyLJPs61_zB62n6Yiu5p55mn0WwEnfNx-VftmWVFczAhA2_s55ndRDrhyutiHYWwLVl-KPzUl0AayoXOro6E=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6275"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 14 00:52:55 2024 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 1sSlbq-0001NA-PM for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 14 Jul 2024 00:52:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSlbC-0003P4-6G; Sat, 13 Jul 2024 18:52:14 -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 1sSlbB-0003Ov-0r for help-gnu-emacs@gnu.org; Sat, 13 Jul 2024 18:52:13 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sSlb9-00040D-6b for help-gnu-emacs@gnu.org; Sat, 13 Jul 2024 18:52:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1720911127; x=1721515927; i=stephen.berman@gmx.net; bh=nyRr26ogl+ZNaXDsYcOIvCgUQCMBN+Jq8RFdCMmUa/g=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=pHlbSHUcCeSCWyP4vYlTjc/sbHvgOCUr0mBZUlPvvRD4tHGxf5kxzjoU9ncAQDq7 fwdhSkyrBcrXr3LfH9FNrlGgYjQOT4YTg0WQtbgsQ+vaj2QnnuQPtRFcXgtIkKeIm F9sZ2t1z83SKTEA2EPr7GjMvFHQ4H0Ss2hxTdt7jUg/0PEr+S3IoRY9BTX8sp8+rf bhIa+YEwpmTrSt0vDBsOktelxybsnr9nbrf04ik7I8suyfcHfIUygCs+3zgO4IGmY rWQYE0kHzP826x+y/zhMNtOrJTzT6ucb2ydmdeLhF5JuCxbaLkrsDm83jkbvI2vvB Q/9NYwhc+aUkEE57wQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfs ([88.130.49.191]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MD9T7-1sbKBa3B8T-000j4x; Sun, 14 Jul 2024 00:52:07 +0200 In-Reply-To: <7gjC3Gx6dQllsYog-8MzIDYpyLJPs61_zB62n6Yiu5p55mn0WwEnfNx-VftmWVFczAhA2_s55ndRDrhyutiHYWwLVl-KPzUl0AayoXOro6E=@protonmail.com> (Heime's message of "Sat, 13 Jul 2024 16:36:05 +0000") X-Provags-ID: V03:K1:79fsutqrgghYQCEmucQdhRvFoKi4LItyBY/4shY0zg4ELFGF2Vj m79y+S6l1T4Y9y0jPotx95XJcNmVBHJR8SsDr9ZS35BtQ4j1w8S7mCeFqJIPX17o6HWmGzq uJszVXbMzgiz/Rg4s6iUGDkxTAqaaxKuFS+/d15+pP9wgRVk1jOHuqNmvc7MQpg3cuCsMJN hXhqmfL74bVWlg76FIIWw== UI-OutboundReport: notjunk:1;M01:P0:9OEswuAZVfA=;UUV920S34F2o8B21wsKIlPGjPfP jdwYoxcR2xWQpBaj8LGHGC421hbB4z5HRFiRxKDLxFzoFapE1oTN6fYaIxQQe1ApWQ2Iut2dK OnXFmAbhxTrhqHww3WnCRymm9qZOQYQKNjP7PW+mdMfm2QViLODbHiUkJjGGQ23GNbMLaw3m+ iG/DBTBJP7z6qkhKbqog2c0nKhXtc1XJMMpAydOOsvVMwfuc5vbEnrqz4mzdEM5dMleqMN+g1 9yhkFeTjIGbGmW1DbkVnkcSH0Yb5B70s65VcS1HQVUXTTBAQw4jI4KJLs9ZERQJA0gN8bD7Nf gfOqErTaCKPt5HbnBDtVDImMgX9gRCRXMDNzyaNbKxuQAtfAPDBifiNpttZi5/ZhqpvUHw/sE hz8sbI0oC4JNE/LA5/30NWxPvPbPQgHePp2qvM26rHniad91xwPs0NGEi8HxLI6UnAhtIgRum 5HhqrjoUdBbwcSzaTuZilaA1KR4sOAqnF6v86qnPeCw1VHmGYElL9i1o83b/gqStMQTO3wkq0 UifDMnuaFexCM7Kk6AQ04OpSf5pX1Pui+kAKL8i09eMzWf4Qyv+PLXltFDp6DvmgCdyhfZzbu /Sg+0xHhhwVwDhShqw1pgG/odQan1AnK5ERMfYxSIAlwNgJ24Mv1wbumSOGX4m/nOmLjXIEwI XvhQJxHKrfDxWRdGpVOkOa9oFYde1ZhpHrg/nfrfhmVSUqSjQKOQteGXurqR7yQFTCv0iKIde jyTESAdFlmG3PuxEvQhdQfyh4CDkySQQRS8k1QbzhcPtTGtMtWBCNL9UbIKUNUnQ4Z017gr+ Received-SPF: pass client-ip=212.227.17.22; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147202 Archived-At: On Sat, 13 Jul 2024 16:36:05 +0000 Heime wrote: > I have introduced the following in the function docstring > > 1. First Capturing Group \*\\(\\s-*\\[\\-\\]\\s-*\\)\* > > Why do I get M-x cropping up ? > > 1. First Capturing Group "\(\s-*\M-x \-\\\s-*\)" This is because in doc strings the string "\\[COMMAND]" is converted by substitute-command-keys either into the key sequence bound to COMMAND or else into "M-x COMMAND", as in your case. To avoid this, use the escape sequence "\\=": "1. First Capturing Group \\(\\s-*\\=\\[\\-\\]\\s-*\\)". Steve Berman