From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EDYQMUq/lV9uBgAA0tVLHw (envelope-from ) for ; Sun, 25 Oct 2020 18:09:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8MDvLEq/lV+7AgAA1q6Kng (envelope-from ) for ; Sun, 25 Oct 2020 18:09:14 +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 14C83940148 for ; Sun, 25 Oct 2020 18:09:14 +0000 (UTC) Received: from localhost ([::1]:47634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWkS9-00078I-0n for larch@yhetil.org; Sun, 25 Oct 2020 14:09:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWkS0-00078C-4B for guix-devel@gnu.org; Sun, 25 Oct 2020 14:09:04 -0400 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]:45241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kWkRy-00053q-Ft for guix-devel@gnu.org; Sun, 25 Oct 2020 14:09:03 -0400 Received: by mail-qk1-x741.google.com with SMTP id 188so6338815qkk.12 for ; Sun, 25 Oct 2020 11:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=fHf+lpbes3MRx0gBNgxI69mjzcby2PiEQbl4GtjXIYI=; b=Uuw3BTiLamTu5z3wnMsuvuJAykwbOhwXLyZ4if1jDTzHKD2nxezmh6IEpUtFuc0Gg4 DNiIKgFq3gKouDSI+i57XyRyHcuvbeywNpzv2STEP2qXPypX+2gXhDykhxIkObggicE9 5URJDhDnQfOFn2jXSbYDCcihMA53ZpuowiwOB5MrsfqwiDVCggvaAz+8RrEwKvVxNKm6 f0VBtHXdmitHUm3gjMFtJB3JJAw5UhlwAUguxdXVIBxZj9p8MdbhLNNgYOcGKFp0ZyYi ZeSfvBXy2ZIIG8gTodDBsiftK+dt++HqkxK2COyBgOnmTSWvSLL79ozgkW+yUMJeUvoB 8LdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=fHf+lpbes3MRx0gBNgxI69mjzcby2PiEQbl4GtjXIYI=; b=k+dALeLsKAbsANBvRK9KQ0mPXthJHu8+qWr1BjaQAo5yAbxYKborOWr/nR0lB2A6BN +if6QUJAG6ZuGfGSDPH63oVj5E5RZ9l5ivYEHWusGpYOH0aiCCJrTEQ2cWcM5d83BoPO nfQ2w28v/xnv2he/Y4dqgDezCYUwlfFXDmmDqcXEQyNzcqjDE3vuQIYkBL/r22hmN/Wo OM7dTi21seCCI1c19jUmCP3K/QwGRxqsYXvjB5WCp8vCh+e3DtrSW7fHhRp4mUdvZ1L5 ta9US79lODMACIW9s0kMkSGHaOR1Oc2r2iuthfZ/iL61LlQ5xL+FxM+wNAzGyz3MoHrH LwRQ== X-Gm-Message-State: AOAM533rrXmsfo3yFpCOgRYdGNypz/4WzfNQon6lRj8dFSyPMuJcvcDB MYXrk8e90vDUJaEn3GksSNjIVqCKhYQ= X-Google-Smtp-Source: ABdhPJxw+n3xBl+4a9tSs1gf94IAI1Zu/8Ut6xip4oGGFnB9i3AqA/vtuSN0M6Etae2MNaQKq2EkTg== X-Received: by 2002:a05:620a:13ab:: with SMTP id m11mr11790056qki.56.1603649341233; Sun, 25 Oct 2020 11:09:01 -0700 (PDT) Received: from hurd (dsl-10-129-233.b2b2c.ca. [72.10.129.233]) by smtp.gmail.com with ESMTPSA id o2sm4996161qkk.121.2020.10.25.11.08.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 11:09:00 -0700 (PDT) From: Maxim Cournoyer To: guix-devel Subject: [PATCH] Automatically set `geiser-guile-load-path' from .dir-locals Date: Sun, 25 Oct 2020 14:08:59 -0400 Message-ID: <87tuuixjno.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::741; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x741.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Uuw3BTiL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: ghb9AVb/Hpxk Hello Guix! I've been experimenting with the following modification to the .dir-locals file shipped with Guix, that allows setting per-buffer variables within Emacs when visiting a file in the same directory (or in one of its sub-directories). This makes life a bit easier, by ensuring that a Geiser REPL started with C-c C-a in a file of either the main 'guix' checkout, a 'guix-core-updates' worktree or a 'guix-staging' worktree will set up the GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH correctly (via the `geiser-guile-load-path' Elisp variable). The only requirement for it to work reliably is that any Guix checkout or worktree name should start with "guix". It doesn't require Geiser to be installed (it will just set the above variable uselessly if it isn't used -- not a big deal). What do you think? Is it useful? Should we include this as part of the default .dir-locals of Guix? Patch to follow! Thanks, Maxim