From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: wael-zwaiter@gmx.com Newsgroups: gmane.emacs.help Subject: Re: font-lock with functions Date: Thu, 11 Feb 2021 20:38:08 +0100 Message-ID: References: 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="12134"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: wael-zwaiter@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 11 20:42: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 1lAHrN-00033z-VR for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Feb 2021 20:42:41 +0100 Original-Received: from localhost ([::1]:42220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAHrM-00013F-Uy for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Feb 2021 14:42:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAHn7-0007Hv-B8 for help-gnu-emacs@gnu.org; Thu, 11 Feb 2021 14:38:19 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:57309) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAHn0-0006tG-Ju for help-gnu-emacs@gnu.org; Thu, 11 Feb 2021 14:38:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613072288; bh=uYjzMbNrDB90QwNSz4krV9ilZEuXybSalMAMkCVrvYo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=RXP3SDkzdQnshcLJH4dJ9imF0SLu3MoZX08J6SiZXXiXLx5jBEp+zTX6MAVNv6TKx 4xydFZXN9YPi0nTrPrd9KjnpxZlevccnJEtSVaeGWajDV1ONZaqYaIhUmqHpWWV2Ko B14Xnx7Z5Q7fJn2Ngh8EpeJ/cVywDqJeX5+yqb18= 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-bs11.server.lan [172.19.170.179]) (via HTTP); Thu, 11 Feb 2021 20:38:08 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:rUejOhJAhro8tyW0CkRWlt+TUAx8Zr992n3VS9Jxj+u3Zzq0zXeTb+kmCawEL7JFE4xOw /mXPUkY77YwONuxcKf+NAm/dbMckrZ4mgACzAG/Cy2YHDk2wognYLVyL145c8bw52FxHuBlsws6O L0Bvg6S7rriSzlf/VAF/l+urT0e2C2d+/anbsQrGYKgbUZNhIjR4UdDrZl9Roj+GaY9iNGu7Xupa V2H+LMbPYBwi8XLAiykcbe7PsjPSglfhhCL340JlyLM0bxPxyew490AqKkcaA2fxp65ge4T+eJh7 go= X-UI-Out-Filterresults: notjunk:1;V03:K0:nQv4qXNWMgM=:0OkDS0TdtIBAYfNmYF2Bx4 1Ml8NeelE6bVgwTSTTyzdiyHi/fuueAdJVLmRO0L2evnuI5H9VHsR3Wd03f0mRl4I/9+38023 Es2UKqi9UDBOfsZf8a1u/ZcIx0xcREmtmZTGc3i269kuVBDu37zxKoLfZOr/1pWYL9sszB7sT 6Ehfh4z7aWbFJzbzmlYB1ULqdpUzHi3KixLqjr5qJbWlqmXYMHYpvjpsdurJYFt6NrQMvSY7m 1pUmhMBw0Lh6rHg75Oux6UBgtLW6o9Htz/90u6vhLIVc+W9/y74lFKMvH2dK26Rfv8zJELSlj /3vLjGn0dryL7yTUdGnCsIm0EjypyuEJEAEBJuJL+70yypPdoexIe5XZu50+1J2if49PRkLTq SvPMxIsKlWgwWbHj2e1/iS0Tid881mClAhL73fWdy4N36dyaBIx41OfIF7yGavi4p+5pJrZUa hDdZx9WnW4ZKzM0pi84GHfqH3+AtRyI0/+dhvSuUlYDXPK81mEh/ooBc58CftV5nyfZc3m3nk thAGGjxmI3YKGBmSUKuKkVNhzLH5YR6wLfEQfZ9eWvZtoFX/zeKpZGsqt44TK9SbyiC5OVK5L vs6Vq9lMRuR9M= Received-SPF: pass client-ip=212.227.15.19; envelope-from=wael-zwaiter@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_H3=0.001, RCVD_IN_MSPIKE_WL=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:127824 Archived-At: The following works well, but I am concerned that "my-font-lock" is a bit of a hack and could do with improvement (defconst my-font-lock (append nil '( (my-match (1 (my-bigfont (match-beginning 0)) append))) ) "Description.") (defun bigfont-enable () "Enables a typeface for displaying tex commands." (setq supinf-signal t) (font-lock-add-keywords nil my-font-lock t)) (add-hook 'my-mode-hook #'bigfont-enable) > Sent: Friday, February 12, 2021 at 1:02 AM > From: wael-zwaiter@gmx.com > To: "Help Gnu Emacs" > Subject: font-lock with functions > > I have a function called fkeyword-match and want to call font-lock on it= . > Can anyone explain to me how font-lock works and what to do? > > > > >