From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id iCKZL+zyOWZizQAAe85BDQ:P1 (envelope-from ) for ; Tue, 07 May 2024 11:22:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id iCKZL+zyOWZizQAAe85BDQ (envelope-from ) for ; Tue, 07 May 2024 11:22:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Kyk5Eo0C; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715073772; 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=TeqyY5aQT8ypyegio85dx79qncyKY762QxGivnHrEDg=; b=fD6AxI+lhMEc5jjdczRk6/z0ZZ5jxd4kF66X0yCATUm8KjioKuGCwtoYvAW23jBep35Pvb 6HJuqP11zIzXbAc6sGCc3Nc2HuMmZ5jkXKu23Pymg23mGI4m97d8db+3H5dcbfFX8RqN8J veA3uFQFf9q39gYj0giKwasRwJnzjzR/5QIvghUwpmpZRl1Psba3kVSRLjNV6Ba2zXdIlK QoAg+wLkBGMm9rYBdU0gXdYl9EempIGRAmZzi/73rTKhNtdiNQB8h0Pzz6HbEj5Hns7eZN QCOJoj/AkiUFpPKb/ZbF5CvY24YGerHFAgh0L7dcdrSViqWwBzmrwfzidOeM5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Kyk5Eo0C; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715073772; a=rsa-sha256; cv=none; b=mH2PM94xUQOyg57HNDQICIpSKX7dupSek3p9noFxLr7ufPKz4hJAbg8TfdUAeZ2twf3s+D C9Yp57l5vbjweFoHT15oFqtV61xhv0eJWj4Ghyv8SsfjTY5SSbee9wC3FVF3Lav03p5ho/ WdYAY/jYLouaIH5dpH+oZ8eDzxOTESVAdoiYlSfM9qwgvFd6o5d+9g+OrjOeGWoaDucJeX dQve0JLx1bUbywzb3Ro/slPYC+17wF+GZSTlrRdbwVpPvmSfSaEcCwIoFhxlHxSVS8XaeG beL4EdrSoNriY/SLb5aPkV5qgfS2yECbhwIhil5PNcOcDA2OYngSVl8rWgFXPQ== 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 518E1242A1 for ; Tue, 7 May 2024 11:22:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4H0y-0006cv-5X; Tue, 07 May 2024 05:21:36 -0400 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 1s4H0v-0006a2-Mp for emacs-orgmode@gnu.org; Tue, 07 May 2024 05:21:33 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4H0t-0008IN-8t for emacs-orgmode@gnu.org; Tue, 07 May 2024 05:21:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8B22524002E for ; Tue, 7 May 2024 11:21:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715073685; bh=9rk4RzLP83LgcJpbtb2vtTX8+uXdsHXlSGdiP/UstD0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=Kyk5Eo0CVHNAyJamqm0lipjDOcq1nBytXzLEsp8Nji+IiZQ+ypXci5ndIjFU+e6AE NKU/58QLXkm9/bc4IccKPDVlCxMByDLhywiBgCT6YABeBzgKwRNaxVk5E1cRLEwIep HvjQKUJNWod/AXMKEYz2UqNXmW2GLB3sjkJziF97oB/pIfl8CEFxW8gx7QWEaVOkqv EyRW0DsxJppAE1ccmxqwfT6Hz5gsq4kYSzfRQA6zad2n36D0oeNSHykWbuoWuXF474 pwcO9SFvf1fSjXxJaa+abzHjglIwLV3r6kEXFR5ghmY3VMxqTgFjkq60CZG5nZ7Xsm wIuqlncjYLFRQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VYXpD2GsKz9rxF; Tue, 7 May 2024 11:21:24 +0200 (CEST) From: Ihor Radchenko To: David Masterson Cc: emacs-orgmode@gnu.org Subject: Re: Q: org-publish-project-alist and :exclude In-Reply-To: References: <87a5l4tp9f.fsf@localhost> Date: Tue, 07 May 2024 09:22:50 +0000 Message-ID: <87seyu2cyd.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 X-Spam-Score: -8.89 X-Migadu-Queue-Id: 518E1242A1 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.89 X-TUID: WD4jUqWd8tTq David Masterson writes: > Hmm. Couldn't get rx (or rx-to-string) to work for me. Kept getting an > error that a stringp was expected for the argument to :exclude. I tried > variations on: > > :exclude (rx-to-string (seq (or "init" "calendar-beorg") ".org")) When you have '(:foo bar :baz eet), nothing inside is evaluated because of the quote. To evaluate expressions selectively, use backquote: `(:foo bar:baz ,(concat "foo" "bar")) > Reverted to using a simple regex as above with proper escapes. Can I > suggest making the complex example in 14.3.2 of the Org Manual use a > better example regex (in rx form?) as a hint to what :exclude can do? Sure. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=773bba92a -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at