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 uMyIH82etmPjBgEAbAwnHQ (envelope-from ) for ; Thu, 05 Jan 2023 10:56:29 +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 QC2RH82etmOsNQAA9RJhRA (envelope-from ) for ; Thu, 05 Jan 2023 10:56:29 +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 9D5481133E for ; Thu, 5 Jan 2023 10:47:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDMjo-0002bS-FV; Thu, 05 Jan 2023 04:40:40 -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 1pDMjm-0002ZK-Ui for emacs-orgmode@gnu.org; Thu, 05 Jan 2023 04:40:39 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDMjk-00078S-MU for emacs-orgmode@gnu.org; Thu, 05 Jan 2023 04:40:38 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 08EC22406E5 for ; Thu, 5 Jan 2023 10:40:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672911635; bh=GtgSXCTa8ii7kh80wvQsYTvwJLdZXhDe5AvzkG8+K4M=; h=From:To:Cc:Subject:Date:From; b=b/xg97rnZoPaZJlqrtjkRoG3nxIbaLgO86yv1NX3ckR9/u0ak0G+ESxn+eI6iO5ky 3X70NSRMTlV4Up8ZfD5EYoYXvwo2fB3VlNR8Znu1odkLJulz2dwe99T1xQK1nEGXPf 5KkiYc6FgXU0ErY7UK0d1ztAGFBSZRXOutFDtj8kH5u+ISfgOUr9O9ln0Da3Fu7D/E knOj2yXKJGt7W66ft/d7CQci5C2Issrl2VgmXxn8GFg/C+zIgxyaB5cikE4A7pi7pF 2CD3SzxUjcQfV0k2U8KX+3Y5B09/wBy21jdNyAvZJ9sIe9y4vbz+hHG8nF8rnI0Pop 8ki/bmFD6b05A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NnhKZ1LSnz6tm6; Thu, 5 Jan 2023 10:40:34 +0100 (CET) From: Ihor Radchenko To: Max Nikulin , Bastien Cc: emacs-orgmode@gnu.org Subject: Re: Is function 'org-insert-property-drawer' usable? In-Reply-To: References: <25520.25134.831330.318368@gargle.gargle.HOWL> <87v8lq75id.fsf@localhost> Date: Thu, 05 Jan 2023 09:41:06 +0000 Message-ID: <87a62xgvyl.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H2=-0.001, 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=1672912020; a=rsa-sha256; cv=none; b=Icie5m3ZRt7zEDt4BQuf9MBovXH1W/tLdSopmuIVomW0RuExALaBtMwNHF4PoDqlKflTPW S5jYwdrhD1UPrbkMA/f7jk5ryevS+9WxVX5qdhJobLUERSvApHCFTzUmKaqtdbC2pAK4mX gZqYl7XXky6V214Dbg2yWWplHnS0TtNG/v5AP2XRoFdCKXNrj3tEcB1JbuYEznVkR/1H4Q 3qgH9+mLIxbNbES/rTZLN/WFoqkn/Ebn2P5Yd1l6vqaeBgvqH96zLVW0w0TzoDgg884kU0 I7rB3MUa4K1LCevKXvnIUMJ+VHKgf6q68PvetNT4qOy3y9AduNONxZprAs8xIA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="b/xg97rn"; 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=1672912020; 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=rTYMIYR4k38DTd0AzsGUi/uswT86KkLJhzJ/ByQG7Jw=; b=cW6Dvsem9LMlWmpJeSrWoKnmZYoH47XMwUnhCkJLO7qx7+Yb/zSplnl3Aab88TFQnsuOfT m/mXHK5il8c1cBM8fN9Ycb80nSaK52wAG65ZqQPZCA47g2+MZ2pIxf6DgBj+xecY9PkX+k aur+RvlX13lnsgL+TwieoXcEmhtwVY1JcgGPzHyeCbT0aqiLH+a3SgKTAARqawcLQMyvKs OvXMvENnuv2j5blPN56A9jHp07qqhFr4VIKV9/xt1ZqPs3t1vPsTnzXm+H/xPcAkyMNC+1 UW5PzEFV6LVlU/bvUfgAzOTVBrBdA2OFRjAtWV5siQnXvdxtiZBv1MkfVZx/aQ== X-Spam-Score: -8.81 X-Migadu-Queue-Id: 9D5481133E Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="b/xg97rn"; 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: -8.81 X-TUID: fcKlTNaeBmr5 --=-=-= Content-Type: text/plain Max Nikulin writes: >> I guess we can just make it into a command. I see no downsides. > > At least it was an intentional change: > > commit 471ddbd14e2bb3e7689cdca5e6a461e54b8be9d8 > Author: Bastien Guerry > Date: Thu Jan 26 09:18:10 2012 +0100 > > Improve `org-insert-drawer' and related documentation. Thanks for checking! I still don't understand why it was turned into a function since I cannot find the relevant discussion. Bastien? If not making `org-insert-property-drawer' a command back, we can amend the manual, as suggested. See the attached patch. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-org-manual.org-Clarify-that-org-insert-property-draw.patch >From 3b930ccaf4f53d203cbbe84001d4d861cbcbb262 Mon Sep 17 00:00:00 2001 Message-Id: <3b930ccaf4f53d203cbbe84001d4d861cbcbb262.1672911565.git.yantar92@posteo.net> From: Ihor Radchenko Date: Thu, 5 Jan 2023 12:38:26 +0300 Subject: [PATCH] org-manual.org: Clarify that `org-insert-property-drawer' is not a command * doc/org-manual.org (Drawers): Emphasize that `org-insert-property-drawer' is not interactive command, but a function. Reported-by: Alain.Cochard@unistra.fr Link: https://orgmode.org/list/tp3pbi$dk$1@ciao.gmane.io --- doc/org-manual.org | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/org-manual.org b/doc/org-manual.org index f3b77ebad..4466af8e4 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -1253,11 +1253,12 @@ ** Drawers #+findex: org-insert-drawer You can interactively insert a drawer at point by calling ~org-insert-drawer~, which is bound to {{{kbd(C-c C-x d)}}}. With an -active region, this command puts the region inside the drawer. With -a prefix argument, this command calls ~org-insert-property-drawer~, -which creates a =PROPERTIES= drawer right below the current headline. -Org mode uses this special drawer for storing properties (see -[[*Properties and Columns]]). You cannot use it for anything else. +active region, this command puts the region inside the drawer. With a +prefix argument, this command calls non-interactive function +~org-insert-property-drawer~, which creates a =PROPERTIES= drawer +right below the current headline. Org mode uses this special drawer +for storing properties (see [[*Properties and Columns]]). You cannot use +it for anything else. Completion over drawer keywords is also possible using {{{kbd(M-TAB)}}}[fn:6]. -- 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 --=-=-=--