From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: [RFC] Document level property drawer Date: Fri, 25 Oct 2019 14:58:55 +0200 Message-ID: <84k18tkmls.fsf@gmail.com> References: <844kzzc0n3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56660) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNzBN-0007Ed-3E for emacs-orgmode@gnu.org; Fri, 25 Oct 2019 08:59:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNzBL-00054Q-VR for emacs-orgmode@gnu.org; Fri, 25 Oct 2019 08:59:09 -0400 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:46354 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iNzBL-000525-OM for emacs-orgmode@gnu.org; Fri, 25 Oct 2019 08:59:07 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iNzBI-000tZQ-2q for emacs-orgmode@gnu.org; Fri, 25 Oct 2019 14:59:04 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org >> One issue for me is the positioning of the level 0 property drawer. >> Having the requirement for that drawer starting in the very first >> line is too strong for me. I guess one would at least like to have >> the option to add some configuration with the ‘-*-...-*-’ construct >> which currently only works in the first line. > > Hmm, that should work right now. 0..n comment lines are supposed to be > allowed anyways. I can debug that a bit later to see if something has > gone amiss. You are right! No need to debug anything. I had #+: lines before the first property drawer. Sorry for the confusion. >> Further I think one would also like to place #+: configuration lines >> there in particular the #+title: line. What about allowing lines >> starting with character # above the level 0 property drawer? And put >> a newly created level 0 property drawer below the first line in the >> file that does not start with #? > > The first patch allowed both coments ("# "-lines) and keyword lines > (#+...:) as well. But I removed keyword lines for now to start with a > bit more strict definition, per request from Nicolas. I think the > parser will be happy if there is as little information abouve the > drawer as possible, since it will have to retrace itself from the > first line of the buffer every time it needs to verify that the drawer > actually is the "proper" property drawer. If that makes sense. So the > more restrictive we can allow us to be, the better the performance and > the easier it will be to understand where the drawer goes. And less > complexity. Okay. I keep going with this setting. I can imagine that the parser is happy with less possibilities and the user is happy with fast parsing. But I'm not 100% convinced that #+: lines should not be allowed before the level 0 property drawer. E.g. #+title: in the first line looks nice AFAICT. > Happy to get more feedback on that decision though! Hopefully some more feedback comes in... Best regards, -- Marco