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 UPd6BoFnsGP6ZQEAbAwnHQ (envelope-from ) for ; Sat, 31 Dec 2022 17:46:57 +0100 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 uJlxBYFnsGMZgAAAG6o9tA (envelope-from ) for ; Sat, 31 Dec 2022 17:46:57 +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 AAA43CC54 for ; Sat, 31 Dec 2022 17:46:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBezw-00050U-Sk; Sat, 31 Dec 2022 11:46: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 1pBezv-000501-0u for emacs-orgmode@gnu.org; Sat, 31 Dec 2022 11:46:15 -0500 Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBezt-0003ts-F8 for emacs-orgmode@gnu.org; Sat, 31 Dec 2022 11:46:14 -0500 Received: from fw.net.yu.netyu.xyz ( [73.133.126.255]) by netyu.xyz (OpenSMTPD) with ESMTPSA id a81e290a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 31 Dec 2022 16:46:08 +0000 (UTC) References: <25520.25134.831330.318368@gargle.gargle.HOWL> User-agent: mu4e 1.8.13; emacs 30.0.50 To: alain.cochard@unistra.fr Cc: emacs-orgmode@gnu.org Subject: Re: Is function 'org-insert-property-drawer' usable? Date: Sat, 31 Dec 2022 10:36:39 -0600 In-reply-to: <25520.25134.831330.318368@gargle.gargle.HOWL> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.498, 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: , Reply-to: Ruijie Yu From: Ruijie Yu via "General discussions about Org-mode." 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672505216; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=j+gD+85UFwk3aHI0gNvGsKhPLaJcisubfJTLmWgltxo=; b=nWmuw/yaNQM3cVhggjy4Q16X1fwXShTCF0e73Hklv2Go3XkMDOtBYeP/Za/IMwr3ThsKei 2J+XrWTI/e9asHJwbiWgyT3t4dv3PUCH8//oLS2kJQaU9e51DtjkMVOU2YkJ9A8PpWAndd dotM5Nzskj+RDbfLGVhqpZZiZ4ECbwdwG0y8nZnXoxDL264q7n5ix5KawumnVm5Ib6S6h2 DDHPxRgI8W7OYR64peVmmuWIEwCuSVX2l0PSnCZ6GgcAuvAiMu/AEaCDFrmr/7L4sumduM Lt1u40mWMobHeSxd/68V3kzRQUEx1TamB5P4J7VMQnJctCzAj9zu/Zl2mzpJMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672505216; a=rsa-sha256; cv=none; b=XO/L01ehVpMZqX23G8ofNBlxDX2oSEvLaVLiihJIfynyUnKSnMFztjCC5E8aXFuR4CRHUG dBKM06MjP4LvSIggi/bMAzjvgnAu9Uo7arn8V2mfOJwK5UR/11jvnNlKqGBUTZoO3BLr6A mWzH3B+99ytAr/q6eZxPKZSRKseEBQL2cRuorHv+hu7Lz8g4zJbKTxw0P3HwbdrSOJvH5E ugB+6AidUk4cN5otyb/Bk1cIpYazWiTUJlkKKEiW6MMIxumUEY8mMYd1M+VkGneyFMWqiv jcMVr7vPXQ4ZivhQD+UvzAvOQkHiT98pGturUxNHI6OodCVxtcHKX5BaGnbqrg== X-Spam-Score: -0.84 X-Migadu-Queue-Id: AAA43CC54 Authentication-Results: aspmx1.migadu.com; dkim=none; 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=gnu.org X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.84 X-TUID: w10Jn6Q4RZSG Alain.Cochard@unistra.fr writes: > The manual says: > > You can interactively insert a drawer at point by calling > =E2=80=98org-insert-drawer=E2=80=99, which is bound to =E2=80=98C-c C-= x d=E2=80=99. [...] With a > prefix argument, this command calls =E2=80=98org-insert-property-drawe= r=E2=80=99, > which creates a =E2=80=98PROPERTIES=E2=80=99 drawer right below the cu= rrent > headline. > > For me, > > C-u C-c C-x d > > does insert a 'PROPERTIES' drawer, but > > M-x org-insert-property-drawer > > does not. In fact 'M-x org-insert-p' offers no completion. I > generally use this kind of information to use my own key bindings, but > here I cannot (don't know how). 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. You could, however, still run it via elisp: M-: (org-insert-property-drawer) RET Best, RY