From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: nesting with-imported-modules Date: Sat, 01 Feb 2020 23:23:11 +0100 Message-ID: <874kwat0a8.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39578) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iy1Ag-0008Fh-Dy for guix-devel@gnu.org; Sat, 01 Feb 2020 17:23:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iy1Af-00087l-Fl for guix-devel@gnu.org; Sat, 01 Feb 2020 17:23:22 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21135) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iy1Af-00087L-4I for guix-devel@gnu.org; Sat, 01 Feb 2020 17:23:21 -0500 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+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hi Guix, it seems that it is impossible to nest with-imported-modules. A gexp that is wrapped in multiple layers of with-imported-modules won=E2=80=99t d= epend on the list of all mentioned modules but only on the outermost. This is because with-imported-modules sets the current-imported-modules parameter without checking if the parameter already has a value. Should nesting be supported? It seems useful. -- Ricardo