From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kHLKGR0742I+fwEAbAwnHQ (envelope-from ) for ; Fri, 29 Jul 2022 03:42:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IE7nGB0742IKQAEAG6o9tA (envelope-from ) for ; Fri, 29 Jul 2022 03:42:53 +0200 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 16822DD16 for ; Fri, 29 Jul 2022 03:42:53 +0200 (CEST) Received: from localhost ([::1]:46112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHF1g-0003Rh-11 for larch@yhetil.org; Thu, 28 Jul 2022 21:42:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHF13-0003Qq-IF for emacs-orgmode@gnu.org; Thu, 28 Jul 2022 21:42:13 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:43566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHF12-0002Il-5Q for emacs-orgmode@gnu.org; Thu, 28 Jul 2022 21:42:13 -0400 Received: by mail-pl1-x631.google.com with SMTP id y15so3292003plp.10 for ; Thu, 28 Jul 2022 18:42:11 -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=or6KC4kZdpwSR2sXLIiugLTwtNxG27LGZ+yWSVOSZIs=; b=VIDiugwpQj9ykurpl11rVixRJ5bMk6FeB9pdNGJz3j9u0I1qa1Fl40S0wv2ike9XCi wdxVvUGdC2dlDXDKhRJB9IByNMwjIFLkKUcMO7bs7/IVesDgfUrRdaQNdAeXS17dYA32 DvMQ6UODt6asLN/JOSNJWaPHPVdVU2vgMBoTc/hnEn5+nl012DcZ0nzhLWHD6Rlj4xjH 2AYz6SxvbIGLYkMB21RfgFNqgFomI1nl28P6IzzbNI8H7rc8Nzj8k1bgiyyvZ0Zq8xtk JPwYC3XMQf2L9z7c8OYcVgfUADpvy8zgBEos22bk3kqoM0hBUBItOhghZoglT+7PKjXG 3Xcw== 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=or6KC4kZdpwSR2sXLIiugLTwtNxG27LGZ+yWSVOSZIs=; b=DU+EvHYSph9PjXXg+EigXs1ww1KpqseGuALJdrJQBVbgbRm+V8pA/pge2bTpGgWV9+ e3Mwy68b6Y6pLdlN0JOlN+Kgjc6FKYgRFHFMyDYSJxQGwZuziytrsp+hfKCfHz0UVMgJ yqDM6M+HSEXbuZ0iyUheaXUgyXOoX40ri1Yzu8jdf6Y5EamQgXkup6lWsTSsmK+BLckk Gg7vRqyehb0vKEmcGYe6qXLYx5pGn5M8OY3kO4ZgW7qHXVCFRoUoWX1XLW28CzaaR+WH YnsY2SJlu3cQtPiZ97VpN7NkPwyke+cM3J9K4Wwsk3/AjFQutNoCmNcc/+s3CRQ4J7Qi 22cw== X-Gm-Message-State: ACgBeo1RI4Gj37Nt+on3fnL5Rc5gBpXGJ6iZw+KytcBp+HOZZeT1oxII Wi4Mgf8U1R1SUUB0orHN7hA= X-Google-Smtp-Source: AA6agR5RZHA7TbR9afuzZYf4aiw8CoQT+0IFib8mXKi2F1Qb6WU8QU6R82EBTuYMwy6T2XVeqKSFrw== X-Received: by 2002:a17:902:d2d1:b0:16c:43fb:a363 with SMTP id n17-20020a170902d2d100b0016c43fba363mr1536540plc.8.1659058930434; Thu, 28 Jul 2022 18:42:10 -0700 (PDT) Received: from localhost ([111.20.225.131]) by smtp.gmail.com with ESMTPSA id r24-20020aa79638000000b005289798ecc3sm1428029pfg.183.2022.07.28.18.42.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 18:42:09 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Add new entity \-- serving as markup separator/escape symbol In-Reply-To: References: <87r128d5pp.fsf@localhost> <80f0990042a564556cc6b047a94f7e9dddf5a280.camel@outlook.com> <87v8rkav2x.fsf@localhost> <87mtct9y1f.fsf@localhost> Date: Fri, 29 Jul 2022 09:43:12 +0800 Message-ID: <87mtcsn173.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=yantar92@gmail.com; helo=mail-pl1-x631.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659058973; 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=or6KC4kZdpwSR2sXLIiugLTwtNxG27LGZ+yWSVOSZIs=; b=cfQQefJQtHR+61HwSuvGge5p5kz8u2VhQgV+ddjJurZUYdh7/ucjyCDXrihhFEBvhTry4W LPxUeswecgXFQ5IRzkNa4dZ6Dx1pvRbkSVJ2MSJ39bS2QnsEYBnH0SMwaBSxyKwKn47D6B qwiG5NrSP+/IGZuL0ee1m0a/Z/D300iJDVIE2Bia2xUxnRb0FTdNNbSdwAcUfnpz5uBYmK 5d87yQaSaN7f+TQEUYRE6/sNiZswSvazSCB7QhcB3LyWnb287aTGHxmySMGq/Ax1bMqczY IP6NUcFGAf45gtwK3QGHDsqsnIsdoEV+ttZ3GRmYwatPEC/3QoqnksriHw6gyg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659058973; a=rsa-sha256; cv=none; b=mPdV8dajg5BRL4zuavc0RwU+1CJUKnqg30r/G7e6IcoLPqKp7FWIDE4lyOsuTaemUo9vK0 v5plEsBbGspjetWiSnguYYTK9A/jjUtHJTe3AVjtfb8BS5q1i4xsmufgvCHHAh5jHuMGgH gZukYhyqxORJW/k0jdJFH8OCC/4ltjuxZibkmFAnNeygZHY2ZIPBLjV6abIqrVIds4313+ xyl0jpvWImmWS2oVCOoaDFA7+gf05Mot5UuFPwVsxJg2MOr4Jz/S1cl+m8eVrzXw6OkJgq +h0T/rHPNWl7hd9s3kLf/2vq+owsGfVz/pctGfUB51iHy38iPjyvF/2iarRcrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=VIDiugwp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=VIDiugwp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 16822DD16 X-Spam-Score: -3.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: CkDIqfnXhWra Max Nikulin writes: > The good point in your patch is that \- is still work as shy hyphen > (that, by the way, may be used in some cases instead of zero width > space: *intra*\-word). On the other hand I have managed to find a case > when your approach is not ideal: > > *\--scratch\--* > >

> ­-scratch

Well. I think that it is impossible to use the same escape construct to both force emphasis and escape it. However, we can do *scratch\--{}* which is a bit hacky, but it is the best thing I can think of without introducing two separate entities: one for forcing the markup and one for escaping the markup. In general, the proposed \-- entity is only meaningful _before_ markup characters. When it is placed after markup character, it does literally nothing. Best, Ihor