GNU bug report logs - #50187
28.0.50; tramp is called from calendar

Previous Next

Package: emacs;

Reported by: sds <at> gnu.org

Date: Tue, 24 Aug 2021 15:07:02 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #91 received at 50187 <at> debbugs.gnu.org (full text, mbox):

From: Gregory Heytings <gregory <at> heytings.org>
To: Sam Steingold <sds <at> gnu.org>
Cc: Michael Heerdegen <michael_heerdegen <at> web.de>,
 Michael Albinus <michael.albinus <at> gmx.de>, Lars Ingebrigtsen <larsi <at> gnus.org>,
 50187 <at> debbugs.gnu.org
Subject: Re: bug#50187: 28.0.50; tramp is called from calendar
Date: Fri, 16 Sep 2022 15:02:04 +0000
>
> calendar is far from being the only problem.
>

That wasn't clear from the bug title and the discussion.

>
> I run this:
>
> (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))
>      )))
>
> every now and then.
>

I think you can achieve a similar effect automatically, by adding a 
function in buffer-list-update-hook that does the above on the first 
element of buffer-list.  But as Michael said you should probably not use 
nil.




This bug report was last modified 1 year and 135 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.