From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp10.migadu.com ([2001:41d0:2:c151::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms9.migadu.com with LMTPS
	id IKhVGSayhWRRKgAASxT56A
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 11 Jun 2023 13:38:14 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:c151::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp10.migadu.com with LMTPS
	id EOOkFyayhWTmTQEAG6o9tA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 11 Jun 2023 13:38:14 +0200
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 E1E243BC07
	for <larch@yhetil.org>; Sun, 11 Jun 2023 13:38:13 +0200 (CEST)
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=ZHDtsapU;
	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"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1686483494;
	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:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references:list-id:list-help:
	 list-unsubscribe:list-subscribe:list-post:dkim-signature;
	bh=h3zoxBfqn8DhKuUgIIO0WI3jMTTouM0oh0BkAUP18rc=;
	b=piJTPNpmKZqGFHCR0pb32a+baQ+vawBq/TeNu+FK9j0BSFa2D1YOxgePdso0bs90kVbjpg
	upC60xDxS+Qmm8eiTvALJWS1b7PYH9kNf2FBN70XUlHmIbuX/Suv7I/ArXNouk7oBuEnTI
	1oo3OzYuo/nYEgCF4DlgBkPUV2n3osAjdx53dH2IreWGwIYeg9YNPHZbCoa4z0JrF6SDkQ
	ObepQ4ifTfq2gOxlrox5LwZcKJZMDAZ3mrSkJKOx2l8KMJUwEk82Gnbn8yROGTfDzkVgrj
	00jzGwekWjHHQoeRUA0QY9PwTqBJQm17CwPNCsOCvRn4M3Rw0ZcU3YE5zw7mAA==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=ZHDtsapU;
	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"
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686483494; a=rsa-sha256; cv=none;
	b=mjMh8PsXMKVZ+Kt3cNkGUJO4rnkP1oxHpKXN+nkVaPdr3VGZfMazp3rc8SYigRn1fjABxN
	to0tMxSq3LKTO8JRINJPHeKTuWuFWu1tWclN94Ccd3xvLL+Z53RaRamF27QrH6o41v3ht2
	iS9+Fe/3byqfXTymHGZqDX2767iBy74W4DaVh0C7M4IG8wGmKoyIMNdomu8RK1e0uh1TVj
	QpGiXW7+Pqgc92GlD+cnUl2S1owULAStiTFfF5noxqAm3g8jhtux8hZtPSoAazZ2I0ztKi
	IshBjeAAKpha72tse25mbWbezpl1xTbQ35kj0njmXh/au9MDjUC1WMHx0bQsyw==
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1q8JNl-00032q-3M; Sun, 11 Jun 2023 07:37:17 -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 <yantar92@posteo.net>)
 id 1q8JNY-00031X-SL
 for emacs-orgmode@gnu.org; Sun, 11 Jun 2023 07:37:07 -0400
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 <yantar92@posteo.net>)
 id 1q8JNV-0004PA-Eh
 for emacs-orgmode@gnu.org; Sun, 11 Jun 2023 07:37:04 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 432C3240028
 for <emacs-orgmode@gnu.org>; Sun, 11 Jun 2023 13:36:58 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1686483418; bh=CjeDxcXEajChDEmR9AnwQynJ1at+FiifdnTyCKHPVdc=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:
 Content-Transfer-Encoding:From;
 b=ZHDtsapUuHytjSHvFa/8S75JxkCjiNeotR+z+MoIScou0d5uZF4p73kjRM/CiCQ88
 +U2tOoKyY5IYQfwh67CzWtaI6sbGhmnuwX1KvgHlUSy/KTa0a7tH+AkffxECkCfAP+
 cGP9FJ78Mma3PoUdVg7x0w5gfIrVDeaGe8Paw5FAPdWSeI0ke+6XeCRteuxlWICG/m
 6Iqgwr3rLyLr/T6SaNdRSxGCbUS2Ac4huZwqI5zhC2kY8qZT8GpYNiWx37J2evCKK0
 zYtdFO0GtYd5OyaIFHUX28I22XyLNiLbkJdT/mQldd5xXHMtPokpDz0qePRNcd2BOX
 IIIQMWOKXw2Pg==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4QfCTP3svNz9rxT;
 Sun, 11 Jun 2023 13:36:57 +0200 (CEST)
From: Ihor Radchenko <yantar92@posteo.net>
To: Ypo <ypuntot@gmail.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: org-todo-state-tags-triggers not working with regexp?
In-Reply-To: <3ce0b3d9-b423-60af-c7a3-904acdb64c46@gmail.com>
References: <3ce0b3d9-b423-60af-c7a3-904acdb64c46@gmail.com>
Date: Sun, 11 Jun 2023 11:41:50 +0000
Message-ID: <87y1kqns3l.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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,
 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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
X-Migadu-Country: UNKNOWN
X-Migadu-Flow: FLOW_IN
X-Spam-Score: -2.36
X-Migadu-Queue-Id: E1E243BC07
X-Migadu-Scanner: in3.migadu.com
X-Migadu-Spam-Score: -2.36
X-TUID: RcKw7B3lPtmy

Ypo <ypuntot@gmail.com> writes:

> I would like to remove every tag when changing to done state.
>
> This is not working:
>
>  =C2=A0'(org-todo-state-tags-triggers '((done ("(.*)"))))
>
> This works though:
>
>  =C2=A0'(org-todo-state-tags-triggers '((done ("Atag"))))

Yes, regexps are not supported in `org-todo-state-tags-triggers'.
You can use `org-trigger-hook'.

--=20
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>