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: Including tex commands in a list Date: Thu, 28 Jan 2021 14:29:26 +0100 Message-ID: References: <87k0ryf0ho.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="20186"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 28 14:30: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 1l57N2-000539-WC for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 14:30:01 +0100 Original-Received: from localhost ([::1]:41538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l57N1-0007pq-Uk for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 08:29:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l57Mb-0007pL-73 for help-gnu-emacs@gnu.org; Thu, 28 Jan 2021 08:29:33 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:55811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l57MZ-00005h-3C for help-gnu-emacs@gnu.org; Thu, 28 Jan 2021 08:29:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1611840566; bh=zYZWanGubyQRGcbmDgh7f+Am/VsldNyOuFTVTm4rCM8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=MSB4A8Qi4KrRAorAVjUX7w1+slAvQ3MfcNPauUGe1KY7cPEbHtgBM1rUR7NjkGq7X syyBCu0jeUZ4AWM7jOLzS3yc+dQnm2Zqltw/s/gZpk6jyPXGZt5x0vV7uFy6rf3syr 7D0Wh0szSF1hH76JgE0roHeqna6dbM3swyrnRi0U= 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-bs07.server.lan [172.19.170.175]) (via HTTP); Thu, 28 Jan 2021 14:29:26 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87k0ryf0ho.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:0ns5BEpou7rb3rO3fp8lrMoOqrHfYsEll+3TMrLyaFfQLnBqzZ611Sc4W4pk8F9hsIrTI MYGZGJZnFp8U+JySPBRM5346ADzD+KygvFYOsHNsM3Oo1icXzlv0W2OYLPp2AyrHAsy6EM5Pl8hr iHdOZlg/zXUhwmrbVMFWG3zmQ/H3i+N55XdKoecVO0pHSysmlZXNQtvX8pZ4DdEtLTMSN+fdYYOd w4TANy3e1k0sF2W75UiGiT7OT14ecrYW+fi9aXKOpHn2dv6C2n5QJnT12EaSxpPOfiZ/C4v6zJQ1 o8= X-UI-Out-Filterresults: notjunk:1;V03:K0:uq0crzjJTCI=:Kw9GCkfIXLqsZEoCaPrVyD 6NcNe2c9CQdpnSFs4wu1yPf5UgmBpt0h2efV1uV0ItUEF70gDDcifQOJ6klL9FdJFQRlkYhDQ d7fDfA4CSIfdHPU7EPqoXOO0v3+WXI7eX2rtHc1cxCO0+VKIyUyMzCSdmh/ibe3WGNzgYL8Ul wi/uu7T3Se4UtJhYJqzAcRCo5y4bq03mzbuF/Y2hq3vgqVGvgZxJM/nLyRQxqFwrZzrQOs4Sz 9sdVGgH+nvJjjqVSk+C36r1IeiyZxJ2iRTGytAUVBj5Qu6tAHuhoPKLUwcySjnqmCvCtbyWJ0 TFW5ekYT29ktrUV3YTOQc+BpWZTWUOJ40om3tcLwuBw9pFHW8KwXbvpgLQrpilSXQ13Eet1V/ kDeP+9RBT0uSD7FRAAM7cPgIPR5YeWkFzCXUOaL8lBrrd6G3MRHyt8JBoMV0U4KlXr1KfF3+V 1D8m2QtnjBH9qLu0czIsHOOS7nSlnnsWJb0yJ/9viaCD/sRq/T97dNIf54p/+3tG4+Vj2nqzi UiscMJo2KH6G+0d1DK9oqDGUODUJixbeEEWwx/DhyqUvBEY+20sQMbDVtpdGIDmsY5WfgyqAi PPr5o9E98vR5M= Received-SPF: pass client-ip=212.227.15.19; 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:127397 Archived-At: Never came across rx before. Have used (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)) ; It would help if I had an example of using "rx" for this. > Sent: Thursday, January 28, 2021 at 11:01 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 including a long list of greek characters (\alpha \beta \gamma) > > when using texinfo, and want to inquire how to list them in a > > multiline expression. Here I am using one line. > > > > (defconst supinf-greek-keywords > > '(("\\\\\\<\\(alpha\\|beta\\|gamma\\)\\>" > > (1 'typeface-greek-keywords))) > > "Rules to apply font-lock highlighting.") > > You mean, in the expression? Like > > #+begin_src emacs-lisp > (defconst supinf-greek-keywords > `((,(concat "\\\\\\<\\(" > (mapconcat #'identity (list "alpha" "beta" "gamma") "\\|") > "\\)\\>") > (1 'typeface-greek-keywords))) > "Rules to apply font-lock highlighting.") > #+end_src > > ? > > It would be best to use an appropriate `rx' expression instead of > `concat' as above if you know `rx' or want to get used to it. Would > make the result even more readable. > > Regards, > > Michael. > > >