From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mMTPLfS5oGHVQQEAgWs5BA (envelope-from ) for ; Fri, 26 Nov 2021 11:41:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OLZvKfS5oGH5OQAAbx9fmQ (envelope-from ) for ; Fri, 26 Nov 2021 10:41:56 +0000 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 5E940377E1 for ; Fri, 26 Nov 2021 11:41:56 +0100 (CET) Received: from localhost ([::1]:34054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqYfy-0001Ci-71 for larch@yhetil.org; Fri, 26 Nov 2021 05:41:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqYfD-0001C1-JC for emacs-orgmode@gnu.org; Fri, 26 Nov 2021 05:41:08 -0500 Received: from [2a00:1450:4864:20::12f] (port=43520 helo=mail-lf1-x12f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqYfA-0005xU-F3 for emacs-orgmode@gnu.org; Fri, 26 Nov 2021 05:41:07 -0500 Received: by mail-lf1-x12f.google.com with SMTP id b40so23158499lfv.10 for ; Fri, 26 Nov 2021 02:41:04 -0800 (PST) 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=CsCVePuZnKSub0+WGbTcNmLK9TwVwrA971kbPKXDhHY=; b=f0X22HQq38wP+VLPNon6NKN0Jn8wGKlNYc3NvIRVnGglIrH+fQ4qcd704KDz93VIow J6pBO/jegbrdujHl4+1KW8Cz5Lt+WogKq+IbgMAeAYdzgRRc91Za6HDp+Hhqye16TMAo ulZnJ3Gg1sdRd1b/ftHI+pNFNfNdGtzCSgipcnwmK99+HtBr4B8js+yt4ofG313iHtGI lyT208f88jRD77n0vah+xIvyS1Y+3nwnCnCRBZUh/P2wfw2YpK02U2P8wj4cQEMc+DO6 AUgEsnbhim+Eh0IOGxgoPvGLexF1c/cRxQK5VIsZS1TKIlglzsaG/WKDOkZ3ZPDxXZYk JMfw== 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=CsCVePuZnKSub0+WGbTcNmLK9TwVwrA971kbPKXDhHY=; b=REtV0Iolpjm6QPEYr18v4QvR2Meuu1vyYQROK2tGouu0gzpo1zpKe4ro7dpYAeSCnX eZAfyfdGUoWazgzW2/VR0M26oxd/RbRcgl7ilg8yhZ5SJ6gZ1+2FZF0oKDz25Pm4SQr/ D5nBCTelgb2y6CfDcBWRUXP0WxFzWe/5N2V7b728xC0kiuHdjHb+fZiWkQEFaoQU6DPc Fno4zDaD05qvGfo2Auxp1ISlwDICsiMb7eZOUrZD8zTMovpsqYMyrbx9xbamPij4ZTpD 4Ce/gQg4kUMF+MdwbRvZkxh0G3yGcyzj1GAsbMbLu9JngAz/D+4ovu/WEn0jjoKEdor9 wnbw== X-Gm-Message-State: AOAM530KFGefiT39Eke1RXvvNrhNma5SDOVV98m4fGpBDWr4BeYVqQCX nXkJMoYlMvJEY74gqnQINBw= X-Google-Smtp-Source: ABdhPJyllw5wBLaVCcjn5n+XBCXyfF/UMFpOMHw42eeL7CFDMQHxeICG/fi3jbZoiUFi5I+DsWkbqA== X-Received: by 2002:ac2:53ae:: with SMTP id j14mr28340512lfh.323.1637923262494; Fri, 26 Nov 2021 02:41:02 -0800 (PST) Received: from localhost ([91.210.107.150]) by smtp.gmail.com with ESMTPSA id a7sm470050lfk.216.2021.11.26.02.41.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Nov 2021 02:41:01 -0800 (PST) From: Ihor Radchenko To: Matt Micheletti Subject: Re: [BUG] org-add-planning-info does not respect org-scheduled-string or org-deadline-string In-Reply-To: References: Date: Fri, 26 Nov 2021 18:42:26 +0800 Message-ID: <87mtlryz8t.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::12f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12f.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637923316; 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=CsCVePuZnKSub0+WGbTcNmLK9TwVwrA971kbPKXDhHY=; b=ILhCSnNt8sXDQ5aFp88Vt48dbs8hmu0bAdZZ/WrQmu/0SWdi2UIH6KjCDhuBs/qEPfcA5u 7F8uFR+veXEzzZfcLWvaBQ1dIbKyztv5ItcB0Eh3folHHHe8O8bZYr5f22cNfgSyQvcg3q ViAXbiKDRq4ThZ4nOycE1BPGNb4sY0W6xkVJDPQhjP+WKQGtfaxlWCN1EIw8wLpPtOXyOl jp5ni+AUcJk/1xliIjlWAsAA1DoeqJkXG1fLDIjvHC9MTjo5G2P/MfEWJxkAsvh1S91sZ4 k8zVqoxoMbEBhR7KAGR4a3BXoQ/RyUkihfRG9U0gtdVSZbZKOCHlD/zKbcYqzw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637923316; a=rsa-sha256; cv=none; b=Yrm0LXvLFZ/ibrc0Kjb06PW5/tqPJRJcGZj5gSwQFfZMf/9hw7WCxLQJgvoZTu3Tp0ssFF 8+0VRpncdmdahl4X8gT1ZHNfmyPl4/LqlgYnqjBNMU7odQQtPB56vnc0Pqr5CTN7IWSS15 6Mhuksye2cW40jb/x6kqJvqopjHGmUEm3bTbdXlmG91oAfk29IlG8yudSX3JH6St4eBbHo BrcCVW38aUlYGKg/vn+lbfAqfeNhOVlkmac3290n3MLr05GtdVMDofvoB94oZP8kDdn/XE RglfyMt/9TlkOWEzet09oXTDSMJlzg7Osu4tqzkjD8uuPJ3vnuNbg/fH2XpdvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=f0X22HQq; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=f0X22HQq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 5E940377E1 X-Spam-Score: -3.60 X-Migadu-Scanner: scn1.migadu.com X-TUID: w1ZO7znSVTzK Matt Micheletti writes: > ... > do not respect the usage of the org-scheduled-string or org-deadline-string > values when prompting the user to enter a schedule or deadline timestamp > leading to confusion amongst the inconsistent UI/UX when those strings are > changed (as Org Mode permits). Why do you think that Org mode permits changing the planning keywords? This part of syntax is not meant to be changed. See https://orgmode.org/worg/dev/org-syntax.html > Recommend changing to > > ``` > (defun org-add-planning-info (what &optional time &rest remove) > ;; Omitted for brevity... > ;; If necessary, get the time from the user > (or time (org-read-date nil 'to-time nil > (cl-case what > (deadline org-deadline-string) > (scheduled org-scheduled-string) > (otherwise nil)) > default-time default-input))))) > ``` This is a good idea, though we should use org-element-deadline-keyword and org-element-scheduled-keyword instead. Generally, we need to obsolete org-deadline-string and friends in favour of constants defined in org-element.el I think Nicolas is already working on this task. Best, Ihor