From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +NnZErtmqmA9mgAAgWs5BA (envelope-from ) for ; Sun, 23 May 2021 16:29:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KAeBDrtmqmDFOQAAB5/wlQ (envelope-from ) for ; Sun, 23 May 2021 14:29:15 +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 BF9ECEC3D for ; Sun, 23 May 2021 16:29:14 +0200 (CEST) Received: from localhost ([::1]:41154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkp6P-0005wW-R4 for larch@yhetil.org; Sun, 23 May 2021 10:29:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkp5o-0005uK-Bf for emacs-orgmode@gnu.org; Sun, 23 May 2021 10:28:36 -0400 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:34640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lkp5m-0001jH-Ok for emacs-orgmode@gnu.org; Sun, 23 May 2021 10:28:36 -0400 Received: by mail-lj1-x234.google.com with SMTP id b12so22828891ljp.1 for ; Sun, 23 May 2021 07:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version; bh=4wKZmB3ys8Ft/xPIxl+M0g0PczeYOjaxBzf/eizv/O4=; b=EidQ5lwt+mH02WosSAN76o4V1dJJVil2juUZ9nC5YzMrMaLVcyFzhdXFzw3TNCP8Uv 542kaGgZqgg91Vh5b05ic6u/bEVWOjXkxZ4rYsNGtdUu8pONJMHWRwbxWeFf+nuNe5cD rvK5DeSgXiKhJBJIkN6Gyw3WAY1fwRlLuWf5WRZGC1mVHiA3c+aH0cZrVqqte+/UwrSE dYGAan69NOEMJIoSmCxIejnv1LDR6qhHtaQ13jmUVA6JYXyhmONiDexuslLMr7DFL67W qZIvVByBt7SN657TNuHjmoZtwqyNGrj9Ft3TGrx3924Ai6Qz8pL8/HMxlXCFpNGSRpan YfRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:cc:date :message-id:mime-version; bh=4wKZmB3ys8Ft/xPIxl+M0g0PczeYOjaxBzf/eizv/O4=; b=rX40xGz7CgOUW2T5QBMoMgXAEcKcJAhOkRpj7ZXrR373U+IKdRf4JLnxidJ/YflnMw YMSQeVePLaorccdwhIB7Z++uM38W8z6g3dd3TkBKdwnydqxdhp56NJbjgyqyc80QgerG cgo6hFTAER+G6EuaUv0RYro7DSBRfAgiSTsszAoq+BQHXy+QSoEm0ayQBERQMiooIgSI I0hdJX2922jzjdb3cwF0gQDLar9roCr+TXzqU0RFXqegGHzZBYTT1sF25oTyT/V0Fg/O UPIFBig19BFA+L1oe+EHt+2AcmhJO9IKsX/0JpXohUoVC81AvKxhMspgxXodKrqVIhPc eeBg== X-Gm-Message-State: AOAM532XqTBDWsNxHJhFrHqms11iHRi9hQVyBPj+Rx564YeJ1Cy/p+wk MgRixCB6KPLGKXIt6uBYoZs= X-Google-Smtp-Source: ABdhPJz4hGIa0aQKu8qqPKAS86BGDRyt30/gsLxNkbP2p8c8+8RkV1HAK7qse4EMENXjdMmYhgMqZw== X-Received: by 2002:a05:651c:621:: with SMTP id k33mr13338969lje.484.1621780112872; Sun, 23 May 2021 07:28:32 -0700 (PDT) Received: from localhost ([91.210.107.197]) by smtp.gmail.com with ESMTPSA id d7sm1384488lja.112.2021.05.23.07.28.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 May 2021 07:28:32 -0700 (PDT) From: Ihor Radchenko To: Nicolas Goaziou Subject: Re: Empty headline titles unsupported: Bug? In-Reply-To: <87sg2d4k9k.fsf@nicolasgoaziou.fr> References: <87tumvdno3.fsf@gmail.com> <87fsyft0vv.fsf@nicolasgoaziou.fr> <87zgwmt5wx.fsf@localhost> <87sg2d4k9k.fsf@nicolasgoaziou.fr> Date: Sun, 23 May 2021 22:33:19 +0800 Message-ID: <878s45bjv4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=yantar92@gmail.com; helo=mail-lj1-x234.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1621780154; 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:dkim-signature; bh=4wKZmB3ys8Ft/xPIxl+M0g0PczeYOjaxBzf/eizv/O4=; b=X2YT60j6ygTMySF1wl8iVYwxzGnyRkMblXC0op0JiRfgz5TFz2upVKKdqJeTgRq7sobZ+A WFz8kykwKPQyJIgq3Q65C5lYoZF0bbC/KlLuzi2ZuNwcYEQtaRKFD3UmcWNEiY8uiwaX/1 PgJrquL4RZUZ+uOrvNXjw8/4TjUDkOWZHWHPEZuKRaP9JqjU8mBsRoEkX6NbbV0IMLuW9D QE5goVzVA5zurHoMeBhs9x7zEx/DI+ATamYQ02uXuPQcZtmxQr+R0YiNhtU/17ESkaet/A zhM8uDpV2KXFVbHwCweBgKSpkOsSyC0HIsnHfdHCVrUmklgHkl8orEyWZ8e1kQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621780154; a=rsa-sha256; cv=none; b=fPX8XMNLJL8ceR4W9Ll/oyEPooaDDYdhSEGH8n8GSGd/SHzGuT9+TCKrdgKwr/1YAyiCUM OXEC7fWBe0zysWxGSw1z7Nsxa2nSE+e891UnhOK0NGGq8bk6c7hkuDEYoCpQ+lGaVUXIMW pJJCOWSi92hPiag1pNIa6sN4YRghgThYT0VfgbbSqCIZppGR8aaihGoNxgZkWvO00qnJzZ dKMs8Enk62vFmYTQn+P91fFSYjfgeug6SYIhs2Cjq2gYfVJ/gj+yzLhvgYBfSZOqhdbFfJ n9dzVbPt1gKQppNe22cQYoQH2ojeE0JHH+SHA5KuH61q9oRO2Xm9yfnbpK4XgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=EidQ5lwt; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=EidQ5lwt; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: BF9ECEC3D X-Spam-Score: 0.16 X-Migadu-Scanner: scn1.migadu.com X-TUID: OHnXdIj7dj0n Nicolas Goaziou writes: > Because, as I wrote, this is ambiguous. You cannot distinguish the > following two cases: > > * :mytag: > * :myheadline: Makes sense. > So, your patch would only move the problem elsewhere. 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. Though it will be more tricky than simply changing `org-set-tags' as you suggest. Best, Ihor