From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +GEtMgQNzGbMEAEAe85BDQ:P1 (envelope-from ) for ; Mon, 26 Aug 2024 05:05:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +GEtMgQNzGbMEAEAe85BDQ (envelope-from ) for ; Mon, 26 Aug 2024 07:05:08 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=breatheoutbreathe.in header.s=key1 header.b=kaWLVkzH; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=breatheoutbreathe.in ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724648708; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZeD8ZaJSJYD5OZvkcd/7JT/2Qu+Dgfiw2CReIGn8gyk=; b=p/OdjicWrviZ/WoOLg+V5yf4x4PNwK3dmw6+zjwzDiuGEjxoaI6NmR4CYVsdVPF/v0VXR8 dYU+2IN0rV8zEP0qedQwG2kImIRiojM7cdr82jJVxkeFoOBJVkU4U/VGySZjVUKVvDDHIR feUKSPauueE7HUYh2s4n6phGoZI1apTdS4Drh+gxHRE4dwv9d6fAo6H2YuN4rSrvUFUlme Lv8veRmF2EYkUUA73EpkUeBEwEzTg5VQKVJzydtMK5+uq54c3n1gUKlLJI3S1hA9hbqJOa yMSec//YYy12iNM2RpLoLAN8h8wA7fOCgSR+f1DphUtwdBE8ujNMoeq/LIojTQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=breatheoutbreathe.in header.s=key1 header.b=kaWLVkzH; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=breatheoutbreathe.in ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724648708; a=rsa-sha256; cv=none; b=S1qWPlmwrB7ITv+kxqBssV0WuSky2iJ/MmQAXNa1li2YW2Erw+z8QERaZTK/akpWJX/P5z /DMyGORCydf13Ov4WJlDy3eCyCkwwutYBGKAqauRspTz3RGuSuoHJL2DMNJRb6U52D+FDK QjNaJtDgsBwDGUGT+z+FwZsaOhBPyOsrd/qY/ivT9LgqPVJVrNtM7Fwe5FMdZSOrRd4cAY fIhxpnw5WspW9etwp/DGrEGHsoOKGAATxi99JVFAN8ILFnkxLj/v7KmcC1ZfwuNuYOhOSq fSsbGDwA5xawyY5f5CqvnqBdSV1AKKAJkhjaQ94oVFaMEEn5/9gdGDcehhv4Pw== 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 5184B215CE for ; Mon, 26 Aug 2024 07:05:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siRtR-0007HU-Lg; Mon, 26 Aug 2024 01:03:53 -0400 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 1siRtP-0007Gy-Q9 for emacs-orgmode@gnu.org; Mon, 26 Aug 2024 01:03:51 -0400 Received: from out-183.mta1.migadu.com ([2001:41d0:203:375::b7]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1siRtN-0006bl-G9 for emacs-orgmode@gnu.org; Mon, 26 Aug 2024 01:03:51 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1724648625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZeD8ZaJSJYD5OZvkcd/7JT/2Qu+Dgfiw2CReIGn8gyk=; b=kaWLVkzHeERawtJN3ib5YPniPj2Q+MCZ/wu5zJb4k3advOoLRsRJDSSTqMVymCHqyM8Ue8 DPzatBm7yYEwfEpbCQGVN8W8prB8+Z6S2PgKh14nhzKWYL9bQzF5hcScaEC2Ps2GrXpxhv RcigjtNg5YhBlb1KPnHZIRkHixcFrCk= From: Joseph Turner To: Org Mode Mailing List Subject: Re: [PATCH] lisp/org.el: Fix removing timestamp overlays In-Reply-To: <874j779ali.fsf@breatheoutbreathe.in> (Joseph Turner's message of "Sun, 25 Aug 2024 21:22:49 -0700") References: <874j779ali.fsf@breatheoutbreathe.in> Date: Sun, 25 Aug 2024 22:03:38 -0700 Message-ID: <87y14j7u51.fsf@breatheoutbreathe.in> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2001:41d0:203:375::b7; envelope-from=joseph@breatheoutbreathe.in; helo=out-183.mta1.migadu.com 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -7.68 X-Migadu-Queue-Id: 5184B215CE X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -7.68 X-TUID: nsd8w87nrq3v --=-=-= Content-Type: text/plain Joseph Turner writes: > Thank you! Cheers! -Joseph > > [2. text/x-diff; 0001-lisp-org.el-Fix-removing-timestamp-overlays.patch]... Woops! The 'display text property may be symbol or list - here's a better patch. Thanks, Joseph --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-lisp-org.el-Fix-removing-timestamp-overlays.patch >From 9351b3c8f960ac6d2fba3c2de0c46e8474719582 Mon Sep 17 00:00:00 2001 From: Joseph Turner Date: Sun, 25 Aug 2024 21:20:06 -0700 Subject: [PATCH] lisp/org.el: Fix removing timestamp overlays --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index d5c1dcb35..24a32227c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -14614,7 +14614,7 @@ (defun org-toggle-timestamp-overlays () (let ((p (point-min)) (bmp (buffer-modified-p))) (while (setq p (next-single-property-change p 'display)) (when (and (get-text-property p 'display) - (eq (get-text-property p 'face) 'org-date)) + (memq 'org-date (ensure-list (get-text-property p 'face)))) (remove-text-properties p (setq p (next-single-property-change p 'display)) '(display t)))) -- 2.41.0 --=-=-=--