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 KMbtD2mJsWOOcwEAbAwnHQ (envelope-from ) for ; Sun, 01 Jan 2023 14:23:53 +0100 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 eKfpD2mJsWPF1AAA9RJhRA (envelope-from ) for ; Sun, 01 Jan 2023 14:23:53 +0100 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 CF59715698 for ; Sun, 1 Jan 2023 14:23:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pByJ2-0003AE-AD; Sun, 01 Jan 2023 08:23:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pByIy-00038v-91 for emacs-orgmode@gnu.org; Sun, 01 Jan 2023 08:23:12 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pByIw-0003Qx-Ae for emacs-orgmode@gnu.org; Sun, 01 Jan 2023 08:23:11 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9789924017E for ; Sun, 1 Jan 2023 14:23:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672579388; bh=cuz/gX6gbEudKDnHOgRdT0pK4laT0TNSefsgwae8GOM=; h=From:To:Cc:Subject:Date:From; b=EgkiG7136WRgL94vH/giG6hrs50Gh7R/2ISb61mwkEcLL6eLiwdFyAAUnvtVyl14c QVN46wNUhk3cyS3u7NFaAe+JDRY8t5rRkE3iFhyRW0Crywl+3X0Z9wlzwe1e73GGl4 nNGWW2tDiUJ6E1/dR0pqYhqfEUAdfw8hbvrhmweN2hajfsxy0kEhqST+AGUyAU8zYO WRXgyQFTq3WrZ8svQCNd1Luu9z4M24iHykajaXD4XDmfaF334wP9mvWcwQZGitR83E BoWmk7CNOrYYuHgIYTIiZNspmt31X64FPka/vln71LQ+PvFwku4ZasuWd9KME8RmWK XsXJwTKsG1VCg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NlKSC3l3Rz6tnM; Sun, 1 Jan 2023 14:23:07 +0100 (CET) From: Ihor Radchenko To: Ruijie Yu Cc: alain.cochard@unistra.fr, emacs-orgmode@gnu.org Subject: Re: Is function 'org-insert-property-drawer' usable? In-Reply-To: References: <25520.25134.831330.318368@gargle.gargle.HOWL> Date: Sun, 01 Jan 2023 13:23:38 +0000 Message-ID: <87v8lq75id.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672579433; a=rsa-sha256; cv=none; b=Ax54TAr1gswdVmg9uqH2h2p2MZ0ZFf3wKOWfE7GndOL/YWSF5sSJr/V6w93JtkD4oNd3c3 5LRwA3dHb34hFbElh0ci5GF8i94IQnfLEO4s6J2cUfYorqR9yBLWh8AS23epYBc5Obg009 wjNu1cOsqINL7RDyxeCSMgrWqCVT4KLhPOBjNJXwrwe5NL/YN9qqcSRgEC62no39uXJPNm ZdAWWVIwfCG7CKNEAVvWSe54NNaRHKMA9H2mgsaVddjwV1zqgKtaZjQgQVAfB8UBlGTCuj mrzqdOfvpiTiUhF2AtXD7hTdjxdJNSG+Z36oVDwIq6Vm9gu9zNycdYFjJV3L6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EgkiG713; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672579433; 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=YPCP7qtg0g1Z7Mo68YjxN1gGnWNsXIgKZiYVRSgNe6Y=; b=ZgD5Fv2A3HUFAdi6JubMsXcSpw8aKZyZx3hHIy5E+FHh6wMxz9QRAyNc089Dx7NEIwkHHF il96cdvroEhT3jxjK3c72mAh2cVlZLx8fnUJfPavQVMIY2B09kX5frA8NpcqdtGOFzKQl4 LAfhtl85i9vo21zQItMxRd29oecuSTMwT0jppzO9UE6YQ457dZaG9GXLVj3j7w/XS7fO4/ 92kjfzdK36KxiGF9aa4bx/UsaOWLeQ3i4var+Q3lTB+eO/ErGZqOWjFW9bo/GBZcOjwDeU SonB3vPsZJErz5BRfuzDqzLfrcUI53Wt0IZs3QQHCcHl+OQenGZXohm8KbPUsQ== X-Spam-Score: -6.58 X-Migadu-Queue-Id: CF59715698 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EgkiG713; 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"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -6.58 X-TUID: pRjtV+aTTbp6 --=-=-= Content-Type: text/plain Ruijie Yu via "General discussions about Org-mode." writes: > According to the source code of `org-insert-drawer', I think the manual > is saying that when ARG is non-nil, the function simply calls > `org-insert-property-drawer'. However, `org-insert-property-drawer' is > not declared interactive, so you wouldn't be able to M-x it. I guess we can just make it into a command. I see no downsides. See the attached. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-org-insert-property-drawer-Make-into-a-command.patch >From a32e4791ee3b0f12d8b9ce006c2ec4cede3829eb Mon Sep 17 00:00:00 2001 Message-Id: From: Ihor Radchenko Date: Sun, 1 Jan 2023 16:21:32 +0300 Subject: [PATCH] org-insert-property-drawer: Make into a command * lisp/org.el (org-insert-property-drawer): Make interactive. This function is mentioned in the manual and may be used by users. Reported-by: Alain.Cochard@unistra.fr Link: https://orgmode.org/list/25520.25134.831330.318368@gargle.gargle.HOWL --- lisp/org.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org.el b/lisp/org.el index db32ec562..6cb326ca0 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13062,6 +13062,7 @@ (defun org-insert-property-drawer () "Insert a property drawer into the current entry. Do nothing if the drawer already exists. The newly created drawer is immediately hidden." + (interactive) (org-with-wide-buffer ;; Set point to the position where the drawer should be inserted. (if (or (not (featurep 'org-inlinetask)) (org-inlinetask-in-task-p)) -- 2.38.1 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--