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: Colouring a cell within a table Date: Mon, 19 Sep 2022 18:33:58 +0200 Message-ID: References: <_RIolNjRicqtmZ5wXvQohcSz55X29e7seWZzaeofeaem-xa2J0_V5U7Vs715AYF7GrecbrcSSZNYxd3y9H5IwYnCU9H-xBcuLYhsBD_2t14=@proton.me> 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="34105"; mail-complaints-to="usenet@ciao.gmane.io" Cc: uzibalqa , uzibalqa via Users list for the GNU Emacs text editor To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 19 18:34:38 2022 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 1oaJjB-0008ZO-I3 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Sep 2022 18:34:37 +0200 Original-Received: from localhost ([::1]:48134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oaJjA-0002dv-10 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Sep 2022 12:34:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaJii-0002dl-Gz for help-gnu-emacs@gnu.org; Mon, 19 Sep 2022 12:34:08 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:45791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaJib-0000IH-KP for help-gnu-emacs@gnu.org; Mon, 19 Sep 2022 12:34:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1663605238; bh=/lBuHnFbjhV7sBv/qeO1V0x4JlWRb0vNJmyxIv3tqJ4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=FqB4jcYL9q93/MERCjSS7gSl8s8wUOASATmqnBR1X8yxsPsVrSDfmvko5/ZygG+S/ Va8GGjIWmFmwa845OynG2q9Lz7VtA9pw2JyXpyf2o9qBFMAhSIksA9eTeVA7ge21eF teHrEqrPCO/EZQgeho7/7sV0jKndN//SA/4px/o8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [92.251.127.164] ([92.251.127.164]) by web-mail.gmx.net (3c-app-mailcom-bs10.server.lan [172.19.170.178]) (via HTTP); Mon, 19 Sep 2022 18:33:58 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:bL4cvRMX8sUFloj3c1Vu9E+gNU7SY4TMaAeZbwWRxYIFxWSyIf0LNo1UDjhfMmTxXLNqO bVwHOt53MNNetc5B+IvdSSNxKGVCXLJcK67PIlVR4IdvnhQxsafyOPW+2P8+AU8xp1R1LcQl+Ls8 MVy32ly88hEgw+CLx1PMRtDdMPqcs73D2FGj83kPsOLmTpTm3C7mWZkuE2nuWrWaXTR6s6ZWzQ6a DkdoPJ2mEEeCkcxwj+s+y/fv99OQnLuKdk6YwZiccF6RN4kVAdoRi9RVej6jSzGgp8Gf8f0v/yWJ w0= X-UI-Out-Filterresults: notjunk:1;V03:K0:ZFzYOE2V/Cg=:zOtmcwT3r0qMLxrX4T8yPq KKjcHWdWVsLzK/cBQm+IZBC3qjFuogaOMAEMCOWvMkmusCRnqeCYzfxeMFGt0q7H8A583y2AY z2LV/n7rhruSkPEKSayFb6PZ07ICz9n0pYOGnoaDNaE9o7dUMWsq0GOTWjHkRVAk7a2gjKgP+ Hkejjm2CQMnXuLNKKaizKb4J2oSiDmzWb4v46lEhPYVgJgTe/PWAJ4tGC2TbM9LcXXLjI6QYR yVgJYvGs/SEM/3wr1ElrdTIglx8f09b1vzShY8/uSvn49PAv/USViKLflOMxHNH6DiTnuwxDK RIejYuG7jm4HQ11f+HQHyr2rpHREH3Di6R481VwthbTIqV8jFYmzr+xNx7FgUK+Kqu8F6O6wN 83U7RNEvK2m6b8hUuvkCtsI6SdmAnenQK/Arsk2etqXpmv6pm3F0C7UvR8z9JlYqR4shkfioa 4d/o8RGFCVH99osKl5priTfyM8f4KVA0uwP19+0M5VWCASrSJLTQFP70Cj49pBCqOIOxIh2CO Y4asWDtCm6rSWs+ZjrmPTvy354c0ZAbsLYoSvzHot3h6v/uCAsTDM4Cjzx7ox+FxmUVc2LyqC 1mcsAuDHzk+EDr/sYQwW2LZw4KpY0B6JC7qCy4reGfWtXYPVbnn1zvpPtL8UUWL23wrBfDxdC tGSAcdigNT4c1Ari+HXR6dsOy7NacfoYBS+swrYQayohZDD1VUCGUD1R+EXIjwSh/doPR9GZc P8rGnyC73FDe+cA7693b+l/7JXNf7zvXkGnMNNUHqYpb1GQfKXCBMErs0fLrr8XhuAiZh9S8 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, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:139578 Archived-At: > Sent: Tuesday, September 20, 2022 at 3:29 AM > From: "Yuri Khan" > To: "uzibalqa" > Cc: "uzibalqa via Users list for the GNU Emacs text editor" > Subject: Re: Colouring a cell within a table > > On Sat, 17 Sept 2022 at 19:35, uzibalqa wrote: > > > Am looking for information to see how I can colour a cell within a tab= le. Ideally I would like > > to have a keybinding so that when I an in a cell its background in cha= nged to a different colour. > > Why do you want to do this? > > In general, coloring parts of a document in predefined colors is a bad > thing to want. Users with a different color theme than yours will have > trouble reading the document. > > A better direction is to define a major mode for your class of > documents, a few faces, and fontification rules that find fragments > your users would want colored and apply those faces. The user will be > able to customize the faces to their liking. I can see how your system can be much more powerful. A fantastic approach to implement and see other capabilities it might offer. I was thinking of a minor-mode that would work when a major mode is also active. But per= haps there are downsides that I cannot clearly see right now. Have not done a = major mode yet, so this may be the right time to do it.