From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#50187: 28.0.50; tramp is called from calendar Date: Fri, 16 Sep 2022 16:38:27 +0200 Message-ID: <87leqjs7to.fsf@gmx.de> References: <87sflo4ajt.fsf@gnus.org> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12415"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Michael Heerdegen , Gregory Heytings , 50187@debbugs.gnu.org, Lars Ingebrigtsen To: Sam Steingold Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 16 16:42:49 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 1oZCYL-00038A-FB for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 16:42:49 +0200 Original-Received: from localhost ([::1]:32942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZCYK-00089y-FN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 10:42:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZCUi-0003KY-Vr for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 10:39:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZCUg-0004w0-Ji for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 10:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZCUg-0001Dy-Bw for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 10:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Sep 2022 14:39: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.16633391214677 (code B ref 50187); Fri, 16 Sep 2022 14:39:02 +0000 Original-Received: (at 50187) by debbugs.gnu.org; 16 Sep 2022 14:38:41 +0000 Original-Received: from localhost ([127.0.0.1]:43889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZCUK-0001DN-Q3 for submit@debbugs.gnu.org; Fri, 16 Sep 2022 10:38:41 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:55651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZCUG-0001D6-RA for 50187@debbugs.gnu.org; Fri, 16 Sep 2022 10:38:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1663339110; bh=vTA5HKeWif/mbvpZbI1EAIE64SUesdoRIEldDopTcsY=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=TaVok0bBFW5/nqeYT2tWMVJ7VJsaVa3nLyjZCJPZ+8cK4nRuQakQPYizzO7f9snfK o6qUUOuAUtxivqcFJeT+LJxdeC8mRyO0D/qpFVUgFvYsyWGKnCGhocqJ10Kpai1+Vv j9V9MlRydsqtV3pMliHMPjK5s9JM5TvHFBQY3pFU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.151.147]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MsHns-1pSfSG2PQg-00tnyv; Fri, 16 Sep 2022 16:38:30 +0200 In-Reply-To: (Sam Steingold's message of "Fri, 16 Sep 2022 10:31:54 -0400") X-Provags-ID: V03:K1:gfxlv5LC1JnOtNeu0qKxOkS5+QSVM4OT8AJ+4/J+1b8+2MMaCie fBBYoGCWbe5tQJXmp0rqFHH6un/ARZIapeSdvkN8kKXHMr4QBrg91/03i+eCMLKSh8ICq0V YkNr+H8WQgJ4V1tt3d2i+jYI91UYFskTSJX0TvseCsPz3WY4O3RWuVxJ5QL5YZbyrimiEkq lhPcZP5m440PNiQqTlKfg== X-UI-Out-Filterresults: notjunk:1;V03:K0:jdwbNAjhB/Q=:GxiaSxRfyIRMoihra8n27S RMvBCdplL3//a1KcOD0MUrotFYpr/QZ00p2RvEdPizSON1/XXl3DWVCB4XqPcCogAT1WtmKYH 6J8+UgG3G5B7cwR+z/gF0Idlz0Bf9Xc52gFZaZ/X+/wPoqoyEldDKlsMaxsqRmwc41Not4sQ6 7J9EOsr9+Om92PifprSIbw5R5LnAWO0U6G2XL9QUnxcbRs3CQ1E5v1ZBbeDvYO+DqX7Fns1Ut UeD4lSDEVqf/B+gg7sIlBvdv4rydxYA2yn2bzY0h8IjwU4CEYnyc0MeVrjXKT1o/OCyDAktgB GA4MROlGSWO3qGe36rl1BnSzWVQZ43yqvZ7obNaTwLDlTXf5yeULaCjVxfve37Irsmi/GrdJI YAsF0VvDZ+T0kAE6ebmIUWAhO3BpmWECcS9RrkYrmiSSidjIZAQCFMz5qyxMT5/SrCVnGNmMw NIpK5KqNyEke2i08Bf/JKHX21WCcxvDbvAI2ngkHp7L9SZu6uXrk2LfTjbGdpXqilq78aBNBD BNbclvi/8KQEdgupcN5e0+30vRMKRY75E69AXar4r6fBbdRXWBaUFSN1+ycODbbMgtnXH70KL gwHagUC+kparyBdC4iaAZDKVGTnhtg7G50DTMbO8I+X+xKmwEAHsLnTgqnYAcFhUgxBaXV4++ 9oNUtqMrvdqS+MhjzXD6G2aZwnGzkrP5qXw8XHOZSHgPd2YE403eI/IW9falpKCoSN4VilaHo rMt65/wc124lD13QdmVIgfSENrsLUCrvr+baHUv1GkQO8rgHgDJJggkdlYyDuQVkpPpx3Wkr 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:242775 Archived-At: Sam Steingold writes: Hi Sam, > (dolist (b (buffer-list)) > (with-current-buffer b > (when (and (null buffer-file-name) > (not (eq major-mode 'dired-mode)) > (not (string-match " ?\\*.*\\(tramp\\|vc\\|diff\\)" (buffer-name))) > (find-file-name-handler default-directory 'file-remote-p)) > (message "Reset 'default-directory' in %s(%s) from %s" > b (or buffer-file-name list-buffers-directory) default-directory) > (setq default-directory (default-value 'default-directory)) > ))) This works by sheer luck then. `default-directory' must not be nil; it is fundamental that it is a string. That code makes other packages useless for remote buffers, like shell or compile. This cannot be the solution. Best regards, Michael.