From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gB7tCtCqdmEKeAEAgWs5BA (envelope-from ) for ; Mon, 25 Oct 2021 15:02:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qFmEBtCqdmFEKQAAbx9fmQ (envelope-from ) for ; Mon, 25 Oct 2021 13:02:08 +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 B2528EA89 for ; Mon, 25 Oct 2021 15:02:07 +0200 (CEST) Received: from localhost ([::1]:36932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mezc6-0005nS-IS for larch@yhetil.org; Mon, 25 Oct 2021 09:02:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mezWo-00087q-Uk for emacs-orgmode@gnu.org; Mon, 25 Oct 2021 08:56:38 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:35463) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mezWl-0001Qc-ON; Mon, 25 Oct 2021 08:56:37 -0400 Received: by mail-pf1-x42e.google.com with SMTP id l203so5946333pfd.2; Mon, 25 Oct 2021 05:56:34 -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=dVhsv2P/pqtZr1N0uo9WhtiW7hGlfwE8nfO8irCtGAQ=; b=YWEp2qpnGfhr1PObhaza4vHqSgFA6/sAl20S1pQ5qC0/ws1R5nE0BQHeQrDFDthSOs 5h5dGgaGPdgo4frfDCZFYxctm6GT/h7pzVk3pzbIomcZc4P/M7zPLZnyD0+abM8vt0uG cYnzqB62ZEoTQTmBdRTcL/3XmoigNU+bGUFkSfLLH/sQrBsbPo3+GL0pZXrJxl465OGx rb6yB1YiUZxwy5+r+i9ccaGfPbevjrfdOkdhu75/BPJDyt64NLFbgziT+zd3AmghIpFt pJSZlPHa6X8+78ZY8qteZ4B06866yT7vcEOzOyqw+Jb0R4tL6BemvqKtmiQ/7LS+/qn8 HNTQ== 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=dVhsv2P/pqtZr1N0uo9WhtiW7hGlfwE8nfO8irCtGAQ=; b=DXwwNKKKD9KWkgA9GpJ/8hi63Ugy1XH1zvAvwE6MNNG3wEbBuW7AVz9eT9SiBzJ9Av iTVEe+lOTCtE2ZrRq7RcK4YY8d0QgRGF8NK6DcOYrO9SVGdvNkCA35vGI5wY4pigJWMn UMyuFHejQOZcpposvaIV/phw81+J8rLXobUZjLkfGPWyTgWaQWn5FOT5CH2l4s72mG8S NULBx7MAU+y7mtI4ppDSVH9uebTaclGHHTRohwMH1+E9wlEkkV+81boGi9B+YzOCtvrD p50eeZdMHouRyASXIpERxPf/2wQwpZq0AAjMzOFyJGLJC4heqs0NxZmfmHq3XROrLjBF 1J1g== X-Gm-Message-State: AOAM530fc6K5ac6CSSlyjRWV8zlJpLe6/KtkbFzfHQIg6sGC7M+FMOLr gwwQPRuqOohCTNjXsMy/aKXjR69n4rU= X-Google-Smtp-Source: ABdhPJyCecXp6BhT43BHat6YL2j/b9yUmLEruVe0vifpZ1whW0ZY4ISMz1AAK8/4Uy45/ilWsFl1JQ== X-Received: by 2002:a05:6a00:9a2:b0:44c:b979:afe3 with SMTP id u34-20020a056a0009a200b0044cb979afe3mr17990678pfg.61.1635166592964; Mon, 25 Oct 2021 05:56:32 -0700 (PDT) Received: from localhost ([103.125.234.161]) by smtp.gmail.com with ESMTPSA id mi3sm19499402pjb.41.2021.10.25.05.56.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 05:56:32 -0700 (PDT) From: Ihor Radchenko To: Bastien Subject: Re: Bug: font-lock error with - in code-mode [9.4.6 (9.4.6-gab9f2a @ /gnu/store/2pny4z6mbi2aybgzzxz0yrzkds7hbpmq-emacs-org-9.4.6/share/emacs/site-lisp/org-9.4.6/)] In-Reply-To: <87v92gnhsv.fsf@bzg.fr> References: <87fsujp7mc.fsf@web.de> <87lf3d3w6n.fsf@localhost> <87o888oxog.fsf@gnu.org> <87ee94yqnl.fsf@localhost> <87v92gnhsv.fsf@bzg.fr> Date: Mon, 25 Oct 2021 20:57:57 +0800 Message-ID: <87r1c99s8a.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42e.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: "Dr. Arne Babenhauserheide" , 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=1635166927; 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=dVhsv2P/pqtZr1N0uo9WhtiW7hGlfwE8nfO8irCtGAQ=; b=KW7Cce+XF6Pr7pkBQQDnowVbQ8pnhwEpO5aKYVWouIYp14aJkB7983QhW+wBEh/e1MfmX4 ydKCgDHSEzhgBgWRDuYH8YrD1xku8E5ZOc+9TLYjbMOSKfnrxxnP48QWYkkB9ruaS9sKoa 3e9F7LtRhABgh7PJXaFxXUuAy8OMULYKqu3+1+Rv0K6Ic3oI+ppYA2gaEVIsbukRMaZXH9 nNVfiKSxu1CcXxR4McPgMQw/dN5HuQu1FYWuL0pGPPK6qIE/dg07mCy4wx7MCYEKqVLukf dqJDxuP+SgYpIU+46sD7g1Iri+BCUDZwTqAzHMJsMbQIdlYQtsnuxY4nNDTYKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635166927; a=rsa-sha256; cv=none; b=Mbk0HcRE9IGUhIYQU8ftaXe0JYWaHEBEHDbWKWp2MrmuFyntg2zmVXqtgNoBaeqIYOfsur o23PpFyjsrt5Lj6YpINdJwagFe+a5Emn2OEzoXCCKVni1wv/aM9adbw1aM0DWr17z6asnM XUuovVjlfi3INN2nLEYl0I3uiKfqGe75wGEXzgFFkaMft7cgU+bhtkFrXKC/704axm11oN 1MI2vZ54ZtLBwzzElRouNlMjtrKlMPnUoNTb/RrpKy27umwszwJpS4SEGzcnl7uPeksWyX PoX2SGFzA4B5Vn+9/cX2NAdBwNXU+bNC3/Ye01mAbZNd9tYRLMMSsSpg/k9DDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YWEp2qpn; 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: -3.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YWEp2qpn; 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: B2528EA89 X-Spam-Score: -3.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: KthZegwsco4z Bastien writes: > Thanks! > > Ihor Radchenko writes: > >> Should I also merge main with bugfix every time? > > You should merge bugfix into main, yes (but not main into bugfix.) This patch is actually not good. It breaks nested emphasis like /italic *bold* more italic/ and some other cases [1]. I feel that a proper fix should leverage org-element parser API to determine the emphasis boundaries. However, I am not sure about performance. I am thinking to revert the patch and reopen (BTW, how to do it in Woof!?) this bug report for now. WDYT? [1] https://orgmode.org/list/875yu4pc9m.fsf@localhost Best, Ihor