From: Ship Mints <shipmints@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: Ergus <spacibba@aol.com>,
Michael Albinus <michael.albinus@gmx.de>,
73718@debbugs.gnu.org, Juri Linkov <juri@linkov.net>
Subject: bug#73718: 31.0.50; Severe performance issue with Tramp and project-mode-line-format
Date: Wed, 9 Oct 2024 10:01:14 -0400 [thread overview]
Message-ID: <CAN+1Hbq6WZ3KJNrpt3YKFSKDM3iXcY1n=0GoNw2KFXBKvum00w@mail.gmail.com> (raw)
In-Reply-To: <CAN+1HboX0JUqHcbbdXcL9xC0EAfQbyS2bexpYDaJMXwGPy8ogg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1895 bytes --]
To be clearer, I've guarded project-try-vc with advice. Perhaps a user
option to enable the guard intrinsically would be better as everyone could
benefit. I have my own option variables doing this so I can enable it when
wanted.
Perhaps Ergus can give something similar a try and see if this solves his
immediate hanging concern.
Ergus, you should be able to just drop the below snippet in your init file
(or eval in *scratch*) and see if it works for you.
(defun my/project-try-vc-advice (orig-fun dir)
(or (vc-file-getprop dir 'project-vc)
(if (file-remote-p dir)
nil
(funcall orig-fun dir))))
(advice-add 'project-try-vc :around #'my/project-try-vc-advice))
On Wed, Oct 9, 2024 at 9:45 AM Ship Mints <shipmints@gmail.com> wrote:
> I've added file-remote-p guards in a variety of places specifically to
> avoid these issues.
>
> On Wed, Oct 9, 2024 at 9:39 AM Dmitry Gutov <dgutov@yandex.ru> wrote:
>
>> Hi!
>>
>> On 09/10/2024 13:43, Ergus via Bug reports for GNU Emacs, the Swiss army
>> knife of text editors wrote:
>> > I made a profile and it looks like there is some bad interaction between
>> > project-mode-line and tramp names
>> >
>> > I already tried:
>> >
>> > (connection-local-set-profile-variables 'my-profile
>> '((project-mode-line . nil)))
>> > (connection-local-set-profiles '(:application tramp :user "myuser")
>> 'my-profile)
>> >
>> > But is not disabling the modeline for remote files.
>>
>> I wonder if we'll need to disable project-mode-line in remote files
>> altogether, or if this is a problem that could be solved in Tramp (with
>> extra caching?)
>>
>> To use connect-local value to disable, BTW, it would need to have extra
>> code called from the mode line format (in bindings.el). And it's a part
>> that was added only recently, for in Emacs 30.
>>
>>
>>
>>
[-- Attachment #2: Type: text/html, Size: 3175 bytes --]
next prev parent reply other threads:[~2024-10-09 14:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <874j5lzhdn.fsf.ref@aol.com>
2024-10-09 10:43 ` bug#73718: 31.0.50; Severe performance issue with Tramp and project-mode-line-format Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-09 13:12 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-10 11:12 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-09 13:38 ` Dmitry Gutov
2024-10-09 13:45 ` Ship Mints
2024-10-09 14:01 ` Ship Mints [this message]
2024-10-09 16:10 ` Juri Linkov
2024-10-11 0:38 ` Dmitry Gutov
2024-10-11 14:35 ` Ship Mints
2024-10-13 13:31 ` Ship Mints
2024-10-10 9:57 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-11 0:33 ` Dmitry Gutov
2024-10-11 11:45 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN+1Hbq6WZ3KJNrpt3YKFSKDM3iXcY1n=0GoNw2KFXBKvum00w@mail.gmail.com' \
--to=shipmints@gmail.com \
--cc=73718@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
--cc=juri@linkov.net \
--cc=michael.albinus@gmx.de \
--cc=spacibba@aol.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).