From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : Re: Emacs Modular Configuration: the preferable way. Date: Mon, 21 Jun 2021 18:25:44 +0000 Message-ID: References: <87pmwgdiyj.fsf@zoho.eu> <878s33dvd4.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33665"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Help-Gnu-Emacs \(help-gnu-emacs@gnu.org\)" To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 21 20:28:12 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 1lvOeZ-0008Zb-NX for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Jun 2021 20:28:11 +0200 Original-Received: from localhost ([::1]:40626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvOeY-0004TR-OD for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Jun 2021 14:28:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvOcK-0002OR-Mq for help-gnu-emacs@gnu.org; Mon, 21 Jun 2021 14:25:52 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:17476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvOcI-0004rP-5W for help-gnu-emacs@gnu.org; Mon, 21 Jun 2021 14:25:52 -0400 Original-Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15LICNHm017093; Mon, 21 Jun 2021 18:25:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=rDgU39bIeQClH76fpTq42R7txlomauPT/bfXRSUf9K8=; b=XbDT6dtLuSml7gB787TQ1aWkwdLgT7UmFS9EKg0GzR9vB1o26beAHc4vH2hp+tP6NZsa 9xSHDDL9ZfYXP8Oa2BmZkU3QXvVb6F4ir75S5OVCYkIb+cFtB0wvKPBiMI8jVyTIZe0l mu5ztf5SlSQiv26HV/Zhcz6m1p76VROjIfLQAu7cdvEkNbClzp+Sv8Z9+KuyEyzePZCI 3X1ipVmjdXmQoScNo2yLF2bcJOiZ+YCgKthQ9xRZVkm2tZbxAIKAJj/pnZMcW5+bNm1g BFWgb11gwACTYx53Cgg4KiViCbNhI+egq2lKUmpbus/KN6wnzj3WOaS0vSrlzEyOzucB qA== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 39a68y2atm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jun 2021 18:25:47 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 15LIB942001281; Mon, 21 Jun 2021 18:25:46 GMT Original-Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2177.outbound.protection.outlook.com [104.47.57.177]) by userp3030.oracle.com with ESMTP id 3995puywgv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jun 2021 18:25:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iMnbYmKJ8EevcFu9lDz6APXwFZuyh670xa0I7Br4i5jgNeUSFQGD0RKNAfZs335CjbD+8gMk1LFlTBiJaQeo1uKi0aziUxYrTKX7gEPcsXcEVU8HFRBu2MoVsCqejLaCYRBrB5XUAS3nDPcWBbdYbhxykxF81k0XQkquguDk5LRXeBEWMwzIkrPh42w+6UNPEtw5fHzcr5S8tiYjyYK7yQOHwTOZUIi/KiNFyuunvM8WgT5LUCDmbnmU0NEfDkE6HD1hKTIaAynUkMvLtWBRcKfdHAYe7J9BQMLtWBaw/5W0tetC/Ls9e2NIwTUjGCj2nXFgvRdLF6rjg0ryPe/VbQ== 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=rDgU39bIeQClH76fpTq42R7txlomauPT/bfXRSUf9K8=; b=kcz3AFRG3BVB8jMVD9ZRcLrauPJHwIpvLdcUH+JIX7f/a143fTJ0Sa2XyERfFs+O8UbVqzaq6E759vWwf6gVa6js/1TV03ynQqsmq3Srh6ry0IpLf4vmsTi+OWbklubFp9naH5LxrNZIMHO5QG478cBNDQEHJkr/29Oh7Iju9ym5U4udg3zk+pGhGKhCdZFUfECjAuV424etXnXDD+h68MMQcQ94EineWox3+P46MI/6VDbAP4oQ2WGp6N47U7Aa4FSGEqbFpnX4KEcJ7kSFWuwtKG7weMaowY1pUzEF8fU3PqvtOVtQeJFPhxQc/NN4Mz8oAJkBcyRSQmMGCyfT7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rDgU39bIeQClH76fpTq42R7txlomauPT/bfXRSUf9K8=; b=t8oTBOMcwgYOeHeEmoQtjWMiNl/fnM77CbgMfA96ICX0gUcqTEW2pCUoFMYbB+Dpfu6UacKvolo/LeTq3lcLMVwi9SRLnYPd660NhWq17gT+p4/iy94ppR9FMzZwUXvY4VgNSDzpVScx3FQn3MzJFuxTeKdeJHBMG+nNGUkSaI0= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4810.namprd10.prod.outlook.com (2603:10b6:806:11c::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.15; Mon, 21 Jun 2021 18:25:44 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::1c0e:6d54:3781:bd5c]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::1c0e:6d54:3781:bd5c%6]) with mapi id 15.20.4242.023; Mon, 21 Jun 2021 18:25:44 +0000 Thread-Topic: [External] : Re: Emacs Modular Configuration: the preferable way. Thread-Index: AQHXZsrYN7U6Rssq+UGIZ5DHO+Vv6w== In-Reply-To: <878s33dvd4.fsf@zoho.eu> Accept-Language: en-US Content-Language: en-US authentication-results: zoho.eu; dkim=none (message not signed) header.d=none;zoho.eu; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b9e55510-7565-4e18-47a0-08d934e1fbd9 x-ms-traffictypediagnostic: SA2PR10MB4810: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PnY4tNenQLIGaip4gSS/8bZdJ/NPwhmL3XLG2ZY9lcjFVU7bU8QsAGoXg5rcmQbR3IGsn2n1qYM5quv2EntA/imQSyY1f7o4OscjtkvLzdFqn2elpdcdM5YE189/byKe5qfsGb9PBlvGez4pYsIVJUkhLMiLIxQUQb6plj5YmI4K3eVRsNFb9Z47j2g/H67LIJOhKwv827SpZ16R0Ntzy+0PaunibSLjNK74kcfAsTHjueDR4diBQyrs2hRJoA8/vFyPEZIMq0FENaAn1UdTHNF8ymCenVzfG9M3KhpI9/bklLEwgmnKAIjAxDSSGGrRr7VwXEOxMXtENoWUnSG+kB6wpRVH/XlN6f0FYEPIBLXi3zapEuypz3z8Qg6CE+sBSzObj3qSpm68cAGKhS8EaCaZA8gEoRby2KiM8pPK4rMzmXAQxEYaaiHVV8vuTG74ZI5WfQan1huFDBtWyYLwIeWKMDM3h1vINQsBtr072le+ELb8FqJBipLjqUQUKv2FfcnJABlPqY6c3I/4erC09n/h6LStETjkcDiyh3p7mgIv9CXH4HOcxYir799idEoSUmk1mrzQK+2wTZRG1SQucnhP+MxqWDul1b5Ft+A4BVzPwmzrjXfLgWc56u95cqsASNSAxAnWDbb+mio4Z6ZQv/bOnBjGEUSDktfHDTCr7NtOXEJqYMC82biw0Mzbfkl+MPRuVuNi1EXlsFA1EdtnVOT55GWviUrhEj+x86yyTi+al1ayzQgzUzgL+Thjd BLlA4w4CckHoTnU0MzPh2GSKg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(366004)(39860400002)(376002)(346002)(136003)(64756008)(66446008)(66556008)(7696005)(44832011)(316002)(8936002)(2906002)(66476007)(66946007)(38100700002)(122000001)(5660300002)(76116006)(4326008)(6916009)(26005)(9686003)(33656002)(186003)(86362001)(478600001)(52536014)(6506007)(8676002)(71200400001)(55016002)(966005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Ul0glXaEPAp+sLxoMTDEmdJjpyiCu6VvEp2QyTUEzlNhlzrgdvaedDVVU/rc?= =?us-ascii?Q?5tVAPyJQKJXGRZyyYnooJ31ZNqHW2eX2E5S2j37CurvQxz9bKhUdeWbdzMx6?= =?us-ascii?Q?6zzwF3d7I1191CDdzIU4qkrH88fTKg1XP1ddb2pDUPLI49hbXUCkW+F+gcLt?= =?us-ascii?Q?QGVncWb5iWPmUYbR3S7CIgbRXFy5BQ1utfyph7S050fgmwXQocgzVyBLXJRN?= =?us-ascii?Q?Y9Zq24/AehF1e4xH9lpQ/nwqfu/zdnElwRqx2wh3Cd9HLqAe3rmsvL/mEY5G?= =?us-ascii?Q?E5gxKotkcnFnaoxzqByWxs3gEIu1whalyRggNLqZDXfDyjhyDwHeIO24vW18?= =?us-ascii?Q?FJffgyEEfqYLg5zQWgikG/AcMzZDVTl05jf1uDUs9QM0zxrQPN6cJ541Uzip?= =?us-ascii?Q?0trdfzOsNsbds+sEOCqKuhKcxJpn9jEUHsS3SR3Ct0RjK58RBbnmX6Hoi31/?= =?us-ascii?Q?jMpDkkLxEaHDAVsYbOn5Q8TGgfS33Gpeo926Dxxmpjef95uYC+lUA68pPAuD?= =?us-ascii?Q?2QRJEQ2/v+AXqDizpfKrWGYza8GWyDYFLs7pTKZ/26Odj7sVhdtIYiBwQ1Y0?= =?us-ascii?Q?+pMDvElLD9WdDIE3/WSeCIgQedh7Rrj6oilYPd8gOtXe4u3B32D+MWqLZzpV?= =?us-ascii?Q?O+ x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b9e55510-7565-4e18-47a0-08d934e1fbd9 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jun 2021 18:25:44.5948 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZwFB9OQ7mv+7S9XxV3TSqToiP9Lj6uy6qIm4qo2QCnHz/u2k9so++XwtsNuOW5ciqTIP7d3ZkOLYvbVyMoInDw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4810 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10022 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 adultscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxscore=0 mlxlogscore=647 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106210107 X-Proofpoint-ORIG-GUID: hgfc7LGJKO3jgd5xwiAyAKFND_ikJWpl X-Proofpoint-GUID: hgfc7LGJKO3jgd5xwiAyAKFND_ikJWpl Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=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:131152 Archived-At: > > Isn't it better to use path formatting function instead of > > string formatting to ensure platform indepent paths >=20 > If the path is a string and the filename is a string joining > them with "string formatting" is pretty natural I think? >=20 > Or what do you think one should do to put together for example > the complete path ~/.emacs.d/emacs-init/erc/erc-iterate.el ? Put together how? from what? https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Names.html https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Name-Compone= nts.html > 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... Actually, ~/.emacs.d/emacs-init/erc/erc-iterate.el is completely _platform independent_ when used in Emacs. Emacs takes care of platform differences / oddities automatically. Automatically, that is, provided code uses Elisp file-name functions (or the predefined commands that use them)... Yes, this is one of the things that the file-name functions you seem so terrorized by do for you. And this is presumably why the OP specifically mentioned that for his own use he didn't need to worry about such differences. (Which is true, as far as it goes.) Is Emacs "outside the Unix world" because it does this for you? If so, so be it.