all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "T.V Raman" <raman@google.com>
Cc: da_vid@orange.fr, emacs-devel@gnu.org
Subject: Re: file-remote-p being called too often?
Date: Thu, 18 Jan 2024 07:56:58 +0200	[thread overview]
Message-ID: <838r4nb2vp.fsf@gnu.org> (raw)
In-Reply-To: <p91sf2vy677.fsf@google.com> (raman@google.com)

> From: "T.V Raman" <raman@google.com>
> Cc: Emacs Devel <emacs-devel@gnu.org>,  Eli Zaretskii <eliz@gnu.org>
> Date: Wed, 17 Jan 2024 13:56:44 -0800
> 
> global-auto-revert-mode also appears to trigger file-remote-p -- that
> would be one example where the call could be usefully memoized.

Michael will tell, but I don't think this can be memoized, since file
handlers can change dynamically behind autorevert's back.

AFAIU, autorevert calls file-remote-p only when there are
notifications about changes in some visited files, so when Emacs is
idle it should not call file-remote-p due to global-auto-revert-mode.



  reply	other threads:[~2024-01-18  5:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-17 19:57 file-remote-p being called too often? David Ponce
2024-01-17 20:34 ` [External] : " Drew Adams
2024-01-17 21:01 ` T.V Raman
2024-01-17 21:04 ` T.V Raman
2024-01-17 21:18 ` T.V Raman
2024-01-18  5:41   ` Eli Zaretskii
2024-01-18 14:43     ` T.V Raman
2024-01-17 21:56 ` T.V Raman
2024-01-18  5:56   ` Eli Zaretskii [this message]
2024-01-18  7:30     ` Michael Albinus
2024-01-18 14:44       ` T.V Raman
2024-01-18 15:07         ` Eli Zaretskii
2024-01-18 15:57           ` T.V Raman
2024-01-18 16:28             ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2024-01-16 21:17 T.V Raman
2024-01-17 11:54 ` Michael Albinus
2024-01-17 14:55   ` T.V Raman
2024-01-17 15:28     ` Michael Albinus
2024-01-17 18:15       ` T.V Raman
2024-01-17 12:00 ` Eli Zaretskii

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=838r4nb2vp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=da_vid@orange.fr \
    --cc=emacs-devel@gnu.org \
    --cc=raman@google.com \
    /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.