From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: isolating history with buffer-local variables
Date: Wed, 20 May 2015 17:26:42 -0400 [thread overview]
Message-ID: <jwv617nkkzx.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: 4F35C3B0-4EA7-4B66-8006-F5048B1BF8B4@tenpoint.co.nz
> So, all up, for a single edit, I could end up with nine or more uncontrolled
> copies or fragments of foo.txt floating around. For normal files, this
To the extent that 9 copies is not fundamentally different from
3 copies, I think that it's OK to require the user to explicitly request
to skip backups/autosaves via something like:
> ;; backup-inhibited: t
> ;; eval: (auto-save-mode 0)
[ I have backup inhibited globally, FWIW. ]
> to foo.conf to prevent the copies being created, but has no simple control
> over saved rings and histories.
For rings and history, the problem here is the same as for encrypted
files, so once we solve the problem for encrypted files, it can be used
for these confidential-but-not-encrypted files.
> +---------+---------+---------------+---------------+
> |File |Local FS |Fp Ap Bp Hp Rp |Fe - Be Hp Rp |
> |loc +---------+---------------+---------------+
> | |LAN |Fp Ap Bp Hp Rp |Fe - Be Hp Rp |
> | +---------+---------------+---------------+
> | |Remote |Fp Ap Bp Hp Rp |Fe Ap Be Hp Rp |
> +---------+---------+---------------+---------------+
>
> Where:
> F = visited file (on user save)
> A = auto-saves (to ~/.emacs.d/auto-saves)
> B = backups (to ~/.emacs.d/backups)
> H = minibuffer history (et al) (to ~/.emacs.d/.emacs_history via savehist)
> R = kill-ring (et al) (also to ~/.emacs.d/.emacs_history via savehist)
As mentioned, please report a bug w.r.t minibuffer histories so your
private-mode can more easily make sure data doesn't escape this way.
> The results are largely as expected, with the exception of the handling of
> auto-saves on remote machines (the remote encrypted gpg was saved in plain
> text on the local machine). Perhaps this is a bug.
This is very much a severe bug, yes. Please report it.
> +---------------+-------------------------------+---------------+
> | PRIVATE |
> +---------------+---------------+---------------+---------------+
> |plain-text |plain-text |encrypted |encrypted |
> +----+---------+---------------+---------------+---------------+---------------+
I'm not sure we need to distinguish "encrypted+private" from the "normal
encrypted" files. I.e. we should treat all encrypted files as private
(at least by default).
Stefan
next prev parent reply other threads:[~2015-05-20 21:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-13 2:10 isolating history with buffer-local variables Nick Helm
2015-05-13 21:39 ` Stefan Monnier
2015-05-15 2:40 ` Nick Helm
2015-05-15 23:32 ` Stefan Monnier
2015-05-20 15:52 ` Nick Helm
2015-05-20 21:26 ` Stefan Monnier [this message]
2015-05-25 0:39 ` Stefan Monnier
2015-05-25 2:06 ` Nick Helm
[not found] ` <mailman.3589.1432519466.904.help-gnu-emacs@gnu.org>
2015-05-25 2:12 ` Pascal J. Bourguignon
2015-05-25 3:14 ` Nick Helm
[not found] <mailman.2920.1431489112.904.help-gnu-emacs@gnu.org>
2015-05-13 4:17 ` Pascal J. Bourguignon
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=jwv617nkkzx.fsf-monnier+gmane.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--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.