unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Steinar Bang <sb@dod.no>
To: help-gnu-emacs@gnu.org
Subject: How to switch off autobackup for files loaded from tramp?
Date: Mon, 29 Jan 2024 12:13:45 +0100	[thread overview]
Message-ID: <yqoonklplxkjst2.fsf@dod.no> (raw)

Back in September 11 2021 I added the following line to my ~/.emacs:
 (add-to-list 'backup-directory-alist (cons tramp-file-name-regexp nil))

The purpose of that setting was to turn off autobackup for files loaded
from tramp, because emacs on windows went ga-ga when I tried to modify a
file that was loaded from a server that couldn't be contacted at the
time of edit (because of firewalls).

I think the setting worked back in 2021 at whatever emacs was the
current one back then.

But the setting does not work now and looking at the
backup-directory-alist documentation, I think it is because the nil
result just tells autobackup to work as default...?

Anyway: does someone have a current, working, config that will disable
autobackup on files loaded from tramp?

Thanks!


- Steinar



             reply	other threads:[~2024-01-29 11:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-29 11:13 Steinar Bang [this message]
2024-01-29 18:52 ` How to switch off autobackup for files loaded from tramp? 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
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

  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=yqoonklplxkjst2.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.
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).