From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 OFt1Lt3812JlDgAAbAwnHQ (envelope-from ) for ; Wed, 20 Jul 2022 15:02:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mEqKLt3812KNgAEA9RJhRA (envelope-from ) for ; Wed, 20 Jul 2022 15:02:21 +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 75E51170D3 for ; Wed, 20 Jul 2022 15:02:21 +0200 (CEST) Received: from localhost ([::1]:42166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE9LI-0001iZ-IC for larch@yhetil.org; Wed, 20 Jul 2022 09:02:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE9KX-0001i7-TD for emacs-orgmode@gnu.org; Wed, 20 Jul 2022 09:01:33 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:41726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oE9KV-00054l-2q for emacs-orgmode@gnu.org; Wed, 20 Jul 2022 09:01:33 -0400 Received: by mail-pl1-x62f.google.com with SMTP id k16so141417pls.8 for ; Wed, 20 Jul 2022 06:01:30 -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=tvNUuZSlh2W9oSjHoLJrt1N709GjX9laYaulojormyc=; b=BvDhJVI11+ynT1C1Gex+78RIztIIwAJjX2a+jjTJGrcNqxb5qITTDejzx1hsljRuXj eu0hUKFo5jiHydIG6jdgSfcc5QPahdc+fBTGGeApyb59Mr9jkkBfO3cJuiegGTJbooHn SK7P+leGrDQCjCIpZX3qHKyIHqX4pjQ/75FWr7+TVXVdK/+N1YXD1ji7b9bBVQpBlotM QRwPA24CVjcOrT1J4Y2UPTFGDoFbyEPc2FmlW1qtSNTR1s51HrIWOs/QSfNHO34HqFZl 6qxoqN+QGx5o1Am6DLTqGk3WwH7+yurQBPo0ZiCpP6YXlRy/yATOxoeK2Ewyn5a7Dmes 1Xog== 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=tvNUuZSlh2W9oSjHoLJrt1N709GjX9laYaulojormyc=; b=SUg+FsX74A9yK2Z+RDd0vCtFhonrQV9VjBH9e3SLFh9tarG19PozRGIIPB1BqZS1mH TeeE5Uwfvbo2N4pd+vs0Jg24R8WDONQFtNPjh/5s2tV02CYp6n1ht47YNji2t5NmB2qh +S1nOvdS42ukqIAlWm9vmyckWQMnmcczdt3eBgafRlf4fL4S0TeJzuQzmBoFPLB9gPsC xbeEBRWLZnIcLj2ACS7aYhcjS8jHfddJT45+rqQzbmrvO7cb5n/UaL3F/DowPM5Brhz4 AH63cwbtcfOaiUTBLl6Vijh3Mhb4nbbnB1zkyB8fbNT+zWe0PdtxjABYWu2UfR4ge8VQ ss/Q== X-Gm-Message-State: AJIora9lnt76odNVwBWmDixgUv5fAEJnYN0rywubcKS2qGvHpJa4qx08 UQJMibUCGwQgAHAGT8zjyWuC9/MGVyhnO+VWFx0WlX+L7Qc= X-Google-Smtp-Source: AGRyM1uixNO0RZ4Ooxa6IC0lkx5th5AaM/d8wux7kyhjNdYbr3pBFHL3khxvdaKgoDELHTBI/4RFrqLTQ1OTu0Ze88s= X-Received: by 2002:a17:902:ecd0:b0:16c:461d:8008 with SMTP id a16-20020a170902ecd000b0016c461d8008mr38152499plh.65.1658322088506; Wed, 20 Jul 2022 06:01:28 -0700 (PDT) MIME-Version: 1.0 References: <87tu7do6xu.fsf@mat.ucm.es> <875yjt6tn9.fsf@mat.ucm.es> <87r12h59dc.fsf@mat.ucm.es> <87v8rs4aex.fsf@mat.ucm.es> <87pmi02q8a.fsf@localhost> <877d4843aj.fsf@mat.ucm.es> In-Reply-To: <877d4843aj.fsf@mat.ucm.es> From: Kaushal Modi Date: Wed, 20 Jul 2022 09:00:51 -0400 Message-ID: Subject: Re: org-set-properties for various (all) headings To: emacs-org list Content-Type: multipart/alternative; boundary="0000000000000239bf05e43c3354" Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=kaushal.modi@gmail.com; helo=mail-pl1-x62f.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=1658322141; 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=tvNUuZSlh2W9oSjHoLJrt1N709GjX9laYaulojormyc=; b=HLYOWRgUboCZQRp8lgHvBf9DWCJ0kjP8J6l3NQ/ONJMe05Xk8+CxLxg1XNVrB2L3p0gtKR Yy2dWAlx/9tExhidDWu+yywaJrcxNjR7glGnySk7YpNq15dsHG84vrwI3meGAf1XZWAOfp jQjstRlucDwl8Ax2AckrWM+Dy3A4K7EV6AuBuwxP5jVYAo+tFPUQ/iQuAHek17HxwbOm5x BHlPnkP4cBsHZzofLOr+1XkfCWMVdkZT5EY7+cPDnjhD+6HuT9+RourmjfzoEHP6tCJbRi 2lj0/r80Rhj2w2GTJvsWvHwxohGVK3n7lxPDT7wLNkcpRn4elDE5wZUh7U2k4Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658322141; a=rsa-sha256; cv=none; b=MQUhhLdLrKh6XrHFJ+YlYM7r/grvESrmLt4donq5ObZiPnkdqtLSQ2wR1Zu/u6ybNr+uBN K7MrEAi9jAL98pQIiHkx4I7tElmCr7pOyyEICx8eiCPiR5112yEAuXz1xbnq6rAFMvddYR +5HRhKvAuW2ChT7kiyA5HAR8ro+6wxmSOUQckvsSj/bLwrWaGp0sYvM/zemRj229OU4TrE 5A0Ju7aUWJJ8csKqCQXn4RKIgODwO2Hby6jxQMTEuTXfZGxr4D7q/5HZEuVDEK0IcApK5y q89GzPYvDhxso4WGQv9tWwlBdD7Ud4LXs05/LOi0mUB9zNIbS2ub3OpU8zOcVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BvDhJVI1; 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: -2.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BvDhJVI1; 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: 75E51170D3 X-Spam-Score: -2.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: C+35FgLAtFCB --0000000000000239bf05e43c3354 Content-Type: text/plain; charset="UTF-8" On Wed, Jul 20, 2022 at 4:07 AM Uwe Brauer wrote: > 2. Second code > > (defun test/set-property-at-heading () > "Function to be called at the beginning of an Org heading." > (interactive) > (let ((el (org-element-at-point))) > ^el is defined but not used. > (org-set-property "New" "[ ]"))) > (org-map-entries #'test/set-property-at-heading) > Correct. The el variable is not required here. It's a relic from the previous version of that function. > A.11 Using the Mapping API > > A.10 Using the Property API > > Is this a reference to the manual? > Yes. You can access those from within Emacs as Info manuals: - (org) Using the Mapping API - online - (org) Using the Property API - online --0000000000000239bf05e43c3354 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Jul 20, 2022 at 4:07 AM Uwe Brauer &l= t;oub@mat.ucm.es> wrote:
=
2. Second code

(defun test/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 =C2=A0 =C2=A0 ^el is defined but not used.
=C2=A0 =C2=A0 (org-set-property "New" "[ ]")))
(org-map-entries #'test/set-property-at-heading)
<= br>
Correct. The el variable is not required here. It's a rel= ic from the previous version of that function.


> A.11 Using the Mapping API
> A.10 Using the Property API

Is this a reference to the manual?

Yes.= You can access those from within Emacs as Info manuals:

- (org) Using the Mapping API - online
- (org) Using the Pr= operty API - online

--0000000000000239bf05e43c3354--