From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KPGhFy8wrWBiSgEAgWs5BA (envelope-from ) for ; Tue, 25 May 2021 19:13:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +N9VEy8wrWCHGQAA1q6Kng (envelope-from ) for ; Tue, 25 May 2021 17:13:19 +0000 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 B53A716812 for ; Tue, 25 May 2021 19:13:18 +0200 (CEST) Received: from localhost ([::1]:50156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llacH-0004AA-M0 for larch@yhetil.org; Tue, 25 May 2021 13:13:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llZdO-0002w7-0E for emacs-orgmode@gnu.org; Tue, 25 May 2021 12:10:22 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:60807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llZdL-0001U1-H4 for emacs-orgmode@gnu.org; Tue, 25 May 2021 12:10:21 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 9393320015; Tue, 25 May 2021 16:10:15 +0000 (UTC) From: Nicolas Goaziou To: Sebastian Miele Subject: Re: Empty headline titles unsupported: Bug? References: <87tumvdno3.fsf@gmail.com> <87eedw5s0c.fsf@gmail.com> <87o8czksaq.fsf@gmail.com> <87lf83kphd.fsf@gmail.com> Mail-Followup-To: Sebastian Miele , David Masterson , emacs-orgmode@gnu.org Date: Tue, 25 May 2021 18:10:14 +0200 In-Reply-To: <87lf83kphd.fsf@gmail.com> (Sebastian Miele's message of "Tue, 25 May 2021 13:43:58 +0200") Message-ID: <87tumqaj6h.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.200; envelope-from=mail@nicolasgoaziou.fr; helo=relay7-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org, David Masterson Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621962798; 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=GeOqXpYdRpV/Ng3Wpzybqqw1lol31BLXY3Da8+GwGgs=; b=YNez/JbtuZjXF8IKs30+yspHWb65KQeweS6y6fhKTcznHAOLLNrQp4W66yDegKt5YgmkNu BAWMtmUZZzv1EvTYXAfLjwYypFfcgk4uhhwU4kW3EiS2G1DVzwwjqNeD70NfRVZ6nD8+KC 2jlpfd4r5m9+2dw0FnHwPWG8VAyX1f2NznKlq+5zih2iwyLQOgQkV18qKqScgzjCmR+Vi7 3wDawOk+lIi0tRl9OaNqiqorRd1PnKbNBGZPWTqNgjiBbihESoqmS9rgEO1aq9tqD78fhB qxYLqJb4NmtFygeYGmL4xaYxcT+V/AcxajPHycz9uLydimCP68VVFXhcomD9rg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621962798; a=rsa-sha256; cv=none; b=qM0dxxkqtFoB9DTOen5A2QUSUNEAILC2G7iaENhQHyPtrkiLH8FgwbhAVu8fpZ6HTqZZ70 Nlp4VQ4O9XkPiTrGHIZpHnYnQztvgZEjoMt875FMZjQV7jtqSVtQLpz/1Rc3VXtqZ3/5Aq hTu6f56pPIgolRIaXE6tIlCBOgv00eR0S7jQ25ht8XMOBhIQlFThOdJFg9tZoCPGfj0Ct7 g/biObNEcYbhZaEunjez4nxkkiT/EJyAg3WkscfS+a9AwNWmK0Cws6n4/FLwpGs5dHDkh7 bIJwBNt/ljqL6AYX0kO6iMZ4Gpx6Qey7z7AtfQP/FU0dQXkveJA4VCx7Tt4P0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: 0.07 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B53A716812 X-Spam-Score: 0.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: XxCP6JhDEryx Hello, Sebastian Miele writes: > Sebastian Miele writes: >>David Masterson writes: >>> Sebastian Miele writes: >>>> Currently org-syntax.org says that "TITLE can be made of any >>>> character but a new line. Though, it will match after every other >>>> part have been matched." This does not reflect the currently >>>> effective behavior that "* :t:" is a headline with title ":t:" and no >>>> tags. >>> >>> Can you describe what should happen in a parser grammar (ie. BNF)? If >>> not, I would tend toward rethinking the structure of the Org file so >>> that it can be described in a grammar. Having a good grammar for Org >>> files will promote it's acceptance beyond Emacs. >> >> [...] However, the way I understand the above quote from >> org-syntax.org (which is, I think, in the end preferable) [...] > > To be clearer: Preferable to the way it currently is implemented. > > In the headline "* :t:", the above quote from org-syntax.org (at least > in my way of reading it) means TAGS ":t:" This is your way of reading it, but it's unfortunately not the sole way to look at it. Also, I'm sympathetic to Ihor Radchenko's desire to see consistent code in that area. But being consistent means we favor one interpretation over the other. We can do that, of course, but I can't see which one is better. The one you prefer might be more common, but it is also nicer to fix, by adding some space-like character in the headline. Fixing it the other way requires the same space after the headline. Of course it's not a big deal either way. The whole thread isn't, actually. Currently, what Org does in this situation is unimportant, because the behaviour is simply undefined, which is, IMO, tolerable. If we decide to define it, it needs to be documented. Regards, -- Nicolas Goaziou