From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IK3nBO7dkmDO9QAAgWs5BA (envelope-from ) for ; Wed, 05 May 2021 20:03:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YAlkAO7dkmBfQwAAbx9fmQ (envelope-from ) for ; Wed, 05 May 2021 18:03:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 696E013A44 for ; Wed, 5 May 2021 20:03:25 +0200 (CEST) Received: from localhost ([::1]:47506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leLro-0006zi-JJ for larch@yhetil.org; Wed, 05 May 2021 14:03:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leLq8-0006xD-TR for emacs-orgmode@gnu.org; Wed, 05 May 2021 14:01:40 -0400 Received: from ciao.gmane.io ([116.202.254.214]:59260) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leLq7-000491-EU for emacs-orgmode@gnu.org; Wed, 05 May 2021 14:01:40 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1leLq1-0005am-RS for emacs-orgmode@gnu.org; Wed, 05 May 2021 20:01:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: William Xu Subject: Re: prettify-symbols-mode in org agenda? Date: Wed, 05 May 2021 20:01:27 +0200 Organization: the Church of Emacs Message-ID: References: <87o8kf81yq.fsf@localhost> <87im474fgy.fsf@gnu.org> <87v98263bg.fsf@localhost> <87mtteo6zq.fsf@localhost> <87h7jl1eds.fsf@localhost> <87k0ofn3er.fsf@gnu.org> <87y2cvyvo9.fsf@localhost> <877dkeeemq.fsf@localhost> <87y2cttdaq.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cancel-Lock: sha1:HyFUpLwi3lWd5yLJw6fvCmFZjnc= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620237805; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=Wb+IGkQcpfV8alYjEVbPzGUkjiFQLtIe6mX1Uss5Zk4=; b=nAsw9x/+4SLbnS+6dpv0xkeJXOfQ89jszRuDorQyFepHK7FVM34BfyBGgxSJVnYEUpxRtP s3kXwztAtZjFsacoH+/nDa0F4uxNsU0TRloDWSx9jnIjTKcTS1GPYQsgqAy0oQ/iiKtRZQ rk3cK5a7ByvIiVCMvTUGBFJrBEOQhHTrkxXA6qSeOR6irEHKxPuUZwIDIef1ckxrDlFM0U wNBS3l6mIReMLm0TXiIycllnnRSG6TamFkMqd5IHT76naOPG0slSqUJf4ac0oVRIzkZDdz LyYMBX5JgNU7rax044d44KsZ/wjB9hs8C113xZG8EYhrQySsoSo6uEwWaBgBeA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620237805; a=rsa-sha256; cv=none; b=HweeGRDL2ld5fcNsX4dW82jrVHCnHmy46fzE1L4P3OG1FYvkOjoBW7zaXEyesGqEM2nDDP VItAokPM8dUh9jddq8ULA8YDnYXN/5LTimdUdI1ADi9ab/8zwTw31bdIPBRU0lhZiPvQwQ f4i9Ed7mT4VzhsCLMP9YO1nZmXzKipG8/226Z8kWRLdBVna7+p3d+HBTQvi2GMli2LZc/i BXwshtB8y2o5ngdMati9VjyjXj9T276DpeKJeV3REarsNXCIfnUbhEMoKwXP76Pgc9zU91 CI0WActlEiJolJXDO0SMBR9XGG4dNzeCUR0N706avro9MTVmApO/HUqF9mg99A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.87 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 696E013A44 X-Spam-Score: -0.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: W/z1BWvpgjr0 Ihor Radchenko writes: >>> The only issue I still see, is that when you org-agenda-redo-all, or >>> org-agenda-log-mode (which triggers org-agenda-redo-all), the >>> prettify gets lost again. Maybe org-buffer-substring-fontified call is >>> also required somewhere during org-agenda-redo-all? >> >> I managed to reproduce it. This time, I went through all the agenda.el >> and updated places where the strings are fetched from Org buffers into >> agenda. The updated patch is attached. > > Still forgot to update fontification in agenda tags view. Yet another > update... I think I'm still seeing the issue. For example, if i change (M-x org-agenda-todo) a TODO item into next state ONGOING, which i have made prettified: (push '("ONGOING" . "👷" ) prettify-symbols-alist) So far so good. But as soon as I call org-agenda-redo-all, after the agenda is refreshed, it changes back to text 'ONGOING'. Apart from this, it works pretty well. -- William