[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to switch off autobackup for files loaded from tramp?
From: |
Steinar Bang |
Subject: |
Re: How to switch off autobackup for files loaded from tramp? |
Date: |
Tue, 30 Jan 2024 09:13:29 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>>>>> Manuel Giraud via Users list for the GNU Emacs text editor
>>>>> <help-gnu-emacs@gnu.org>:
> I have this in my init file:
> (setq backup-enable-predicate
> (lambda (name)
> (and (normal-backup-enable-predicate name)
> (not (file-remote-p name)))))
Thanks! This looked good and from the variable and function
documentation it really looked like it should work.
Unfortunately it didn't... emacs still autosaves for me a file loaded
with tramp over a plink (putty SSH) connection.
Some versions:
GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-07-31 (windows 11
enterprise)
tramp version 2.6.0.29.1
Are there good ways to debug this in an "offending" buffer (ie. a buffer
holding a modified remote file)?
I.e. how to I check what the predicate returns in this buffer?
How do I check what (normal-backup-enable-predicate name) returns in
this buffer?
How do I check what (file-remote-p name) returns in this buffer?
Thanks!
- Steinar
- How to switch off autobackup for files loaded from tramp?, Steinar Bang, 2024/01/29
- Re: How to switch off autobackup for files loaded from tramp?, Manuel Giraud, 2024/01/29
- Re: How to switch off autobackup for files loaded from tramp?,
Steinar Bang <=
- Re: How to switch off autobackup for files loaded from tramp?, Manuel Giraud, 2024/01/30
- Re: How to switch off autobackup for files loaded from tramp?, Steinar Bang, 2024/01/30
- Re: How to switch off autobackup for files loaded from tramp?, Manuel Giraud, 2024/01/30
- Re: How to switch off autobackup for files loaded from tramp?, Steinar Bang, 2024/01/30
- Re: How to switch off autobackup for files loaded from tramp?, Steinar Bang, 2024/01/30
- Re: How to switch off autobackup for files loaded from tramp?, Steinar Bang, 2024/01/30