From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yC6zBVxyLGDTfwAA0tVLHw (envelope-from ) for ; Wed, 17 Feb 2021 01:33:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id AAZ2AVxyLGAFQgAAB5/wlQ (envelope-from ) for ; Wed, 17 Feb 2021 01:33:16 +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 7E5BD174CD for ; Wed, 17 Feb 2021 02:33:15 +0100 (CET) Received: from localhost ([::1]:53140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCBiM-00039F-8I for larch@yhetil.org; Tue, 16 Feb 2021 20:33:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCBfF-0001Y4-EZ for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 20:30:02 -0500 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:47019) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCBfB-0006d5-Gn for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 20:30:01 -0500 Received: by mail-pg1-x52b.google.com with SMTP id 75so4081183pgf.13 for ; Tue, 16 Feb 2021 17:29:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=L5hzPhrb6724UJpfe99IgD633HyVSVN9LvTiNpm+oow=; b=dDdbXgZDsFlwERCcfGu0LDmyG9H+J3bBGmyvrma8tzCjjhIadQ+SzVUMuVRu6ki+sH oGY7Y9hgJuBuvyv793+PyKASvT5emfzYXz06jdUxZ2ou/olYbEed4ofOa5LOZc/ye3Eo Nv+niAV3MV0BJ/tnp2ltu6vIvbBMQ6+ztQsBtJRii7xM31i8phv5C7kevAlWwaI59Tby C1FzfxMt2AjGxYnBW9PwASim7ArM6XPEP4LDRfZkotCFOdiuMNxuu3D52QbyGPgIWSpN 0tvzMw47OhOZBNILuAkIVVq4Tz+gkvX4/K066RHmUax67+nkBaE/CoWq6G+HbFAIVnKA PAjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=L5hzPhrb6724UJpfe99IgD633HyVSVN9LvTiNpm+oow=; b=PrMNQmnZIhbF8P/XOvpa1Vm9zyLasCkPhzirHqbzqCwiqSZASlOAvezPfVfmk5GP5D 3PAX8oKYLWvoeqqJewaVpIqBcM6kAVEWi59dqFVUbw7atJrvju0ayJOcWmd6RPnlollr HCgsbhez7kk/hjNQqBuaf94iaE95HEBtOLP15ZyyfvXYtyUk/k9VPzCUx5P2vNZ8Wmlj tCfr8faKGgITfeYKzPMcBYV9wTR9M+BuNYvHxcVAP4m9PhbfopVm05VTHYhzmjVAjWGR SEqRyzZR5s5KdhFyf8hUXAxfj7cM57DXm5rUudcHXA8xEgdNOnOEmjb4qBX3OiYugbGg AXag== X-Gm-Message-State: AOAM5315fsNExsncuFxhVI1wlhFHKtRe+jPgLRCQks/gxc5me1XhcJgj QAfVRiC0q+wdh4R48C8JmE2tUsVddB4= X-Google-Smtp-Source: ABdhPJzZjNwjgY9LkFnV5OkA9+knMvwvFNWGVfhfPIdLeB7k/8OdCN8YIx7CjCQcmxuZGlmEDfi6yg== X-Received: by 2002:a65:620f:: with SMTP id d15mr21238348pgv.218.1613525395010; Tue, 16 Feb 2021 17:29:55 -0800 (PST) Received: from tim-desktop (106-69-135-243.dyn.iinet.net.au. [106.69.135.243]) by smtp.gmail.com with ESMTPSA id y7sm181965pfl.127.2021.02.16.17.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 17:29:54 -0800 (PST) References: <87tuqbpq1s.fsf@gmail.com> <87czwzpmyp.fsf@gmail.com> User-agent: mu4e 1.5.8; emacs 27.1.91 From: Tim Cross To: Samuel Wales Subject: Re: [bug] org-do-emphasis-faces breaks with incomplete emphasis Date: Wed, 17 Feb 2021 12:06:20 +1100 In-reply-to: Message-ID: <877dn7pjlc.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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 X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=dDdbXgZD; 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: 7E5BD174CD X-Spam-Score: -3.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: N6A746Eqqetb Samuel Wales writes: > hi tim, > > tanks for your replies. > > 1. the same problem occurs without any * in the buffer. It will occur with any of the markup special characters e.g. *, =, _, +, / > > 2. the emphasis regexps are supposed to be limited to a few lines. Are they? What is 'a few'? This also won't work if you use visual-line-mode and don't use auto-fill (as your paragraphs are then just one long line). > > 3. they are also supposed to not try to match dissimilar delimiiters. > Not quite sure what you mean here. > the problem is that > > hi =something > > stops all emphasis of all types in the entire rest of hte bguffer even > if the buyffer contains many lines. this sems unusual to me. > > it does not break anything befofre it. > > so i think your hypothesis of what i am talking about might possibly > not match what i am talking about at all. > I'm not disagreeing with what your saying. I think the reason the rest of the file doesn't get parsed correctly is because the single markup character has made the syntax inconsistent and broken. The problem is I don't think there is a good fix for this which doesn't introduce other problems. If the regexp which does the matching is supposed to limit its search to just a specific number of lines, then perhaps it is broken. However, I'm not sure what 'a few lines' really means (2?, 5?, 10?). I also know from past experience that trying to define font-lock matches which work in such a way is complex, error prone and often results in a considerable performance hit. Bottom line, if you want to use the characters reserved for markup purposes as just plain characters, you have to somehow quote them or mark them as being 'verbatim' characters. I do think it would be useful to have something in the manual on this under the markup section. -- Tim Cross