From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eG7GDO2vsmC7XgEAgWs5BA (envelope-from ) for ; Sat, 29 May 2021 23:19:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gDsPCO2vsmC3EAAA1q6Kng (envelope-from ) for ; Sat, 29 May 2021 21:19: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 825771ED90 for ; Sat, 29 May 2021 23:19:40 +0200 (CEST) Received: from localhost ([::1]:33696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ln6Mt-0006BJ-9U for larch@yhetil.org; Sat, 29 May 2021 17:19:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ln6MA-0006BA-4y for Emacs-orgmode@gnu.org; Sat, 29 May 2021 17:18:54 -0400 Received: from mail-vs1-xe34.google.com ([2607:f8b0:4864:20::e34]:36737) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ln6M0-0001XD-Db for Emacs-orgmode@gnu.org; Sat, 29 May 2021 17:18:53 -0400 Received: by mail-vs1-xe34.google.com with SMTP id x2so4058562vss.3 for ; Sat, 29 May 2021 14:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WWlRY/I+qXvTE0qjPBRgB1f2UrDPqIQQjDqHZ0LRePg=; b=sPmu6rSGgiAwkj19FG8zNijbv2NVIqlHEyPgs4TDGzh53kpv+SsgyUWfRfvL4+STkR UG42b2MJETA0ZWGAqzfdZgVgPUKzX7d/Tg75rwcIkNBocFmiW/PTUysAcj/Og+2Icv9g AKeh4YyA1/WySd8dwHqavt7J+djR8tegL0wAYCyL2MAXvlzt0iuCWsJWtV0hgHJLjTgO rzV8kHwliN23z5aRpJgGyoCwYaNbbjUkbhSqWiNMlpETF8NhVV1kO7jVG42J71vH3cij euRmIQVE6x0iyNxzymhsl4boe4IWCkLI7DCBsmmdm4EyAu6+x8gQaNPuF0ZKYhlcG0cm 1Phw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WWlRY/I+qXvTE0qjPBRgB1f2UrDPqIQQjDqHZ0LRePg=; b=pm8RUT5SLGJ/b53cqn+CeyE5IcLiId0bMhyaAuHjdrHzPGZcwmqrvrUDOeNlKlWQje 7clNFDnN0vTxpOVOfi0cARf6vZuXFqZMMZkWlVy8fTf3BSZPUyXcqmf9LKL8R4FvLMkA OjtBX3Sq3hHWZ/drBTZLLCY8Rrh2dUGAW+d4xVDw1MnLxi67X52aGd2xrJyz57j3chT7 1xMMijhTquhhKSYkd4/2kx6SVnzQXFUR9yKlKiCxmgPDx2skS+r4j+RjVWSNmZLEMudZ t4ZllcyGYLS1qaRjgYezcHZwVHRDLe8YCkmEesy0dfQiTZ1NOFT+3hNgEiCgiJoZBALn 5ofw== X-Gm-Message-State: AOAM531g2QpvNFE6/EYhFAaqPQT/9uuegpdzVtQ3KZ6h3xfcnGnY4B3i Dp8cYN3wfS8P1tLWARsuH3etEAi6mVENRiVjM0Y= X-Google-Smtp-Source: ABdhPJzjbr+X3EUvJoNUUz07Nh0kit+8Br7iWotuIKtzwH/qjAS3tL7sczO/b8N+1gTC2k1LSexK3HQNNAhHLh5/Ubg= X-Received: by 2002:a67:fb94:: with SMTP id n20mr11462298vsr.11.1622323120603; Sat, 29 May 2021 14:18:40 -0700 (PDT) MIME-Version: 1.0 References: <87fsy8yi1e.fsf@localhost> In-Reply-To: <87fsy8yi1e.fsf@localhost> From: Radon Rosborough Date: Sat, 29 May 2021 14:18:05 -0700 Message-ID: Subject: Re: [BUG] org-compile-prefix-format regexp change breaks eval forms [9.4.6 (9.4.6-gf72a65)] To: Ihor Radchenko Content-Type: multipart/alternative; boundary="00000000000050884805c37e8913" Received-SPF: pass client-ip=2607:f8b0:4864:20::e34; envelope-from=radon.neon@gmail.com; helo=mail-vs1-xe34.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, HTML_MESSAGE=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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622323180; 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=WWlRY/I+qXvTE0qjPBRgB1f2UrDPqIQQjDqHZ0LRePg=; b=N25sorqFlB5Nr/fN6X0BeljNcpDsSlaOuYIcKlk8uzE94E0FOdmCqCb7sVyDSJamjKQPJH zj9hQWAQfZ66+xnTyV9sw1qYAABZputIknzCbGiaBOMYlHTJhgo0xSZwH+OzWNaQ5rD0dL 5b4hHwxz/SqClr/pO+dRlp4RBpNbkfp3MyUgitdrDlke++ZNpFg3ZCshqzFUo3Ucg4yWXQ cnAl6wENrse/LrZW34rtqPnkRgbE71weFmrxYPetAk5i54RzjuAG1ZaBVmIjA5j6U5/HfP UJ28i2Im5tRKN58+zCsOVsqIe1nAf86c0tVQh/JisxrNwTSdHav0EOKT+/ZTWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622323180; a=rsa-sha256; cv=none; b=pkx0Du6fwrPiRXxjK0aPVHSJs1PQt0kM80Q5V9y/h0OasKh7iGECc2ufO+triD5Omg51fi BMk3v0wkoPhK4WTuzWk3R/WuL2aKhTMogEf2QDwfbMFy7L+2afrB4hSbV3tz90j0Zu8v0v fPYFZbU9Lq0WRSjAqq11hhvTTjbwD3nT+ppeSp8uPHckiXaFNRwOGL5jRS6ZFayrlu9vfb RkcXLopbtFNQW/6ElTAyUzx8jfCYknsDLETRJ+sir88ehdwF9XatIcx5uOOkcGTmaHDzQp eTu8kzDCEWjzGL6Wa+3N8uZ6URHaYWvMKQ+cBiQA8gBUH4opJmlVccsqXUfM3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=sPmu6rSG; 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-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=sPmu6rSG; 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: 825771ED90 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: XT/aZtKOF7BD --00000000000050884805c37e8913 Content-Type: text/plain; charset="UTF-8" If you insert the format string into a temporary buffer, then the `read' function will read up to the closing parenthesis and update point accordingly. That would be a foolproof way to handle all possible Lisp forms: use a regexp to find the start, and then use `read' to find the end. Then proceed with regexp matching, and repeat like that. --00000000000050884805c37e8913 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If you insert the format string into a temporary buffer, t= hen the `read' function will read up to the closing parenthesis and upd= ate point accordingly. That would be a foolproof way to handle all possible= Lisp forms: use a regexp to find the start, and then use `read' to fin= d the end. Then proceed with regexp matching, and repeat like that.
--00000000000050884805c37e8913--