From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.help Subject: Subject: Re: Major-mode devel: how to drop font-lock 'display when mode is disabled? Date: Tue, 12 Mar 2024 20:15:31 +0530 (IST) Message-ID: <20240312.201531.327797025962741547.enometh@meer.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11990"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org, Hi-Angel@yandex.ru Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 12 15:54:14 2024 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 1rk3WA-0002uj-2b for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Mar 2024 15:54:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rk3Vd-0006GP-0V; Tue, 12 Mar 2024 10:53:41 -0400 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 1rk3VY-0006Fk-Nd for help-gnu-emacs@gnu.org; Tue, 12 Mar 2024 10:53:36 -0400 Original-Received: from smtp7.ctinetworks.com ([205.166.61.237]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rk3VW-0001ps-QB for help-gnu-emacs@gnu.org; Tue, 12 Mar 2024 10:53:36 -0400 Original-Received: from localhost (unknown [117.193.3.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: enometh@meer.net) by smtp7.ctinetworks.com (Postfix) with ESMTPSA id 4E89812CB03; Tue, 12 Mar 2024 10:44:48 -0400 (EDT) X-Mailer: Mew version 6.9 on Emacs 30.0.50 X-ctinetworks-Information: Please contact the ISP for more information X-ctinetworks-MailScanner-ID: 4E89812CB03.A4C08 X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-Watermark: 1711118696.49447@WZkX9dpWqxaVBeM/tnob4Q Received-SPF: pass client-ip=205.166.61.237; envelope-from=enometh@meer.net; helo=smtp7.ctinetworks.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146079 Archived-At: >> After some searching and experimentation I figured it's easy by making >> a major mode, which basically uses a `(put-text-property start end >> 'display human-redable-text)` to change the display of timestamps. >> >> It works fine but one problem I couldn't figure out how to get rid of >> is that upon changing the major mode the custom display does not >> go away. for a pre-existing solution I think epoch-view may work in a pinch https://elpa.gnu.org/packages/epoch-view.html