From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id n8PrJruYjmAN1QAAgWs5BA (envelope-from ) for ; Sun, 02 May 2021 14:19:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mI8LIruYjmAhHwAAB5/wlQ (envelope-from ) for ; Sun, 02 May 2021 12:19:07 +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 0C9FE24323 for ; Sun, 2 May 2021 14:19:07 +0200 (CEST) Received: from localhost ([::1]:53766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldB3x-0004rW-VP for larch@yhetil.org; Sun, 02 May 2021 08:19:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldB23-0004qw-Qs for emacs-orgmode@gnu.org; Sun, 02 May 2021 08:17:08 -0400 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:34406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldB22-0002SY-30 for emacs-orgmode@gnu.org; Sun, 02 May 2021 08:17:07 -0400 Received: by mail-lj1-x236.google.com with SMTP id p12so3595036ljg.1 for ; Sun, 02 May 2021 05:17:05 -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=DRp80gTvwS1lejNc02+vd3TeIcjCeHODYugzo9zIUDI=; b=Ayz5DpodL+jeoNZIlsg54sAwBvdWCC7YV9M05mB/md3zg9IBRsmGbQjyv24OZ5mV79 4dOuYpQLoHt2U7Mt2eM1kmO+7IAKunYytOQ6P9ZN9kj1rGLZmqoWYuAqQqaaZhrxvNA/ 4rGOT0o00VxVVtDCOrBARh+G/k7ES30YmkLTNIm+FX9QCkvdtrY8IeDMU4dH6Bm0aJjR mr3bCrHZLOu0fDPFHhakhqFnWMSW79KChM9EKW32WvQZ6pVL2uQ1YmgnEIeKCiyMr3Vp NFt8FbR5VXvYrn8buZR/Bke3hXvxMHbZHQgUgpbkfJeFiOlgG/qtLwh8rXzr3G+Z6EKe 7rpw== 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=DRp80gTvwS1lejNc02+vd3TeIcjCeHODYugzo9zIUDI=; b=HnrL8kePvwwsZNj6MZOM5jomDBZLWrAQipyZFLJCxTR09oyRwRbjC3zHAFdzQkH0rf B/bjTC2z57mszBGcxzwe7CAduNyP4mjgPJJ52BjK05dQ6SNsdd8aL4jaPvg3LYqjTpK3 Sx4MaxdFyq8XdbrC+FZlIkW1vhnP63CRF81exVu/Vmnv+wXDHd59f89XzqrQZn3E1kjU bXtpLaP3uxvJ8gln35V3xP5Ro6JhrkKn5/XMPfS/ukvWSynDpDs5zx4NUEdSEpDzFcK0 WcIjhfU4Oz2UflMUTycvMDtM/TzIsUBqDQoHYL6/mPhLEhtU3LLITTjvedmukgp9PZmg Gxpg== X-Gm-Message-State: AOAM530Bzw4AJzZA5nSJKweeLZILwedIUyg9gubJ1g5xCeaeHnJA+i3P LmGabg3tjRbQJvPRtxBk9mo= X-Google-Smtp-Source: ABdhPJyIqTaHQNzt0lcapjbVHPIez7fzOIuNlwCrM72D7rUinqqCiwyN1D3WzBnzIq4SMu3LBvghPg== X-Received: by 2002:a2e:5d7:: with SMTP id 206mr5031591ljf.278.1619957823925; Sun, 02 May 2021 05:17:03 -0700 (PDT) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id t21sm898535ljh.84.2021.05.02.05.17.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 05:17:03 -0700 (PDT) From: Ihor Radchenko To: Ypo Subject: Re: Separator "::" -> what is it for in headlines? In-Reply-To: <883253ec-7199-f97c-0e47-2a7ffa8dfdbc@gmail.com> References: <5adcfcda-35de-8281-a1ff-18d1c95bbde6@gmail.com> <883253ec-7199-f97c-0e47-2a7ffa8dfdbc@gmail.com> X-Woof-Patch: yes Date: Sun, 02 May 2021 20:21:29 +0800 Message-ID: <87im41ba2e.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=yantar92@gmail.com; helo=mail-lj1-x236.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: Diego Zamboni , Org-mode 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=1619957947; 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=DRp80gTvwS1lejNc02+vd3TeIcjCeHODYugzo9zIUDI=; b=FYSMZyYLriqIqI3m6IeX3JtxtS5p2d2dAD/9OSm+4ZHmOm4k5aUSX5LyWiziY/b22TzarL mt9B4Arm8YZaV3AEBaeiyKgWb7m65/ZlF/g6e2gzdYHprCfPrfarVnm9OwOyWLh1MD3yue GzvnBP6Zf0sP5YkEaaSmfbE0BReHXOOck7NoobJpm8UZuqnK+YhD/SGLEsn79+9ynCqPTS KSz4RmN0ecfOs6mrXzIwIzQfIYm18LX325RKJXRxpQobbEYGFFLepYESgBdOHo54Ik25Im qqgWeYF6GivW274/9GkvNUOhtq+I66AmcCv0lkiB6n2BequfRW00VWPXCeOFcg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619957947; a=rsa-sha256; cv=none; b=iELLHg0NjKWdpBk8KbABSGyvZawFa4lTwE6TbsjQIM+LsU1jth6rEjEfsbH/eMEduF1v9v Xdk5xBVKr9PihGDZ2emhpm8TcbgkzXGZCllMyfgvT3JHiZPpSeTqZ0vvcxuO8dTeCSR5zE vcM58JtLxzvcx7UdcZx5l6K0wtNnHmZIsbQLO2YzYv+nFqBEj/QvcXTMHWXtHQi332dZRg BMRBEFEhhSyTJdL6uNRdQV07WKX+8zoSwVkdOoPvvlSp63axfFaB8eBRIedmqiz+K/gGLl xmCewsG2iIFL2pAHAnG0K5l56lAaonbs0Ijd48tlfR+rVg7n5NVX4tYDA/Js7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Ayz5Dpod; dmarc=pass (policy=none) header.from=gmail.com; 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=pass header.d=gmail.com header.s=20161025 header.b=Ayz5Dpod; dmarc=pass (policy=none) header.from=gmail.com; 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: 0C9FE24323 X-Spam-Score: -0.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: JY32qEcyFaWW --=-=-= Content-Type: text/plain Ypo writes: > Same issue: > * *To **the left of* :: it's bold I can reproduce. The issue appears only in level 1 headlines because of wrong regexp in font-lock-keywords. The attach patch should fix the problem. Best, Ihor --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Fix-description-list-item-regexp-when-fontifying-ite.patch >From 791471a5f28723f5d3b34a9345795e0f2902b9b6 Mon Sep 17 00:00:00 2001 Message-Id: <791471a5f28723f5d3b34a9345795e0f2902b9b6.1619957998.git.yantar92@gmail.com> From: Ihor Radchenko Date: Sun, 2 May 2021 20:16:44 +0800 Subject: [PATCH] Fix description list item regexp when fontifying "*" items * lisp/org.el (org-set-font-lock-defaults): Avoid fontifying headlines with "::" as description list items. Lists can start with "*", but "*" must not be at the beginning of line. Old regexp did not require whitespace before "*" in description list items. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 5cc37a57e..53ff5d463 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5582,7 +5582,7 @@ (defun org-set-font-lock-defaults () '("\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]" (0 (org-get-checkbox-statistics-face) prepend))) ;; Description list items - '("^[ \t]*[-+*][ \t]+\\(.*?[ \t]+::\\)\\([ \t]+\\|$\\)" + '("\\(?:^[ \t]*[-+]\\|^[ \t]+[*]\\)[ \t]+\\(.*?[ \t]+::\\)\\([ \t]+\\|$\\)" 1 'org-list-dt prepend) ;; Inline export snippets '("\\(@@\\)\\([a-z-]+:\\).*?\\(@@\\)" -- 2.26.3 --=-=-=--