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:58:09 +0900 Message-ID: <406711A6-E62E-4F43-B891-51724243CA9A@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> <79C3F1E3-45E2-4A59-8AFF-1134F66EB66C@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="195393"; 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 17:00: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 1grm5x-000oU4-9k for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Feb 2019 17:00:09 +0100 Original-Received: from localhost ([127.0.0.1]:42487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grm5w-00069i-7g for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Feb 2019 11:00:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grm49-00058y-PB for help-gnu-emacs@gnu.org; Thu, 07 Feb 2019 10:58:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grm48-0008Ln-IO for help-gnu-emacs@gnu.org; Thu, 07 Feb 2019 10:58:17 -0500 Original-Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:42814) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grm47-0008Kc-RH for help-gnu-emacs@gnu.org; Thu, 07 Feb 2019 10:58:16 -0500 Original-Received: by mail-pg1-x534.google.com with SMTP id d72so103094pga.9 for ; Thu, 07 Feb 2019 07:58:15 -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=serpuWEJmCBLKsN+ym8ZDu3tHUFIvxwBYn+mB09pCbU=; b=riTaxUXJRbJKBBxAkrmzEskCSZCP5uCKI224+EODJXvWWSPwrflW69UbkL7g/X3xnb AXV1VsNC+4KzxxrrnJY1kiemB1AICt0Kfe7iy+XbLfx5c+yhk5X4DmFdDGakA3j5rmbc u9QBlgPWZFKT1/70hUsAjOZUEpc5ztxQqXVCqLUaer6jYZSoGMc5MWG8PojrtjSAdE27 eIWR5nqn419+As6gZSqFg3HIPw4S/n01IfSaIw6uVt/K9T6LzDOBHGyVhTEjeoljZ3wa 6PW500U0yx6e2on8efaWd4WdcsbKygCA+Qz1l/yCrTdNZX4/Zf2s2VKzTlvzJC74xhaK Xa6w== 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=serpuWEJmCBLKsN+ym8ZDu3tHUFIvxwBYn+mB09pCbU=; b=U5YWmgYN6bfdBxbzQGwIvUAsYSjoxljZc/ZjTBDn3cITnDfPhlWPwLg91IrMzK3Hvo XEJx/MGXjz47SakwLp1uHg+DnoeHiMRu6kWvYqeUYDlVsJUXPV/GHffhbXfWl1cImBaa aHxvH7D5//JChg/PjeijK0ECXJur/XoDQgDGWGkItVGrofoSrovOpgReknFNd8gEana3 Gt+/WPDOSekVYb0b091EEv2FyUuZ6QHV76jqvTBjfrEHi8xqyRRhm5yeI68s3Dr86O/i FJl7sxxmB5DRgCcEYEVaDchX5IE2Uit6uKuK+b8MtnWKpo6CInU5c36Fsqztlv05nCkZ kWkA== X-Gm-Message-State: AHQUAuaTAplnEOpW8IuTqSAO3NJXfzznyiJxZuXaD5BfIYmwk9AKqx13 5hv8VLcLnuagq4XiFxEcgn0vrWUP X-Google-Smtp-Source: AHgI3IYQLDqcoNbsDglHQdAos5N0V54Ue4mV9Qz6xmOZKUZPBObK5sa+D+7XtzC5UrzQKP0QJ5W0GQ== X-Received: by 2002:a63:1143:: with SMTP id 3mr15220897pgr.447.1549555093718; Thu, 07 Feb 2019 07:58:13 -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 s79sm11547057pgs.50.2019.02.07.07.58.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Feb 2019 07:58:12 -0800 (PST) X-Priority: 3 In-Reply-To: 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::534 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:119250 Archived-At: > On Feb 8, 2019, at 0:44, Drew Adams wrote: > I probably should have mentioned this: To highlight > parts of a string is one thing - use `propertize' > with property `face', for example. > > To highlight parts of a buffer is something else. How is that something else ? > You typically use font lock for this. Font lock > periodically updates the highlighting, even as > you change buffer contents. It applies a set of > highlighting rules (regexp patterns, for example), > in sequence. Isn't it something you'd always want ? Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune