From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 GM8mGvRyZ2LzSQAAbAwnHQ (envelope-from ) for ; Tue, 26 Apr 2022 06:20:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sKk8GfRyZ2JMqgAAG6o9tA (envelope-from ) for ; Tue, 26 Apr 2022 06:20: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 0E5A6B9BD for ; Tue, 26 Apr 2022 06:20:04 +0200 (CEST) Received: from localhost ([::1]:36072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njCgE-0004Nf-Db for larch@yhetil.org; Tue, 26 Apr 2022 00:20:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njCfV-0004NW-Kt for emacs-orgmode@gnu.org; Tue, 26 Apr 2022 00:19:17 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:37657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njCfR-00033D-3J for emacs-orgmode@gnu.org; Tue, 26 Apr 2022 00:19:16 -0400 Received: by mail-pf1-x436.google.com with SMTP id bo5so16819187pfb.4 for ; Mon, 25 Apr 2022 21:19:12 -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; bh=kmRqDjL9FeysqMaH8uQeLu1W5DzpkgeQbJZ4PBsZgDs=; b=JmReCt5x9kAm9dlwcO0OGMHMOYwlTjpOV0IH7Iqx1H1NX4HCxn1adCC5KTMaOdW84l T4tUCA9CoF5+o+shdVmqH+K5W1P8kurY61PE/rx58ZDxh7gCo3JsU8jPAcFtWH/IqORC Zw3v0bkcnqzWlFYsLSLc4Lytkeiy2wTDWTjqajXjO87I8aMTTBPKpaAufc0+h5+IR7Ml w0pSP0boqkrFgsTfCAyRk+13fZ3fuBWhiRW+6janxOXk9KGAA4cBsP5G+gvGhs40hDY8 LM8cqYSgEJVT8GdVtT1BeNazDcCu/qTBolvWc19LM1/YWdZqh7Rl3TsWeB0QDvq9im2X yJbQ== 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; bh=kmRqDjL9FeysqMaH8uQeLu1W5DzpkgeQbJZ4PBsZgDs=; b=DObd4rfpzJ9TVJgy2uYsbx+lFcsIjDj9Z4NOcWCLWh6qYpAl5txhbBoKhtwprj95J5 G76oUx9dcnlSL1Y8XssqGSfJqJ8LPNr5jmSJq4kgVj27aFoHYXouxcqTIYUbKyl3TXFJ uZDmp02Wz73udIRQr5f2/C61ouWzOibuknnKULue0KP+AD+YF7UNW/S7u9yvX3aOIua+ 6uDpyZTbtqgWOFuOOA3nx+oMUlY085JBQjuR97WqVDB61qdbzA16pNIR0eQxtmGvR2C7 ixto4ZOOw3oCkf6pv0YGENpHohZtLkgD6A+HKav6LIKt5eJuE3hI2IBfxqUNYsOT4MoJ 5RJg== X-Gm-Message-State: AOAM531xrdXNF5rN2Y6i2MS9o+wFTZdtwl6CIvACFVZPVos1vwptlZZN gJVDn9l6240tAqmi+mZJb+Y= X-Google-Smtp-Source: ABdhPJwmgp5IQxZM2HlQP4f16NPPDKv0eVOp3UwvBDNLOJFBVMly86rEYa0fT1q7qFeRta267Tln8Q== X-Received: by 2002:a05:6a00:248a:b0:50a:b853:4e5a with SMTP id c10-20020a056a00248a00b0050ab8534e5amr22557722pfv.21.1650946751265; Mon, 25 Apr 2022 21:19:11 -0700 (PDT) Received: from localhost ([63.143.61.57]) by smtp.gmail.com with ESMTPSA id j19-20020a056a00235300b0050a858af58fsm13962368pfj.145.2022.04.25.21.19.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 21:19:10 -0700 (PDT) From: Ihor Radchenko To: Uwe Brauer Subject: Re: [the culprit] (was: org-set-property (at point)? Save-excursion seems not to work) In-Reply-To: <87fsm1ibkx.fsf@mat.ucm.es> References: <87zgk9vaw1.fsf@mat.ucm.es> <87fsm1ibkx.fsf@mat.ucm.es> Date: Tue, 26 Apr 2022 12:20:03 +0800 Message-ID: <87h76gv5l8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=yantar92@gmail.com; helo=mail-pf1-x436.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: , Cc: emacs-orgmode@gnu.org 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=1650946804; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kmRqDjL9FeysqMaH8uQeLu1W5DzpkgeQbJZ4PBsZgDs=; b=NLDaBwQZPATbr72JExElC7yspQ6ePLvv+yWRvFTvUldR1YmSYxnAUETLwBT+ihYlDaa494 H5phQb73NJiroUwuQZPfXEQ6kUyb68Mp8lDeLIzRJG1aplH7BAZVUfB/S1FwsvAPryOSSN mLaMBfBhgDR+sJoPmrNo5fjR1+qoIqtfgug+BUJOkM2baABNx6ESkdsJrSSVFliIuEU9n7 e5CIVlLMrRVH7C0/AxyrYxqm3Pfmgc1LdH/2A2Ack1f2trFg6HcfTFwnwxwkxwOOMAe9UM +q7JYHFrK4WDfjO3YPRV3cKnjVCHRRSSl40U/9eYbMlydjrNjykUtB8HRyLixQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650946804; a=rsa-sha256; cv=none; b=esWFFlA8Zm8cMc+rj1IbtZu5WzIPpOaYs29CDDnnjBEmy5KmrQR98GseAarIAItSsGlSIn FY6IANRqcym0bmOWuoE88acnoG4hu9w4kQ0vOxeNFSroB+oWyzaPQoalqvtnoxu3sj6kMw 558+prlQ60K5B2mBNSvoYm/W+pzRS6A5gexKZh0UXgbmi4qnbuOPiqplFQQVEfvmZmCait DT06uCxm4Nw7Q8ERbvKTDlExCmUa60cXfQpwAgiHa82maGAeIXq6UgFwcwU+mip8wQekAL s21NdkoFbALdX2a/RzGWG0YSmTWaakP2txat56sPD5Ava+yJ13G85/DEBNiyvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=JmReCt5x; 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.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=JmReCt5x; 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: 0E5A6B9BD X-Spam-Score: -3.51 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9zD232rAK/0o Uwe Brauer writes: >> But it does not help, org-set-property sets always a new property at the >> end of the property list. > >> Any idea what to do (besides touching the function itself) > > > It seems that the culprit is the function > org-entry-put > which always puts a new entry at the end of the property section. You are right, org-set-property adds the property to the end of property drawer. I do not think that its docstring suggests anything different. Do you want to propose a new feature request? I guess patches are welcome. Best, Ihor