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: font-lock as a single command Date: Sat, 13 Feb 2021 03:43:17 +0100 Message-ID: References: <87lfbsdf7i.fsf@zoho.eu> <87a6s8de2x.fsf@zoho.eu> <87zh08buku.fsf@zoho.eu> 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="29409"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: moasenwood@zoho.eu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 13 03:44:19 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 1lAkux-0007Yl-79 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 03:44:19 +0100 Original-Received: from localhost ([::1]:36878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAkuw-00040s-65 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Feb 2021 21:44:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAku4-0003z6-DT for help-gnu-emacs@gnu.org; Fri, 12 Feb 2021 21:43:24 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:40739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAku0-0004Az-II for help-gnu-emacs@gnu.org; Fri, 12 Feb 2021 21:43:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613184197; bh=k0S/cRXyj72TbQ/MernBnZ2UfEGW3ysbg8pxKD9dIso=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=IepRSagnjL2a19f0Ebf65/TX9D4LhqeSlb/3txyOzj3I8lcvhr1o3f45gGG9BAcam 0eX9aQsNUexiKlsyVHT0S16G+C5MXknwwiDnfzz/KElB9uuhU6ch7HGhwWY/4tsbki CKR0FBwS8LtRUoOEQQPw3Zv5fhHvuqXzUg0lU/mg= 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 03:43:17 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87zh08buku.fsf@zoho.eu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:fxpuo7KqVxFmf1w1QEckm58Eym26MM1w9+kNB1jjLjjfVpnmuAG3p4uiCknTOIwRSKmN1 kPWwg8MzAaOqogUjLSVPkw5XKb11sfEfRG+atG7Hi1GmaX2wGaB+20mHxVg6sQU390GkcR5341sU pLfxkgEhMd/1vxTra6WNL0wMQXswKGbBtAsROIbNsbVEptt022yLZoHrlQJi8vcz/QZSfRZi2pHi DjN7FK5opVGDkeKk0p6fTFjGX62oCdxJRyDbzGJkEb+yg3geXpQpYiiWnTxaQjEEKZk1MlBiiQpH hs= X-UI-Out-Filterresults: notjunk:1;V03:K0:i9VV1Kq3A1I=:izSjaTL+QUhjCKECEtZgnr 41XBvhPnN1TcyGNELG3euFLsk3YEUDMw2RL4KY/8B0OdkbKqcFesoJho3pCaHuM5m5J5OFuuj VmYQJHDcVZGl2QB0wsgzJVF8ObzRqujBTCfYawq9DESYiiAOf4nlUKjNGuiMzgZ4B+Kvoo338 Mm0SgMrbRPFRLLMYA2gIWBSMv2Plk217pM4HqdvSPWc3PpiTomGCw4rRcbOOHayO0HOyx3HQs OUTFgUeA7TIVxmdeEk6+UYvlgk4IxxGl28/AyDAw8DN4AaSpoQNCu+lIDD0yON3h4NNM1fRea 1GCsNyXlKgaSlKnTs7bpUa27N2UOqpvccgKZG3J8PTxYBltlyTC17GO/8T4gJc9G4BWCiRURF Oo9edMowRnA3w+XqWYdzPwUeUZD9zZgE7hsFOzDsH/cza4LdCuskCsrf21LT38DuXB9/C5rAO 1/0qJCZjvYaCUux4P/+SVmPb7rn4CE/b1shrzyhh3OAkN4Z6/mPl0Bw2aaPpMCHLc9v/LN2x8 9dumIY54GiiVM9y3WhYA+ec+NIK2uhM/NBF7joZ6gLRVdP1x4SQk9dHt1+rpiSKNcAh0buT42 Bl4iKHE/N6CN0= Received-SPF: pass client-ip=212.227.15.15; 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:127888 Archived-At: =2D-------------------- > Sent: Saturday, February 13, 2021 at 1:54 PM > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > To: help-gnu-emacs@gnu.org > Subject: Re: font-lock as a single command > > Christopher Dimech wrote: > > > (defun supinf-raise-cruc (pos) > > "Raise and lower typeface at position POS." > > (unless (or (memq (get-text-property pos 'face) > > '(font-lock-constant-face font-lock-builtin-face)) > > ;; Check for backslash quoting > > (let ((odd nil) (pos pos)) > > (while (eq (char-before pos) ?\\) > > (setq pos (1- pos) odd (not odd))) > > odd)) > > (if (eq (char-after pos) ?^) > > `(face supr-tfc display (raise ,(car deviat-supinf))) > > `(face infr-tfc display (raise ,(cadr deviat-supinf))) ))) > > Take it one function at a time. Does this work? Yes the routine works. I made a minor-mode and added a hook to enable. But would also like to enable it using a key-sequence, a task that I have been unable to get working. (add-hook 'crucible-mode-hook #'supinf-enable) > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > >