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 DBkPIAxmWWHFAwAAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 10:13:00 +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 cJAvGwxmWWH9JwAAB5/wlQ (envelope-from ) for ; Sun, 03 Oct 2021 08:13:00 +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 E0434377E2 for ; Sun, 3 Oct 2021 10:12:59 +0200 (CEST) Received: from localhost ([::1]:35116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWwcF-0000DQ-2Z for larch@yhetil.org; Sun, 03 Oct 2021 04:12:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWwHx-0001Ow-0I for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 03:52:01 -0400 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:41626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWwHv-0008JC-B1 for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 03:52:00 -0400 Received: by mail-pj1-x1029.google.com with SMTP id na16-20020a17090b4c1000b0019f5bb661f9so6201165pjb.0 for ; Sun, 03 Oct 2021 00:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=C0sEOoDXvDrdIlYzY4OLbZhxzs0tkmsUp85nCMhJaiE=; b=GflhfOc22V49OlMrpWDJGM2Tf1L2MXKbwiCqP9U3ynx08l/dg9D+YYDnFaLbc6DEor jgLvVzu4OwwM5i2Z643A5c+iwXF0yK8KuDYPEcrGSDF1w7QiJ6gwzP1AJptcaNlOCpTL 1Izzcxo8Kir72PulnZdQ5JDyIggPy9PDHjzdTU/pzSJ8WtBTbaG0NfKRsFLxWBL/OciE J23n2PYsuJYf61zFQgDOL/pfiw70OoznaYC++XKoC+PqDAcdzJzI6hI20QbIP+b0px/8 ha4sBVer16nuH/8IWBqywusCO4Js8ysBbb03QjcjO18bvaBY5QLugtk8Ky+YTs4KZyJS bhMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=C0sEOoDXvDrdIlYzY4OLbZhxzs0tkmsUp85nCMhJaiE=; b=CEzbFRiO44r219tyE+7f8Ajz10fbnkphng6756W9hkGc2lRiiLZtbH0258zLdb03q+ BMIiM3W24hz8jUBt46hPxRzkxyf+uK8WiNeakBCK3bWlVcBZpgIbs1uza7477/JuRJwW 72Gj/4DY1d6GtlpHILYCdseKnAbzPEc78x5MfdDeht6wp2JqcC0jv5yqi0dOnR+FbvDb ojAgsmU/MosA/22qWuB9B3P0iua+oLLY35QevdszP1T3gEKrmEiV50mY4hvWVn3AZb/C wflul6aIZDTut3wNPLpvyNiuIur7ygFEx4zOwB2c8KfIBP/hKzTnofTTysuwnUb0+chG 7s2Q== X-Gm-Message-State: AOAM531qQzVSIChmmcegMlLPzmNpzJguLNIX/5xe4zLXGcLMnlUJ2eB0 Jdn6SHAheNjsmp5HJe/OmTQ= X-Google-Smtp-Source: ABdhPJwYRqBcAT3KfuOeaLinsGqLl9PaZK3KEH0LBN+ehDInr4d1KvxfCuTI7g0binahUmhoeHTyHQ== X-Received: by 2002:a17:902:e80f:b0:13b:721d:f750 with SMTP id u15-20020a170902e80f00b0013b721df750mr17673416plg.18.1633247517629; Sun, 03 Oct 2021 00:51:57 -0700 (PDT) Received: from localhost ([210.3.160.226]) by smtp.gmail.com with ESMTPSA id k190sm11016203pfd.211.2021.10.03.00.51.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 00:51:56 -0700 (PDT) From: Ihor Radchenko To: alain.cochard@unistra.fr Subject: [PATCH] [O] Single opening star induces bold face if immediately preceeding inlinetask In-Reply-To: <23707.20428.546749.44853@frac.u-strasbg.fr> References: <23707.20428.546749.44853@frac.u-strasbg.fr> Date: Sun, 03 Oct 2021 15:53:14 +0800 Message-ID: <87bl467ded.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1029.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: 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=1633248779; 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=C0sEOoDXvDrdIlYzY4OLbZhxzs0tkmsUp85nCMhJaiE=; b=VYW6S8o+A0lI1V+Ezt35TrhHal/C74xnIcId/0bJTpDfyNVoShrBK9rx1kIATEG375EvDA JNfyS8hyx8QNSJO/Q9fZHnXy6jTkYlLJj1oI9ZjdQNPAKVpq4VX23NUXm8Qy1QcIhAS+Eq wcIvNzntB4LAN7wQKUfA6ZxXqV30gaYsUCXZ4Ehox4IR3d+sOEpUI6T10/fdNX3l9mN7hF lJ0n0fWg4Ho6bdq66vwcjQafZtIN2lSQRBOOjoXka1YJzq+UwOr84wcN2mlAv9TKI9i0AU Uw6K3w/JtCzYVgE19lxjjoVjdby4W32SN8wgpCzVN2nxjJfP0yOVc5rNRGSTaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633248779; a=rsa-sha256; cv=none; b=tfTqcr/IPZEmjrSDZBm/HJg0vxwgClvDYJHQtsGoyeu/6Q8b6zSPAxu0VsSBd1X8NpuxlW R2eDKY+UBThN5zPvMMuYyk9O8akQqWPo6W0OWQTJ2jzZVQFrzgVKy7D7Nti1Dt5yzg3wvz bQQXaqVNwojzhXiKs5/D8CwlLuoNxpqGq0kktW8dpGamGVefKYtPAgxGVYWdFpC0UqGtc2 AxEhuh2pRgnXdsTWUjXFmQTewn8b6YST8NmSAKJ+G6h9gNySV2i2vkqRJK1PNdzoScCirQ qokh2gw+F63LH7eiSWP8HyHeZrLQ7dcf4Hv9rUT4Mzr2uO0J6z1hAy4WJhuq7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GflhfOc2; 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: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GflhfOc2; 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: E0434377E2 X-Spam-Score: -2.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3RJ8RGOe3rBt --=-=-= Content-Type: text/plain Alain.Cochard@unistra.fr writes: > Hello. > > With this org file, the "blah" is in bold face. > > * foo > a *blah > *************** task > bar > *************** END > > I would it is a small bug. NB: If I insert a blank line before the > task, the face goes back to normal. Thanks for your report. It took a while to process, but here is the fix. Best, Ihor --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-org.el-Do-not-span-emphasis-over-inlinetask-boundari.patch >From ae325834b75944d81ad57087336ca6efa6e57480 Mon Sep 17 00:00:00 2001 Message-Id: From: Ihor Radchenko Date: Sun, 3 Oct 2021 15:48:23 +0800 Subject: [PATCH] org.el: Do not span emphasis over inlinetask boundaries * lisp/org.el (org-do-emphasis-faces): Check paragraph boundaries within emphasis even when the boundary is not starting right at the beginning of the emphasis. Fixes https://orgmode.org/list/23707.20428.546749.44853@frac.u-strasbg.fr --- lisp/org.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 3546e7edd..1551986f6 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5096,8 +5096,14 @@ (defun org-do-emphasis-faces (limit) ;; Match full emphasis markup regexp. (looking-at (if verbatim? org-verbatim-re org-emph-re)) ;; Do not span over paragraph boundaries. - (not (string-match-p org-element-paragraph-separate - (match-string 2))) + (not (save-match-data + (save-excursion + (goto-char (match-beginning 2)) + (re-search-forward org-element-paragraph-separate + (save-excursion + (goto-char (match-end 2)) + (line-end-position)) + 'noerror)))) ;; Do not span over cells in table rows. (not (and (save-match-data (org-match-line "[ \t]*|")) (string-match-p "|" (match-string 4)))))) -- 2.32.0 --=-=-=--