From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yKHWN6vZvGEnhQAAgWs5BA (envelope-from ) for ; Fri, 17 Dec 2021 19:40:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +KtuM6vZvGFwDgAAbx9fmQ (envelope-from ) for ; Fri, 17 Dec 2021 18:40:43 +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 901C516F42 for ; Fri, 17 Dec 2021 19:40:43 +0100 (CET) Received: from localhost ([::1]:52652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myI9q-0005Xs-R8 for larch@yhetil.org; Fri, 17 Dec 2021 13:40:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myI7v-0005Xk-8x for emacs-orgmode@gnu.org; Fri, 17 Dec 2021 13:38:43 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:33545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myI7s-0001K6-SH for emacs-orgmode@gnu.org; Fri, 17 Dec 2021 13:38:42 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 4A85B32007D7 for ; Fri, 17 Dec 2021 13:38:33 -0500 (EST) Received: from imap49 ([10.202.2.99]) by compute3.internal (MEProxy); Fri, 17 Dec 2021 13:38:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=fbu3AriuWjoLNg06anwsogSrH0KUVhJ vPYKYOayYVoU=; b=S7PHZNu3bVF/S1Pofg7iPxJ5fJlDhNZ/ZYDJsRzjfeti+N4 BD6r+5U162S6indSs9+tqZwKUjEZ2f/vw8JGZ2mIB0bxI5Do9bgbddF6rZTOLk48 54WyL9tNrYYZDkqzUBp8lfr9rLeD73kxWUGk2RMBOTPjBpCaLZgNkgb0QJ7cJfdY UGBV+f4pULqY0fxhMito0mGP/Ah2PXIW2jbHUWi5K53crZxb6NslKqEyjFFbdrSE ZxNvQWPDOn3Tw2JBZOoVxgmHumFFne3PgOf7GiBw1Z4Mrels9XXJ6XGSL8T8TiEh r4UQcV8UFRGu2mVpyoxrcmD9eik5HZMg6GJ+R+g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=fbu3Ar iuWjoLNg06anwsogSrH0KUVhJvPYKYOayYVoU=; b=D4WGz+BToduVt8D3ztyOT/ K8IFm8U8Aoam6s1dXEaQLHKq4MP7tglg+9eEJwgtPx7Jw516NqWfKsf/lhFXDV82 ggS5UloNAxZjfhA6cyYGsFJlcWDhWv0gys2fuSEv2FOzHQZiepO8Ma4k09VxzH4x g9c7K2X1xP2vpJHqV0w+9Tbc71M3I3d/JOETxD95OIgdrXjFXbRzj2mpSYbRkqYz tXrF30ztGStoYA5NqrPEd6Dj/ZKT+ufcLCn3saUTwPZT+zYQAAXhKSe6UBLirkpn ++P/iJYlFhAJltOdoZD11Nn4AtLmh6voyIATB2GUoXMqaygveapaEfBCWkDSk39g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrleeigdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedfufgrmhhuvghluceurghnhigrfdcuoehssggrnhihrges fhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpedvudefgefhueeiiedtff fhgfehhffgleelfffhtdffuedtffetieevtddvjeeiieenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehssggrnhihrgesfhgrshhtmhgrihhlrd gtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 77747F60074; Fri, 17 Dec 2021 13:38:32 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4524-g5e5d2efdba-fm-20211214.001-g5e5d2efd Mime-Version: 1.0 Message-Id: <7b284af1-c239-49f1-9a77-eb8ba57168dd@www.fastmail.com> In-Reply-To: References: <3c86bbd6-89d7-46b5-9bb5-60ca414b4516@www.fastmail.com> <87v8zvs3vc.fsf@gmail.com> Date: Fri, 17 Dec 2021 13:38:07 -0500 From: "Samuel Banya" To: "Charles Berry" Subject: Re: Question About Nuking The Priority Of A Task After Its Been Marked As 'DONE' Content-Type: multipart/alternative; boundary=5f26b522e1f74790bef9cc0ee539369e Received-SPF: pass client-ip=64.147.123.19; envelope-from=sbanya@fastmail.com; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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" 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=1639766443; 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=fbu3AriuWjoLNg06anwsogSrH0KUVhJvPYKYOayYVoU=; b=dYBeqMy6EILnH3ObpKkw4jHm/RfndVIeXWdEQ7NN3iwzR1tMWWotAUI7CvDEzQsEQwfcp/ jw3dIM9anHdi4o1IUC3+ePKhz2+mOaszlU4m1veW/rmH695Wh04ZrpQvKUZTGu7851KjVW g5lHZPMo/tGIVa7KGSc5jSm7ZUfwEim85ZySOKcJugG/pgkJTguIqBMcUigF5Zh8E+ggSc q0OFP6JIzMlhdmz7Fzd7Pcs6K2mP5fWEcFWLfmU2i/U3eGhxZGY9ftskSH7PjUPV1BOlxY cia7rH40YNr1/zg7uYq3YVKbjeDfnxGNcjR4rQiJ/c4C5ph1wTUR+8RTZowgfw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639766443; a=rsa-sha256; cv=none; b=c8DQ5P4NjTIHOGayqW5+z4sOzKoWZeZ1YeKNShlfHdKLaUKoKUa8TFSgyoLWigCKhizA3q l5TxfROWSMuU6anhjMUxMIl4h5+pikgjwwYpr4Qq4lJJH0Wh6DWfVJU7IJLNLrK5lcdQhw BoJ+wDdc+YYlILl1YJ9HN0dLY3GUGRIce3DDNqqjoSFlw5x3MmEBA4xbIdWgrN91tbeb+q NvGL2ErQaEqav3OLPiLpD6UcW+9CTa5yeN6q03alrsDX6uZf7Zbm9M1B1pifdDomYmhckO 4F1HSAWyZusj+nLJioCDYjmGVzwr9fvVbgg+LspOj3REvSrJTTgDAuHcJFthqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm1 header.b=S7PHZNu3; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=D4WGz+BT; dmarc=pass (policy=none) header.from=fastmail.com; 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: -8.99 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm1 header.b=S7PHZNu3; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=D4WGz+BT; dmarc=pass (policy=none) header.from=fastmail.com; 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: 901C516F42 X-Spam-Score: -8.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: P3ys6j947oNa --5f26b522e1f74790bef9cc0ee539369e Content-Type: text/plain Rather, thanks Samuel Loury! :) Good to know great Sam's exist that like Emacs out there ;) I tried it today, and this totally worked in my config. Thanks a ton for this, very cool function, and SUPER useful for me as I mark stuff as 'DONE' a ton within my workflow for tickets at work. Thanks again! Sam On Sat, Dec 11, 2021, at 12:51 PM, Samuel Banya wrote: > Hey Konibunix! > > Thanks a ton for this, this looks fun as heck to implement :) > > I'll have to try this on my config sometime next week. Thanks a ton for this, bookmarking this post for now. > > Love it :) > > On Sat, Dec 11, 2021, at 7:49 AM, Samuel Loury wrote: >> "Samuel Banya" writes: >> >> > I often change states of my todo list items to 'DONE', 'CANCELLED', etc. >> > >> > However, one thing I would want to know is this: >> > - Is it possible to automatically delete the '#' priority value of a task after a task has been marked as 'DONE', 'CANCELLED', etc? >> > >> > Is this done via a hook function? >> >> To do it globally: >> >> --8<---------------cut here---------------start------------->8--- >> (defun my/org-trigger-hook (change-plist) >> (let* ((type (plist-get change-plist :type)) >> (pos (plist-get change-plist :position)) >> (from (substring-no-properties (or (plist-get change-plist :from) ""))) >> (to (substring-no-properties (or (plist-get change-plist :to) ""))) >> ) >> (when (and >> (eq type 'todo-state-change) >> (member to org-done-keywords) >> (member from org-not-done-keywords) >> ) >> (org-priority (string-to-char " ")) >> ) >> ) >> ) >> >> (add-hook #'org-trigger-hook >> #'my/org-trigger-hook) >> --8<---------------cut here---------------end--------------->8--- >> >> >> But if, like me, you want to define this behavior per task, this is one >> of the purposes of org-edna. I suggest you try it. >> >> I your particular example, you would simply set the TRIGGER property of >> the task for which you want to delete the priority to this content >> >> --8<---------------cut here---------------start------------->8--- >> * NEXT [#B] some task >> :PROPERTIES: >> :TRIGGER: self() set-priority!(" ") >> :END: >> --8<---------------cut here---------------end--------------->8--- >> >> Closing it would result in >> >> --8<---------------cut here---------------start------------->8--- >> * DONE some task >> CLOSED: [2021-12-11 Sat 13:38] >> :PROPERTIES: >> :TRIGGER: self() set-priority!(" ") >> :END: >> --8<---------------cut here---------------end--------------->8--- >> >> Of course, it also work for repeated task or any complicated scenario >> I have tried so far. >> >> I hope that helps, >> -- >> Konubinix >> GPG Key : 7439106A >> Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A >> >> >> *Attachments:* >> * signature.asc > --5f26b522e1f74790bef9cc0ee539369e Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Rather, th= anks Samuel Loury! :)

Good to know great Sa= m's exist that like Emacs out there ;)

I tr= ied it today, and this totally worked in my config.

Th= anks a ton for this, very cool function, and SUPER useful for me as I ma= rk stuff as 'DONE' a ton within my workflow for tickets at work.

Thanks again!

Sam

On Sat, Dec 11, 2021, at 12:51 PM, Samuel Banya wr= ote:
Hey Ko= nibunix!

Thanks a ton for this, this looks = fun as heck to implement :)

I'll have to tr= y this on my config sometime next week. Thanks a ton for this, bookmarki= ng this post for now.

Love it :)
<= div>
On Sat, Dec 11, 2021, at 7:49 AM, Samuel Loury wrote:=

<= div>           )
      (org-priority (string-to-char " = "))
      )
 &= nbsp;  )
  )

(add-h= ook #'org-trigger-hook
      = ;    #'my/org-trigger-hook)
--8<--------= -------cut here---------------end--------------->8---
<= br>

But if, like me, you want to define this be= havior per task, this is one
of the purposes of org-edna. = I suggest you try it.

I your particular exa= mple, you would simply set the TRIGGER property of
the tas= k for which you want to delete the priority to this content

--8<---------------cut here---------------start-----= -------->8---
* NEXT [#B] some task
:PROP= ERTIES:
:TRIGGER: self() set-priority!(" ")
= :END:
--8<---------------cut here---------------end----= ----------->8---

Closing it would result= in

--8<---------------cut here---------= ------start------------->8---
* DONE some task
  CLOSED: [2021-12-11 Sat 13:38]
:PROPERTIES:
:TRIGGER: self() set-priority!(" ")
:END:
=
--8<---------------cut here---------------end-------------= -->8---

Of course, it also work for repe= ated task or any complicated scenario
I have tried so far.=

I hope that helps,
-- <= br>
Konubinix
GPG Key    : 743910= 6A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3= CED 7439 106A


Attachments= :
  • signature.asc

--5f26b522e1f74790bef9cc0ee539369e--