From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: michael-franzese@gmx.com Newsgroups: gmane.emacs.help Subject: Re: Passing values through a variable Date: Sun, 14 Feb 2021 19:08:37 +0100 Message-ID: References: <871rdj714w.fsf@zoho.eu> <87wnvb5kwa.fsf@zoho.eu> <87eehi1qq7.fsf@zoho.eu> 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="40181"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: moasenwood@zoho.eu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 14 19:37: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 1lBMH6-000ALu-Uo for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 19:37:40 +0100 Original-Received: from localhost ([::1]:40126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBMH5-0004pG-Vg for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 13:37:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBLp5-0000Yl-R3 for help-gnu-emacs@gnu.org; Sun, 14 Feb 2021 13:08:43 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:33299) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBLp3-0005LF-JZ for help-gnu-emacs@gnu.org; Sun, 14 Feb 2021 13:08:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613326117; bh=amvuXwoJD7cxuHhURjk4DdKWOH/Ky0E5Rhs+UMv6lVI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=KAdABzFF3+TCficmHVmD8s6ZuSJY4Ifdg96sHiOedb/eGuT3wMhCpcatLe91W5+Mh G8eTgbIaMczXpRCo8Cx1VGgoZW5qRwTuvY9IHw2W/lqRKBuoBcJ75ZnKm4nTUV4x9K u2KcgDM/p3fkcg+AvQo4D1LMWMfkmHdub9b89OMg= 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-bs01.server.lan [172.19.170.58]) (via HTTP); Sun, 14 Feb 2021 19:08:37 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87eehi1qq7.fsf@zoho.eu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:hj78NSdWg+OucAXR13BafDE0OKRHutFkQ04GY/0Byw/qyZH/cuQrfW4UBKVX4p5HwXbLU zxkl1aWVwNmr9DlKbKSDhtUEW2BuGawcbL1YpKj8FAbll/ypUpupV/TsiIhiopQrl/8XTfodjU5H hcl17h/je4zovfV4Z/mdsgHtuQII4nIFlQ2xNLZ9TOyPERYEbPBtjyk/fjyJiT294Bi87a5bvxKG jjoqe0tKZ8wabo4E49unFGhpP/xBC4j/Ha/bwAFiaOYdL/lKOUEOra6ecKnv93EycV7ATS+7xq3/ Ic= X-UI-Out-Filterresults: notjunk:1;V03:K0:o5etvLByiAg=:AOiu+PjEQcVPKlCpS53M/p da5YOO9KV/ot0kJfjPF3kO8HRiuZ57CVrXS+oQxxOnaKfFR+84CYWVWnA/z+Ewb2vfNilEcW3 05fchmxCoLR8NndxQXXGnmRysQW1ZsCZ7AedzsTogEfFM0shCgD4kJ3bSt+4Xjm32ntAPuVwm ryE8sDaVR2/HdHDIoVwe+EswR9ejD7wE9PHIpL/0+d/nQuLCUifEIQsxXwyyIRusghSDx+l8P pBZP6puYP903ERNP/MhFXbBHzKC7PHiuqTI65szt8QyUu2DC0EOpbKR7zeX+Q9AJoSoEyBiww bsc4GE506XljLYAUwOWi3qD+UamO5Hh2bLaZaKWsGoeFcrZv5jQrKsIrQ9wCEbhnz3sQ71uK8 yMNTnJSJ6M1yT99iB7LUWLAiFSkPbcmiRXuLKbYMH0I04QhulNt6ui0vC9LHw9+Cod5o5KbGw PjMr/kxDki4tWxU00xLhY9cOibs1H9QVnKdR6moo/2L6y9Dr7cTcOteSwR7wg3no19Xt8ljA0 TZz/6s+6ybvJO+ilp1G+J5kJTwt2mQfMSVAJtihdOvsYy1ALrzj9zGprNZR+zy2P56rkxUbuc oYOi2Y65fzNnJev/NGzy2Y96iQb7LrzPfX Received-SPF: pass client-ip=212.227.17.20; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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:128045 Archived-At: The oricinal code used either a "0" or a "1". With "0", the leading "\" is highlighted; whereas with "1", the leading "\" is not highlighted. (defconst comseq-list `( (,(rx "\\" word-start (group (or "alpha" "beta" "chi" "delta")) word-e= nd) (1 'colour-texcmd-crucible)) > Sent: Monday, February 15, 2021 at 5:52 AM > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > To: help-gnu-emacs@gnu.org > Subject: Re: Passing values through a variable > > michael-franzese wrote: > > >>> You have used > >>> > >>> ("_{\\([[:alnum:]]*\\)}" 1 font-lock-function-name-face) > >>> > >>> How can I pass the "1" using a variable, rather than > >>> hardwiring it? > >> > >> That's not how it works. Figure it out... or see > >> the docstring. > > > > What should I look for? > > 1 is the index of the subexpression that should be affected, > see this screenshot. So you search for the whole expression, > but colorize only the subexpression pointed to by the index. > > See how the code corresponds to the first two lines? > > https://dataswamp.org/~incal/figures/emacs/high-low.png > > If you don't have any subexpression, just a single expression > that might be as plain as a word, you don't need an index, > instead use (word . face) - I think I mentioned > this...? Nevermind. > > Anyway here is an example of that: > > https://dataswamp.org/~incal/figures/emacs/dressed-up-as-themselves.pn= g > > Look at the code and think. What does the file name refer to? > > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > >