From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.help Subject: Re: Emacs Modular Configuration: the preferable way. Date: Mon, 21 Jun 2021 20:38:29 +0200 Message-ID: References: <87pmwgdiyj.fsf@zoho.eu> <878s33dvd4.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11079"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 21 20:39:51 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1lvOpr-0002jI-Ee for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Jun 2021 20:39:51 +0200 Original-Received: from localhost ([::1]:54680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvOpq-0005qt-GX for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Jun 2021 14:39:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvOoe-0005ni-NX for help-gnu-emacs@gnu.org; Mon, 21 Jun 2021 14:38:36 -0400 Original-Received: from mail-vi1eur05olkn2056.outbound.protection.outlook.com ([40.92.90.56]:1504 helo=EUR05-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvOoc-0004Kw-1V for help-gnu-emacs@gnu.org; Mon, 21 Jun 2021 14:38:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B5omkIz9rYlMASNjJo9bSAjWGuH3Is/n/fQTBtQhvNukLZOvvMYWxr8ONUxaFsN2kj5l5ww8DGzVfg3zLCYVm9TRCb+GuWWNyjtwxkzSqepNLybid77IPujCTCsdwCb1itfA6WNxefCx1MWy/SclccKLIxSjG4ODLaQ21GFSzXPbinDLbS/XhQbbDWu/rlU+PFTdC1wJNfrLw9Z3XYv2gMrIQZRjtaR23KoPpjd76rzPCmU3ZJVoO1dYbtPlkYKfCDbcDz1ymodNf4hETCOGJpNfOeLhFxjXWIPG8M8DJRhYTb6su86NvmzNfjip2cZH0qg57dhdwQcjAaBBi78nVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D3ntNLKJ0jyjX2htwiOgmKwJEispDiR9DagRfc17++4=; b=Hlra6/NhsWigE+UMLMjBy/x7GnHfQIsZ03W4ytUGO4SK8PODBhW+u5UjcVeSxFJH4QekeE9fZJoswe+HthXc+YOZIWmm9d1XvNH19LKL4AxMlCSuJTA/R3i1cRXc+d0SGJCWuUGWe+ndvSNSeDvH9LJG+RerzNdeeRs8haTx9qvqH5IFaRfiLaeyXF++6JlQ4X7wpwXOf9hrObACojjCKaD0q1pgErMDnVzjhpbTLwwkuC6xJkpoP3JQ1M9WYnHp2MlVhQQXTuqC2sP8t5zbRYnExUcOXshqHVsR6IYYSfDxVAlBLpktBMwKtL2KqA7GGfJrcClz7KLkcGK+XR8txQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D3ntNLKJ0jyjX2htwiOgmKwJEispDiR9DagRfc17++4=; b=E0EZz1lIcB2lDfoxkxKlrIBSxKzcWyHb+Y7wnsMA8xTc/gNUZTVu1W7GbqITIW6xHz6oGPuNd5T+5DoZ6EBGVweBGxYhdWoOH3dAwsjtiKghB40cgbjrRsd2e3GLVX1rFZiJIjfa2Q+ztbtxQvcupVPd3E84wht4HDfQZJDcjaKA3em8BPXV95riDmjtVcAQiVHLxSW1Co7N+phB1VdCi4W8G7DAH8cly8S4D+obzH+M4nwpp5EmkjQGkXZ1hH5vL1OHHGQD84PekUXDYR/9JEePlXeACNSiUtxZthBP7SbBx4SIKep7GSgDmbYIM/DGowcNgBCt+o0hvMVSLRhQWw== Original-Received: from AM6EUR05FT013.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc11::44) by AM6EUR05HT089.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc11::381) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16; Mon, 21 Jun 2021 18:38:30 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc11::51) by AM6EUR05FT013.mail.protection.outlook.com (2a01:111:e400:fc11::165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16 via Frontend Transport; Mon, 21 Jun 2021 18:38:30 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:25462E26CA12617BB795551029064667D4E008901D16F307C93B7858EDD80479; UpperCasedChecksum:8F79865E27BE7B891411AA0DC5A90BDB7FC9F7C702D6F97AA7210A754ABE779F; SizeAsReceived:7548; Count:45 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::51ca:cb30:2619:5219]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::51ca:cb30:2619:5219%7]) with mapi id 15.20.4242.023; Mon, 21 Jun 2021 18:38:30 +0000 In-Reply-To: <878s33dvd4.fsf@zoho.eu> (Emanuel Berg via Users list for the's message of "Mon, 21 Jun 2021 18:40:23 +0200") X-TMN: [wex6Oc2e38zGkG11wp/aO34fIsekOQN2] X-ClientProxiedBy: AM6P195CA0029.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:81::42) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87im27cbbu.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6P195CA0029.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:81::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.18 via Frontend Transport; Mon, 21 Jun 2021 18:38:30 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 4d4bbfa4-b365-40da-3fd4-08d934e3c40e X-MS-TrafficTypeDiagnostic: AM6EUR05HT089: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hQu7g9MZHNcKiWsPq1Vjb9jQirtrdFTBtfW+towpVB+hrLj+/F9fepNVGalFSjk7njrnFnpxZ2CYkjYcRSRTuignrwIArsyR319YrSA+uCXmGnymjMIQl1+44KPl9xqbXTDhFXlYdUwYUkVu5Ff3T835gDttuVBmLb9Mls/f1sOSRtFEJtZgAQOMjckJByGwwveWmRdfFu1GinHwZRRTQRW4LdECspBwDVf5WXEmJFTPTGxsuzBcqxavxQz9YqdkxzKtlEm7piZ1MchRQg5ywXH7I4eVz3gxGf6EWuXz9kOhYi79EifxrB6VVIahjylQnZ33bUXTM42qC0XA8Nnwt1qNDrDJyjro1wroxROVW3iZzQwfjR8n9SglfROCrOwaMzoP2U3PIAJhjo1pyGaaIA== X-MS-Exchange-AntiSpam-MessageData: TJGZrNV6+qu6ZCAaHf5xWF70+Ut+JytBhsOA/3NHCPyWEAvX7nXXvU4ulYn+jtNbBNJzuL90XSCzQzFlLGJmOGcFf+s4cSZEOtOiKPB3TGlPXRJJZptfgQeAkXtMfAqE4ibkW/vSGuik538Nf0qKFA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d4bbfa4-b365-40da-3fd4-08d934e3c40e X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2021 18:38:30.7038 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: AM6EUR05FT013.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6EUR05HT089 Received-SPF: pass client-ip=40.92.90.56; envelope-from=arthur.miller@live.com; helo=EUR05-VI1-obe.outbound.protection.outlook.com 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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131153 Archived-At: Emanuel Berg via Users list for the GNU Emacs text editor writes: > Arthur Miller wrote: > >> Isn't it better to use path formatting function instead of >> string formatting to ensure platform indepent paths > > If the path is a string and the filename is a string joining > them with "string formatting" is pretty natural I think? In some functions it matters if you end filename with a slash or not when you work with directories. Path formatting functions take care of that for example. Personally I think it is less error prone, than using string functions. > Or what do you think one should do to put together for example > the complete path ~/.emacs.d/emacs-init/erc/erc-iterate.el ? I pasted you an example from my init file. > That path (and the entire) file isn't platform independent to > begin with and has never been used outside the Unix world BTW, > but why not add that for fun if there is a way that is > better... It is up to you how you write your init file, but they say never say never ...