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: Re: Highlighting New Keywords in texinfo-mode Date: Sat, 3 Oct 2020 22:42:12 +0200 Message-ID: References: <864221601757196@iva5-64778ce1ba26.qloud-c.yandex.net> 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="30347"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Ivan Sokolov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 03 22:44:24 2020 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 1kOoOE-0007nQ-Qa for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 22:44:22 +0200 Original-Received: from localhost ([::1]:40722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOoOD-0002rK-LK for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 16:44:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOoMC-0002p4-62 for help-gnu-emacs@gnu.org; Sat, 03 Oct 2020 16:42:16 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:44477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOoMA-0004dw-19 for help-gnu-emacs@gnu.org; Sat, 03 Oct 2020 16:42:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601757732; bh=kbZocLzv9qkBLv5d6Ei+ytzlL6bzvO83Kq8itA9lPxg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=KAqAtQ7bFd5cH1SD0SGTKp6AfOeh0eRIaQF2vzyxgQzxpojFKIOPyWjgbx6TUAVRU puQsVd3DO9no5Pv0kiwsLZ7vpS4KvDovVhTyQIoJTgYR+d7m8iEb77Lym20hRZwv33 NGbtrYUdFZg2kD3YedqttpKGMrakmPHGCREYpo1s= 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-bs06.server.lan [172.19.170.174]) (via HTTP); Sat, 3 Oct 2020 22:42:12 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <864221601757196@iva5-64778ce1ba26.qloud-c.yandex.net> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:E3v3/0x9LHLvwNHXzlkMVlAL5FV/JiEwNwdFVzHt3yP2yAgB6SbCtMrWN0RPLz8bDQtAa gFi0N0ozp9gEmP67qptATjEZt1Kdp4PkMWweTEQIdXxFJKSb46nul0jsWH/+pHwul5Q28edj41oL MpZhE/gbCY8IJE8+eafKbI5OTqa1PsMla/TOaqscPbLjYIIOuP3L8UDdzN76n51jrcMC+wSnO/Cc FharGZbJDVy1dXSh5IYiQi8wXPjNX4DxoBo+Y6kbpH/8rfA5SUZDd61CTyfJH/oUONUXgRZJ/YBr X0= X-UI-Out-Filterresults: notjunk:1;V03:K0:Wlbti5vM+ns=:aHpNgfViSagU32C+LM5TFm DktGRmSeAO09m4kxB4VEBTOLon3ZWrGdE/sWy6ZefMB4qFsX+swQ7Xo6xpAjtyuZp/GJm0bVu aK9YoxG2TbasATplUUhciOdbbVbNQrxGFSKZ+rx56r7Pbo/n39KC3ZhBf4x0OpW9emW/+C7lX a43El/e0Opv6E86rnKA3rbDrbcvK0rMYdkpVzorJhcWg8qKtaYWjb9Narr63ZWLB0X1dGlpKj Cu7iEOEnz7M/bRpK3KxCWH70RHYoB4gsbRSrHcP1A6wmtK6UClBoPxja8lZ8s4M8FzNWR2p6a QFkmqgLYmo3kfmNpR/Tu740ybKxeolE0T1SCmP5IwWUvDUWTtVy9EM+jhKk5yEnrYK7mKYRvX AjvGJNTnAu7sGz012dL0LMxBh7WwOrA0DUB2zP1+1mP98c7eNpvSsDsyAW7bcZK20X254wZDw Fumo+kdufnbILmmciQuERSBmbxuuiOu9+ggG6pRSQM6+gbLXgapPHh/sb+SU6o491EYuelt57 983Xb0QgtIEfFJjE4mgQNGf66zGX29VPDE3zyxJ+tmBpqkrOxGAji/5+EZZRJsSWS55/gV8o+ 6iosryb+Nobtsq2nVyoJ3wBR2cVK7X6w73SD7eFcVvQdHrPQrEVf9KCphq4/+/RY3sU7zmrf7 uEP6gctiTj2GO8jyWl14p8YkwufEvAq8aG5nVyxyf+XfGW3GlyZKzOcEMLBgdJWB/bwE= Received-SPF: pass client-ip=212.227.17.21; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/03 16:42:12 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] 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:124261 Archived-At: As in the following Ivan? ( font-lock-add-keywords 'texinfo-mode '( ("\\\\quad" . font-lock-keyword-face) ("\\\\rm" . font-lock-keyword-face) ("\\\\overline" . font-lock-keyword-face) ("\\\\underline" . font-lock-keyword-face) ("\\\\over" . font-lock-keyword-face) ("\\\\circ" . font-lock-keyword-face) ("\\\\pi" . font-lock-keyword-face) ("\\\\cos" . font-lock-keyword-face) ("\\\\mu" . font-lock-keyword-face) ("\\\\theta" . font-lock-keyword-face) ("\\\\omega" . font-lock-keyword-face) ("\\\\lambda" . font-lock-keyword-face) ("\\\\psi" . font-lock-keyword-face) ) ) > Sent: Saturday, October 03, 2020 at 9:33 PM > From: "Ivan Sokolov" > To: "Christopher Dimech" > Cc: "Help Gnu Emacs" > Subject: Re:Highlighting New Keywords in texinfo-mode > > In this case cars are regular expressions, so you must use four slashes = to match one in the buffer. Two levels of escaping -- for strings and rege= xps. >