From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iMXPHkvOp2Zu3AAA62LTzQ:P1 (envelope-from ) for ; Mon, 29 Jul 2024 17:15:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id iMXPHkvOp2Zu3AAA62LTzQ (envelope-from ) for ; Mon, 29 Jul 2024 19:15:55 +0200 X-Envelope-To: larch@yhetil.org 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722273355; 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; bh=pDBG8oTxlJS7gARfcAVnMI7fYpzBqFTfiuGcYDyfikY=; b=SKvKmBD0MwB0xvKeQFlDVU4xUhH6W1boSmwk6jcTJNHHGP6RVKpIL7mYnoyj9AmF81Nx1h v79OgtA0JOE4NEAjqtLQxtGNoDt0fhoZWOjSwOa44zKti2P7GSeJscjOlZOGNhhXdMNcXj OjgMK8s8FN8+R5u/vZSdyeF19tWHPkdJ/LpuHshPWAXPrLckounQhiujbeC2nLJSIPm9QN 5ShVBZovB1xSO35z7pP+pIlRUlz5csfoEZjN8UQakcxZ6ClI4swMqG1B/JPxzPTmJsg6RE Ww0lg20dG3/1izLXMmPUO7mfEyOjMYNk+8Ht83cmE6N1sKLHXHgL5CDGGtlZ5A== 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722273355; a=rsa-sha256; cv=none; b=ozGzqJOFqrUegEvm22DN0VdfLAsKWNyeSujqjzNfyd0fHetK65O4FcrppNWXIcPsM35Qj9 tj//iOC4v4J+i6keYAGjgpDTuqhTcTedMqlAqVQbOubKfOeo6JPkwbgrzxLzZAY19Ezofk 9JQd5yDK0X3+1KiswfNSIoQtzcjwXZWysofSIMfFzJjIynruElmkqnZWnbqxp+DQQKGHul djR32qkuOC1ZhahWFb3UX/GgQtn4yPAzf6lLQsAs5/niXAnKH8sFCgBsbEIrW/VdjaF9ht rU4HX3zTubO3UMezJh/x41yZSmTTJHxBUoPI9aibybh3XQ4/3anw9am/ORTRCA== 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 4D650139E2 for ; Mon, 29 Jul 2024 19:15:55 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYTyB-0002LJ-So; Mon, 29 Jul 2024 13:15:35 -0400 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 1sYTxx-0002JP-VT for emacs-orgmode@gnu.org; Mon, 29 Jul 2024 13:15:23 -0400 Received: from k-7.ch ([185.31.100.96]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sYTxs-0007E3-06 for emacs-orgmode@gnu.org; Mon, 29 Jul 2024 13:15:20 -0400 Received: from van (_gateway [192.168.1.1]) (Authenticated sender: seb) by k-7.ch (Postfix) with ESMTPSA id 75B2FE7E00; Mon, 29 Jul 2024 19:15:06 +0200 (CEST) From: =?utf-8?Q?S=C3=A9bastien_Gendre?= To: =?utf-8?Q?Martin_Edstr=C3=B6m?= Cc: "emacs-orgmode" Subject: Re: Properties drawer at buffer/file level In-Reply-To: ("Martin =?utf-8?Q?Edstr?= =?utf-8?Q?=C3=B6m=22's?= message of "Mon, 29 Jul 2024 19:03:13 +0200 (CEST)") References: User-Agent: mu4e 1.12.1; emacs 29.4 Date: Mon, 29 Jul 2024 19:15:05 +0200 Message-ID: <87h6c8xgpy.fsf@k-7.ch> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.31.100.96; envelope-from=seb@k-7.ch; helo=k-7.ch X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 4D650139E2 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.53 X-Spam-Score: -8.53 X-TUID: FfKjSZhrrvQw --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I get nil. "Martin Edstr=C3=B6m" writes: > The property drawer has to come first for technical reasons. Just try ma= nually moving the property drawer beneath the title, then do > > M-: (org-entry-get nil "ID") > > and what do you get? Nil. > > Martin > > On Mon, 29 Jul 2024 18:02:35 +0200, S=C3=A9bastien Gendre wr= ote: > >> Hello, >>=20 >>=20 >> If I set a property with `(org-set-property)' when the point is at the >> top of a buffer, before any heading, I got a property drawer inserted at >> in the first line of the buffer. >>=20 >> But if I already have buffer settings, like "#+TITLE:", the property >> drawer is put before these settings. >>=20 >> Is it possible to tell Org-mode to put the buffer properties drawer after >> the buffer settings=C2=A0? >>=20 >>=20 >> More context: >>=20 >> I try to use Org-roam to take notes about books I read. With this, I got >> 1 file per book, with the title of the book set as buffer setting >> "#+TITLE:". >>=20 >> But when I add other information (like author, editor, etc) >> into a property drawer of my note, these additional info are inserted >> before the title. >>=20 >> On a new note, I got this: >>=20 >> :PROPERTIES: >> :ID: A-unique-ID >> :Author: Author Name >> :Editor: Editor Name >> :END: >> #+Title: Book title >>=20 >>=20 >> Instead of this: >>=20 >> #+Title: Book title >> :PROPERTIES: >> :ID: A-unique-ID >> :Author: Author Name >> :Editor: Editor Name >> :END: >>=20 >> Which is visually very different from what I got when the property >> drawer is set for a heading. And the actual result feel less intuitive >> than what I got with heading. >>=20 >>=20 >> Best regards >>=20 >> ------- >> Gendre S=C3=A9bastien --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQI/BAEBCAApFiEEaA9vw9ypVj1kP0tAtYb3x3I54p4FAmanzhkLHHNlYkBrLTcu Y2gACgkQtYb3x3I54p6/EQ//Ukkgk6nO2sogEED1x/oSx2iEnQ8dgm+5iChLPfCi vX/gRM9R5yFwUf2ygFG01gy3DKadD9Orpb+M7NbCIL1kzpVQ+i9mNYvAt+FLj4we XD1/ybiwNkLikHkLk5jJLWuK+KQPWMEBAgCKQ62Ddfuct/aWZk5V3R3e9avqIZKn CIXHA1b1rkKVviexHIb+YN5z1ePyqAFLmR6bPTu8ijRTBnn4VqbRIyrM5UxxwtCi Jan5kZ9S979CpgOwSprlO0A/a+WVgWNhfW8jvuRJdzAcqscJ4XTWBn+z6KPHeAMR foES81teKoTCq/yDU78pN5NENCax2kyipLfIoCN9CUuQQv5MOD97AyutRLz97ETh K8yYmwK+uaRiSTVseR9Ybo1NhNNqnTpOxM569N1He1KZF9TIpUNauZnEPu21Qblx pvjBu6ONWl+lmwNLCastonPCWAideBcuJpjZIIJ2OiUlkzViMr4h8Pru63vsfKED s93sYx4KV8BeaL0G4X+t69Qf4A22s86VuIqCnP9XhiVM+9bftxu9ulyckRLVdkkV SE5bEJvk7NEpDR4pVsNp8WwPDz+tIy2Zn9pOrULtvHHDjG8wORZHu8RjEm2Vd9/O de3pqzEh+nvmm0Af/EWFf+jmlF9179ujPkPHc3iY6TE9hAhBO8FFgAcqbJGCmHrt YOg= =O0FI -----END PGP SIGNATURE----- --=-=-=--