From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uHlAFVWhlWMOrAAAbAwnHQ (envelope-from ) for ; Sun, 11 Dec 2022 10:22:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GO4qFVWhlWO34AAAauVa8A (envelope-from ) for ; Sun, 11 Dec 2022 10:22:29 +0100 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 21E429514 for ; Sun, 11 Dec 2022 10:22:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4IWt-0006FW-UL; Sun, 11 Dec 2022 04:21:51 -0500 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 1p4IWs-0006FK-Pq for emacs-orgmode@gnu.org; Sun, 11 Dec 2022 04:21:50 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4IWq-0006NT-M2 for emacs-orgmode@gnu.org; Sun, 11 Dec 2022 04:21:49 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D3CF224002A for ; Sun, 11 Dec 2022 10:21:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670750505; bh=LWtcLBEcqo7foHL3+NmuZ9u0UGroqSYsEo7D3vm1ZGw=; h=From:To:Cc:Subject:Date:From; b=ddrHpmVVfMPUAir9auqshhCY9vYJ7qMGs3f+sQYE3X5ebSlt0N+YNZTsfmNs81U5T /9sa9WesVcnJKu+J+fcfVzZfDxfRdJxdy7SERx9UoTVtLBJJE7lN0JBgY9+dlpPTjQ X/GVlbO2oAyJRsJL5UnPklz2rKpp7hpieXkbXHcvwDnd9LaAX1xl9cmVWXsoT9N9gg DiEyymtCk26RpgXh6qqU15c6Q7WTCBoX/AkQ7wQIafH6BcSFYAW6YcR1fnF+Ga0nBH BoPu0XwF9F9Xj1lBJi0lMTW8OwYqYHvFN2HeXfg0xlmi3oYzGSdAvsIDU3TDYn/bJ1 Nt3hegIpurnmg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NVK5P3Dl4z9rxG; Sun, 11 Dec 2022 10:21:45 +0100 (CET) From: Ihor Radchenko To: Tom Gillespie Cc: emacs-orgmode Subject: Re: [PATCH] lisp/org-expiry.el: Account for org-time-stamp-formats In-Reply-To: References: <87leni86l5.fsf@localhost> Date: Sun, 11 Dec 2022 09:21:44 +0000 Message-ID: <87wn6yl2hj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670750549; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=7hTF1922y37t6ksaxxAps3NDVlaXRxD+y/iLKyg1A+I=; b=XZDs/7SjE+q3NbF43fegC86R372T2cOF2F+QVz1OJCCxQ+I/a/0fmdhBrRmzfMHIOMgDPL QV4wYCIGx0lv4XJx0dui8WLxS58/DF/2TOApKuBz8U1wWpivCPZFDgBcXVoAUJlLa+8Hxy 6uK6gJRtLdY6KTQ8c7aUd7EkNjd0WxrMgq7FiF6+vByvOVVSlAeV6s7wO9FI1xk1b1U6vS 7e7BRdaVhEOCPO/P4M7J6tSYPChrVfAU/M11nqfO+AfNKZJQJpy8o3Hq17Yv2M3mDJuseP 6kyUFZe9VCKSUaIl6i+lvPksy+U1MHEDGRqzJPG6KQRByfEYAyi5LzS+jDvdAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670750549; a=rsa-sha256; cv=none; b=sXLZJ42PAqkbYJdVVCkzfbAx8xbN/29AcKbu0DhnT9e60AJ2QzB5qglmcremVP5IYMN18M DPj+F0OPo4Gc51kdpdCYQqH8yrXR/JnZ/WibEZa9z4iA53uR9JYoq9MiO4B0l0wps/8ydu 3hGwf+9TbJfFczjybUDV+1csLB0QfmjBgIJFmcxykibyJzwtavGc69hJjAtCV3I9CcfV1o YYkRydErpaW/Xx3vV7DaNDmLddi00h/oNHDKUmVroly+ZqsZn3QnbY/VqpEVkIxjU8pdOd ILXyRQR+ZRmvUhgysxpuzCUbtUFXQj9dsX60grhRkeVaG3F5QHoW3+pF45ZnGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ddrHpmVV; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -3.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ddrHpmVV; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: 21E429514 X-Spam-Score: -3.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: twpwYFzMb2la Tom Gillespie writes: > + (format-time-string > + (string-replace "<" "" > + (string-replace ">" "" (cdr org-time-stamp-formats))))) `string-replace' is very aggressive. You may want something like "\\`<" and "\\'>", matching only beginning/end of the string. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at