From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.help Subject: Re: Emacs Modular Configuration: the preferable way. Date: Tue, 22 Jun 2021 14:50:50 +0200 Message-ID: <87y2b2qd05.fsf@gnus.org> References: <87pmwgdiyj.fsf@zoho.eu> <83y2b3tq07.fsf@gnu.org> <871r8vcrnm.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9996"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Philip Kaludercic Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 22 14:56:35 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 1lvfxD-0002RT-50 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 22 Jun 2021 14:56:35 +0200 Original-Received: from localhost ([::1]:39328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvfxC-0005yU-1K for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 22 Jun 2021 08:56:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvfrq-0005vf-9X for help-gnu-emacs@gnu.org; Tue, 22 Jun 2021 08:51:02 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:53584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvfro-0000aq-Dl; Tue, 22 Jun 2021 08:51:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lN4UhotR9D5lPXpKT5rGE5XWubgiwS0yAY06Vftn5K8=; b=p+VLUWHDLPbLcSA+Ys0AmWkbuS YQMLsvPkoJwR3KHDZ1mDdiFll3GfwGd60b8FwnAuax22YtXDEifWsa4BiwOdIhnMFQWIQSaegRJgg aetEueyLp3nZ6B4l5yVCrY4xTfTQHyG27OO9uXIWKk3BsyFJKpvUg5W2DN7polR0jKgk=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvfrf-0006PE-JH; Tue, 22 Jun 2021 14:50:53 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXw6dX7+Omqp52D gntFR0T///9bmYzmAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UGFgwpO4w4UtkAAAGgSURBVDjLjZSB ccMgDEUF7gCQLkAFA7igCYz2n6lfgJO0ie+qy3GxniV9JCVE1+bitPkUYgzx2Q0LcJOd5H6DYW6A 8ArgThxfImYdju4FeAPJxTcRjubxt8bUFy9APEEgnzxXzsw5t1YnuHFrTZf1xvg+7xEA9I7GS3GC RMwpa+utIlXyolYdAKodnhrXzChGeUVEitHLoQflVmtj3vpDFfuu+k25tkpc9A5cqKLSkadoohOg BtMQ9eUCNHDW2atgvbMr6B4o9wewGtJFVSq5LBXp8PYC8OKTaNOe/ASz1+bWTq6oVv4YqdbYivay mzbUKiew8XPpOdHZyngCdKtte7qZ6CYGVg1PHjemDT6Tt0Bw50rKI5XJRQkewK9ZPQCn4S/mPpjl rOHHqGs2v3Rv3XUjQoZ8tVPkSOjV3MSb3HMfH6Wmra0L3u7+vH/K7n1b81gAQ08QULFYSs8RVsVj JzqANQnKij4brt5nr7CJtWE5MrYK68bYldXd91t94Q9X4E+qsPr8AmIIAX8Bb8BTqPtXjV8hV/4l Y/643bnLRD/tfnRPPiimNAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNi0yMlQxMjo0MTo1OSsw MDowMKrEu7MAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDYtMjJUMTI6NDE6NTkrMDA6MDDbmQMP AAAAAElFTkSuQmCC X-Now-Playing: David Byrne's _Music for The Knee Plays_: "In the Future" In-Reply-To: <871r8vcrnm.fsf@posteo.net> (Philip Kaludercic's message of "Mon, 21 Jun 2021 12:45:49 +0000") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org 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:131193 Archived-At: Philip Kaludercic writes: > Does it really make a difference in a personal configuration, especially > when you don't use Windows or other non /-delimiting systems? No, the code here is fine, and I think chiding people for writing perfectly find code is counterproductive. It's not what I'd put in a general library meant for redistribution, but nobody has any obligation to write code on any particular form for their own usage. Besides, `expand-file-name' has annoying corner cases, and Emacs should really grow a variation that's actually sound and reliable instead of the current DWIM-ish mess. For instance, the following loop might signal an error: (dolist (file (directory-files "/tmp/")) (unless (string-match "^/tmp" (expand-file-name file "/tmp")) (error "boom"))) while (dolist (file (directory-files "/tmp/")) (unless (string-match "^/tmp" (format "/tmp/%s" file)) (error "boom"))) never will. To see the difference, say $ touch "/tmp/~$USER" first. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no