From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 WN21FIx4uWODjAAAbAwnHQ (envelope-from ) for ; Sat, 07 Jan 2023 14:50:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0OzEFIx4uWPrWgEA9RJhRA (envelope-from ) for ; Sat, 07 Jan 2023 14:50:04 +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 08C7F294FB for ; Sat, 7 Jan 2023 14:50:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pE9Zi-0000jw-73; Sat, 07 Jan 2023 08:49:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pE9Zf-0000jh-IV for emacs-orgmode@gnu.org; Sat, 07 Jan 2023 08:49:28 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pE9Zd-00010K-KZ for emacs-orgmode@gnu.org; Sat, 07 Jan 2023 08:49:26 -0500 Received: by mail-wr1-x42f.google.com with SMTP id bk16so3656155wrb.11 for ; Sat, 07 Jan 2023 05:49:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=lok06hfJO7v6l/W63Rj4eh7STzvVxfmAZUilba7qElI=; b=DAc/yI4UBwzoHmiRgt7eEQOTi/uuT0qCQreEzcb0L2edc2lRpLxTpQaxDsx/ogS7C1 Ei68HBFiUsyCWa8uT2gPjCPZQR3f7WvX/4D/KHsUxQ8XChKSDIgMsH8poCmnTvEdeoem 7fcfWdbirg1ZWCtBwYB8JHJ2dApRyetzY6QpqhJh6HsGHS19R8axj3aH+XRGSnASMRU4 Pqec2In4PnpeA9Hr0mJ52D7AQewNdOs+XlDYyzmS9U8kRMOdNszifX8lTqpmmC9BamKw peNPuf6b3xPvrocqOGv9A1QhB9cDJFt91F+SHFCn8quRrXZRodK4OeO+4z8PwFgOtE+J wI4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lok06hfJO7v6l/W63Rj4eh7STzvVxfmAZUilba7qElI=; b=CF5/Dbazia7WhCj1ks3tP+h4IB9OT0+z36319mt56ApuODrGF0y7mje2HUnG/aAfBN EFSgJDf5OWMr9PZy+985Yzv9zH5OsAkg/8Oz5h66Fiv03C52vxvTM2lb4BKgsNzqRV2q 2/WuiPlyuv7hSey1e6G1O/Urv2G/mX+Ak7jBtD4jhAkNI2v7PMywPOfUDsFfp7bI9064 mmdzLVvwtR9ZJ4w4188OJyade2HFGGPH0CFO0MuI+gGtlm38K2qpS8skx7lwsobSdAfN OLVorYZ3i2dhte2OUyAUcjbgSHjg9ifth03og5uyrz7ywyrVQFjdMefFuE505L9KvZu8 hyXQ== X-Gm-Message-State: AFqh2krbqrJmY1kLFy6jlqUo699rCthU7VkpaFmYtWUNv/oa90rLqPj8 XZVR4EneLCRPyFwRwnFJEHD+2q+kmtY= X-Google-Smtp-Source: AMrXdXvelhfB/eInfP22RzpuE1IVwSckcEYRu4ds0hAjeyG7utbF1ZaiVQOq65raG2eACBiLXYCEgQ== X-Received: by 2002:adf:de08:0:b0:274:8208:7987 with SMTP id b8-20020adfde08000000b0027482087987mr32864813wrm.4.1673099363475; Sat, 07 Jan 2023 05:49:23 -0800 (PST) Received: from Home-Mac ([141.226.11.40]) by smtp.gmail.com with ESMTPSA id w6-20020adfd4c6000000b0027cb20605e3sm3785226wrk.105.2023.01.07.05.49.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Jan 2023 05:49:22 -0800 (PST) From: Daniel Fleischer To: Ihor Radchenko Cc: Justin Silverman , emacs-orgmode@gnu.org Subject: Re: [BUG] issue with texmathp [9.6 (release_9.6-22-g78d283 @ /home/jds6696/.emacs.d/straight/build/org-mode/)] In-Reply-To: <87ilhimvvo.fsf@localhost> (Ihor Radchenko's message of "Sat, 07 Jan 2023 11:23:07 +0000") References: <87v8mktt38.fsf@gmail.com> <878rjfsj9o.fsf@localhost> <874jtzhypq.fsf@gmail.com> <87tu1yqu3l.fsf@localhost> <87ilhimvvo.fsf@localhost> Date: Sat, 07 Jan 2023 15:49:20 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=danflscr@gmail.com; helo=mail-wr1-x42f.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.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673099404; a=rsa-sha256; cv=none; b=HsM/DNOrff6ra8MKf7+CkvaI810/cKTfyjLOcHnVBp8U15eSsHeTlMzji72XPJax+s4Vtu 0ZITspgWRm/UMbMtWzyHlCES1PnzyUQ8kesHmOlbCxGO25y4MweN3jU60pjs36HoABm0eV Iblt0vQBYQT8dqHarU83T3ix/81P0htNXtgSz56AcxcscH4o7U1jBt/hEoVY0jrSPmxtMY yjC5DxQA4oFOH0eELpOaTf2ooPJMGde/kss0Lfxsv22z07mxEHKAB6+BqtfvLjN2Ji0gGo PB+PyvKrjzStmF5YfLMyp6x8SqzrHT1X20e3oj0UuHNBAivjvdd66juKKWPMDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="DAc/yI4U"; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673099404; 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=lok06hfJO7v6l/W63Rj4eh7STzvVxfmAZUilba7qElI=; b=YusJLxdtKJ0+X6b/FrJ8Bz7ZgV89I7abbuXOj6gTl+w0VUmbyJn7wuTexHXlebaXL/9b/R PDuvwCSaccmi0fTbNiD+ONuUzWmkfrTeLTN70WLFeMJVKzOcbFU7CoCeIWMwyToi7sQV9I +V4IoqMjKG02W9H1FX6vORWM9ohLuAnaIHHMWJoiwUo6lb9bD7RmiCFwDtuVouzpLzEzrD lHu5qcdsWnyMHvhksEFi5sNGPI6NLsuCaBNfGrB0hSBDzs6eomnNkaCoQLV5msYcZw7qp3 tW0dt/FERY/bban6uPASiW2MPOB2Hue7oHEsq41NseoWo2sgSgESrygkS1z9/A== X-Spam-Score: -4.68 X-Migadu-Queue-Id: 08C7F294FB Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="DAc/yI4U"; 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"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.68 X-TUID: DRn4lH6eTsVA Ihor Radchenko writes: > Can you try to test the attached patch? Looks good. Now these work again: `cdlatex-dollar`, inserting symbols using ` outside math environments and inserting cdlatex environments with completion also outside math environments. Need to make sure the issue of the OP didn't regress. BTW, I haven't follow any discussions about org syntax and math environments inside org (the use of \...[\] instead $...$ etc.) These usecases I mentioned are what I'm used to and perhaps they are not consistent with changes made to the org syntax, demanding every math should be inside a math environment for easier parsing and you still managed to solve that without all the previous regexps. Thank you, -- Daniel Fleischer