From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Barbier Newsgroups: gmane.emacs.help Subject: Re: How to highlight UUID in all buffes? Date: Sun, 16 Oct 2022 18:12:40 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26703"; mail-complaints-to="usenet@ciao.gmane.io" Cc: William Xu , help-gnu-emacs@gnu.org To: Jean Louis , Daniel =?utf-8?Q?Mart=C3=ADn?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 16 18:09:34 2022 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 1ok6Cj-0006lA-2I for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 18:09:33 +0200 Original-Received: from localhost ([::1]:57154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ok6Ci-0005OK-1R for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 12:09:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok6BE-0005Lq-Hv for help-gnu-emacs@gnu.org; Sun, 16 Oct 2022 12:08:07 -0400 Original-Received: from smtp6-g21.free.fr ([2a01:e0c:1:1599::15]:46352) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok6BC-0007hO-39 for help-gnu-emacs@gnu.org; Sun, 16 Oct 2022 12:07:59 -0400 Original-Received: from tosh-laptop (unknown [IPv6:2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp6-g21.free.fr (Postfix) with ESMTPS id 334E87802E5; Sun, 16 Oct 2022 18:07:46 +0200 (CEST) Original-Received: by tosh-laptop (sSMTP sendmail emulation); Sun, 16 Oct 2022 18:12:42 +0200 In-Reply-To: Received-SPF: softfail client-ip=2a01:e0c:1:1599::15; envelope-from=brubar.cs@gmail.com; helo=smtp6-g21.free.fr X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MISSING_MID=0.497, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:139995 Archived-At: Jean Louis writes: > I still can't get that to work. Does it work on your side? > > 6677b79e-9232-4d49-a3f1-ada528388eb6 William Xu writes: > Try: > > (font-lock-add-keywords 'mail-mode `((,(concat "\\(" thing-at-point-uuid-regexp "\\)") 1 'link))) > FWIW, that works for me. But, 'font-lock-update' isn't enough to refontify the buffer. Turning mail-mode ON/OFF triggers the fontification update. Bruno