From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sumVGnP11mLIgQAAbAwnHQ (envelope-from ) for ; Tue, 19 Jul 2022 20:18:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sKqkGXP11mIYdAAAauVa8A (envelope-from ) for ; Tue, 19 Jul 2022 20:18:27 +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 D556CDD3E for ; Tue, 19 Jul 2022 20:18:26 +0200 (CEST) Received: from localhost ([::1]:38754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDrnd-0003M6-3N for larch@yhetil.org; Tue, 19 Jul 2022 14:18:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDrdM-000350-2d for emacs-orgmode@gnu.org; Tue, 19 Jul 2022 14:07:48 -0400 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:35573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDrdJ-0007rT-0b for emacs-orgmode@gnu.org; Tue, 19 Jul 2022 14:07:47 -0400 Received: by mail-pg1-x535.google.com with SMTP id r186so14202862pgr.2 for ; Tue, 19 Jul 2022 11:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0zSdMkZ0ptjSii7XfrS8tPS+W/71sl2kAarqcAWYvEk=; b=MNTnkzUJptRLvVsrvI2NdTVWYiC24z/x/u0FMqR5wR5sOt75mNNn0gTAa9jHmYQtft AZi10TPOr1T0HtYO6DUGlwq4Ni1e7UoHeJ4mEcY0e5cTXinpQQocEFEvYo2zTxjqWb7w hT02036vVQW1FqULCObiKtlVXgxZ5zkDXJHiyAVcGOZqhv5renJMrtDrqmjZoT3Wa673 K7aYuJdyP477aJF7gPSrCcpMCuHhe+vVOZahMGyyNsYr2grFc1s5Q7e+WIFrfC4YpqVt NPfaLjpb0uYhy99LWyRkICDcjU9bPMYLgGuOmEddlukiUi9n83/EsM2kf5/R3dc47hdf CnQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0zSdMkZ0ptjSii7XfrS8tPS+W/71sl2kAarqcAWYvEk=; b=NOTBeLbE4nNm5aBNU0s39Sib4GNRJM2Z5jhGnYgHwk9Vim0XkwsozPVIu3zVBfMdcQ Z2zwu7IQhrECtQv2t+sbAblfTCfma9jGHr/X5dBCS0d7R8NugYr40B+8j860PWwo16De dDnenOI+ymUz3aD7dBY/MXqjs4JDWNdxatshTH8g7PywnniEzHYBSQXLjgz2qMYphv7x TUpx3PpqgpLGtzLSQOfZOiHS5PZemWACH3axGMmySCV9b4Dm2EsydaM2dQQYyU6Pk5Md Ko5o7qzqlB8q0vklOSzSox4Vd61Ef8Sshlcx0ZNRXL5uERQB/L67p9gXy5ZqATFN2HTM FnHg== X-Gm-Message-State: AJIora/GS1+bh/jGiX5QMx0BLCESxL641sZq9RMPRMas1G7KbaKRIevV BBPYxzawEDNbLOj3aNnvLEeFzhSioTehfkajkvhOplfH4QM= X-Google-Smtp-Source: AGRyM1vbg9ydPLxtes1P/E1NtpvA+pLT/tQIQqKNFcZmrUNZXTF30zbf+ZjNttkdzFjQT8ODgtfY/5trQd58W3UuNIc= X-Received: by 2002:a63:5456:0:b0:419:fdbe:11af with SMTP id e22-20020a635456000000b00419fdbe11afmr15303581pgm.151.1658254063075; Tue, 19 Jul 2022 11:07:43 -0700 (PDT) MIME-Version: 1.0 References: <87tu7do6xu.fsf@mat.ucm.es> <875yjt6tn9.fsf@mat.ucm.es> <87r12h59dc.fsf@mat.ucm.es> In-Reply-To: <87r12h59dc.fsf@mat.ucm.es> From: Kaushal Modi Date: Tue, 19 Jul 2022 14:07:06 -0400 Message-ID: Subject: Re: org-set-properties for various (all) headings To: emacs-org list Content-Type: multipart/alternative; boundary="00000000000060886a05e42c5c81" Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=kaushal.modi@gmail.com; helo=mail-pg1-x535.google.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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." 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658254707; 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=0zSdMkZ0ptjSii7XfrS8tPS+W/71sl2kAarqcAWYvEk=; b=e7aak8KvJf7i5hnvWW3Kfe7tsZPB/4k/foIz4m+Bm/KvBsEi8XUxFVR9KPZL2KhpEI10r5 Ecf4Cf21lPjZT+5BTmFe7t+KMTxG5hGxj2UYtAuGNQgLzHcgTEP9LPdE5ieHXFsF9mna34 DVO1FHcNDQ6O7jCt1PflUcEoYeTkh97Z5bR8GSpzEf263CnelEoHjSHPEdz9aAKjH+KMcG rkZ6l/AXtcCRzTao5bonhZJAGcB8ZJ/Q6Jh7SUuiUgkebefsmGuHLxReMA/jIB4Qw2FbRc QpssSFiUo/nAKi8wDBrcwewYkKOK5HnHyEdS+v/+iiTHp4wBMoe7kXS4TeOlrA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658254707; a=rsa-sha256; cv=none; b=RShjuRFV2gfNVBAAQFLu49quJRntxlSsgdKnKaaZ08gprVs6uZQUnOOs/uCdy0z/Pnai7V uQzuVh9akOH0uBdahZaFvUSuV4HXlF7LOIr9wkxkTMWSz4WYT9VIbbctADNPjv9fMohFzL d2rHx9hZ+DPkzA6zqXvNXvbNrHZYvoN2TOS9zQ3+B1tP3MGApX7f0lWeZQL2AVjsTu9zrB 6dUEJXb5E2yxFcHHITajxfEc8WHL/S3S9ckg6yuwdWTI7Z1HlvBIfdgJdUq6bBwfOJJud8 9f3rBRKFkwmhIeGug9rzPMhEX8e7qCArvv5Cv/KcKgTiMGzRA/+05ZfIkx38gA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MNTnkzUJ; dmarc=pass (policy=none) header.from=gmail.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: -3.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MNTnkzUJ; dmarc=pass (policy=none) header.from=gmail.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: D556CDD3E X-Spam-Score: -3.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: uVHHO6gtkmHA --00000000000060886a05e42c5c81 Content-Type: text/plain; charset="UTF-8" On Tue, Jul 19, 2022 at 12:58 PM Uwe Brauer wrote: > > > On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer wrote: > > > Try replacing the `org-set-property` form to: > > > (org-set-property "New" "[]") > > This does not anything (besides garbage collecting) > Did you replace only the `org-set-property` form with my suggestion? In any case, I got to a computer and I tested that to work alright. ===== * Over :PROPERTIES: :ID: ef19f286-8769-4fe7-8f95-8167691257a0 :COLUMNS: %5TODO(Status) %5NR(Nr) :foo: Over :END: ** TODO Test :PROPERTIES: :Sent: [X] :END: ** WAIT Test2 :PROPERTIES: :Sent: [X] :END: ** TODO Test3 :PROPERTIES: :Sent: [ ] :END: #+begin_src emacs-lisp (defun test/set-property-at-heading () "Function to be called at the beginning of an Org heading." (interactive) (let ((el (org-element-at-point))) (org-set-property "New" "[ ]"))) (org-map-entries #'test/set-property-at-heading) #+end_src ===== Hit C-c C-c with the cursor in that code block, say "yes" or "y" if prompted, and then you should see that Org buffer change to: ===== * Over :PROPERTIES: :ID: ef19f286-8769-4fe7-8f95-8167691257a0 :COLUMNS: %5TODO(Status) %5NR(Nr) :foo: Over :New: [ ] :END: ** TODO Test :PROPERTIES: :Sent: [X] :New: [ ] :END: ** WAIT Test2 :PROPERTIES: :Sent: [X] :New: [ ] :END: ** TODO Test3 :PROPERTIES: :Sent: [ ] :New: [ ] :END: #+begin_src emacs-lisp (defun test/set-property-at-heading () "Function to be called at the beginning of an Org heading." (interactive) (let ((el (org-element-at-point))) (org-set-property "New" "[ ]"))) (org-map-entries #'test/set-property-at-heading) #+end_src #+RESULTS: ===== --00000000000060886a05e42c5c81 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Jul 19, 2022 at 12:58 PM Uwe Brauer <oub@mat.ucm.es> wrote:

> On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer <oub@mat.ucm.es> wrote:

> Try replacing the `org-set-property` form to:

> (org-set-property "New" "[]")

This does not anything (besides garbage collecting)
Did you replace only the `org-set-property` form with my sugge= stion?

In any case, I got to a computer and I test= ed that to work alright.

=3D=3D=3D=3D=3D
* Over
:PROPERTIES:
:ID: =C2=A0 =C2=A0 =C2=A0 ef19f286-8769-4fe7-8f9= 5-8167691257a0
:COLUMNS: =C2=A0%5TODO(Status) %5NR(Nr)
:foo: =C2=A0 = =C2=A0 =C2=A0Over
:END:
** TODO Test
:PROPERTIES:
:Sent: =C2=A0= =C2=A0 [X]
:END:

** WAIT Test2
:PROPERTIES:
:Sent: =C2=A0 = =C2=A0 [X]
:END:

** TODO Test3
:PROPERTIES:
:Sent: =C2=A0 = =C2=A0 [ ]
:END:

#+begin_src emacs-lisp
(defun test/set-proper= ty-at-heading ()
=C2=A0 "Function to be called at the beginning of = an Org heading."
=C2=A0 (interactive)
=C2=A0 (let ((el (org-elem= ent-at-point)))
=C2=A0 =C2=A0 (org-set-property "New" "[ = ]")))
(org-map-entries #'test/set-property-at-heading)
#+end= _src
=3D=3D=3D=3D=3D

Hit C-c C-c= with the cursor in that code block, say "yes" or "y" i= f prompted, and then you should see that Org buffer change to:
=3D=3D=3D=3D=3D
* Over
:PROPERTIES:
:ID: =C2= =A0 =C2=A0 =C2=A0 ef19f286-8769-4fe7-8f95-8167691257a0
:COLUMNS: =C2=A0%= 5TODO(Status) %5NR(Nr)
:foo: =C2=A0 =C2=A0 =C2=A0Over
:New: =C2=A0 = =C2=A0 =C2=A0[ ]
:END:
** TODO Test
:PROPERTIES:
:Sent: =C2=A0 = =C2=A0 [X]
:New: =C2=A0 =C2=A0 =C2=A0[ ]
:END:

** WAIT Test2:PROPERTIES:
:Sent: =C2=A0 =C2=A0 [X]
:New: =C2=A0 =C2=A0 =C2=A0[ ]=
:END:

** TODO Test3
:PROPERTIES:
:Sent: =C2=A0 =C2=A0 [ ]<= br>:New: =C2=A0 =C2=A0 =C2=A0[ ]
:END:

#+begin_src emacs-lisp
= (defun test/set-property-at-heading ()
=C2=A0 "Function to be calle= d at the beginning of an Org heading."
=C2=A0 (interactive)
=C2= =A0 (let ((el (org-element-at-point)))
=C2=A0 =C2=A0 (org-set-property &= quot;New" "[ ]")))
(org-map-entries #'test/set-proper= ty-at-heading)
#+end_src

#+RESULTS:

=3D=3D=3D= =3D=3D
--00000000000060886a05e42c5c81--