From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 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 dcvr.yhbt.net (Postfix) with ESMTPS id 2DCA71F44D for ; Wed, 17 Apr 2024 14:04:42 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=clisp.org header.i=@clisp.org header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=YJUYCGTR; dkim=fail reason="signature verification failed" header.d=clisp.org header.i=@clisp.org header.a=ed25519-sha256 header.s=strato-dkim-0003 header.b=6zc+c6mC; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rx5tP-0006Hz-Pi; Wed, 17 Apr 2024 10:04:07 -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 1rx5tO-0006He-BE for bug-gnulib@gnu.org; Wed, 17 Apr 2024 10:04:06 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.51]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rx5tM-0003Ps-5P for bug-gnulib@gnu.org; Wed, 17 Apr 2024 10:04:06 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1713362640; cv=none; d=strato.com; s=strato-dkim-0002; b=RufksTg/Vb8LNbnwu3gvChDv4Duc+4yAw+jRjN1tVafcN13Mz91SKIBINWCeqg6Tlo 02HXY3BNrONX6WMqXW35mxpUGBkE3ulH2vpGtbxkRqMmUTRi1rBIkzI1EEaryZ/isodQ 7CRMz89nctbYY6X+NGZXI67MWOawy1cJAZ3cV+ERjVmvEgy3T5GqRGos0LGJcoP9LMgi ApjCaNLjsOUSmdPDRc/VPZQBDe67dnaB1AIJWo3sEojaEVz753dSPAdoRQHDtnNmI4OX vgT6KM8jxITVzZrebca+QM1P8ZrR1aWDlspplrKtkCNUcRZ8zI0h09yUz0toG7OO8fgK v8nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1713362640; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:To:From:Cc:Date:From: Subject:Sender; bh=3D0ONuAHTqRlL+8lnV2CNEn0ZB4sBv+MhHkgEOmB3uA=; b=UD38jAAO7gnjXN2W9aEfZFHpf+3pb81w2SgrVsx1Ylv60SwHjd2Ug6yuzpdKt4R3op C2ipV5c7QN+Kvqsb35Iw+D4R6NAQqaHjfOZjzyotmAZprBMIO+JEQSEuioDVmEBkURKn Y8o52TTlsbGz4TZfzPwyMia1cSpJ/82XOHsSKSxwPRfh1jU4gw9Yf2POCjSo5x2Dkbs6 /VPJt6I//nxbabuMZ54vp10Dd2vxPzPrt8ChEPBBMmhhRNiF/UaGEo1wNxB3k/57guNF fy6c+x7rh92Dnd454jzUwY4MDwOf2npZWo85fciDRA21DLl82BEH9oVyK/AS5N1+iKwe yQ6Q== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1713362640; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:To:From:Cc:Date:From: Subject:Sender; bh=3D0ONuAHTqRlL+8lnV2CNEn0ZB4sBv+MhHkgEOmB3uA=; b=YJUYCGTR6IgS/4BlfRpXD7CMpYVubb1a6IxNyQc3Oj8YnfS+tth7DJX8O2bzoqByDp pNpZ2VCT03XCSKhjkDciz3SR+KhZRb9H5dLy0Cnb8kXSYSxubrYsQXVlQhCKsJ3ZTOq3 NdvpyxM7w2JlH2aZV0FV1VFBYgsENMCLOV06/YCZamvxO4ENuM27pbIa+6YqA3g3b4yF jpSWQofDl1l/qv0sAxo+Y5HrKPiPcghAgksRndTFIl2vHd8xpVtZSctsPiOogwDI17fr 1H2DijGhJibL/ZDl7HpofnnaQbjmT58ehG6vTrn9teTd5DOH5SAKB+yPM2RjJC0liFkC 1X/g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1713362640; s=strato-dkim-0003; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:To:From:Cc:Date:From: Subject:Sender; bh=3D0ONuAHTqRlL+8lnV2CNEn0ZB4sBv+MhHkgEOmB3uA=; b=6zc+c6mC+5ZWZKpAbl9RgiltICqeZrvTQ23zj4DQDGpEpbMN8a2xq5XSNhoj4qnRoZ czR6NSnxQH4Lp8v61MAg== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpOXj6fuNQjolw5I6/OhJR8GFKg=" Received: from nimes.localnet by smtp.strato.de (RZmta 50.3.2 AUTH) with ESMTPSA id N8610003HE3xvgC (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 17 Apr 2024 16:03:59 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org, Collin Funk Subject: Re: Refactoring rewrite_filename functions Date: Wed, 17 Apr 2024 16:03:59 +0200 Message-ID: <6392173.BdLsr5vzZv@nimes> In-Reply-To: <6bd41271-7bb6-4fab-9f6d-f44830a5328d@gmail.com> References: <26909173.d79VK8dOqj@nimes> <6bd41271-7bb6-4fab-9f6d-f44830a5328d@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.51; envelope-from=bruno@clisp.org; helo=mo4-p01-ob.smtp.rzone.de 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Hi Collin, > This will require some code reordering first though. The > GLFileAssistant used by GLImport is not defined until > GLImport.execute(). The file name transformations are done in > GLImport.prepare(). Good point. > I think the correct solution there is to define the GLFileAssistant in > GLImport.__init__() with it's default arguments and then set them > later. Hmm, this sounds clumsy. Can't you order things in such a way that 1. GLConfig is created. 2. The configuration is elaborated and stored in GLConfig. 3. GLConfig is finished. 4. GLFileAssistant is initialized. ? Bruno