From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Sutton Subject: Bug: Recursive publish with :base-extension any fails [9.1.1 (9.1.1-1-g80cbf9-elpaplus @ /Users/xxxx/.emacs.d/elpa/org-plus-contrib-20170918/)] Date: Sat, 23 Sep 2017 15:16:24 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvsip-0001MI-E5 for emacs-orgmode@gnu.org; Sat, 23 Sep 2017 18:16:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvsio-0002Xl-JR for emacs-orgmode@gnu.org; Sat, 23 Sep 2017 18:16:27 -0400 Received: from mail-vk0-x236.google.com ([2607:f8b0:400c:c05::236]:49240) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dvsio-0002XQ-FA for emacs-orgmode@gnu.org; Sat, 23 Sep 2017 18:16:26 -0400 Received: by mail-vk0-x236.google.com with SMTP id h191so2075618vke.6 for ; Sat, 23 Sep 2017 15:16:25 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org When org-publish-project-alist has both :base-extension any and :recursive t set, the publish fails with "(wrong-type-argument stringp nil)" in a call to string-match in directory-files-recursively. It looks like org-publish-get-base-files should set match to "" rather than nil when :base-extension is any. In my minimal testing this works fine for me, but I'll leave it to the experts to figure out if that would negatively affect other things. Org mode version 9.1.1 (9.1.1-1-g80cbf9-elpaplus @ /Users/xxxx/.emacs.d/elpa/org-plus-contrib-20170918/) (I have two projects: one to publish the org files to HTML, and one for everything else that doesn't meet some exclusion criteria. There may or may not be a better way to do this, but the combination of :base-extension any, :recursive t, and an :exclude regexp was the first thing to come to mind.) -- Keith Sutton