GNU bug report logs - #57856
28.2; bookmark context strings in encrypted files

Previous Next

Package: emacs;

Reported by: Gustavo Barros <gusbrs.2016 <at> gmail.com>

Date: Fri, 16 Sep 2022 11:48:01 UTC

Severity: normal

Tags: moreinfo

Found in version 28.2

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Gustavo Barros <gusbrs.2016 <at> gmail.com>, 57856 <at> debbugs.gnu.org
Subject: bug#57856: 28.2; bookmark context strings in encrypted files
Date: Mon, 19 Sep 2022 15:03:30 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

Hi Lars,

> (let ((auth-sources ...))
>   (auth-source-search ...))
>
> and we'd have no idea how to identify those files.

Yes. Packages which hide to-be-protected files in a let-form cannot
expect that we identify such files, except inside that let-form. This
isn't worse than today.

But we will protect users who do in their init file

(setq auth-sources '("~/.authinfo" "~/my-own-netrc-file-name"))

Maybe, additionally or instead of, all files with enabled reveal-mode in
the visiting buffer shall be protected as well. Another check function.

(defun reveal-mode-p (filename)
  (when-let ((buffer (get-file-buffer filename)))
    (buffer-local-value reveal-mode buffer)))

Best regards, Michael.




This bug report was last modified 2 years and 244 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.