From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 5fB/BhdtqmAxpwAAgWs5BA (envelope-from ) for ; Sun, 23 May 2021 16:56:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gNKIARdtqmBcEQAAbx9fmQ (envelope-from ) for ; Sun, 23 May 2021 14:56:23 +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 A05E8DF42 for ; Sun, 23 May 2021 16:56:22 +0200 (CEST) Received: from localhost ([::1]:34584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkpWf-0005H0-LE for larch@yhetil.org; Sun, 23 May 2021 10:56:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkpW4-0005GY-2l for emacs-orgmode@gnu.org; Sun, 23 May 2021 10:55:44 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:35603) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkpW1-0006jp-OL for emacs-orgmode@gnu.org; Sun, 23 May 2021 10:55:43 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id DD8A660003; Sun, 23 May 2021 14:55:37 +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> <87sg2d4k9k.fsf@nicolasgoaziou.fr> <878s45bjv4.fsf@localhost> Mail-Followup-To: Ihor Radchenko , Sebastian Miele , emacs-orgmode@gnu.org Date: Sun, 23 May 2021 16:55:41 +0200 In-Reply-To: <878s45bjv4.fsf@localhost> (Ihor Radchenko's message of "Sun, 23 May 2021 22:33:19 +0800") Message-ID: <875yz94hzm.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.195; envelope-from=mail@nicolasgoaziou.fr; helo=relay3-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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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, Sebastian Miele 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=1621781782; 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=SCneURRfcnwbuKZOIbCvtLpBP66gKIbhDk42czuCaSI=; b=hsyIL8Q38g1mWjYdudL7exTb+MWuL8cHOG9WroqlrbP14idmDUQnjzQDP+xpwvrQBN7lEs LzncgK/YmvbAy5GuUS08BqZmxTy+mDnO8iu3oCybTU7UEMXUnAnJtXfxfIuDE/B2Q6gKWK oEQYVVeos4hRkHJjgEKzXbiHLm82uVEMQrmcZ8bHQg9jvAvmlALpLn9jqWfI2Y6Skm0XRE fcUQtLBBVQAzJzm6Yf4TnXvB8SkmCFMNCS4v0kyTRa1qwbw/rscyH66FV/gQgKSS+u5HL7 nrIcyXNd9MgQDj6/tf1QSEuenO16eeXCQAYF4WD+EBXfaqTg4AY/GAhd1sUDUA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621781782; a=rsa-sha256; cv=none; b=XWdr488y+ZJMVfxFTlWo7qveekHX8vGZwkJtLQVyi3Nks9skw+MF42qhmXow1lqW4dCFXK Lp9P8dy9tnA+fttPof52D11O+sNJmjyCGj92QkdoqDP77XW6Rs1WQRrtNWlIX5LsTTsjCk G8ruf7tDN2QPwvcx66IqfJNkvDmQ7E0oWR3Q+BhXsZkHYj7rVNqryXjlYfhsWycrS/a3oK 877zT2CFcxFXhG8aZra64WnhXI1NDIo+t5zdsTfw6mSugXHY2s11FXAD9mOjgQsWCpNHiK daqz/FfzUv69WV7kaVABtrCjyWSNWKw7CnNi/9kECVK9O/x1K3tH7bNG45rqPQ== 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: A05E8DF42 X-Spam-Score: -1.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: wUcTjoDqxh+X Ihor Radchenko writes: > Actually, my patch would solve the existing inconsistency. > Org mode already puts tag fontification on :tag: in "* :tag:" headline; > org-get-tags returns ("tag") on such headline; org-set-tags sets the > :tag: on "*" headline making it look like "* :tag:" (which is even > tested in test-org/set-tags); org-tag-line-re used across the > codebase also parses "* :tag:" as headline containing tags. It is only > the org-element parser that does not recognise the :tag: in empty > headline. > >> I suggest to not tag emptiness. `org-set-tags' could raise an error in >> this case. > > Of course, we can go the other way around and recognise "* :myheadline:" > as non-empty headline with no tags. There is no spoon^W way. Or, no way is satisfactory. "Don't tag empty headlines" is better. In any case, I'm not convinced Org Element is wrong here. > Though it will be more tricky than > simply changing `org-set-tags' as you suggest. It probably boils down to changing `org-tag-line-re'. I didn't check though. Regards,