From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: [elpa] externals/org 6de5431acc: org: Refactor rx to concat + regexp-opt Date: Wed, 27 Jul 2022 11:01:46 +0800 Message-ID: <87r127b6n9.fsf@localhost> References: <165867467321.24615.13379333890500235410@vcs2.savannah.gnu.org> <20220724145753.7E671C00602@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19614"; mail-complaints-to="usenet@ciao.gmane.io" Cc: TEC , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 27 05:02:00 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGXJA-0004wi-2M for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Jul 2022 05:02:00 +0200 Original-Received: from localhost ([::1]:58274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGXJ8-0005em-Vk for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Jul 2022 23:01:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGXHy-0004iB-M8 for emacs-devel@gnu.org; Tue, 26 Jul 2022 23:00:48 -0400 Original-Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:46854) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGXHx-0007yq-1i for emacs-devel@gnu.org; Tue, 26 Jul 2022 23:00:46 -0400 Original-Received: by mail-pg1-x535.google.com with SMTP id 6so14757258pgb.13 for ; Tue, 26 Jul 2022 20:00:43 -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=G55Tj0PIcJ8/axHOUTvJOP+cIGcxgIa004PoBnl5mTk=; b=ZcXcsSBYkycgpMfZhewAdlGeOi6rkLv2A14RmxGYZVtcQ6KEB4B2I99ijGgjNsG+7e smy8ElnLOrm47a6DkYM6RrbRM/+DgoKQhkPd8ANqkkyJW7DCYuTEQuC+blYHRoCXetdx Mnw+QHoELzgv2+SvQbsToPWsfUj09KUS9YVeBG9/kBXJ+SXWExOQ+6rjvhbdaUpbQ1NY Y4f3KjLsFMjLTQlw1BEbjnbPGQL3tuAa9LIXWyNm0vMB72ud5GlnlVy+hA3V6nJUqdlP Z6ZTNW38sK0+dfxJBvof7oye65DdPWl+Jwh7WRhW0axoG0SMLWv67U9UpugbwqXpkOVy IYMw== 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=G55Tj0PIcJ8/axHOUTvJOP+cIGcxgIa004PoBnl5mTk=; b=fnEHgPq4IyZbFjik2fTSlJYuhHbVC0wcsYH4pLS5thqX9XUkO/X3BOSh3jQTssFJ9p WnqoKE4vRzevvbwgEI2yf6+E9Vwz7kw/iV6GdiDw5jIf+u92pATE6mW1paGWfl8SlT0w aUMoxtUCAKXh4/JvUACfZwvuSBnzyBzan4Dn9MWC/+inaqx3ScbYG5Zm2FcJQBAvydhe Yc2trrAe+xQBLhDJi9D9IiMP3BlC6U/0kgGVP0EE+24y5m/1/8+ilsfumCfO6R3g/CyZ xR+Om1a6epjVGSwHgwwY5kbReUiWLt4TizBT+zC2SZEIfMzhH9qghOOirB8nuKTgJXpf 8hYg== X-Gm-Message-State: AJIora8Ebws/hhSBNFTSTq8VW0lkYxR2BTz5Zj1kTiIbcnDTj9HXuOBf dCsbZJxvEVAAn4ejZNKvL8Q= X-Google-Smtp-Source: AGRyM1srpCw3mq0nMjZc0ZTFvljy4Libfmdwmd5GFRK1O912dVlAq4eujrHYSaPk0WB/57IOCAF4xg== X-Received: by 2002:a05:6a00:17aa:b0:52a:e94b:67e5 with SMTP id s42-20020a056a0017aa00b0052ae94b67e5mr20264462pfg.76.1658890842095; Tue, 26 Jul 2022 20:00:42 -0700 (PDT) Original-Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id x1-20020a170902b40100b0016bf803341asm2326154plr.146.2022.07.26.20.00.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 20:00:41 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=yantar92@gmail.com; helo=mail-pg1-x535.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-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292727 Archived-At: Stefan Monnier writes: >> 'org-safe-remote-resources >> - (list (rx string-start >> - (literal >> - (if (and (= char ?f) current-file) >> - (concat "file://" current-file) uri)) >> - string-end)))) >> + (list (concat "\\`" >> + (regexp-opt >> + (if (and (= char ?f) current-file) >> + (concat "file://" current-file) uri)) >> + "\\'")))) > > Did you mean to use `regexp-quote` instead of `regexp-opt`, maybe? Timothy has fixed the regexp in https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6ad53fa22eab5830f85a401960dc1e7d00154a27 Note that this email address (tec@tecosaur.com) may be dysfunctional. See https://list.orgmode.org/dd8a140cd218951f77c279a252b03f66@tecosaur.com/T/#u Best, Ihor