From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.help Subject: Re: tutorial on faces ? Date: Fri, 8 Feb 2019 00:15:56 +0900 Message-ID: <79C3F1E3-45E2-4A59-8AFF-1134F66EB66C@gmail.com> References: <18CB97AD-A448-47CD-97C7-6B4E825D2061@gmail.com> <54912792-0816-47b2-9c24-1f9230c17a59@default> <2A2300D5-9929-4996-B507-FCBC72A778C9@gmail.com> <29567580-B9BC-4942-AA7A-2183C28304E4@gmail.com> <2105bb15-c923-4887-935d-c3fc8bc4b290@default> Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="230006"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 07 16:17:14 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1grlQP-000xfn-Ii for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Feb 2019 16:17:13 +0100 Original-Received: from localhost ([127.0.0.1]:41885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grlQO-0007uH-Cz for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Feb 2019 10:17:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grlPJ-0007pY-Au for help-gnu-emacs@gnu.org; Thu, 07 Feb 2019 10:16:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grlPI-0006oS-Fn for help-gnu-emacs@gnu.org; Thu, 07 Feb 2019 10:16:05 -0500 Original-Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:40283) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grlPI-0006o1-A5 for help-gnu-emacs@gnu.org; Thu, 07 Feb 2019 10:16:04 -0500 Original-Received: by mail-pg1-x536.google.com with SMTP id z10so58587pgp.7 for ; Thu, 07 Feb 2019 07:16:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=k/xnLJhAXJ/cJy4HUH5tvsXgkIPeFSzuPVSyOIf4I+Y=; b=mt9TM4AB4KnhOIDpTytADkuxi1jpzI+3w16m0SBtVWHmOgSshAmJFN3IbcCsG2jKMs 9MGYpanpgELYbAthZUkCD7FcZ2D133KQg0Zni0/4geSGnhcRt3st5nJUNQ3io4L4p6vk rt5eGUmhPc6E9cR/qQJivc28xad1E2lq7SmRjvny+rRAsJ8TYfgaOs76z6UUERfRo/xg Jre1BCjAjvR1fQsjdMDIVjaMXc50QWL8RHurPREikwwrBlr9kkArobhA2BGBflgpU4wl TyaZsmUv6soI/LE1U/6quFE8p0OLPBPvKDPF+ZikH22jFVxd1lEb1DlEoQNougbPWvmh 6PJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=k/xnLJhAXJ/cJy4HUH5tvsXgkIPeFSzuPVSyOIf4I+Y=; b=FGaVbnkmhuP9fFccFqoRjuYa67M0vA3V4xJypDDvTBwp+sQIdylhVZ60FgSUbYl+sk BNiIOaqmV/hCsIF4ep2vzYmQqYJi/npPZChVXqUS00fCLr7DqxmfH6AmiJZV/a/qayQq UbVBbYxhiJmeZVuPFYWbiEKUy/DzAe1EC3j6p6/D8dw0qtucxYHGuiYVGIM6waz0dD0g PvX0SenUrioT3t2ajsxTn8Stg4bAJSGEKMfxYQgpq05Yc7c6CdjqJTgoApabpYZ8Qy7g mk83xojHOSTsncOXfM3Q35JeBpbUm5GYM3CigxKVo8cqHnxfbrMrhFjCC6kumiJ5cgCD ++lQ== X-Gm-Message-State: AHQUAubquXj78gTXjl4yN1hRf946V58y/K2acmJNr39ePZ7nAAC5HMmZ rxzBzkrV65+Jpr3OOio/+VlWWf3B X-Google-Smtp-Source: AHgI3IaAexrncwukg3LZqDPAaBP/hsscpG9Y8QbASPn3y64L+EncqvK5iAOmd3/e9xskSXAIXA0ZCg== X-Received: by 2002:a63:981a:: with SMTP id q26mr6657957pgd.263.1549552560667; Thu, 07 Feb 2019 07:16:00 -0800 (PST) Original-Received: from [192.168.1.3] (pl32040.ag0304.nttpc.ne.jp. [111.89.228.40]) by smtp.gmail.com with ESMTPSA id h185sm24620651pfg.143.2019.02.07.07.15.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Feb 2019 07:15:59 -0800 (PST) X-Priority: 3 In-Reply-To: <2105bb15-c923-4887-935d-c3fc8bc4b290@default> X-Mailer: Apple Mail (2.3445.102.3) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::536 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119243 Archived-At: > On Feb 8, 2019, at 0:04, Drew Adams wrote: >=20 >>> And do you want the face highlighting to be >>> automatically reapplied to those parts when >>> the same text is visited anew (in the same >>> mode), e.g. in a new Emacs session or after >>> reverting the buffer? >>=20 >> I'm not sure I understand the question. >=20 > Do you want the highlighting to be inherently > associated with particular patterns, so that > whenever a buffer with those patterns is visited > in a particular mode the patterns get highlighted. Yes. But I'm not sure I can call (my tweaked) poker.el a "mode". It is = just a program that outputs strings based on inputs in a dedicated = buffer. > I'm guessing you can find tutorials or videos or > blogs that introduce font-lock. If not (or even > if so), consult the Elisp manual, starting with > node Font Lock Mode (`C-h i g (elisp)font lock mode'). >=20 > = https://www.gnu.org/software/emacs/manual/html_node/elisp/Font-Lock-Mode.h= tml >=20 > Admittedly, that can be heavy going - font lock can > be complicated. Start with an intro (e.g. blog), if > you find a good one. Thank you. Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune