From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50187: 28.0.50; tramp is called from calendar Date: Sat, 17 Sep 2022 09:20:38 +0300 Message-ID: <83edwa34jt.fsf@gnu.org> References: <87wnazfmdj.fsf@gmx.de> <87zgfvth3y.fsf@gnus.org> <87k06yrcwb.fsf@web.de> <875yiirc61.fsf@gnus.org> <877d2yimkn.fsf@web.de> <87leqoaum7.fsf@web.de> <87bkrifyxf.fsf@web.de> <87o7vg6i27.fsf@web.de> <87mtazy7tv.fsf@gnus.org> <84acc36e7efb942eafdd@heytings.org> <84acc36e7efa2b0eeac7@heytings.org> <84acc36e7eabd4124db1@heytings.org> <84acc36e7e49181c1f58@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7839"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, michael.albinus@gmx.de, gregory@heytings.org, 50187@debbugs.gnu.org, larsi@gnus.org To: sds@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 17 08:21:22 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oZRCa-0001px-Th for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 08:21:21 +0200 Original-Received: from localhost ([::1]:44720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZRCZ-00047p-Iv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 02:21:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZRCK-00047R-CW for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 02:21:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZRCI-0000FU-Ej for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 02:21:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZRCI-0006JD-3a for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 02:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2022 06:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50187 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 50187-submit@debbugs.gnu.org id=B50187.166339564724209 (code B ref 50187); Sat, 17 Sep 2022 06:21:02 +0000 Original-Received: (at 50187) by debbugs.gnu.org; 17 Sep 2022 06:20:47 +0000 Original-Received: from localhost ([127.0.0.1]:44983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZRC3-0006IO-CQ for submit@debbugs.gnu.org; Sat, 17 Sep 2022 02:20:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZRC2-0006IB-LH for 50187@debbugs.gnu.org; Sat, 17 Sep 2022 02:20:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41804) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZRBw-0000E3-Um; Sat, 17 Sep 2022 02:20:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uD9SH92Sopf54nTJbBI9NNay+lD5F1C6r8Fa8fAjk3k=; b=L0swndymi9oX tqS2/0NAhPFlMj0tzO7kJmq5zSCpxWFOsJiGwbpkCnPTkZrageKfZYBUJZiL5PtOibkpo8sYyqXYP hG00Pc5y6x5RJjv7pBwfWky0NHU3BWhPG23o8HYMGCcyWODUHD8XDlqp4c6ExEB9nN/bCden9Y8Zo 0VYWwwAshpzCCdPhKmFpojjjONVznGWWVXlAMpGMEDgmx+LYOn8Ov4yHQIqhLhaVTH6G7oyv72Ncz +/XewyaQiTKddr5L36tIanEn33oYzCfGBXZb5XFOfGYATE7ceJ9GEGraOLjfM7DUM2hy1foXwO5mz NcPuMoCQmHgdPifwXMY3LA==; Original-Received: from [87.69.77.57] (port=4619 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZRBw-0005MH-CK; Sat, 17 Sep 2022 02:20:40 -0400 In-Reply-To: (message from Sam Steingold on Fri, 16 Sep 2022 17:43:17 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242828 Archived-At: > Cc: Michael Heerdegen , 50187@debbugs.gnu.org, > Lars Ingebrigtsen , Michael Albinus > From: Sam Steingold > Date: Fri, 16 Sep 2022 17:43:17 -0400 > > It makes perfect sense for *occur* to inherit `default-directory', and > no sense for calendar. Then "M-x calendar" should take care of setting the default-directory of its buffer. It cannot be done by the infrastructure, because in many cases when a buffer is created, Emacs doesn't yet know its future purpose. But we are arguing about issues that might be purely academic. Michael asked you to collect some Tramp-related data, so he could look into what happens in this particular case. Please provide him the data he asked for: it could very well lead to a simple and uncontroversial solution. > Specifically, define a function `disinherit' (and add `disinherit' > optional argument to `get-buffer-create' et al) that would reset > `default-directory' et al to the "root" value (whatever the value would > be in *scratch* for `emacs -Q`) for the newly created buffer. The default-directory of *scratch* is the directory where you start Emacs, so it's not a fixed directory, and I don't see how it can serve the model for anything referenced in this discussion.