From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EGxoDIfeSWdQJgAA62LTzQ:P1 (envelope-from ) for ; Fri, 29 Nov 2024 15:32:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EGxoDIfeSWdQJgAA62LTzQ (envelope-from ) for ; Fri, 29 Nov 2024 16:32:23 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=QUF336q7; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=OYKglCgp; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" 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 2203F87149 for ; Fri, 29 Nov 2024 16:32:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tH2tu-0001ec-0a; Fri, 29 Nov 2024 10:27:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tH2td-0001VD-5e for bug-guix@gnu.org; Fri, 29 Nov 2024 10:27:06 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tH2ta-00031T-DU for bug-guix@gnu.org; Fri, 29 Nov 2024 10:27:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=oycMXO82U6NQo+o/L+3bRW23s4Vr6xqhGUGtAVoRNh4=; b=QUF336q7RuPoq57cYMPTlGSffBpeJf1/IAYEiBAVEeD3nDpX+E5IWoVVxb1zNWHGUCzKZIGx8TdTD5J/IDFInXHNYUEUL68oXbtginM1OcObrZSrC0fr0l3fVWRgPsi2LOrHUU9KPZmE1mWvL+qtVP4S8kHKPtTEXw7B2kHNqGMX8H/yR/6GJ4gl3Dx8RZrPGU/UutHCPmvz7lkm9kR/gBqjqMewlQ7nDlxS/Gbbz36ajThTyP2Cb62QON16pzs9R5qzmuquHJfTF6mrphabVok3qWrnHywJWpL4+aojHYHyguF1vpzBVOBzX4jpYhx4TKYyX+usfiKriXZlBzqYBA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tH2ta-0006iL-1D for bug-guix@gnu.org; Fri, 29 Nov 2024 10:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#55013: Guix-emacs doesn't work Resent-From: Suhail Singh Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 29 Nov 2024 15:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55013 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Suhail Singh Cc: g@xelera.eu, rprior@protonmail.com, csantosb@inventati.org, rekado@elephly.net, 55013@debbugs.gnu.org, janneke@gnu.org Received: via spool by 55013-submit@debbugs.gnu.org id=B55013.173289397125719 (code B ref 55013); Fri, 29 Nov 2024 15:27:01 +0000 Received: (at 55013) by debbugs.gnu.org; 29 Nov 2024 15:26:11 +0000 Received: from localhost ([127.0.0.1]:44059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tH2sl-0006gk-Jb for submit@debbugs.gnu.org; Fri, 29 Nov 2024 10:26:11 -0500 Received: from mail-yb1-f194.google.com ([209.85.219.194]:48310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tH2si-0006gX-Ly for 55013@debbugs.gnu.org; Fri, 29 Nov 2024 10:26:09 -0500 Received: by mail-yb1-f194.google.com with SMTP id 3f1490d57ef6-e398273d6ffso1148516276.0 for <55013@debbugs.gnu.org>; Fri, 29 Nov 2024 07:26:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732893903; x=1733498703; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=oycMXO82U6NQo+o/L+3bRW23s4Vr6xqhGUGtAVoRNh4=; b=OYKglCgp08pSCdsOdfGRcXvFb7j39ncyMBfRlhoTRcemre074eW/Z3Iye0jmVLfmpx X1bu9HkvEjHqbp1/NLYg1h1UskV+igGI7ysIWa1FR6QBushU3xOlsXbLONSwbaEjUbn0 f7S8gB186jV4kga3C35oG9dbAepholxwPAd9sr9XE04f0AZywxTIn+v31rvXa2jgBBI7 /TVYvEAL9FQnXkSDfKCBeorazzIIRpXH+vJYDtY//3PxYn1MxaH1gPTQJLo9uFFeIhDm cdJYn/zn0zxlMRNVrJ0PezfuXf5pxUsBUS9oSkTmTonqerYsxyB3ldjEK6P/09mexFBV kqzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732893903; x=1733498703; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=oycMXO82U6NQo+o/L+3bRW23s4Vr6xqhGUGtAVoRNh4=; b=pT1gFJxQ67kCpXXH0MlheO/P4S3L95ujjlf/1nndwrvk9yGVr3/cSe2l2OwNUT+MoI fkAE60FFIT4+sUWcSc5V0YjPOi+4PziX6dKuQywdgbq7CJr/TwrvA0VvNThpmFc54MOA mzmbU19k9gQWBNGdUQU3SsrQ/OjqC7nsSle65pRnL/4kKvcvkeOozAZGaQuN8GQ0S8bF 0xGdnWruVRDszd+jSoepfqb5C/AtGGPKcTFKXtgFxUl+PzQa3Gc1Y1wSHke06cEkzW2W LXQofXpxPdCyzmH28ngZVeldl6Gjbx44alKhp/JLvb9bUVtZkWzV5nqER5cM3LN5W9Vb 6qOw== X-Gm-Message-State: AOJu0Yx88tncoaaru6zdXFldv5tm6UxH7wqLoNR0TAN49UHK5R+Cy2nR mQzItiZXaHvJlMFZUMJIVe0a52ZM70QUNYoo6lEPZkV5TwBmrcAV X-Gm-Gg: ASbGncsycugUnvv1UwKkxDYohRhm4RDBCBzdOznTopU7bEkvi49CCYFDU2a8kFkVt8o UzYW09VXgpddxcTlHCCGY03qpsVjljf9m1sH0zNVeoB91Xv4uDpHdJj+gYoJqsE+DoBC+VZP2FG 3uIU3bu8xsuSmeYq82jp8jllr/9Vn74WHqofJnHKLbsaupKeDQbm5nve8KdJ+qR0QRMUJ/i2Eq0 h98szbbqfG7I9D1iD8R82OGDIm/unkM6kxb1T5k3X5oATiZ1RiFUftdXqiueZoe3isPDmchP4Oa 9XkLnL4hJD9ukAJjTb3hMXBSsTl6IBPqYg== X-Google-Smtp-Source: AGHT+IELB6NB4urm7OrxbBCt0Ht9yQh3Ns4tSZQp40QEqWtRYhzYjlFuvWiNUe/uE5bs1h6XDNB3fg== X-Received: by 2002:a05:6902:1895:b0:e30:c614:5c3a with SMTP id 3f1490d57ef6-e395b869b78mr11855225276.3.1732893903130; Fri, 29 Nov 2024 07:25:03 -0800 (PST) Received: from gnus (bras-base-mtrlpq4385w-grc-01-76-65-175-237.dsl.bell.ca. [76.65.175.237]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6d87522202csm17385776d6.107.2024.11.29.07.25.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2024 07:25:02 -0800 (PST) From: Suhail Singh In-Reply-To: <87plmersxf.fsf@gmail.com> (Suhail Singh's message of "Fri, 29 Nov 2024 09:55:08 -0500") References: <878qt2cokv.fsf@inventati.org> <87cyie9udn.fsf@inventati.org> <87plmersxf.fsf@gmail.com> Date: Fri, 29 Nov 2024 10:25:01 -0500 Message-ID: <87h67qrrjm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 2203F87149 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.06 X-Spam-Score: -7.06 X-TUID: sRLhyiqEA//w Suhail Singh writes: > #+begin_src example > $> gx_shell bash-minimal coreutils-minimal emacs emacs-guix guix guile > [env]$> emacs > > .... > > $> type gx_shell > gx_shell is a function > gx_shell () > { > if ob_shell_session_p; then > local ps12='|PS1|PS2'; > else > local ps12=''; > fi; > ps12='|obsh_PS1|obsh_PS2'"${ps12}"; > local preserve='.*GTK.*|.*XDG.*|.*DISPLAY.*|TERM|INSIDE_EMACS'"${ps12}"; > guix shell --pure -CPWN -E "${preserve}" "${@}" > } > #+end_src Apologies for missing the reference to undefined functions in the above. For present purposes, gx_shell can be simplified as follows: #+begin_src example $> type gx_shell gx_shell is a function gx_shell () { local preserve='.*GTK.*|.*XDG.*|.*DISPLAY.*|TERM|INSIDE_EMACS'; guix shell --pure -CPWN -E "${preserve}" "${@}" } #+end_src -- Suhail