From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vasilii Kolobkov Newsgroups: gmane.emacs.help Subject: Re: Mostly curtail font-lock-mode Date: Thu, 25 Feb 2021 22:07:27 +0200 Message-ID: <87zgzrc3nk.fsf@orangeshoelaces.net> References: <874ki0cibe.fsf@orangeshoelaces.net> <871rd45e4p.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20589"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 25 21:08: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 1lFMw6-0005FK-EH for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Feb 2021 21:08:34 +0100 Original-Received: from localhost ([::1]:53056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFMw5-0001wk-E3 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Feb 2021 15:08:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFMvS-0001wW-R6 for help-gnu-emacs@gnu.org; Thu, 25 Feb 2021 15:07:57 -0500 Original-Received: from orangeshoelaces.net ([71.19.146.160]:42462) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFMvM-0005VO-9M for help-gnu-emacs@gnu.org; Thu, 25 Feb 2021 15:07:54 -0500 Original-Received: from orangeshoelaces.net (localhost [127.0.0.1]) by orangeshoelaces.net (OpenSMTPD) with ESMTP id b648accf; Thu, 25 Feb 2021 12:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=orangeshoelaces.net; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=mail; bh=lCLJhU7096ZkrX5J4p53ANo84 Zk=; b=M32ULkLZKrAyFwOr6kaQPqpsQjy7ZF99wqeL8zugr2c475ql52eJdrkmP CVDb0esSLaQ2Dy+H+Ny1XpkvDfV3roDL3TTUkveGpJmmJ6TOpLpe2OgdTaeDR9HD eusgYkaMMH34IN+PicoEzu3q0YJOnO8YOq9HCBi+vskb286zR4= Original-Received: by orangeshoelaces.net (OpenSMTPD) with ESMTPSA id cce294c4 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 25 Feb 2021 12:07:41 -0800 (PST) Original-Received: by squalideel (Exim); Thu, 25 Feb 2021 22:07:27 +0200 In-Reply-To: <871rd45e4p.fsf@zoho.eu> Received-SPF: pass client-ip=71.19.146.160; envelope-from=vasilii@orangeshoelaces.net; helo=orangeshoelaces.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-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:128263 Archived-At: Emanuel Berg via Users list for the GNU Emacs text editor writes: > What do you know (not much), never heard of an Emacs IRC user > that didn't do ERC... It's a nice small piece of software! >> Now i wonder what would be the most effective way to disable >> most of the work font-lock would do (e.g. figuring out the >> syntax structures), but still have it nominally enabled so >> that i could make use of it in the mode line? Any hints on >> general direction to do it would be very much appreciated! > > I don't know, does it come with its own faces? You can disable > them one by one but if it doesn't - implement faces > that inherit? Much work for little gain, perhaps? I might've expressed myself a bit clumsy - my intent is to keep font-lock working for the sake of mode line formatting and not the buffer content. E.g. i might customize all the faces used in modes i don't want fontified to be same as `default' and thus have the desired visual effect, but then there would still be a lot of work wasted by fontifying everything with the same face.