From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: font-lock as a single command Date: Sat, 13 Feb 2021 00:20:34 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21358"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 13 00:21:44 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 1lAhku-0005T0-Ei for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 00:21:44 +0100 Original-Received: from localhost ([::1]:35652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAhkt-0003Dk-Ej for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Feb 2021 18:21:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAhk0-0003Bk-Vg for help-gnu-emacs@gnu.org; Fri, 12 Feb 2021 18:20:49 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:40257) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAhjq-0005KY-OP for help-gnu-emacs@gnu.org; Fri, 12 Feb 2021 18:20:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613172034; bh=VBW0Q4dskxvNYbNoHhWur3aZtWgsw74+yDjTOeCEC54=; h=X-UI-Sender-Class:From:To:Subject:Date; b=lqIj70gXMM6sNpQPkydQ/wETBUrVzP98cJww8rjEkJBtFWTbraecPxNcu7FqGuBjq 8OxjatBcwSIqoyKxXCemA7D8aIZmVtvwhC+KZL7Z/z1H+rZmC0501VrW3XOyX6/0Ov pDaFNrfFp61DyBTmerwcklguxJpW51EPCc8NSV5I= 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-bs05.server.lan [172.19.170.173]) (via HTTP); Sat, 13 Feb 2021 00:20:34 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:IvZHT53F3B2JK/ZtuJm2MNXUi1nyXFkgasjA6Tdyk1osa6kxtXWW6tXccYws5BEcRUEt4 NOtT0/u28L8ckU8jmvDk5ct/YxgL5GP21ZeuN6YCt0DM6Yoz2+BHmKhKPCAan0oYzhddWDVV7hMR eY9k06ZCIH1Zdn7f1UbqFw65kLjqe9OnO+2hyuumpdebGhd8MjPmt0tgzD3jkGlqQ3TsK1n4dSFk coxzcXXRJuQyah/JEv9Bf6GVkvOaMhYFCp41kA76OKXDO6n+J64qVJg3guKZoIALt2y2H9Yx540Q bI= X-UI-Out-Filterresults: notjunk:1;V03:K0:5r6Ft8N4GSI=:NKXkIxTsZCgSUNEH1sUyGV pZww6S4ImGQsa/hoGFero0M6IGMMslwcW13MqLrxItxJBpsmAOKSpswZSunxsTBWc43K6UWNm yuhFYN1A9Z4lHm+/Ng0hxksdZsEEGrtmeKZ5gdLwglzxr1JaYOuOvYs4MMyaw/9Ez5Tky20cY 0B03/hP+0yk8WAWTox9joRLl9DejdHRwaT3YIzY88fFldAEPm985ikq3RacSFaSA6pv3XxkDf XSwXH0qJNr7MDDw2P0v8hKTGl7pSM57bxhO389s8Jof6qpYTjBi+twg2Y8jSscFESqoJRKibv TNPrsbUmxSU0az4jZ+4pq+u5szMS5i4o51Fbtdp40LksBd/0XVDc14RnOzxHc0XyWv6LfZUIy OhYl/ahijum3RhM8nDOOxNOSkpHNngJB8QQ3f4NrXjmuZtEas46ZwICqUx0O+aEd6HEwuNicn jJvVZsNL8KKp2eYbc1rExxPiS7pSPCJ0kj7oqK5vhXkKCSDyNhM6vG+/7+8i5rcILXLcoMhYH gj28rohgy9nuTMNkEL8YQVD4NWZIJPSEQVD25YaL8x9TdB6zQTVG5sU+0opB9A3jEZLH9lG5d hcMXkOWPEPKzU= Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@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:127874 Archived-At: I want to construct the font-lock as a single command (font-lock-add-keywords nil ...) But I am unsure how to do it. (defconst supinf-font-lock-cruc (append '((supinf-match (1 (supinf-raise-cruc (match-beginning 0))) ))) "Experimental expressions to highlight in TeX modes.") (defun supinf-enable () "Enables a typeface for displaying tex commands." (setq supinf-signal t) (font-lock-add-keywords nil supinf-font-lock-cruc t)) --------------------- Christopher Dimech General Administrator - Naiad Informatics - GNU Project (Geocomputation) - Geophysical Simulation - Geological Subsurface Mapping - Disaster Preparedness and Mitigation - Natural Resource Exploration and Production - Free Software Advocacy