From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.devel Subject: Re: Wrong default-directory in shell buffer Date: Mon, 16 May 2022 20:06:42 +0200 Message-ID: <87h75pic7h.fsf@gmail.com> References: <874k1vzyom.fsf@posteo.net> <87lev2j3g0.fsf_-_@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13939"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 16 20:07:36 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nqf84-0003NZ-Av for ged-emacs-devel@m.gmane-mx.org; Mon, 16 May 2022 20:07:36 +0200 Original-Received: from localhost ([::1]:39898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqf82-0001B3-F6 for ged-emacs-devel@m.gmane-mx.org; Mon, 16 May 2022 14:07:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqf7I-0000E1-5u for emacs-devel@gnu.org; Mon, 16 May 2022 14:06:48 -0400 Original-Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:37813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqf7G-0002YW-Mu for emacs-devel@gnu.org; Mon, 16 May 2022 14:06:47 -0400 Original-Received: by mail-wr1-x431.google.com with SMTP id t6so21607095wra.4 for ; Mon, 16 May 2022 11:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Aa2DR4jALB2d6D211wAG4FvJ/hBpqcKRYqVfbFflExg=; b=NU1EHTF9AuxEEwdGglJHN3WQ3AXgeeGZw7tVhfT0jzS4mbN8GYNEt8r8kLyAfTviRQ TSENNBNjRAcKwvMXEr4csb1rEgzIDHNpjPYgoq7aXWO1Wgd73pxdo6WNLHHNybzVhOsy egIlfYHBxhfnag1e1S0+SlWTqjVHuBuJEFVRVuvyVfImUxg5SCNt1FuxbNlB5HXAcPVL u1IIrwIWcanwz9Ly9b5yg3TuveS20UQitBxSw9KN95jQ8XjzbwZhSud4B3UJ3l9c2oc0 ctTAWTSCi9dkMq2w1pOHlR5bNK5DeJ1sd5E0gp7gd22MfiZCGZTjl+DcUuvpL1DKTd6W 5MPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Aa2DR4jALB2d6D211wAG4FvJ/hBpqcKRYqVfbFflExg=; b=CUbtdRKLwa96+88St61L/c91htD0+2m3eVCE486mJqpQpV+7I1sp3wi/jRJfDK/TY1 6z0tw1yZAdeg4Ux9lAlalMC5GhzLk8jvqXSMP/BRarbYcOHLBZArST0axt3ZNIO1qaE7 Se/KScmK/1QUbwgY6PwhMpAFXqMxuL+BrueKFFE7uRv6FBkax/ukc2GcmXpFHI2Z5xDT lgB4be71AHu3rEZVqCr9mPhnGV7Oo7s+xMiwld9UinXVvCD3q7ThwOyMpvrZB1/1eD77 B3DqRTprPJGGnqTSdtUdmkatVSg/KK8bivL9NnupGhk7uLPqJQxPpW7SjR4kgM/+rFII 8m4w== X-Gm-Message-State: AOAM533GPVoSTNDRDt8MKwnE1MsKRBmO32f/YlGimbgOwHXPtsP6/VJs l7Bvxg9MzqZMN4EGkuqoP9mimBU2/Zw= X-Google-Smtp-Source: ABdhPJzoL1LeSHCWY/xFzbxAOzutq4TpxMF+TeMWE64M4Ui+BQCnYn2nRq4cUZnHddoP8KkoLfkvzg== X-Received: by 2002:a5d:4e0d:0:b0:20d:88e:c8b1 with SMTP id p13-20020a5d4e0d000000b0020d088ec8b1mr5039141wrt.18.1652724404209; Mon, 16 May 2022 11:06:44 -0700 (PDT) Original-Received: from carbon.localdomain ([2a01:e0a:245:c850:98f5:429a:aa8e:95bb]) by smtp.gmail.com with ESMTPSA id j3-20020a05600c1c0300b003942a244eddsm11788284wms.34.2022.05.16.11.06.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 11:06:43 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 15 May 2022 12:06:22 -0400") Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=orontee@gmail.com; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289814 Archived-At: Stefan Monnier writes: > Could it be related to "directory tracking", then? I guess so. > There are several different "solutions" to have shell buffers's > `default-directory` track the PWD of the shell, so I'm not sure which > one might be at fault here (if any). I see that shell-dirtrack-verbose is t, and dirtrack-mode is nil. Thus I guess emacs is using the default cd, pushd and popd tracking. I'll study this implementation. -- Matthias