From unknown Wed Jun 18 23:09:44 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#32129 <32129@debbugs.gnu.org> To: bug#32129 <32129@debbugs.gnu.org> Subject: Status: 26.1; Bug in add-dir-local-variable when used with eval, progn and setenv Reply-To: bug#32129 <32129@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:09:44 +0000 retitle 32129 26.1; Bug in add-dir-local-variable when used with eval, prog= n and setenv reassign 32129 emacs submitter 32129 Luis Gerhorst severity 32129 normal tag 32129 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 11 19:07:36 2018 Received: (at submit) by debbugs.gnu.org; 11 Jul 2018 23:07:36 +0000 Received: from localhost ([127.0.0.1]:56057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdOCu-0000Pa-5l for submit@debbugs.gnu.org; Wed, 11 Jul 2018 19:07:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40645) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdOCs-0000PO-KI for submit@debbugs.gnu.org; Wed, 11 Jul 2018 19:07:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdOCm-0005lU-Hy for submit@debbugs.gnu.org; Wed, 11 Jul 2018 19:07:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56629) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fdOCm-0005lQ-EA for submit@debbugs.gnu.org; Wed, 11 Jul 2018 19:07:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdOCl-0002dp-Cn for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2018 19:07:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdOCh-0005jA-BF for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2018 19:07:27 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:59667) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fdOCh-0005iq-1h for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2018 19:07:23 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 4C39521B20 for ; Wed, 11 Jul 2018 19:07:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 11 Jul 2018 19:07:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=luisgerhorst.de; h=content-type:date:from:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=Q0W9AkXxfdXtgj bPPY6hY11qgNoNOwbkep2h7cK44YA=; b=M7oY2cRAIHUXRuXdLxHK5EqYLIeBhD yGq6LqBL2tog49lp5RtdDEeCXYirHI8n3/luaGBvd+1WWarLOmhMfoHOUeNOhe/i S9FTQAOuWuFstSBvLhSbNLxafQKIYXdGg3NSQhBUTQ0O9OnLp86i1ZVoWzUdQUjL 4u/afpfrxRHt0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=Q0W9AkXxfdXtgjbPPY6hY11qgNoNOwbkep2h7cK44YA=; b=hPJZAa8R 4B0tkLkTA14irM7fXgSiOI49lP6hd9TvpMjRyqP/hP8jblh7/TIjItlMLGWIdrKv ksxZUHjhY57ZVzKUP4CsJWqY1ZKAizPRcW2Re0qy4XUCaJxRS6UwqscCYgjAYaxx n2I9svOSttDXT42XP7INemgadbV0OcwwR0UjLP5A0sn1fWJdTQDnVRkk4meIgpwI sp78SUi6doO8310FbZO0pmg+c71r3+VB9oRkp3Ru2BCAWSwB51EQ1gOSynFgjcYy 249kX+slu8VgioJurG/0rcttfRZQFAj60ucvO5UZ6JirDPMFszHUM8z/VZ9c9urU +v1SONDcCisjfA== X-ME-Proxy: X-ME-Sender: Received: from luis-imac.fritz.box (p4fd7bb07.dip0.t-ipconnect.de [79.215.187.7]) by mail.messagingengine.com (Postfix) with ESMTPA id 8628D10268 for ; Wed, 11 Jul 2018 19:07:20 -0400 (EDT) User-agent: mu4e 1.0; emacs 26.1 From: Luis Gerhorst To: bug-gnu-emacs@gnu.org Subject: 26.1; Bug in add-dir-local-variable when used with eval, progn and setenv Date: Thu, 12 Jul 2018 01:07:17 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) 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: -5.3 (-----) (1) Open Emacs with emacs -Q (2) Type the following code into *scratch* (add-dir-local-variable 'c-mode 'eval '(progn (make-local-variable 'process-environment) (setq process-environment (copy-sequence process-environment)) (setenv "TEST" "hello"))) (3) M-x eval-buffer Expected .dir-locals.el contents: ((c-mode (eval . (progn (make-local-variable 'process-environment) (setq process-environment (copy-sequence process-environment)) (setenv "TEST" "hello"))))) Actual contents: ((c-mode (eval progn (make-local-variable 'process-environment) (setq process-environment (copy-sequence process-environment)) (setenv "TEST" "hello")))) When I open a C file and inspect process-environment, TEST is not set. When I manually create a .dir-locals.el with the expected contents, it works. Please correct me if I'm using add-dir-local-variable wrong, I was not able to find a version that works as expected with the above progn. Strangely, if I use (progn (message "hello")), instead of the progn with setenv, "hello" gets printed every time I open a C file. Configured using: 'configure --prefix=/home/cip/2016/un65esoq/local' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LCMS2 Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_CTYPE: C.UTF-8 value of $LC_MESSAGES: C.UTF-8 value of $LC_MONETARY: de_DE.UTF-8 value of $LC_NUMERIC: de_DE.UTF-8 value of $LC_TIME: de_DE.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 11 19:18:26 2018 Received: (at 32129) by debbugs.gnu.org; 11 Jul 2018 23:18:26 +0000 Received: from localhost ([127.0.0.1]:56065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdONM-0000fm-7N for submit@debbugs.gnu.org; Wed, 11 Jul 2018 19:18:24 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:40899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdONK-0000fd-7t for 32129@debbugs.gnu.org; Wed, 11 Jul 2018 19:18:22 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 22BC321B6D for <32129@debbugs.gnu.org>; Wed, 11 Jul 2018 19:18:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 11 Jul 2018 19:18:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=luisgerhorst.de; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=MqMzX1VJ2l1j+s/IyJozu2jPnQ KgvGdnvjCltgbk6GY=; b=kCVJAp1vL80+IhxTLJUE0l+XTdJKYxG0TrIYdAYt62 7mZlJHt2y9yKhqSGxsWv/y1sls4lJfSTAp68sHOKs/NdZhpKVjl2xNerqaWyofPn UuqcdZWMLC4H36Rc/elb3B395rr2AgAYzw+EhYIc52ripQ6RY6xeEEUikljq6D3m 0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=MqMzX1 VJ2l1j+s/IyJozu2jPnQKgvGdnvjCltgbk6GY=; b=r6vC0A2u5qkD9/G/qeczZn QCcupxuMz1Cg4F0AvtNc86cfvatNJiXLmLYnUN68YAy4xuY0zfQ1SqCSrZnOJFyy OY3+VzmmC+btcu3G+qlaN5nI1Huptcp4+1ZZvRp6hNRwoPn5pYm4lxwV6d/Hmr8s zVa3ztqgJmGR5CWe068vMnBgb/Pp+qFDs4oHQFULs7/23lFcEJWgRZCsG2sBZj1u hv+NomANacgleLeoHne8QrhK5tlNhvVQsGBbhrllqXb+jxYMcIX8MEkeDZpp+6D9 EGv+uwpTgPNO8x4bJUr0ODg0Ulmt1fCUNCwoj4OE0nPJHK6woZhfQyRoQL2BLA0g == X-ME-Proxy: X-ME-Sender: Received: from luis-imac.fritz.box (p4fd7bb07.dip0.t-ipconnect.de [79.215.187.7]) by mail.messagingengine.com (Postfix) with ESMTPA id 84B6310255 for <32129@debbugs.gnu.org>; Wed, 11 Jul 2018 19:18:20 -0400 (EDT) From: Luis Gerhorst Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: bug#32129: 26.1; Bug in add-dir-local-variable when used with eval, progn and setenv Date: Thu, 12 Jul 2018 01:18:19 +0200 References: To: 32129@debbugs.gnu.org In-Reply-To: Message-Id: <31BA42EC-58BC-4C69-9E04-E464AF41540D@luisgerhorst.de> X-Mailer: Apple Mail (2.3445.8.2) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32129 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 (-) I'm sorry for the noise, I just retried it and it worked, TEST was set. = So the generated .dir-locals.el does the right thing. Anyway: Shouldn't the .dir-locals.el look different? This is of course = just a question of preference, if it makes the code more elegant or = something I would accept that it's better to leave it as it is. Best regards, Luis > On 12. Jul 2018, at 01:07, Luis Gerhorst = wrote: >=20 >=20 > (1) Open Emacs with emacs -Q > (2) Type the following code into *scratch* >=20 > (add-dir-local-variable > 'c-mode > 'eval > '(progn (make-local-variable 'process-environment) > (setq process-environment (copy-sequence = process-environment)) > (setenv "TEST" "hello"))) >=20 > (3) M-x eval-buffer >=20 > Expected .dir-locals.el contents: > ((c-mode (eval . (progn (make-local-variable 'process-environment) > (setq process-environment (copy-sequence = process-environment)) > (setenv "TEST" "hello"))))) >=20 > Actual contents: > ((c-mode (eval progn (make-local-variable 'process-environment) > (setq process-environment (copy-sequence = process-environment)) > (setenv "TEST" "hello")))) >=20 > When I open a C file and inspect process-environment, TEST is not set. >=20 > When I manually create a .dir-locals.el with the expected contents, it > works. >=20 > Please correct me if I'm using add-dir-local-variable wrong, I was not > able to find a version that works as expected with the above > progn. Strangely, if I use (progn (message "hello")), instead of the > progn with setenv, "hello" gets printed every time I open a C file. >=20 > Configured using: > 'configure --prefix=3D/home/cip/2016/un65esoq/local' >=20 > Configured features: > XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY > ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB > TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LCMS2 >=20 > Important settings: > value of $LC_ALL: en_US.UTF-8 > value of $LC_CTYPE: C.UTF-8 > value of $LC_MESSAGES: C.UTF-8 > value of $LC_MONETARY: de_DE.UTF-8 > value of $LC_NUMERIC: de_DE.UTF-8 > value of $LC_TIME: de_DE.UTF-8 > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix >=20 >=20 >=20 From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 11 19:20:36 2018 Received: (at 32129) by debbugs.gnu.org; 11 Jul 2018 23:20:36 +0000 Received: from localhost ([127.0.0.1]:56069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdOPU-0000kF-9b for submit@debbugs.gnu.org; Wed, 11 Jul 2018 19:20:36 -0400 Received: from mail-it0-f47.google.com ([209.85.214.47]:33035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdOPS-0000jy-UB for 32129@debbugs.gnu.org; Wed, 11 Jul 2018 19:20:35 -0400 Received: by mail-it0-f47.google.com with SMTP id y124-v6so480456itc.0 for <32129@debbugs.gnu.org>; Wed, 11 Jul 2018 16:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=JJNOlbrH/ylpz/9UIfp3dy0Ffe60PO8gZINoIZGyHZA=; b=MZ6d5unvuyembSc/J2ipA7hEk260z9fgawmZnYGGplLIygDdaw2FhO73ckRaZ95ssT nYq7z0XJUX/ISxrr92s+XLKMXcZfLEp+3/kovw7nHP5hxxOYSWsjk/rg6iwfDll/iaHk /SMsLCIzCl4FoMR+QU7edBgAG2Br99Bv469ZnTEt+n9BYfx1v4KwJiW1JgYRLfBuUbJZ WA/mw0+1ZJALrfCpc8fEdzOaLA+BILHJABP/EjJV1jCTE1ET8l4zGTcycYM1jbcw4Lm5 8kPo8LbEl1UTY6oWunUqg7rhsg1L24o+IH3wK5C3b34ipZ7jnHPFUBgLvIb1PWlWWZxh MWyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=JJNOlbrH/ylpz/9UIfp3dy0Ffe60PO8gZINoIZGyHZA=; b=X+ep/oPbD2C8lRFQJAvpT3OKJ+qm7aUyL1aLNKenlAUjUhHOQx4fsXwmnLE7dsl4iG 3zcIjXcgiM0Nn4AF/ufotyhLlEIClzLGNUFF9hBrvRH3C/bkqkB6NYhyhmZm6XRCgLt2 jFRMyIH3MKMdHtx8C2ZgLkSxDucH0+ekr8VnYb0YenLwmhcep4YwmXi0wOI9DMWNhddE 3//HlaxvhmwNJbSQbhIa8w5fVuqr4iug0MCKs3Q6f5PxIFdveMDTfqlhWXlqAivnG7HB 7Mb5r2xEcBC8xr9Hj0JwcW1DeYQURzcl4H6DNIBpmMLBlStk3R/a3LSuzZsl+ODmeD5X Oqew== X-Gm-Message-State: AOUpUlFKFZ6v6swwdOQOViYv8d+LLvU/SfaBeGb2yolbRW1JM7pW9GUh 5df41mrZCwiIEYTtBGphp4MUDQ== X-Google-Smtp-Source: AAOMgpf5LVehWGZ+gKn1srwpjzBkdhPGW/rn5dC4bSfyAZNOfzpaL/Y8IOUSBsXYkgHpCVogrJU1pA== X-Received: by 2002:a02:2505:: with SMTP id g5-v6mr389205jag.130.1531351229070; Wed, 11 Jul 2018 16:20:29 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id g6-v6sm1453981itf.33.2018.07.11.16.20.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Jul 2018 16:20:28 -0700 (PDT) From: Noam Postavsky To: Luis Gerhorst Subject: Re: bug#32129: 26.1; Bug in add-dir-local-variable when used with eval, progn and setenv References: Date: Wed, 11 Jul 2018 19:20:27 -0400 In-Reply-To: (Luis Gerhorst's message of "Thu, 12 Jul 2018 01:07:17 +0200") Message-ID: <87a7qxbbr8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32129 Cc: 32129@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 (-) Luis Gerhorst writes: > (1) Open Emacs with emacs -Q > (2) Type the following code into *scratch* > > (add-dir-local-variable > 'c-mode > 'eval > '(progn (make-local-variable 'process-environment) > (setq process-environment (copy-sequence process-environment)) > (setenv "TEST" "hello"))) > > (3) M-x eval-buffer > > Expected .dir-locals.el contents: > ((c-mode (eval . (progn (make-local-variable 'process-environment) > (setq process-environment (copy-sequence process-environment)) > (setenv "TEST" "hello"))))) > > Actual contents: > ((c-mode (eval progn (make-local-variable 'process-environment) > (setq process-environment (copy-sequence process-environment)) > (setenv "TEST" "hello")))) > > When I open a C file and inspect process-environment, TEST is not set. > > When I manually create a .dir-locals.el with the expected contents, it > works. When I manually create a .dir-locals.el with the actual contents it works too. > Please correct me if I'm using add-dir-local-variable wrong, I was not > able to find a version that works as expected with the above > progn. Strangely, if I use (progn (message "hello")), instead of the > progn with setenv, "hello" gets printed every time I open a C file. I think add-dir-local-variable is fine, both the expected and actual values you posted are the same (the expected one just happens to use dotted pair notation). Maybe the problem is that you need to use (setq-local process-environment ...) Otherwise your eval clause sets the global value (which is possibly being clobbered by other things in your config?). From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 13 05:26:32 2018 Received: (at 32129) by debbugs.gnu.org; 13 Jul 2018 09:26:32 +0000 Received: from localhost ([127.0.0.1]:57695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fduLQ-0002eX-LJ for submit@debbugs.gnu.org; Fri, 13 Jul 2018 05:26:32 -0400 Received: from mail-it0-f47.google.com ([209.85.214.47]:36716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fduLO-0002eG-KH; Fri, 13 Jul 2018 05:26:31 -0400 Received: by mail-it0-f47.google.com with SMTP id j185-v6so10645430ite.1; Fri, 13 Jul 2018 02:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=jzEvHy3bHinBJkHNGPqCoJp1wO0obK9IOnImmgjfKxg=; b=PGeKsjkDj/hgVQngHYUdfXy6yd2JrgrPzyCe94mYNJVo6oDS9Cl0hzCCq7ZxjN960v JNG6OoeCikTkDUEDaaoKEhCY7sTmz8JErlDiz1YryZ97SiAfcYHdT2dDZvKhmZHlgIgf XyKI2xvi20HxSbIL/+5sU+iBA8dIt6Bxtce42N12lwA4+z0ucyd/uD2YpyFjI+0lzYI3 W9NxkBN6b979+e5WbH9offHuB4nXPWyvPIMcu8TuDmw7pMjRGYKv/cVnlLXwONZ9U+WW dZtHSWshn08MmOOPCbw9/ZyBmSD0u2W1mWz0runGjKMjRkzOZMMmB1LUKmpsAags9YFh yUgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=jzEvHy3bHinBJkHNGPqCoJp1wO0obK9IOnImmgjfKxg=; b=OSOfvyttwuqd9AW4rWYJU2w61gCleEhbg6CvMRclLmjiifjIxDX48+kmCjOgvFA5TC dF0F+a0rcD6GFhlqkozDOSg8g7O9KpKecwkNG8GSj1VlTYOZfwRNOKwiq/VmqefhcYbS iF1okt5q0cgLCEj08Hu7wkaIcnhNmhytfDE7jx26nwAEcz3Nf47r5dXQQjyV3+0In8J7 rMHWxDJumkNfLamTAlLPq91IYRkQYNNrgbyle1pRSKoS5i2dnkys0Jcww+52QAXcNqg7 FV9HkMpCv6gMGurIYjVwCNgNasAC4DXs1pJGc7XBVjJPrioXC7e9cyDQL5IkxyzNY7IA 2APg== X-Gm-Message-State: AOUpUlGzXUgWLfKsE1gIOA7UYbXiqTBuKZ4SHI2u82W04SJfM3B1k153 TcYPyURz0zT+k9jBcIn2avCkaQ== X-Google-Smtp-Source: AAOMgpfW7ILzP+fdCx/EZVD8vUi16P7QEYXXdImQQZ6ABQRveePQ0qf3e5CuBdl09Gk1VI7jLOaoQg== X-Received: by 2002:a24:73c1:: with SMTP id y184-v6mr4286107itb.31.1531473984990; Fri, 13 Jul 2018 02:26:24 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id t67-v6sm2369657ita.3.2018.07.13.02.26.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Jul 2018 02:26:24 -0700 (PDT) From: Noam Postavsky To: Luis Gerhorst Subject: Re: bug#32129: 26.1; Bug in add-dir-local-variable when used with eval, progn and setenv References: <31BA42EC-58BC-4C69-9E04-E464AF41540D@luisgerhorst.de> Date: Fri, 13 Jul 2018 05:26:23 -0400 In-Reply-To: <31BA42EC-58BC-4C69-9E04-E464AF41540D@luisgerhorst.de> (Luis Gerhorst's message of "Thu, 12 Jul 2018 01:18:19 +0200") Message-ID: <87tvp3a3ls.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32129 Cc: 32129@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 (-) tags 32129 notabug close 32129 quit Luis Gerhorst writes: > I'm sorry for the noise, I just retried it and it worked, TEST was > set. So the generated .dir-locals.el does the right thing. Right, I'm pretty sure you really do want setq-local though. > Anyway: Shouldn't the .dir-locals.el look different? This is of course > just a question of preference, if it makes the code more elegant or > something I would accept that it's better to leave it as it is. Yeah, it currently just does `pp' for the whole structure. We would need to special case the top level printing of values I think. It might be interesting to have a pretty printer that's able to take a sort of "descriptor" of printing structure, to handle this sort of thing more generally. But I'm going to go ahead and close this report as notabug, since special casing the dir-local printing is not worth the trouble. From unknown Wed Jun 18 23:09:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 10 Aug 2018 11:24:05 +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