emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master 58e6235: * lisp/image-mode.el: Support encrypte


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master 58e6235: * lisp/image-mode.el: Support encrypted file
Date: Mon, 16 Nov 2015 23:56:34 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> @@ -658,7 +658,12 @@ was inserted."
>                          (not (and (boundp 'archive-superior-buffer)
>                                    archive-superior-buffer))
>                          (not (and (boundp 'tar-superior-buffer)
> -                                  tar-superior-buffer)))))
> +                                  tar-superior-buffer))
> +                           ;; This means the buffer holds the
> +                           ;; decrypted content (bug#21870).
> +                           (not (and (boundp 'epa-file-encrypt-to)
> +                                     (local-variable-p
> +                                      'epa-file-encrypt-to))))))
>        (file-or-data (if data-p
>                          (string-make-unibyte
>                           (buffer-substring-no-properties (point-min) 
> (point-max)))

Clearly, image-mode should not need to know about tar-mode,
archive-mode, nor epa-mode, and instead there should be a way for those
to indicate that the buffer's content is not available in the file via
normal syscalls.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]