From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Adding colour when font-lock in disabled Date: Fri, 09 Dec 2022 14:07:40 +0200 Message-ID: <83zgbwzsoj.fsf@gnu.org> References: <838rjh12ar.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10254"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 09 13:08:22 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 1p3cAv-0002RJ-Fv for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Dec 2022 13:08:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3cAT-0001e3-L2; Fri, 09 Dec 2022 07:07:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3cAP-0001Zh-NT for help-gnu-emacs@gnu.org; Fri, 09 Dec 2022 07:07:51 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3cAM-0007qa-Vk for help-gnu-emacs@gnu.org; Fri, 09 Dec 2022 07:07:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/SqvI+DZRzMEztQFaF4nMTV0FePD6YwP4yWlfblBdlQ=; b=FL/ZsDLVcGPg GXEpwj2u8f4iJ88Z2TnmiGQ+WhzlgJKJGrQhTCQmx9O3mAvG2dLJFOOTy0Huk7mrigpqoqK27XNfj d8iyLRZ/2TietcQXKuPM99vnhBjQqHyLP6HiKyZKcOMIkQ6G/Lw29Sc0r9RM8TH07XfKiLX6WOZAB +k0orrPzu20dJR//TxgYCVv4jlyudzp7XAKcdlwyaptbX479NTNNDsfSsdBhePmCAJlq3b8LraU3q fOPxg+rDexZYs1gSf+U3IArG7GSz9lg0aNWUrLj7StfAuuYQ7vWK8EPP1fVaRdKlwYNn4vJE9g9K5 dhlq2Nix8YuhAQ1s95peLw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3cAM-0002GJ-2K for help-gnu-emacs@gnu.org; Fri, 09 Dec 2022 07:07:46 -0500 In-Reply-To: (message from Heime on Fri, 09 Dec 2022 08:26:52 +0000) 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141505 Archived-At: > Date: Fri, 09 Dec 2022 08:26:52 +0000 > From: Heime > Cc: help-gnu-emacs@gnu.org > > > What is weird about it? font-lock-mode places face properties > > according to the mode's definitions, so it will overwrite any face > > properties you put manually. Thus the need to use a different > > property, which font-lock-mode doesn't control. > > If I want to use and enforce colour property, could there be a function that sets the colour irrpespective of whether font-lock is "on" or "off" ? If by "I want" you mean the user, then please use the hi-lock-mode, as I suggested in my other message. This is the user-level facility Emacs provides for these cases.