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: Different strategy for raising and lowering scripts Date: Thu, 11 Feb 2021 02:22:20 +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="36924"; 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 Thu Feb 11 02:23:34 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 1lA0hi-0009Vz-0a for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Feb 2021 02:23:34 +0100 Original-Received: from localhost ([::1]:53256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lA0hg-0005kd-8G for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 10 Feb 2021 20:23:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lA0gb-0005k4-Kc for help-gnu-emacs@gnu.org; Wed, 10 Feb 2021 20:22:26 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:40791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lA0gY-00055u-Vr for help-gnu-emacs@gnu.org; Wed, 10 Feb 2021 20:22:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613006541; bh=98Fk6D9adrmuQMs/y8Yirnlh4vX3mNyj7Mti93eEC6E=; h=X-UI-Sender-Class:From:To:Subject:Date; b=InwcXjARCZqaEe40VhL40JxOmB+ymPyhmFUGR5BoS3KeNhn9ev10apW9gp0y9n+5E Zm9ekkJGIgl18W9kYC6SfZDvJgsV3sKpM6GISR10d8Bh09VJ5A2XeJl5csZ4x7nzVT m1mlspfJy/xF2PUuRgT1bRNN8SSXxdM814iVmSK4= 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-bs12.server.lan [172.19.170.180]) (via HTTP); Thu, 11 Feb 2021 02:22:20 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:m1aEJZlGcqbQZuTRThO/CLHSJmGzq7K9VloOvgH7QU2hGlJlIbl5wCk7T59WQlxDhfhy4 1TevorAovg+liG6596PAn6ykXEn8niCTEdhAyLN7dWScCTaxlRbyQEu1IQPMInw3RCUjQzAxLfMx gfEmElNjfQOrzKSgieqCxMoRmKU0p0exz9SYbe6Rt3IUycYWBw3SYl1nQAg0UUhdID3DBIcrSx5B iNx3g0+cMq2LAyzsrNwHdyh0dTs9V+GxFCtSJXPHwyTpHYYdQiKLsEw9j3zS93iXPylaIOVOUW7R 88= X-UI-Out-Filterresults: notjunk:1;V03:K0:acUkgFQIKoU=:GW59xQv7CAR2Zcsrg7tUfq Pgyjgm4KLrte8vVYk35lkKOQmmbex1jqJQ3syc4zO1KZ+ffsOSCdOEhlxNTbgWELrJEG3lvzc ujDsTwW00cnLZzmiCGgWY9knitSUFHBjnEw3xT6UkzdJ5QFCpJAzjdRbces4R/ls8tu38z+1v yWO2sASJuKiDloK7WIlC5r1Yxm/VN7hfNqBhhv0kHPH2rPa5+2M29P4pjLKtjU0ZA4doyJULS 1U4IR5I4ESuv97Inv6Yf/rkqnPbVm5n7S1p50fV6Dnax927UyrPh+0muzNtAD4qheJFif2HNi HNko/fcLRbOzlIy6lNxWT8+TazZkwE+F1pXRh7HdlVRwAq9AsGVK1U+1d9O9B7I1BAVnqvbFR FkV46gPyxArTQKShehcTyhuojQOpeU43b5o+xLe8a71S2ZqyGjaa8xePgZCpd3imHTyE/Mvtc 2h/kuDp5NbFlwQTxq51MfsLeTJ8a5FrnDs99j+K7rziHp/Iq8uwvVYT7tRReCkYyaEzdMG5oE l9RvVU6OiltmtV36gjPJHHt4QJq824TSXGcS/e2ZvnMNT9S13+X0MK4eM5EkhHOdjZKq1l0ep bZbb4iK2f4Hgk= Received-SPF: pass client-ip=212.227.15.19; 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_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:127794 Archived-At: I would like to try a different strategy for raising superscripts and lowering subscripts. Have copied the following customs and functions from "tex-mode.el". Now I am struggling to write a function that enables the functionality. In "tex-mode.el", the functionality is enabled as soon as one uses the mode. But I would like to enable things by calling an appropriate function instead. -------- (defcustom tex-fontify-script t) (defcustom tex-font-script-display '(-0.2 0.2)) (defcustom tex-suscript-height-ratio 0.8) (defcustom tex-suscript-height-minimum 0.0) (defun tex-suscript-height height) (defface superscript ) (defface subscript ) (defun tex-font-lock-match-suscript limit) (defun tex-font-lock-suscript pos) (defun tex-font-lock-unfontify-region beg end)