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 1EUfEKhqLGCKWgAA0tVLHw (envelope-from ) for ; Wed, 17 Feb 2021 01:00:24 +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 4IVrC6hqLGA2LQAAB5/wlQ (envelope-from ) for ; Wed, 17 Feb 2021 01:00:24 +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 9620B16920 for ; Wed, 17 Feb 2021 02:00:23 +0100 (CET) Received: from localhost ([::1]:53678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCBCS-00066v-Ll for larch@yhetil.org; Tue, 16 Feb 2021 20:00:16 -0500 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 1lCBBY-00066p-HA for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 19:59:20 -0500 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]:47015) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCBBW-0002un-RI for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 19:59:20 -0500 Received: by mail-lj1-x230.google.com with SMTP id b16so14108465lji.13 for ; Tue, 16 Feb 2021 16:59:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9IGUd8qqz2rJ6FRTsRdc7cBtuQlxNvkmMCS8y7wJYFs=; b=VUrGAfH9VnbfAT4ZE6mkZx34P0/G08o4wS48hk941BKc1f6KxJr7nK054Xg5WI5lP3 6CS2BoEvPuOE/AUD6bAcuXCRH6WW11UTTTv5IfyC24lDRXr/ILTdvvPLH6Fqq1cBtKkY oYZ6Ln7pUQRaVPHXqJ4BcdL0hbE4iHVixCKAlPtxG7t9CTRoUX+6d3+f9oxfsh0tjaAL zffsTaFE92fO/qnqX0Wv0vR0tCGxqqhcMjQ/B7uToDNMO5ftscWPPUtyJvjEhsjUFclp IrmQGP+53sTQfZbFycef0fom1TqMDexB+2RCfbLxEjvnhEF4PYC5oN8H59NFecPZ6ruu rdOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9IGUd8qqz2rJ6FRTsRdc7cBtuQlxNvkmMCS8y7wJYFs=; b=imXb6seV0GNark/oHnfD6Yy6UmD8BgojFvVWmW0sFhfVyhBpn3Bo+k17ibaIefqvet 1UhfRfLK0dT+MC42nKvVg19rCXYCaJV3pyQrYSJ3ijI3cN4HNb1MOiLON/ayszFpEyIM hlfiNZ+ZZxwfGVw4VghwtgtaC8Fwp+d+6/ydT8hBdurpHws9kepg0J4satwIx3Nk12hc c6g+PKb4C1u8rxnqAu/b45B3MF5yA9qnPeNwaYCFsp6pazWf69wZlaObOFwUVs71S7PF sbocvqVimv2Q1pqKsWrn2mf9jK2fM7Yo3t2X6BB1FuseC4lz/5+hzdlHvMa2ijmQvibg gx4Q== X-Gm-Message-State: AOAM533oJEZPra9xvCm4USTbcg4xdrzlLEnzx/br0MJYNAmESdf5T091 mlwAYAzyYBjgO1XNo6MBD8ro5yfqhQU920d06BU= X-Google-Smtp-Source: ABdhPJzJEpviLqS+aV/vsTXRcwTeUZeq/+llPAuUVxHvmHOsoTlc7xRnCmMDVU1oRFuQRgB7vPokIxBjpFGMIxcEdoA= X-Received: by 2002:a2e:b16d:: with SMTP id a13mr13818990ljm.39.1613523557092; Tue, 16 Feb 2021 16:59:17 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:6504:40c8:0:0:0:0 with HTTP; Tue, 16 Feb 2021 16:59:16 -0800 (PST) In-Reply-To: <87czwzpmyp.fsf@gmail.com> References: <87tuqbpq1s.fsf@gmail.com> <87czwzpmyp.fsf@gmail.com> From: Samuel Wales Date: Tue, 16 Feb 2021 17:59:16 -0700 Message-ID: Subject: Re: [bug] org-do-emphasis-faces breaks with incomplete emphasis To: Tim Cross Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=samologist@gmail.com; helo=mail-lj1-x230.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=VUrGAfH9; 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: 9620B16920 X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: p1oBX3G3ib2Y hi tim, tanks for your replies. 1. the same problem occurs without any * in the buffer. 2. the emphasis regexps are supposed to be limited to a few lines. 3. they are also supposed to not try to match dissimilar delimiiters. 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 am limited in coputer ue and will have to stop. tahnks for your replies. On 2/16/21, Tim Cross wrote: > > Samuel Wales writes: > >> to answer your question: i expected it to just skip the non-emphasis. >> not emphasizing the rest of the buffer seemed quite unusual. >> > > I guess the problem is the same - how does org know when it is just a * > and when it is the beginning of some emphasis text? We could make it > that such markup only works on words, allowing the code to only consider > two * as emphasis if there are no spaces, otherwise treat as just a *, > but that would be inconvenient when you want to emphasis a phrase or a > couple of words. We could change the regexp to only consider it an > emphasis block if both markers are on the same line, but again, > potentially inconvenient and it would fail for those who use visual-line > mode where there paragraphs are just 1 long line. > > In short, can understand what your saying, but not sure there is a > viable fix which doesn't have a heap of other consequences. Basically, > if you want to use the 'markup' characters as normal characters, you > need to either escape them or put them inside a verbatim directive. > > -- > Tim Cross > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html