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 oKlRCphhqmAWjgAAgWs5BA (envelope-from ) for ; Sun, 23 May 2021 16:07:20 +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 QF/7BZhhqmBrIQAA1q6Kng (envelope-from ) for ; Sun, 23 May 2021 14:07:20 +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 96727D7F0 for ; Sun, 23 May 2021 16:07:19 +0200 (CEST) Received: from localhost ([::1]:54488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkolC-0003EK-Bc for larch@yhetil.org; Sun, 23 May 2021 10:07:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkokV-0003Dx-RU for emacs-orgmode@gnu.org; Sun, 23 May 2021 10:06:35 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:36243) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkokT-0008Dq-Ie for emacs-orgmode@gnu.org; Sun, 23 May 2021 10:06:35 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id C2E28C0003; Sun, 23 May 2021 14:06:27 +0000 (UTC) From: Nicolas Goaziou To: Ihor Radchenko Subject: Re: Empty headline titles unsupported: Bug? References: <87tumvdno3.fsf@gmail.com> <87fsyft0vv.fsf@nicolasgoaziou.fr> <87zgwmt5wx.fsf@localhost> Mail-Followup-To: Ihor Radchenko , emacs-orgmode@gnu.org, Sebastian Miele Date: Sun, 23 May 2021 16:06:31 +0200 In-Reply-To: <87zgwmt5wx.fsf@localhost> (Ihor Radchenko's message of "Sun, 23 May 2021 12:45:02 +0800") Message-ID: <87sg2d4k9k.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.198; envelope-from=mail@nicolasgoaziou.fr; helo=relay6-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: Sebastian Miele , emacs-orgmode@gnu.org 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=1621778839; 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=r2T0ezaKVv5zV0jfs4Ws7w8uPTRnVhjfznDnBl2rIZA=; b=Q2WbjPcL1WiGsizhAgC+GYuPFvTemi8DoS7yYWM7Ldlq1fO7UNuSXn9Q+kSVZE7+/vTcy5 a5MtrHrXGUI5IHhJPSZSGb92MppISVU3UqxOp/l7k8ndx0TG9Wr9xoeQ20sa1azADQM6YX pdN/I1vOWXyD9mS7uCF7qo+82feBBjix8QCBITGeXJqZzgSUQvdN1hNEJmWjR5I9/DL+NJ otoFncnpUvidv6hqOu9COC3ssi1PutGLWZDp33dPpQ9nLWgQEPnin4/z/C+OsDNsKC3Ejm jfV50Go0o/IOV4Rjg3lbZUB2SxiZM6GHCkHAwDQNmz0CxBSuzQ3fwocNl8AIdA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621778839; a=rsa-sha256; cv=none; b=GKVuuUB4vZxiWqIhYVlZkCkVzs/40BCaqKdeTcEhb5/gNKKdX72T0GZOHlcCmzTWKLnDVB QTyRcNIFI6d4f1//+OdBUVzUdBs/xZeLR1bUcuL4ADCUIzT3pnN5aM6A06DtB/ZUoCgvBJ yIqpLCLOZlAubukXS1sFMSSOKxHA3fI5v16z6RiejnXeIEuqW7lEq+6UHk3jGifRcvwmXY TADGJQKbUk9CA7OUulK55LEwXeHKKxHOVetK/5m7j2f76CqU/46lVfURmKMNZDi1qcKQ5D Km9Tn+3tscth89u3ekoB0vFXeWUQ8ItRZS7OpnKkhSpoShFRkgxiQNkjgaJ3ww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -1.44 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: 96727D7F0 X-Spam-Score: -1.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9aWH4SrrNv15 Hello, Ihor Radchenko writes: >> However, empty headline + tags is ambiguous. The right solution is to >> disambiguate it by inserting "something" as the headline you want to >> tag, like a non-breaking space. > > Yet, why not simply alter the headline parser a little bit to support > empty titles + tag? Because, as I wrote, this is ambiguous. You cannot distinguish the following two cases: * :mytag: * :myheadline: So, your patch would only move the problem elsewhere. I suggest to not tag emptiness. `org-set-tags' could raise an error in this case. Regards, -- Nicolas Goaziou