Subject: Re: bug#50187: 28.0.50; tramp is called from calendar

From: Gregory Heytings <[email-masked]>
Date: Fri, 16 Sep 2022 10:04:57 +0000

>
> If starting calendar while in a Tramp buffer is problematic for you, 
> then I think the solution is to not do that, I'm afraid.
>

Or to use this, for example:

(advice-add
  'calendar :around
  (lambda (fun &rest args)
    (let ((default-directory
 	  (if (file-remote-p default-directory)
 	      "~/"
 	    default-directory)))
      (apply fun args))))