From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Including tex commands in a list Date: Thu, 28 Jan 2021 23:17:19 +0100 Message-ID: References: <87k0ryf0ho.fsf@web.de> <87lfcdnnr3.fsf@web.de> <87k0rwvjwl.fsf@web.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="6784"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , help-gnu-emacs@gnu.org To: steve-humphreys@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 28 23:18:04 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 1l5Fc4-0001ea-Et for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 23:18:04 +0100 Original-Received: from localhost ([::1]:57240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5Fc3-0006Uy-EV for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 17:18:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5FbQ-0006Ud-G7 for help-gnu-emacs@gnu.org; Thu, 28 Jan 2021 17:17:24 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:45187) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5FbO-0000Qr-OF for help-gnu-emacs@gnu.org; Thu, 28 Jan 2021 17:17:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1611872239; bh=QwK4sX51USxX1JZOvOwkE0QOoCs+dsowk2CHb2i9h+M=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=dwAsDZ64WS4sX80TLVkUfmGkKZY8SiwiuKowkBP0q/FrEGcnm0uYSKivzb5ZFgUkA 3CCKLSKWxZI/pJ8Dkze+N+DyeNyYnVL5n0zEILBQOsy3vQ64xuQ4vBnF6UKEV3BFar 45K5+ZPKSxhF0gxMfgB3hr149imIoRSauivORC7M= 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-bs02.server.lan [172.19.170.129]) (via HTTP); Thu, 28 Jan 2021 23:17:19 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:dyqF4L6ener5BxOm7TCGO1wRcRoWFEtUlIxuBJbPMwp1wJfMjhRWmtnRbHiuGF2RdTdmS 5j1zuqxEZeoWqbpXvpnjpKfP2U7DZkD02vx1JkAIIAj/SSMBRt1zLHx9PlAzT2Oo8apJe5ZK7Grs rXReE0V92lHHKutziT6ooJ9fCViYZQd3DIrsNaZtruMqQgIy8zgCXYzeJVQjU/jMU4Mk3SrDIXmO LlS/LWJxlGmiEcUc1nqcPX2WjmOfd+DXjByOtpAuIHZsSqTpnSWxnedK5il19nRv2RRON0mwUCBd lQ= X-UI-Out-Filterresults: notjunk:1;V03:K0:AqVYNiuy1cw=:uVONxfT02UwyHKQtw4Bb8z 2bFYWa37Rd8AMjr/kXSeDNBnu4q+L0NVwDc6ft7YO/7f8Vq4FJY3CA/kmWMnFPQcCvF642uMB kNgd65Gt00siE0xEx5tsWru5d7DiFGlhcihnZ0Ua8TJhiqC3RFYwzfTQZbyykl62yGGvg/XP1 eCVL9HjI0KLC35+25Ym0b7/TyOwn1g/BGeHm0MiJdXsyUx46LOJ0XpVagiVaDErBUlgKZMPzj jGOcMfbCVtzYM0YuvyxCa9P9aBu5ObhGRjwhmF/hfkW40uy/Y36vnfRjCS6t8K/dZaybGD2W/ pe9+JGwC4eBDwsGiuAGf9qQoFPYd9bY/5mbXzt97kA/HHw/NNY7FWX+l1Y0j0X4vTtwtqgpW4 qBYFJtxqs/jHZ5rj6wCQJwO9YFlHvDax/Yqu26WzK3XFVlxIojTR/Cr5+C52CQHJNBxTjECbi mvqOYTvRjCTIJtxdMTABNZA71xk0vYdfqcn+vI6moM13xtyRdWz9BrRZiz6e+z0co/mR3djmP 4yGprIhVa9LaFRYNmKc4GBoTvim7LqFYCJ3/LNQV3wKwYmmc5N3ge5nylgNYy2luseN1BSY5Q XjEamJtqXO90o= Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, 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=no 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:127411 Archived-At: You can try to use (require 'rx) (rx "\\" "alpha" (or "beta" "gamma") "theta") > Sent: Friday, January 29, 2021 at 10:12 AM > From: steve-humphreys@gmx.com > To: "Michael Heerdegen" > Cc: help-gnu-emacs@gnu.org > Subject: Re: Including tex commands in a list > > I know that the command > > (rx (or "alpha" "beta")) > > produces the generated pattern > > "\\(?:alpha\\|beta\\)" > > > > > > > Sent: Friday, January 29, 2021 at 9:19 AM > > From: "Michael Heerdegen" > > To: help-gnu-emacs@gnu.org > > Subject: Re: Including tex commands in a list > > > > steve-humphreys@gmx.com writes: > > > > > I am using font lock to highlight keywords in a minor mode. > > > Have changed from using "concat" to using "rx" as you suggested. > > > However it does not seem equivalent. > > > > > > (defconst crucible-mtksy-keywords > > > `(;; Greek > > > (,(concat "\\\\\\<\\(alpha\\|beta\\|chi\\|delta\\|" > > > "Delta\\|epsilon\\|varepsilon\\|eta\\|" > > > "gamma\\|Gamma\\|iota\\|kappa \\|" > > > "lambda\\|Lambda\\|mu\\|nu\\|" > > > "omega\\|Omega\\|phi\\|varphi\\|" > > > "Phi\\|pi\\|varpi\\|Pi\\|" > > > "psi\\|Psi\\|rho\\|varrho\\|" > > > "sigma\\|varsigma\\|Sigma\\|tau\\|" > > > "theta\\|vartheta\\|Theta\\|upsilon\\|" > > > "Upsilon\\|xi\\|Xi\\|zeta\\)\\>") > > > (0 'crucible-mtksy-tfc))) > > > "Fontification for letters and symbols.") > > > > How does your rx version look like? > > > > Michael. > > > > > > > >