From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: Re: Bug: org-publish-get-project-from-filename raises (wrong-type-argument sequencep any) Date: Fri, 30 Dec 2016 11:11:02 +0530 Message-ID: References: <871swqmpbu.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMpwV-00079m-OC for emacs-orgmode@gnu.org; Fri, 30 Dec 2016 00:41:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMpwS-0008Gx-LW for emacs-orgmode@gnu.org; Fri, 30 Dec 2016 00:41:27 -0500 Received: from [117.218.232.8] (port=34092 helo=systemreboot.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cMpwR-0008GS-Vt for emacs-orgmode@gnu.org; Fri, 30 Dec 2016 00:41:24 -0500 Received: from [117.192.106.112] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cMpwM-0004tu-4u for emacs-orgmode@gnu.org; Fri, 30 Dec 2016 11:11:19 +0530 In-reply-to: <871swqmpbu.fsf@nicolasgoaziou.fr> 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 --=-=-= Content-Type: text/plain Nicolas Goaziou writes: > Hello, > > Arun Isaac writes: > >> On list elements of `org-publish-project-alist' with :base-extension any >> `org-publish-get-project-from-filename' fails with error >> (wrong-type-argument sequencep any). This is due to the `concat' call in >> `org-publish-get-project-from-filename' where it attempts to construct a >> regex by concatenating several strings together. When extension `x' is >> any (a symbol), this step fails. > > Fixed. Thank you. Perhaps, `org-publish-get-project-from-filename' can be rewritten without `catch' and `throw' using `cl-some' or `seq-some'. This is not a bug. But, it might help improve readability of the logic. Thanks, Arun Isaac. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJYZfNvAAoJEC4l7othgCuzHBYIALT8w5ySpGllZSUMO31xRMNd wtaoKiAS+CAAoOLG1ccghq5s3v0t4gsICR94Nt/HeUI/RiO70FDPBQTsJ/zcrKfZ WStmUbymAn9IUx8W9TiQ7CEiC/A+598/Z5fOeVUDqNjk1FCVDWWsAniv00XF6g2Z o5Ml4zZYD1cG2NpMhI9T6CFt+DZcFWTuKm9RtBQpgiGCrvRH0GJiTZNBmp5RebdQ RvcHzg7bGl2tK93Kwv7ytPCyUcgHrgYJcq0tZtYGMny0fgOcWCmKN+3nyrb/HSG5 22KQRYaOh1fUc0KnNOCdPEFzuejOFWBIcx0d6GayJ4fIkLseLC4JMAm+Sqv7zPs= =Vvx4 -----END PGP SIGNATURE----- --=-=-=--