From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oJZXDaVgLGCiBAAA0tVLHw (envelope-from ) for ; Wed, 17 Feb 2021 00:17:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SJgCCaVgLGCVOgAAbx9fmQ (envelope-from ) for ; Wed, 17 Feb 2021 00:17:41 +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 BD895158E9 for ; Wed, 17 Feb 2021 01:17:40 +0100 (CET) Received: from localhost ([::1]:59846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCAXD-0003NE-UU for larch@yhetil.org; Tue, 16 Feb 2021 19:17:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCAWj-0003Ml-P2 for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 19:17:11 -0500 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:51363) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCAWh-0006am-GZ for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 19:17:09 -0500 Received: by mail-pj1-x102c.google.com with SMTP id fa16so368184pjb.1 for ; Tue, 16 Feb 2021 16:17:07 -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=GeOk40ihrhlpbDOV54sicvV0eA1keUA3zP34WnVz+8k=; b=Ol7VngHUi6kiaxMKwDYQ0XYwiNjsp0bqt3B28b9NSkDjJ2xFh2mtkiANyeS6oNBd7S 6Q0FD2+D97FKpgtL4nbgqSW4+zef1sdpcr9B1Uss2vRCrHsnBLV0RQBPNLVr+rkYtW8C UyseB8JJ15zf/TyXxIcARd3wRqaC5F608rPrB13oIEaw1H1cmptXwqsTOMrM2l67FHm3 yvVkzXuDrsUV0MkcHIg7HqZsLI4RCp3uSfoag+3Vgnqj4BNwqmX0KhjaTzIpzQDF5Jh4 5UfGMZmKyIP4cLP+wmUn5aVVODgq4Dgdbze6bKpgEYgfU7y8g8kaGG8+SfBlzU929lgQ z/Jw== 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=GeOk40ihrhlpbDOV54sicvV0eA1keUA3zP34WnVz+8k=; b=mm9/hc6M3yiu+BXeFrF8sTH/hvnuL765G9iaHzWKhORVBvDwlkLh+fv8yvGfuuEYps V7Sx2DD/tq8TAYxmpLjav/XmkvXLDj6zWFSU8pkFFHMb+3UnZzt8rzWnsb2mh+AGfTRR wXXeT2gSna1NrPBuoiHXVMR7yJqXdsm7j+6FtuQU/9hN4xYCMfgrv8ewDZa5kc8b2WHv 66u5/4rFCiqH5zo3w5/mD3FoAxV3eVWLYmR8ZNi87b1JcDKVlbDeXCMT5czg0UPIfGp1 b/uYsK/TAMIjGzdPNfuBQejfG8xARzzDYb69AfZ3VhXhk70AIzlwh1MHzlCKO3tyYDWo o+ig== X-Gm-Message-State: AOAM530vlOUk4x632LA60fABvKrFLoh9HOq4JuCgmFyh2FjOJIUSKREs 9ThdaAacGkYpCaJIcb7nmHgfDMut2ZE= X-Google-Smtp-Source: ABdhPJzUr9o1yRNret4M5YAdcJFJiHpbIrf33PyI8z5ytGTJstoDbb7MgPR71KbmwSPW6yZ4tNKRWQ== X-Received: by 2002:a17:90a:4e84:: with SMTP id o4mr6372582pjh.117.1613521025899; Tue, 16 Feb 2021 16:17:05 -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 125sm114746pfu.7.2021.02.16.16.17.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 16:17:05 -0800 (PST) References: <87tuqbpq1s.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 11:09:26 +1100 In-reply-to: Message-ID: <87czwzpmyp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x102c.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=Ol7VngHU; 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: BD895158E9 X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: i7sNXcdhDj7P 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