From unknown Fri Aug 15 04:05:07 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51460 <51460@debbugs.gnu.org> To: bug#51460 <51460@debbugs.gnu.org> Subject: Status: emacs-magit: path error during commit Reply-To: bug#51460 <51460@debbugs.gnu.org> Date: Fri, 15 Aug 2025 11:05:07 +0000 retitle 51460 emacs-magit: path error during commit reassign 51460 guix submitter 51460 Christopher Howard severity 51460 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 28 10:25:00 2021 Received: (at submit) by debbugs.gnu.org; 28 Oct 2021 14:25:00 +0000 Received: from localhost ([127.0.0.1]:52897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mg6Kx-0002XB-FR for submit@debbugs.gnu.org; Thu, 28 Oct 2021 10:25:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:49586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mg6Kk-0002WY-Cp for submit@debbugs.gnu.org; Thu, 28 Oct 2021 10:24:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg6Kj-0003HO-Bd for bug-guix@gnu.org; Thu, 28 Oct 2021 10:24:46 -0400 Received: from mx.kolabnow.com ([212.103.80.153]:40318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg6Ke-0004qX-To for bug-guix@gnu.org; Thu, 28 Oct 2021 10:24:44 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id D0EBF40F2A for ; Thu, 28 Oct 2021 16:24:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:mime-version:content-type:content-type :date:date:from:from:subject:subject:message-id:received :received:received; s=dkim20160331; t=1635431076; x=1637245477; bh=AjBFVjThBkLGyEaIQ/Ws/dF9PJMAAbIwNHIA/pIrtYA=; b=CDCgVJ+TjLTS e792yAaYccigCwc+xI5S44+j4c/Uvri7NVzqWsmjY960umYqCiZRPpsDA5eWwkcr 0GimopTdRTtLbv/KQXPsHBGyW0MjBgMXg1m6gWi0+6BHUF7dHDUPRb/0gvORdheX eAvxu/PQiI/mIl/aWjZlpaq3sn3voSCFoLWUI8nkPOLqTPI4TKpRVlOCl9M36QSA D5UM/AzmHfTxyqkZ+rRaYAWDyz+YrdGBDkaLhIQK92xs+JauziAoON4nVEBDD7UZ zSTif5gdYp5YEdt3fA7VtjRoNInOk0kN5HNGG1q9uubZudaECTpbrrMQvTeRLzuW 4wIZeElX19hVah1ywM3CWyjNK5nTCFkuCdaB7TnptLjWNzNPfdbWaCYkgDJBSrW8 rJeTffk+9Evy7/BgyuaoYL5JlJFqvy5SS2c4UFnQCGmSiTAePMz4lnYe/7RSYca6 TJD6E+IUHOMHYz/o5KcBPBvjR7Cdf2H9Y553hwC3VoMeVxRfP/iOmRb64upvMdsI 0fXqvZQvGatGJLpvmdI5DXESe3mrdgDBeG7q44i5njBszLXmkiYeCfnxMHGcUt5+ R416ukJXT8XYpQz+KnoRL+sMsHtNxPKKydWL84C8CA/ILjSpzxXiE307fibHkKz7 5GUTVFl0K2vxm2L712DFmL9mEE1WXzA= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-10 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zAB7nnDVyv7w for ; Thu, 28 Oct 2021 16:24:36 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id 1CA4A40EA2 for ; Thu, 28 Oct 2021 16:24:35 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx001.mykolab.com (Postfix) with ESMTPS id C706FB6D for ; Thu, 28 Oct 2021 16:24:35 +0200 (CEST) Message-ID: <068232bf9c2157d6b8636615b361398cac4470c1.camel@librehacker.com> Subject: emacs-magit: path error during commit From: Christopher Howard To: Guix Bug Reports Date: Thu, 28 Oct 2021 06:24:30 -0800 Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=212.103.80.153; envelope-from=christopher@librehacker.com; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, for a long time I've struggled with getting a path error when I try to do a commit using emacs-magit. Here is an example log copied from the magit-process buffer: ``` 0 git … add -u -- Genesis/gen_1.org 1 git … commit -- hint: Waiting for your editor to close the file... Waiting for Emacs... *ERROR*: Searching for program: No such file or directory, git error: There was a problem with the editor '/gnu/store/dpky3z5844bclhswdk69z90vayy65b58-emacs-27.2/bin/emacsclient --socket-name=/run/user/1000/emacs/server'. Please supply the message using either -m or -F option. ``` I find this confusing because - I can use magit to stage my commits - In the Magit Group (M-x customize-group magit), the Magit Git Executable is set to /home/christopher/.guix-profile/bin/git, and that file does exist in my profile. - /gnu/store/dpky3z5844bclhswdk69z90vayy65b58-emacs-27.2/bin/emacsclient also does exist - Within emacs, I can run the shell command M-! git commit or M-! git commit -m "..." and this works fine. I suspect that emacs-magit might not be properly using the Magit Git Executable path for this action, but haven't had a chance to look at the source code yet. Probably this should be submitted as an issue or support request to emacs-magit, but I have not done so since (on principle) I do not have a github account, or use google groups. Here is my system information; ``` christopher@nightshade ~$ neofetch --stdout christopher@nightshade ---------------------- OS: Guix System 9aaf402a379b9ac9e4c3eee5b16f7496d7606e91 x86_64 Host: GA-880GM-UD2H Kernel: 5.14.9-gnu Uptime: 1 hour, 20 mins Packages: 61 (guix-system), 155 (guix-user) Shell: bash 5.0.16 Resolution: 1920x1200 DE: GNOME 3.34.5 Theme: Adwaita [GTK2/3] Icons: Adwaita [GTK2/3] Terminal: .gnome-terminal CPU: AMD Athlon II X3 455 (3) @ 3.300GHz GPU: NVIDIA GeForce 8400 GS Rev. 3 Memory: 1338MiB / 7893MiB ``` -- Christopher Howard Gemini capsule: gemini://gem.librehacker.com Web version: https://portal.mozz.us/gemini/gem.librehacker.com From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 26 17:54:36 2022 Received: (at 51460) by debbugs.gnu.org; 26 Feb 2022 22:54:36 +0000 Received: from localhost ([127.0.0.1]:56441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nO5xU-00047G-0Z for submit@debbugs.gnu.org; Sat, 26 Feb 2022 17:54:36 -0500 Received: from out0.migadu.com ([94.23.1.103]:44788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nO5xR-000477-O7 for 51460@debbugs.gnu.org; Sat, 26 Feb 2022 17:54:34 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1645916071; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DnLLOoJsbvVlNO0dxDIM2npdr/cxNjAcDXnpjUZuz0Y=; b=uhAflTM0JhtkzMn5jUuSkqyfg589u5qjYe5dGW87y9fB+O9APhzAjKFZcZsBcWocK3bcBB ie+bMqpvlcM+sSq9hhRwWNECU4o8inSR/Ww/yGxtch3oo6eUIFDuqVB8DnfAA0dQa09Kcm w/8OVK4sBewoZArShuQ/KwMd+waRMtww4CmiRLu3vnlEvloD73n08QQKMEg7Kxo8RoTsAT El8I/j8E75PaUwM2cUmDvdleyKe+U6CM1lJ+8k4952joZqL71QsgWTIZQGb5kWXiGX3A5t JzlLKu648YZH1U76Ws4w83/pTBLMCMRFXv0dxSl2rI5/1bZBv6ILLTs9Zefe5w== From: Kyle Meyer To: Christopher Howard Subject: Re: bug#51460: emacs-magit: path error during commit In-Reply-To: <068232bf9c2157d6b8636615b361398cac4470c1.camel@librehacker.com> References: <068232bf9c2157d6b8636615b361398cac4470c1.camel@librehacker.com> Date: Sat, 26 Feb 2022 17:54:29 -0500 Message-ID: <87czj92q8q.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyleam.com X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51460 Cc: 51460@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, I came across this bug report when searching for something else. In case it helps... Christopher Howard writes: > Hello, for a long time I've struggled with getting a path error when I > try to do a commit using emacs-magit. Here is an example log copied from > the magit-process buffer: > > ``` > 0 git =E2=80=A6 add -u -- Genesis/gen_1.org > 1 git =E2=80=A6 commit -- > hint: Waiting for your editor to close the file... > Waiting for Emacs... > *ERROR*: Searching for program: No such file or directory, git > error: There was a problem with the editor > '/gnu/store/dpky3z5844bclhswdk69z90vayy65b58-emacs-27.2/bin/emacsclient > --socket-name=3D/run/user/1000/emacs/server'. > Please supply the message using either -m or -F option. > ``` In Magit v3.3.0 and earlier, this error matches what you would see if "git" isn't in $PATH for the editor that pops up. This is true even when magit-git-executable points to an executable. In the development version of Magit, this should no longer happen as of 77255776 (git-commit: Use magit-git-executable function if available, 2022-02-21). The issue that prompted that is . (I know that below you say you don't use GitHub, but for others that may find that useful.) (Based on what you say below, it sounds like "git" should be in $PATH, so things aren't quite adding up still.) > I find this confusing because > - I can use magit to stage my commits > - In the Magit Group (M-x customize-group magit), the Magit Git > Executable is set to /home/christopher/.guix-profile/bin/git, and that > file does exist in my profile. > - /gnu/store/dpky3z5844bclhswdk69z90vayy65b58-emacs-27.2/bin/emacsclient= =20 > also does exist Yes, staging and most of things in Magit respect magit-git-executable. As I mention above and you suspect in the quoted text below, that value wasn't consulted by the code path relevant for the error above (in git-commit.el). > - Within emacs, I can run the shell command M-! git commit or M-! git > commit -m "..." and this works fine. Hmm, so your main Emacs session has "git" on its exec-path. Perhaps there's something going on with the with-editor launched editor. I'd suggest looking at with-editor-debug and seeing if /home/christopher/.guix-profile/bin is in the path it reports. > I suspect that emacs-magit might not be properly using the Magit Git > Executable path for this action, but haven't had a chance to look at the > source code yet. Yep, that's it, and, as I mentioned above, should be fixed by 77255776 (git-commit: Use magit-git-executable function if available, 2022-02-21). From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 12 10:24:07 2022 Received: (at 51460) by debbugs.gnu.org; 12 Jul 2022 14:24:07 +0000 Received: from localhost ([127.0.0.1]:43378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBGo2-0002Mq-R7 for submit@debbugs.gnu.org; Tue, 12 Jul 2022 10:24:07 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:33532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBGo1-0002MD-5p for 51460@debbugs.gnu.org; Tue, 12 Jul 2022 10:24:05 -0400 Received: by mail-qt1-f173.google.com with SMTP id r2so9496224qta.0 for <51460@debbugs.gnu.org>; Tue, 12 Jul 2022 07:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=3zf3uBYaTCu39UNNDDhBBtPWCvSKA/LZF3G0vot2Uy8=; b=aqTc+9v/OI/+IocnbWAT3woc0wBQW9NWjLPAy+q1wCusEXJ9qkpSz2NTGFowan8GSp U/xDAxqsYoCXnX3eRN2mcHW1mpw3ykk6KX9Kj/j+ceB/JW0TxIitL84UM8qzcFxsPptk /b5sAeqdaFk4xr9YOGg1BbI8D0UZ3hfGP5NZeZKDTp7j4QOzMRoF9ciilZHTcyaTU9bj pyVFfG4Chrfy9edIMvSynepCwKQw9G41305AC1/atm+HzhZj8YTL0vBrLv6RvrmNMyRo AwiPq5TI+YgPQtTZFqs8MJfJWfb3IkO1X7r5HvPvhEscG6kkSCHMe1xwAnSgdgtSMt8H duVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=3zf3uBYaTCu39UNNDDhBBtPWCvSKA/LZF3G0vot2Uy8=; b=knxSLjtRH+0qvU8keAM0SFoDUBoXvbXiRIKd8AeMVTJuH0I8oTK1EqK+YwuEnUs8Lk iYDglv6JZaeOMMY9M/jNjD6vH8sDTuX73+4rJmfN3eGGMttpZloe1UJ9qkzKjVql4j// Qv9SAF/VzuutuNfztnD58K3X5ld3aJ0w2D1R15u1Lb0gSNcmMIWJGtNxymJMCGir0tT6 /MUFRaPd7CozbFbAxH5dXOt+nwsHck+wDUgOY8WooRmxahtidpXV/hT60KIiEPZi6baw BLarR/DUgqH6mHruU7T4ByGvW27ObmOfheSPfg0pV1Cr6qLqIwWzdrrK2w1+jNLy5S58 D7rw== X-Gm-Message-State: AJIora9rDoMOFgkVB1Hol5cRoKEgeod2oGMBG9sDMbL4SZdWKC7dTKbU KHeY3+krW9QDj7JZT/c0uB0nB2XmErXg8gtz X-Google-Smtp-Source: AGRyM1tzSlj71ZbQHOnaymdpOFEtgoWXc/fN4xMOViazLj/JyHqO6KbfOPB00q4C8mukqQHCtz8LZA== X-Received: by 2002:ac8:5c94:0:b0:31b:899:3063 with SMTP id r20-20020ac85c94000000b0031b08993063mr18328571qta.153.1657635839297; Tue, 12 Jul 2022 07:23:59 -0700 (PDT) Received: from hurd (dsl-155-226.b2b2c.ca. [66.158.155.226]) by smtp.gmail.com with ESMTPSA id y13-20020a05620a44cd00b006b5a9e53105sm949192qkp.91.2022.07.12.07.23.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 07:23:58 -0700 (PDT) From: Maxim Cournoyer To: Christopher Howard Subject: Re: bug#51460: emacs-magit: path error during commit References: <068232bf9c2157d6b8636615b361398cac4470c1.camel@librehacker.com> Date: Tue, 12 Jul 2022 10:23:57 -0400 In-Reply-To: <068232bf9c2157d6b8636615b361398cac4470c1.camel@librehacker.com> (Christopher Howard's message of "Thu, 28 Oct 2021 06:24:30 -0800") Message-ID: <871quq8l4y.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51460 Cc: 51460@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Christopher, Christopher Howard writes: > Hello, for a long time I've struggled with getting a path error when I > try to do a commit using emacs-magit. Here is an example log copied from > the magit-process buffer: > > ``` > 0 git =E2=80=A6 add -u -- Genesis/gen_1.org > 1 git =E2=80=A6 commit -- > hint: Waiting for your editor to close the file... > Waiting for Emacs... > *ERROR*: Searching for program: No such file or directory, git > error: There was a problem with the editor > '/gnu/store/dpky3z5844bclhswdk69z90vayy65b58-emacs-27.2/bin/emacsclient > --socket-name=3D/run/user/1000/emacs/server'. > Please supply the message using either -m or -F option. > ``` One thing I can think about is that emacs-magit doesn't refer to git directly: $ guix gc -R /gnu/store/xd1bvmac1p4gjxb90m875r15xna52jyr-emacs-magit-3.3.0 /gnu/store/720rj90bch716isd8z7lcwrnvz28ap4y-bash-static-5.1.8 /gnu/store/vqdsrvs9jbn0ix2a58s99jwkh74124y5-coreutils-minimal-8.32 /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33 /gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8 /gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib /gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0 /gnu/store/xd1bvmac1p4gjxb90m875r15xna52jyr-emacs-magit-3.3.0 So it needs to be on your PATH. For me, the value returned by 'C-h v magit-git-executable' is "git". One thing we could do is patch the default value of this Elisp variable in our emacs-magit package to git, so that users wouldn't need installing git manually. Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 03 23:25:05 2023 Received: (at 51460-done) by debbugs.gnu.org; 4 Oct 2023 03:25:05 +0000 Received: from localhost ([127.0.0.1]:41105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnsVV-0004B1-3l for submit@debbugs.gnu.org; Tue, 03 Oct 2023 23:25:05 -0400 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]:54423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnsVS-0004AS-9K for 51460-done@debbugs.gnu.org; Tue, 03 Oct 2023 23:25:03 -0400 Received: by mail-qv1-xf29.google.com with SMTP id 6a1803df08f44-65b0dad1f98so10648886d6.0 for <51460-done@debbugs.gnu.org>; Tue, 03 Oct 2023 20:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696389879; x=1696994679; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=fSWe+sGOCH91PTWzkguk82YOXH0h/gN+IcGb2PlTQio=; b=Ycf9Gi2hKAXyv/PZXCrz5po0mzPy1HF9kG4ImT85IgR8R96QqH8MEtCXJQBwzyE5Zf Uaya6h68iBhUXdMC8LOeifkCRc8yy7KtYHo1onQwTNgQjq787Co/Tz1k5dA98O4p1krE t7O2xHaYvqaMLhFKP3J9hURpObgs3AGqP8bEn4NSa7nGgzHuFZSC7Yt1rAKOfHeN4XiA 9jftEhXogYmTEOLMOjaMPNyOUEABdoSkl28wKL0VnePeYSjYVO+zUIZhSK+5Yr6ECiWJ 6c0exdszYBp/SVPNHY8gdGtL0AEUd26pY/PfZWk/0rP6cII+Gi1JkK/36GvJq9neezo6 hs8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696389879; x=1696994679; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=fSWe+sGOCH91PTWzkguk82YOXH0h/gN+IcGb2PlTQio=; b=HIPfPFgkL9odMc2CPWaYvbGk4uEj5/gTR/NHGnufAsiQrdoij1MkHtV6LDmJ7l0Tt+ AYJa2VH+peY9dZ0jJsxLio/9w9ev5RcSoPs6kABJTsJvSiNfmCkce/gaYpoRgJO8OlCk nsaizY7Zk3YNkLS1ZeUfc1KUi689rc/pj9gvye45LcWEHQlZmRuNx7mDZPcOxGQje7wv OpyW8VOCmYlsvU884zqbAW059l7LJ9P08S1W7DNhrhEjxeWaqir9BA8haGu0i8yUE19d TpaPv04YFV2GLcxx9G9k7SQUlcglXhMY6rq8YF9VwIN8wwEXZL62Xcgp8wT8Diulv+hL j2MA== X-Gm-Message-State: AOJu0YzFyc/anBzohARcXeSq6CBTJylijfTbbvfWEq4vPTA/YdAcVrZG 3waAJGPxtk9y0j0qzTpaOmAysWSN7FCwUA== X-Google-Smtp-Source: AGHT+IH/sFD1RMhOSv/1UvmJF6GScAv5yD6TIdbJbEhrFZn0zr9Awi+pFg4JA8ysXIgfgSDWimiVaA== X-Received: by 2002:a0c:d641:0:b0:663:95d0:a50b with SMTP id e1-20020a0cd641000000b0066395d0a50bmr1099690qvj.30.1696389878831; Tue, 03 Oct 2023 20:24:38 -0700 (PDT) Received: from hurd (dsl-141-24.b2b2c.ca. [66.158.141.24]) by smtp.gmail.com with ESMTPSA id g19-20020a0caad3000000b0065afa589bbdsm1004686qvb.66.2023.10.03.20.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 20:24:38 -0700 (PDT) From: Maxim Cournoyer To: Christopher Howard Subject: Re: bug#51460: emacs-magit: path error during commit References: <068232bf9c2157d6b8636615b361398cac4470c1.camel@librehacker.com> <871quq8l4y.fsf@gmail.com> Date: Tue, 03 Oct 2023 23:24:37 -0400 In-Reply-To: <871quq8l4y.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 12 Jul 2022 10:23:57 -0400") Message-ID: <871qeb3w96.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51460-done Cc: 51460-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Maxim Cournoyer writes: > Hi Christopher, > > Christopher Howard writes: > >> Hello, for a long time I've struggled with getting a path error when I >> try to do a commit using emacs-magit. Here is an example log copied from >> the magit-process buffer: >> >> ``` >> 0 git =E2=80=A6 add -u -- Genesis/gen_1.org >> 1 git =E2=80=A6 commit -- >> hint: Waiting for your editor to close the file... >> Waiting for Emacs... >> *ERROR*: Searching for program: No such file or directory, git >> error: There was a problem with the editor >> '/gnu/store/dpky3z5844bclhswdk69z90vayy65b58-emacs-27.2/bin/emacsclient >> --socket-name=3D/run/user/1000/emacs/server'. >> Please supply the message using either -m or -F option. >> ``` > > One thing I can think about is that emacs-magit doesn't refer to git > directly: > > $ guix gc -R /gnu/store/xd1bvmac1p4gjxb90m875r15xna52jyr-emacs-magit-3.3.0 > /gnu/store/720rj90bch716isd8z7lcwrnvz28ap4y-bash-static-5.1.8 > /gnu/store/vqdsrvs9jbn0ix2a58s99jwkh74124y5-coreutils-minimal-8.32 > /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33 > /gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8 > /gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib > /gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0 > /gnu/store/xd1bvmac1p4gjxb90m875r15xna52jyr-emacs-magit-3.3.0 > > So it needs to be on your PATH. For me, the value returned by 'C-h v > magit-git-executable' is "git". One thing we could do is patch the > default value of this Elisp variable in our emacs-magit package to git, > so that users wouldn't need installing git manually. Commit b59b033af3957e0de9a44733e26cbcc7114a4dfb ("gnu: emacs-magit: Substitute git executable path.") should prevent such a situation from occurring. --=20 Thanks, Maxim From unknown Fri Aug 15 04:05:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 01 Nov 2023 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator