From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#26272: default-directory: Remark that it must be a directory name Date: Tue, 28 Mar 2017 10:54:36 +0900 (JST) Message-ID: References: <87y3vrhvta.fsf@calancha-pc> <83k27a93w8.fsf@gnu.org> <878tnqda4k.fsf@calancha-pc> <838tnq91mv.fsf@gnu.org> <837f3a8tl2.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Trace: blaine.gmane.org 1490666116 3251 195.159.176.226 (28 Mar 2017 01:55:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Mar 2017 01:55:16 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: 26272@debbugs.gnu.org, Tino Calancha To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 28 03:55:11 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 1csgLn-0000G7-A0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Mar 2017 03:55:11 +0200 Original-Received: from localhost ([::1]:49541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csgLt-0004KY-1w for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Mar 2017 21:55:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csgLj-0004Ii-6Z for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2017 21:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csgLe-0004hX-BL for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2017 21:55:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1csgLe-0004hP-8G for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2017 21:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1csgLd-0003fH-Ro for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2017 21:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Mar 2017 01:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26272-submit@debbugs.gnu.org id=B26272.149066608714063 (code B ref 26272); Tue, 28 Mar 2017 01:55:01 +0000 Original-Received: (at 26272) by debbugs.gnu.org; 28 Mar 2017 01:54:47 +0000 Original-Received: from localhost ([127.0.0.1]:48066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csgLO-0003el-QH for submit@debbugs.gnu.org; Mon, 27 Mar 2017 21:54:47 -0400 Original-Received: from mail-pg0-f45.google.com ([74.125.83.45]:36288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csgLN-0003eY-7h for 26272@debbugs.gnu.org; Mon, 27 Mar 2017 21:54:45 -0400 Original-Received: by mail-pg0-f45.google.com with SMTP id g2so56864229pge.3 for <26272@debbugs.gnu.org>; Mon, 27 Mar 2017 18:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=eapFrhQtm6Jfu4zqbmUZvxvjqJguVhrOCeBqqMKnjcY=; b=Gbzjv5845Ds5Ws6hs0z1lRTXv6zcEvqlNTmRju81sgyRJI9dJx4fHjMkEFryLsWxDZ M1FirJVtfZMCiGwkU3vqCr6FVswTqBdXc6+83JERhcfXXvwzym37yPTWmz/BAqjTalIf NtptXFbB4/uiwYDvWG0Ov4NAXJeQsep2lEWLgdgmqbfuBeyvovbNVy2m5pjgiMUXJHWN 68AgJrA+EPcYGrY7bhi+T0oYqlQC+3yI4IwS0yJJt/Db4goq5EymqyZcYKHuWeIFzvoh X5/MryTL9q2kp9mbMYNqWvoUgXUDSiL8sSIJ1zFC2zFWrHD0b85Xcd9PYTrMH7wy4nCJ XkLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=eapFrhQtm6Jfu4zqbmUZvxvjqJguVhrOCeBqqMKnjcY=; b=JjchpDLo7hcXMS/f04otA/96e7cM9MMhqy9Ia0MRVb7e/0MFBUrHWS/PakKEjXyXR9 Z/C03gECGpf0LFkESHFQDYq9YNBebulQk3oEkM5hURIb8kPkZn9Jd3eMcAjGlsUlOAz4 3uedsUKdg60aB7LaO31G627sujttDOY8GUDuBzt6L9uRlAxJh2n5R41aLbviou/HL4Wx Gu/sNffZffOA3JvzXWhWoR0zciB4FpTMiAFj8RDP0RHbvevY4coF93Cs/4DJx+d3mitj YH1FgVkdv+LfFFiYuAZElo0Kqy8vMSmkdwPVPnrAXbRilBOEVFIeIGNn0PImx2cg1kmW VOSQ== X-Gm-Message-State: AFeK/H2rEKnGupqRJRmcp9XlALuQsocepn0HqNlYeElV81fPV9UtEbFi5tB3lGo1IvUpJw== X-Received: by 10.84.133.133 with SMTP id f5mr32994702plf.64.1490666079427; Mon, 27 Mar 2017 18:54:39 -0700 (PDT) Original-Received: from calancha-pc (234.204.100.220.dy.bbexcite.jp. [220.100.204.234]) by smtp.gmail.com with ESMTPSA id i15sm3467670pfj.51.2017.03.27.18.54.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Mar 2017 18:54:38 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: 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:131025 Archived-At: On Mon, 27 Mar 2017, Noam Postavsky wrote: > On Mon, Mar 27, 2017 at 2:26 PM, Eli Zaretskii wrote: >>> From: Noam Postavsky >>> Date: Mon, 27 Mar 2017 11:52:21 -0400 >>> Cc: Tino Calancha , 26272@debbugs.gnu.org >>> >>>>>> Didn't we discuss that at some point in the past? >>>>> I don't remember it. Maybe with another person. >>>> >>>> No, I meant on emacs-devel, not with you personally. >>> >>> This one maybe? (it's about load-path though) >>> https://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02060.html >> >> Yes, but AFAIR it also touched default-directory. > > Ah, it seems that code was fixed to be more tolerant: the trailing > slash in default-directory used to matter for executing processes, but > not any more: https://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02367.html Following is not the same but slightly related: emacs -Q /tmp I) OK M-x cd RET /tmp/ RET M-: (default-directory) RET => "/tmp/" II) OK M-x cd RET /tmp RET M-: (default-directory) RET => "/tmp/" III) Wrong M-x cd RET /tmp// RET M-: (default-directory) RET => "/" ;; Just an issue on interactive calls, as you can see: M-: (mapcar (lambda (x) (progn (cd x) default-directory)) '("/tmp/" "/tmp" "/tmp//")) RET => ("/tmp/" "/tmp/" "/tmp/")