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 gDPfK2Te1mICnQAAbAwnHQ (envelope-from ) for ; Tue, 19 Jul 2022 18:40:04 +0200 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 iKTFK2Te1mJd9AAAauVa8A (envelope-from ) for ; Tue, 19 Jul 2022 18:40:04 +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 0DA6139891 for ; Tue, 19 Jul 2022 18:34:24 +0200 (CEST) Received: from localhost ([::1]:43410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDqAx-0007l1-4h for larch@yhetil.org; Tue, 19 Jul 2022 12:34:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDq7U-0004yr-LL for emacs-orgmode@gnu.org; Tue, 19 Jul 2022 12:30:48 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:36490) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDq7S-0006Gu-WC for emacs-orgmode@gnu.org; Tue, 19 Jul 2022 12:30:48 -0400 Received: by mail-pg1-x536.google.com with SMTP id s206so13968460pgs.3 for ; Tue, 19 Jul 2022 09:30:46 -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=jSBQNd4FkMfPC+GaBO3xktHXluakhNTYvBjXdQ7/3fI=; b=XiPgidDLf6Q+UyzP6pzMyBChXrln/cbGZ+Q4wNP0fVWC38AJRdXhKyycoJbAr66F/y CEMAghxgzBuD+LOWbanqejrUvSviiFtm6zr6bCfj2ew0tNpAJkBSKRtpGJfJthdosbjT FZ4b1BAJ6Whs6cTCdfaKJymabXwZvTTfZQX8EBpyxQruBLl3Tbe2WryiAQRbRvUM7PIE wNZWtNAcAYEZlOUzSgYRdV24G8ijwitR2QFwc6YPB+M8rRYyotzwocAa0zhNu3etR6WE cgVKOEe47TiOv6QOcoYokP+lda6mEc9eIKfVQr1o4DHOnup1TIdyUSooCz9721jnYdOD M2PA== 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=jSBQNd4FkMfPC+GaBO3xktHXluakhNTYvBjXdQ7/3fI=; b=AM+OUw5TcJy95fezlj8BCx13uLoYBwcS5hp/LQryntAw4xOOl+9+b9QN9YgeAMH5oC oKP6oxGEGO2TzZp+nr+t9NGbIo320DGjUROI4EqVOCPo10lDvvqVZ4z550I2EPrM1Cdx T3yWFE62YlttUdlmjdgSk9HHSJRUDDqmZ0FVN6L3AeXNnkE8uDNXUDLx+IjKkmuwiGeL kWLXCT7zg/jcTLzEzeYPgDIVKX9eUwR/XWGpC2LK0onknmyDq350hIkqW8VmFm2CBO/W zdasua03hTxgSA47SNGdLHx+TDZPFuI7FjO7KCqj3JXqiL597dNyiyfm4Qf6CX22gN+b txTg== X-Gm-Message-State: AJIora+6p3nvqyqHdK5OWSDsYsD5b2v9GykUtJccy1SxySEGwoG4Ew9G 7QFtCNJrMeIaEaDff/sXSP8p7PoD3lsH+aGxvl8ub4OP X-Google-Smtp-Source: AGRyM1sjrG/Hl8ss8taP8MJ+qSZUwtdIkL1egkyWJbiJUSCVHU19XQZRpqTBG18NpgVmbdGAm2WU2iq54wjAHRLI7jk= X-Received: by 2002:a63:4903:0:b0:416:97f:6115 with SMTP id w3-20020a634903000000b00416097f6115mr30638506pga.198.1658248244524; Tue, 19 Jul 2022 09:30:44 -0700 (PDT) MIME-Version: 1.0 References: <87tu7do6xu.fsf@mat.ucm.es> <875yjt6tn9.fsf@mat.ucm.es> In-Reply-To: <875yjt6tn9.fsf@mat.ucm.es> From: Kaushal Modi Date: Tue, 19 Jul 2022 12:30:35 -0400 Message-ID: Subject: Re: org-set-properties for various (all) headings To: emacs-org list Content-Type: multipart/alternative; boundary="000000000000907c4e05e42b010f" Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=kaushal.modi@gmail.com; helo=mail-pg1-x536.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=1658248464; 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=jSBQNd4FkMfPC+GaBO3xktHXluakhNTYvBjXdQ7/3fI=; b=PQxWNkpahQt7SZGL5OC8nWWK5Ar2hoobcW4Yxv8x9VSNzA4QuXuj4TsVg+vV0apXOe1Mm8 G36J1o/DDG9I90X1FE5U2E/H/l+UmmfNLnONWulI1qFBQauInYh4CA1+0q3dBok2SP8q/b VC14sQVKMXeX3YlsUNNj/S8MttsTrh5Mu/uQUUjV+3RqbX+SPShPLxKJdKU35ZjeEGIv16 rWY/ItH34odNqNSOaRmVfGsXJ7Z633tAhbhpUT94JXmxa5Aq3JHgtm6FzLY+fvCer4PJ0l Vt+auBVkQqo38Fs76H2p+Q0aoylaou0j1rUS0Z+G/Q0rjb2A5dhaxvVt0oClzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658248464; a=rsa-sha256; cv=none; b=ZeEI/M7/035xqc2dsgBIPMJhYVrtnBiYWvOYTIaS0oIvwMkJT6Xa30tIorDSuNmEf042Ga C7wkBMmbM7K+X77ZGnisO3QwUYw3CCFMdk2ySSIkFikv61RecvDaal93djtJ4o6mRsE+Q2 oo2t2lvOdklDgGw60E8geVu/y7zLkdc/JcrcopA6RfpcYVmngz/1OUheKPWrUYq4x3uGfN guLLCOxpL9YKI+EPMBr2cXKncmaZD7lehutXkI1Ge5zpDifacfxCXd6rbZ+dHCBpQ7b7TT iPTWgrlNj8AjaXbe0U5SYeE7pMjYYoM+R1AZCD4TCIiNywwtlC3DOzv3uMm0QQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XiPgidDL; 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=XiPgidDL; 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: 0DA6139891 X-Spam-Score: -3.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: qVIL3zRoVoWl --000000000000907c4e05e42b010f Content-Type: text/plain; charset="UTF-8" On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer wrote: > > > #+begin_src elisp :noexport > (defun my-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-element-property "[ ]" el))))) > (org-map-entries #'my-set-property-at-heading) > > #+end_src > Try replacing the `org-set-property` form to: (org-set-property "New" "[]") [Not tested, typing from phone.] --000000000000907c4e05e42b010f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Jul = 19, 2022, 10:54 AM Uwe Brauer <oub@mat= .ucm.es> wrote:


#+begin_src elisp :noexport
(defun my-set-property-at-heading ()
=C2=A0 "Function to be called 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 "New" (org-element-property "= ;[ ]" el)))))
(org-map-entries #'my-set-property-at-heading)

#+end_src

Try replacing the `org-set-prope= rty` form to:

(org-= set-property "New" "[]")
=
[Not tested, typing from phone.]
--000000000000907c4e05e42b010f--