From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kGTSH5Sv12K/DgEAbAwnHQ (envelope-from ) for ; Wed, 20 Jul 2022 09:32:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UAPdH5Sv12Ko8QAA9RJhRA (envelope-from ) for ; Wed, 20 Jul 2022 09:32:36 +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 1C79537C18 for ; Wed, 20 Jul 2022 09:32:36 +0200 (CEST) Received: from localhost ([::1]:59630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE4CB-00037P-2o for larch@yhetil.org; Wed, 20 Jul 2022 03:32:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE4Bj-00036b-Tw for emacs-orgmode@gnu.org; Wed, 20 Jul 2022 03:32:07 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:45698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oE4Bi-0003fS-GI for emacs-orgmode@gnu.org; Wed, 20 Jul 2022 03:32:07 -0400 Received: by mail-pl1-x62d.google.com with SMTP id w7so14207687ply.12 for ; Wed, 20 Jul 2022 00:32:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=MaxQPpwcVcrCnQm+agnwsSPsqXvCzgKqAMz7Bowlmso=; b=HqZyQzntydsjUXDeYVQbTMVhmsOUmlkSlHIxSodyYkncUdMXWbXwjuWnIWXMIEcSnW 9iVR0FF9xkH/eert4F0Yz9t0IKUCMwzHFQVWjFY4qTiXcSZ1s0rXT2dtGxvyy8sT60QS 7iHHHISQ72QTrjVSgx4XM46EixSg4aDW0IGF0r1HaHEy9oPymkPcCNDW9aeOBZYfqS1E vaIiy7FD04eMIMyJW/ya7z8BsNKmMefLkvectAm/7ksUQskitCiV43YvmzytyJLCq9m+ acNDRtVCT8bKv3SDsWKhpU8ObYWCYaVgF+64Kwe2piLi93dvOzLsny0r3f/q7nZAhYNF n44w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=MaxQPpwcVcrCnQm+agnwsSPsqXvCzgKqAMz7Bowlmso=; b=p2jTUF9VYvQITDSUGu0lCLMwfvtV50oNRWsFHbIFb1G7Ntfl7oE2kPzeL6LoCz0U7n mtCHcX8iUHeOUE7WnQQGgluzYCZvMn0ez5o/CUnT78pehXVqwIM8f/rB6iEmdqG2L2KX U/cryE3tt3QK6QooGFMfCsJChYuLthByS0dy9dQ/z28Ne1m8Z19A3VGpsVvCvXDsOn0W 7TQ60gs0yfYfXCZY/2daCVzJB11Rn8FpETIBizb2zQTpEeN9pAXEB6/N/8xA+YxIz9mv 8TvY2EFULjMefFZw/8tEMXb4YCuuTU8e+Fmo3O5+wi5WtehaZF49goh22E4ygR0TKA1T kziQ== X-Gm-Message-State: AJIora+/vQ9UxdL2EwayjCDsqgD23YZQgNQOQQnNL2DywOu3+Mp9TNL9 kJFuVEns/gVD8Qgrq5ZJx3w= X-Google-Smtp-Source: AGRyM1uiDCApWy2tFd0fFG94vhp/Z7Tx9WO5uCH/tejtb8aMsbbKeLZDSoWNpKH5OY8Kl7VgycPetg== X-Received: by 2002:a17:902:eb8e:b0:16c:5764:7dc0 with SMTP id q14-20020a170902eb8e00b0016c57647dc0mr38849280plg.63.1658302324070; Wed, 20 Jul 2022 00:32:04 -0700 (PDT) Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id w8-20020a170902a70800b001677fa34a07sm12853844plq.43.2022.07.20.00.32.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 00:32:03 -0700 (PDT) From: Ihor Radchenko To: Uwe Brauer Cc: emacs-orgmode@gnu.org Subject: Re: org-set-properties for various (all) headings In-Reply-To: <87v8rs4aex.fsf@mat.ucm.es> References: <87tu7do6xu.fsf@mat.ucm.es> <875yjt6tn9.fsf@mat.ucm.es> <87r12h59dc.fsf@mat.ucm.es> <87v8rs4aex.fsf@mat.ucm.es> Date: Wed, 20 Jul 2022 15:33:09 +0800 Message-ID: <87pmi02q8a.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=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=1658302356; 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=MaxQPpwcVcrCnQm+agnwsSPsqXvCzgKqAMz7Bowlmso=; b=DmZ06gZYqiayXjIc+UxYyJbd5UZzcQdUJDRUEn2uQy5ZwHLJsaXCnAwFsv0k0IRL7UOhpL DPPqAomFBSQNZIE0T5WnzsLcBusmwvNyEJecr1lg0A47fzwpiaRnS0hp/WEiGIc9qK1uEu /OqLsDxKBuya/3wkWK1s0N0LJzyHF5eT224M4BD/fgw+YFKUj5rFt7hJjQoVNZYEQHohjP 9UvR6tpDZ8W97N+uZ+NwjzelEgjz5R0XvqDpAQXL8iJ6djMI033ltcxHS/UOCAPF7WKDjN DEOf1LrxWsu/D3rloaU4lsX9JSvdMmS6loiNeack+gljZUILAft9Lfc6/CpsWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658302356; a=rsa-sha256; cv=none; b=pqwRGx0x58I2XlCj0z+sdp3WwVuyMVoLWZW4uaau0FLvugRdgpqQwuvkRJr4t1cV9ZTHjI s1H3wsXFnn7jPuwdd9hEWMGuhQbRNU+cwKPvdj/2RT6V9IE60M1un8ufIBQe1DKZodLw1y IcuQfTBOdN99xUzpEBi4Cq1Hasmp9QEJOyl50t0veIDeX2zl6ktb0RlsRGWuPxeGpH+2MX BgHxqBZwmzfAjRPDjZErojlHa/qQa0FgX8gPed9L5HDVRdK8GdgYr1gYQ/xgmFo+s1wAfD FfvG/Ivd/34w/zzMZJJ51XsVNwMO50GBLlaqK4LVISkhyym+oEOKo9UVU7eymg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HqZyQznt; 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: -8.44 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HqZyQznt; 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: 1C79537C18 X-Spam-Score: -8.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: jjl56t4KahJy Uwe Brauer writes: > Two comments though > > 1. It works, if the source block is at the beginning of the file =F0= =9F=98=89 > > 2. I confess I don't understand anymore the use of `(let ((el (org-el= ement-at-point)))': > > a. In your first version you used the defined =C2=ABel=C2=BB, but = know you > don't, hm just saying. That's because the first version used the actual headline title as a value of the property. That values had to be acquired somehow. org-element API was used. > In any case thanks again for this very valuable advice. I suggest to > include it somehow in the documentation, since I believe that other > users have encountered similar situations. A.11 Using the Mapping API A.10 Using the Property API :) Best, Ihor