From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: joaotavora@gmail.com (=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?=) Newsgroups: gmane.emacs.bugs Subject: bug#29267: 26.0.90; find-file confused by process-environment's HOME even with absolute fname Date: Sat, 11 Nov 2017 23:43:03 +0000 Message-ID: <8760agidq0.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1510443853 5970 195.159.176.226 (11 Nov 2017 23:44:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Nov 2017 23:44:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) To: 29267@debbugs.gnu.org, rgm@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 12 00:44:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDfRW-0001Bi-4h for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Nov 2017 00:44:06 +0100 Original-Received: from localhost ([::1]:47494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDfRd-0002lp-Fd for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Nov 2017 18:44:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDfRX-0002lh-VF for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 18:44:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDfRS-0004YU-W2 for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 18:44:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55354) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eDfRS-0004YH-SN for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 18:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eDfRS-0003ou-JJ for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 18:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: joaotavora@gmail.com (=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Nov 2017 23:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29267 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, Glenn Morris Original-Received: via spool by submit@debbugs.gnu.org id=B.151044380614625 (code B ref -1); Sat, 11 Nov 2017 23:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Nov 2017 23:43:26 +0000 Original-Received: from localhost ([127.0.0.1]:35802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDfQs-0003np-E5 for submit@debbugs.gnu.org; Sat, 11 Nov 2017 18:43:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDfQr-0003nc-63 for submit@debbugs.gnu.org; Sat, 11 Nov 2017 18:43:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDfQi-0004CB-6u for submit@debbugs.gnu.org; Sat, 11 Nov 2017 18:43:19 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:58384) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eDfQi-0004C1-3Y for submit@debbugs.gnu.org; Sat, 11 Nov 2017 18:43:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDfQh-0002jl-11 for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 18:43:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDfQg-0004BA-8D for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 18:43:15 -0500 Original-Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:56960) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eDfQa-00048Q-R5; Sat, 11 Nov 2017 18:43:08 -0500 Original-Received: by mail-wr0-x241.google.com with SMTP id q66so11428400wrb.13; Sat, 11 Nov 2017 15:43:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=zmE0YRRGUDUBO549z3r/MLRBpvKCshrUVGuqC9FF6m0=; b=pLRNeAgYInRTBoPE/53Kkgfs9OwSuXC7Cy6Ak/oMCi1DUXaCMjWOXE65LPeLSytBtF 8bC7+Ada2XGfef8CAnZFBqZr/Zq7+CwQiguzHv6MbAhCINrd3hrlDx6C+RvuWARkelz2 iiShRohzuA0koOyW1o6Z1mvfNlW8CwsklF3/g0rTK0znV4i99X+p4JsETJ6bO92GrVNJ gklhocK+8iiilQaYrO/Q4AleLerBiOvd0FvQo2tUDpOH4NrqpxDVr5uVFoUPBPgpVvqf jp1tFkmhiW7ggAq/kyttI86mg2KlQV+WU/Y5Fk43LfbNunuF56T3o2sB35G65ccFvgdz eoaw== 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:user-agent :mime-version:content-transfer-encoding; bh=zmE0YRRGUDUBO549z3r/MLRBpvKCshrUVGuqC9FF6m0=; b=PIsx80ZT+Z+7+/zoGz+NI0nIcOFOB/eE0acc1uFNZjRU+/s0fMF7KK4sy00WPxEpDH PHNdu1iB2pKcTlKdbSrdKo+L9wJAriF895pmzxl1+mDmQw+dj/A7wwdxsduzmutAnhyC h38MBnTgLfuLLz4BPtHyuQ8M7TZCr+3GB5GMNpPGudeevFwtkYDGp6Sj+GgCjKMxj2CY GfAx1waocEgiQK+WGNJJ4XVsD66RZwqz57OeVj3623KYFZPjAZmvfR3YOiZt4DFYbBtl rRZh45so2rp3bTkcBqaDFkGqXUpZHby8RY0IVu6QkU5A1045xjfpYDuGlh/bytBcUCta WqOQ== X-Gm-Message-State: AJaThX6bPBBW/9zcxLDxEA+89gCenEiC5KMOEHjN5zTxHldvFtyGZUba DavhZ2SAehLs5S5tuQS39GLvxMhX X-Google-Smtp-Source: AGs4zMbExrbSNpKury3xn2vziQLU59sKSX8lRD+RfrEyG+RuQsbVJS5bfyWyUdLAGO+0ZykSFWQGNA== X-Received: by 10.223.165.4 with SMTP id i4mr3923149wrb.158.1510443787276; Sat, 11 Nov 2017 15:43:07 -0800 (PST) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id u52sm13125995wrb.68.2017.11.11.15.43.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 Nov 2017 15:43:06 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:139779 Archived-At: Hello maintainers, Glenn, [This popped up with Glenn's idea for a fix to bug#29187 (which I commited in 0da08f2f8ef1946978f0974e9e8cdb87fece018c). It's breaking an interactive run of the flymake tests (which run fine with make check).] I find, to my surprise that evaluating this form returns nil (let* ((tempdir (make-temp-file "some-temp-dir" t)) (process-environment (cons (format "HOME=3D%s" tempdir) process-environment)) (absolute (concat "/home/" user-login-name "/foo.txt"))) (string=3D absolute (with-current-buffer (find-file-noselect absolute) buffer-file-name))) Same with find-file. find-file is unexpectedly prepending my absolute file name with HOME found in the process environment. It returns t, as expected, when: * when the process-environment override is removed; * emacs is started with HOME=3D/nonexistent, as is the case with make check; * very curiously, if the absolute file name is *not* prefixed by whatever HOME was before the override; Thanks, Jo=C3=A3o