From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 8Nt8NBC8JGPrJAAAbAwnHQ (envelope-from ) for ; Fri, 16 Sep 2022 20:10:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yBJuNBC8JGPYngAAauVa8A (envelope-from ) for ; Fri, 16 Sep 2022 20:10:24 +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 5B37C3D842 for ; Fri, 16 Sep 2022 20:10:24 +0200 (CEST) Received: from localhost ([::1]:58598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZFnD-00071H-1f for larch@yhetil.org; Fri, 16 Sep 2022 14:10:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZFm8-00070f-RK for emacs-orgmode@gnu.org; Fri, 16 Sep 2022 14:09:16 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:26861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZFm5-00035s-8X for emacs-orgmode@gnu.org; Fri, 16 Sep 2022 14:09:16 -0400 Date: Fri, 16 Sep 2022 18:08:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1663351749; x=1663610949; bh=509ptXJ9gl+o737Cz1D0nc2MR4wNXFc1wDDS7uhqexQ=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID; b=IMWyatAlb6QS2+9+4VaLO1x2dfhztlbSimsNNa+SCbZajDDJEU7HNK9Uj1IZep5kP SbywpzjJMNQGvtxHTdsxvrzunWVKlc/0kjz2X7DOzEOt7PZuM13iYtk5bPlTrSAH/X VFtTTKFcrz7+LwwPGSG3sqNq5dpL5Mdg3fC/xqyV0xrwEpNmeNTE6YFLv5AYbYa41n ts+0Xl4NwpoHQVrHjdeM5OObONiv0EjcqPtoGInHLmgE3fU9kZOau+nsjWRcMhMNbm RzB2EhKJlA4EPyzK0CPErl5/M6lYejVVBaQn1sS2y6groXAs5Hy9KWO3wccvHFQRMJ NBl0ZxMZe01ZQ== To: "emacs-orgmode@gnu.org" From: Janek F Subject: Properly handle defaults in org-set-property Message-ID: Feedback-ID: 17130000:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.131; envelope-from=xerusx@pm.me; helo=mail-40131.protonmail.ch 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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=1663351824; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=509ptXJ9gl+o737Cz1D0nc2MR4wNXFc1wDDS7uhqexQ=; b=IqPzM4ZifaYNJzni2VFBZ45DYzhBBV/3lBfshynxpPTRrraELe741lSMf3j9CFFt3QyrB0 PJlum+0ocfQOaQbrcPAR/YQ1ho+Slzsox6VIzfQINxPjlAEVp76Wjed6/FjBAmJ3hGqG9+ /IuQ8nMQUBOH26YS5NWsrPEn3Lv+WmVkTXte2xEQrUG+36eQMzoD8Zjem7PQmQxiogpewP Xu1LUCatvW+Fr1nb8uicaLML9vY/8zzTOS6xFCf6cLFkmxqt7+blgrALWQHHgDmVk580UJ E/33c6xlQbyKKADG3RTu6gwKs/hVxXsnVvZ/NDW/bPhopHU/Dml9UZKuF6p3Kw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663351824; a=rsa-sha256; cv=none; b=o+RrupXOFvDUX+rJHyFnH7sYpgLVgrJg1D4qMBEd8IV4Y5Y3mi2NvY2yYbdPlLxcLGwfL/ jbalTtp1GXqBjQNAd5U1QRkL+cxSOHyV5NzH2uMMbZXgGtwF4FG3PbyvDdq+yWOlEZ6jmy KKEYeOk0T7awnBgltfhnFX6nZWA8UjPkn2ge++ga06ai1SRFdiseG4qgwM4dHTX9gTbN6P SfqQTmp1YOnA+a1HZQe3clDA3ZqTRcaTIXlT4F2K5sBde2IvpHzjNwXmqceGT4Smy528kb 55It6PlhWHS/R0tJdUFBCen31QXmAnJIMNa3OGjiW2IRVsUf4Q7gplUukQHRhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail3 header.b=IMWyatAl; dmarc=pass (policy=quarantine) header.from=pm.me; 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.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail3 header.b=IMWyatAl; dmarc=pass (policy=quarantine) header.from=pm.me; 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: 5B37C3D842 X-Spam-Score: -3.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: v9oIZyReyQ/d As discussed in https://emacs.stackexchange.com/questions/71774/pass-defaul= t-value-to-org-set-property/71777, providing a default to org-set-property = does not always work. It calls `org-read-property-value`, which only uses the supplied default va= lue if it can compute a list of allowed values for the property. But then, = the default value has to be part of that `_ALL` list. Can this be changed so it always uses the given default? Thanks everyone for the great work! ~ Janek