From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 3JIKBw3eV2AqSwAA0tVLHw (envelope-from ) for ; Mon, 22 Mar 2021 00:00:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8MB0Ag3eV2CxWAAAbx9fmQ (envelope-from ) for ; Mon, 22 Mar 2021 00:00:13 +0000 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 aspmx1.migadu.com (Postfix) with ESMTPS id 6A5102A775 for ; Mon, 22 Mar 2021 01:00:12 +0100 (CET) Received: from localhost ([::1]:60102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO7zP-0008CF-7Z for larch@yhetil.org; Sun, 21 Mar 2021 20:00:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO7zG-0008C1-HM for guix-patches@gnu.org; Sun, 21 Mar 2021 20:00:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44157) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lO7zG-0004IZ-9B for guix-patches@gnu.org; Sun, 21 Mar 2021 20:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lO7zG-0005uO-6f for guix-patches@gnu.org; Sun, 21 Mar 2021 20:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47305] [PATCH] gnu: Add emacs-cascading-dir-locals. Resent-From: Joseph LaFreniere Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 22 Mar 2021 00:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47305 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47305@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161637116622631 (code B ref -1); Mon, 22 Mar 2021 00:00:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Mar 2021 23:59:26 +0000 Received: from localhost ([127.0.0.1]:55700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO7yf-0005sx-Lx for submit@debbugs.gnu.org; Sun, 21 Mar 2021 19:59:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:33476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO7ye-0005sp-4H for submit@debbugs.gnu.org; Sun, 21 Mar 2021 19:59:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO7yd-0008A9-Fn for guix-patches@gnu.org; Sun, 21 Mar 2021 19:59:23 -0400 Received: from mx.kolabnow.com ([95.128.36.42]:33220) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO7yb-00040F-89 for guix-patches@gnu.org; Sun, 21 Mar 2021 19:59:22 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTP id 480AA5ED for ; Mon, 22 Mar 2021 00:59:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= dkim20160331; t=1616371158; x=1618185559; bh=MPGtYplVFHKm6X+bJr3 MlN1f8ws0E1JIbnGILI8/Rbg=; b=Df95Ljpe+uUdPvzFkN6Y4oAqNhqWdvw+vob E61wrg74BcKhMlztRxJw3psEHnI96bDrwWSMCkl0pQrIPLztwfOAz6fN8R0R3nY7 heenqX9KEOeH607I8xrWie/Io7JZIZUinH0dqHBr3tGSRZHwf+OTY/48O4sDG5T2 XF5v6/ONi9B091WqBh3EWre1VGoGp37X0XjiBqKGvXubwT6mbwnkwIZJX3jjr9VT Ie67GItgrZvLVlO3WJ+72wtmwzLgI58VlKQwewSoWA2MA2BFWbJaZBPtBdON6tSh QNYmRr13yMhi6qMDm5kjqNQ3piHpeNy5JJCKg9sjTxdCHdGM6PRv8zhi9fzYZU30 4KhknupCZHn2NFlrq7VbQ012scHplawfUAjSYxOTi9xdHuOS9gtAPLD3wSiVoUHz g06GkJewzWudnjbJRCYvoSvW/ruxt8WVB5+KLw3MlOPtgKRwEOXMHcQewGq2CTVN 5993Obgly/ZITcIVEGKykbmW6GSbEYYz+pRJ0rtpBhcW/eNqrrEXjtM/KzUY1in7 EiV7v3Rz6lOQmcSkCY40xVHCHwNJogVyyc8WyR1KP+u/DQknckke8mnQE/mL9lqG mwG4dv5Cx9pMv3C3/x2k+VkevdbI8W4jf72lbffcA0I88OYrxjMyVzcwVWmBksHw K/HoPamw= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VFnKp3rG4Ndk for ; Mon, 22 Mar 2021 00:59:18 +0100 (CET) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out001.mykolab.com (Postfix) with ESMTPS id 6CE0E469 for ; Mon, 22 Mar 2021 00:59:17 +0100 (CET) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx003.mykolab.com (Postfix) with ESMTPS id CDF2C5C42 for ; Mon, 22 Mar 2021 00:59:16 +0100 (CET) From: Joseph LaFreniere Date: Sun, 21 Mar 2021 18:59:13 -0500 Message-ID: <87y2egys6m.fsf@lafreniere.xyz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=95.128.36.42; envelope-from=joseph@lafreniere.xyz; helo=mx.kolabnow.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616371212; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=MPGtYplVFHKm6X+bJr3MlN1f8ws0E1JIbnGILI8/Rbg=; b=LYg5HiLf0fIB6uJbuObgvmrmFkYJNyiFa2nNmdXq3heZAFdeaPYMrJnr1BGNYnOVrKDgxo 3u0hrHkWqR4jfmyQROxZ/EM3H8CiTY8o3Urpqb/mWRcj209YqRDsdds4349DGqU4gxP+PP yEP4rfdCyAxpC+gJZX//ImQAwdqUYanK1kAjntT/DN105F16QpuqpsWy04l6+bdIj4phgF eRNYftqc624iGN8fFMopRgWfq/+cI/qSV0usIhXEGpISPx9N718mLzgWaeQ4kdrbZZH16k Vl5TRl1mARTZ7VWL/85Nx+VSu0+wK1uuGLJzt8Q7JA3RQFstLDyn3qTmjLhbBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616371212; a=rsa-sha256; cv=none; b=bv/uyMIKUP+pUptlM+lpgdMAzAANi0B8p6eq/8t7FL+gTvfadRcCNuQb2NaTrZtvLx0f2Z FKEZessyGuPSY4AGCLnLWSG4iK9XEa2Whvpw6OcP8s0L80PCQUNJZPKovayFanAIi/4IbS cmwgBUW/dMl1UY6SvrWTs7FeWQlMyf/3JD1gNDexG0D0auMquoW5GPWB8cjmMbEpdE6/2C Kj0mEvGhHn3hDL++TSZWsZ7+sxvB4yZS+N1ILaxJXWn6wKWOGJGqyzm3dWFYIb3SH78GdC GhTD13kUbQIhmsgmxngucdbruu/k39yN1pJHAEVGLw9DhsqrYUBLzMWirXc8QQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=Df95Ljpe; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=Df95Ljpe; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 6A5102A775 X-Spam-Score: -1.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: cHRq0qifQLPK --=-=-= Content-Type: text/plain; format=flowed Patch file is attached. -- Joseph LaFreniere --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-emacs-cascading-dir-locals.patch >From 5850eca0f094b35dcfc8a7da223bc836c7bbec3b Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Sun, 21 Mar 2021 18:58:25 -0500 Subject: [PATCH] gnu: Add emacs-cascading-dir-locals. * gnu/packages/emacs-xyz.scm (emacs-cascading-dir-locals): New variable. --- gnu/packages/emacs-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 7085318e58..da89c41275 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -27253,3 +27253,36 @@ and prefered services can easily be configured.") "This package provides an Elisp wrapper around the Java @command{keytool} command and major mode for viewing Java keystores.") (license license:expat)))) + +(define-public emacs-cascading-dir-locals + (let ((release "0.1") + (revision "0") + (commit "efdf5e6d62b955ee0ca3c170eae1d388799f9fa0")) + (package + (name "emacs-cascading-dir-locals") + (version (git-version release revision commit)) + (home-page "https://github.com/fritzgrabo/cascading-dir-locals") + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1jwd99kk5l588n7wwi1x3b4bgimm66x1icna3n20pwaj49kf0zy8")))) + (build-system emacs-build-system) + (synopsis "Apply all @file{.dir-locals.el} from root to current directory") + (description + "This package provides a global minor mode that changes how Emacs +handles the lookup of applicable dir-locals files (@file{.dir-locals.el}): +instead of starting at the directory of the visited file and moving up the +directory tree only until a first dir-locals file is found, collect and apply +all (!) dir-locals files found from the current directory up to the root one. + +Values specified in files nearer to the current directory take precedence over +values in files farther away from it. + +You might want to use this to globally set dir-local variables that apply to +all of your projects, then override or add variables on a per-project basis.") + (license license:gpl3+)))) -- 2.31.0 --=-=-=--