all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sam Steingold <sds@gnu.org>
To: Gregory Heytings <gregory@heytings.org>
Cc: Michael Heerdegen <michael_heerdegen@web.de>,
	Michael Albinus <michael.albinus@gmx.de>,
	Lars Ingebrigtsen <larsi@gnus.org>,
	50187@debbugs.gnu.org
Subject: bug#50187: 28.0.50; tramp is called from calendar
Date: Fri, 16 Sep 2022 12:56:39 -0400	[thread overview]
Message-ID: <lzleqjntq0.fsf@3c22fb11fdab.ant.amazon.com> (raw)
In-Reply-To: <84acc36e7efa2b0eeac7@heytings.org> (Gregory Heytings's message of "Fri, 16 Sep 2022 15:02:04 +0000")

> * Gregory Heytings <tertbel@urlgvatf.bet> [2022-09-16 15:02:04 +0000]:
>
>> calendar is far from being the only problem.
>
> That wasn't clear from the bug title and the discussion.

I am pretty sure I mentioned this a few time here and elsewhere but you
don't have to track my pet peeves ;-)

>>
>> 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.

Wow, thanks Gregory, didn't even think about it.

1. This hook seems to be called far too often; but I do not see a
`create-buffer-hook' - any reason for that? (there is a
`kill-buffer-hook')

2. It appears that I can use (current-buffer) instead of (car
(buffer-list))


> But as Michael said you should probably not use nil.

I am not sure what you mean, could you please clarify?

-- 
Sam Steingold (https://aphar.dreamwidth.org/) on darwin Ns 10.3.2113
https://lastingimpactpsychology.com https://steingoldpsychology.com
https://www.dhimmitude.org https://jihadwatch.org https://camera.org
Time would have been the best Teacher, if it did not kill all its students.





  reply	other threads:[~2022-09-16 16:56 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-24 15:06 bug#50187: 28.0.50; tramp is called from calendar Steingold
2022-08-22 14:28 ` Lars Ingebrigtsen
2022-08-22 16:18   ` Sam Steingold
2022-08-23  2:11     ` Michael Heerdegen
2022-08-23  2:18     ` Michael Heerdegen
2022-08-23  2:47       ` Sam Steingold
2022-08-23  3:24         ` Michael Heerdegen
2022-08-23  3:39           ` Sam Steingold
2022-08-23  4:00             ` Michael Heerdegen
2022-08-23  7:30   ` Michael Albinus
2022-08-23 10:00     ` Lars Ingebrigtsen
2022-08-23 19:13       ` Michael Heerdegen
2022-08-23 19:29         ` Lars Ingebrigtsen
2022-08-23 23:09           ` Michael Heerdegen
2022-09-12 18:49             ` Sam Steingold
2022-09-13  2:14               ` Michael Heerdegen
2022-09-13 14:29                 ` Sam Steingold
2022-09-14  2:54                   ` Michael Heerdegen
2022-09-14 18:57                     ` Sam Steingold
2022-09-15 10:36                       ` Michael Heerdegen
2022-09-15 16:10                         ` Sam Steingold
2022-09-16  9:41                           ` Lars Ingebrigtsen
2022-09-16  9:48                             ` Michael Albinus
2022-09-16 10:04                             ` Gregory Heytings
2022-09-16 14:31                               ` Sam Steingold
2022-09-16 14:38                                 ` Michael Albinus
2022-09-16 15:02                                 ` Gregory Heytings
2022-09-16 16:56                                   ` Sam Steingold [this message]
2022-09-16 17:13                                     ` Sam Steingold
2022-09-16 17:30                                       ` Eli Zaretskii
2022-09-16 17:26                                     ` Gregory Heytings
2022-09-16 18:45                                       ` Sam Steingold
2022-09-16 18:51                                         ` Michael Albinus
2022-09-16 19:02                                         ` Eli Zaretskii
2022-09-16 19:30                                         ` Gregory Heytings
2022-09-16 21:43                                           ` Sam Steingold
2022-09-17  6:20                                             ` Eli Zaretskii
2023-09-03  8:36                                               ` Stefan Kangas
2024-01-10 11:02                                                 ` Stefan Kangas
2022-09-17  6:48                                             ` Michael Albinus
2022-09-16 14:25                             ` Sam Steingold
2022-09-16 14:31                               ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=lzleqjntq0.fsf@3c22fb11fdab.ant.amazon.com \
    --to=sds@gnu.org \
    --cc=50187@debbugs.gnu.org \
    --cc=gregory@heytings.org \
    --cc=larsi@gnus.org \
    --cc=michael.albinus@gmx.de \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.