From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UMW9GHpa+WGYdQAAgWs5BA (envelope-from ) for ; Tue, 01 Feb 2022 17:06:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8DYZFXpa+WHoRgAAauVa8A (envelope-from ) for ; Tue, 01 Feb 2022 17:06:18 +0100 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 2A62D49640 for ; Tue, 1 Feb 2022 17:06:16 +0100 (CET) Received: from localhost ([::1]:51840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEvfb-0001iB-BJ for larch@yhetil.org; Tue, 01 Feb 2022 11:06:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEuSH-00037T-FN for emacs-orgmode@gnu.org; Tue, 01 Feb 2022 09:48:25 -0500 Received: from ciao.gmane.io ([116.202.254.214]:39356) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEuSE-0004Bv-BG for emacs-orgmode@gnu.org; Tue, 01 Feb 2022 09:48:24 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nEu7V-00019d-6D for emacs-orgmode@gnu.org; Tue, 01 Feb 2022 15:26:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: =?UTF-8?B?UmU6IFtQQVRDSF0gQWRkIHN1cHBvcnQgZm9yICTigKYkIGxhdGV4IGZy?= =?UTF-8?Q?agments_followed_by_a_dash?= Date: Tue, 1 Feb 2022 21:26:50 +0700 Message-ID: References: <874k5si6zh.fsf@ucl.ac.uk> <87r18t7fc5.fsf@localhost> <87mtjhnfd0.fsf@gmail.com> <8735l7olmj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643731576; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=cQohd3spOCUzdP41pRVru81CFdcMKLbV5DdX83zVJPk=; b=Lal8Z+X4q6EXOv6mleqnhKpjmaoA+zwjDQ4HxrwmpBhBHpKVjha/kpT1HXvw5lTD6DPWEG EeRkd4dav0oOeCTCTGtytvIgeYGQUozUVxCVxUL6Int8vLqiTTFwxQwKUtEdX6HTpIR/m7 7FUJi+llUr9/3RR8lpSRdw5n2KZsqrR0sK22fLGkvqFdXxH/RlhLT0Zpp/gfeK3/QeXUQt 4WOAX/Llz2Wn6AjOYc3dkkaqgzV4dN7qXjotWhR1bDz8QBXOto0iddqGwVKUe0y+48aBXi 8ooOEjhMZFoePoeA0fsATcF0C9SIhnFk9y7BU+TKX/NQFV15dxFhgX9JjiYzGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643731576; a=rsa-sha256; cv=none; b=Dkh3buknS6JLKrNISU7lnBH9ZOGjG1Pr8xTDMZdpfyo9+n4BODxlQISy64E9+osol3eRzm KpRRMeBrdwvHkL+VrLg2O4KpIIqkE8SRiZvqKGgG68EzEDcTm34gV91HTBR2eNsNx3S/sX 0iikkbmWiBBpGrphrN8UdmiBb+vY8Z1s7HG1KFd8D5IyqXnUNHWtD6IPk3C2u4XK8McifE g9jtTQQrOwDQ5opNAIPswXyUBM1LylXvyf5NNUgS4Np2ia9MkOPrI+SXGabiLUi27NEDKV X/OqUXBbJnBpf0CyqjcpACh4I6hgAKMjtiV/qsCL2iUydZeWZDc/R9gV0UEUXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: -1.53 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 2A62D49640 X-Spam-Score: -1.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: n+sMp1FNX+Lb manual states: > >> Text within the usual LaTeX math delimiters. To avoid conflicts with >> currency specifications, single ‘$’ characters are only recognized as >> math delimiters if the enclosed text contains at most two line breaks, >> is directly attached to the ‘$’ characters with no whitespace in >> between, and if the closing ‘$’ is followed by whitespace, punctuation >> or a dash. For the other delimiters, there is no such restriction, so >      ^^^^^^ >> when in doubt, use ‘\(...\)’ as inline math delimiters. It is even more interesting. Support of dash likely was unintentionally lost in the following commit: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6779f8f424883ffd202e24cbd8bb4e241db294b0 that generalizes handling of punctuation, unfortunately dash and apostrophe are not always belong to punctuation symbols in *text* modes. That commit even updates manual to a less precise phrase, however .texi file only, so the change was lost. Nicolas later restored apostrophe in the commit c0369a798470763f8f3c69cf2079c3a194635feb > False positive with the proposed patch: > > > Balance decreased from $10 to negative value ($-2 approximately) > > certainly it is more rare than $n$-th valid case. > >> Tim, as mentioned before I’m strongly in favour of a ~half decade >> transition Half of decade already passed since dash after currency symbol was broken so maybe it is better to fix current state by updating the manual (including bugfix branch) and by adding some tests. P.S. It is deja vu, I almost certainly saw quite recent discussions whether punctuation may be handled in some regexps in more generic way. Consequences may be similar in respect to characters that are almost punctuation...