From: Steinar Bang <sb@dod.no>
To: help-gnu-emacs@gnu.org
Subject: Re: How to switch off autobackup for files loaded from tramp?
Date: Tue, 30 Jan 2024 12:53:52 +0100 [thread overview]
Message-ID: <yqoonkla5onca0f.fsf@dod.no> (raw)
In-Reply-To: <yqoonkleddzcami.fsf@dod.no> (Steinar Bang's message of "Tue, 30 Jan 2024 12:40:37 +0100")
>>>>> Steinar Bang <sb@dod.no>:
> But... rummaging through emacs' files.el that 'C-h v' sent me to, I
> found this:
> (defcustom remote-file-name-inhibit-auto-save-visited nil
> "When nil, `auto-save-visited-mode' will auto-save remote files.
> Any other value means that it will not."
> :group 'auto-save
> :type 'boolean
> :version "29.1")
> I'll try using this.
Ok, this was weird:
M-x : remote-file-name-inhibit-auto-save-visited
in a buffer loaded from remote returns now t, but the buffer still
autosaves when modified
Does tramp do its own thing wrt to autosaving?
Or isn't the tramp file recognized as a remote file?
M-x : (not (file-remote-p buffer-file-name))
evaluates to nil while the same on ~/.emacs evaluates to t, so I think
that means that file-remote-p sees the tramp buffer file as a remote...?
next prev parent reply other threads:[~2024-01-30 11:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-29 11:13 How to switch off autobackup for files loaded from tramp? Steinar Bang
2024-01-29 18:52 ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-30 8:13 ` Steinar Bang
2024-01-30 9:21 ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-30 9:48 ` Steinar Bang
2024-01-30 10:16 ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-30 11:40 ` Steinar Bang
2024-01-30 11:53 ` Steinar Bang [this message]
2024-01-30 12:13 ` Steinar Bang
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=yqoonkla5onca0f.fsf@dod.no \
--to=sb@dod.no \
--cc=help-gnu-emacs@gnu.org \
/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.