1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(epa-decrypt-region): Detect encoding if

coding-system-for-read is not specified.
<http://sourceforge.jp/ticket/browse.php?group_id=2267&tid=17018>
(epa-verify-region): Ditto.
This commit is contained in:
Daiki Ueno 2009-06-05 01:58:53 +00:00
parent 74830ab74d
commit 42481bde61
2 changed files with 11 additions and 2 deletions

View file

@ -830,7 +830,8 @@ For example:
(setq plain (epa--decode-coding-string
plain
(or coding-system-for-read
(get-text-property start 'epa-coding-system-used))))
(get-text-property start 'epa-coding-system-used)
'undecided)))
(if (y-or-n-p "Replace the original text? ")
(let ((inhibit-read-only t)
buffer-read-only)
@ -919,7 +920,8 @@ For example:
(setq plain (epa--decode-coding-string
plain
(or coding-system-for-read
(get-text-property start 'epa-coding-system-used))))
(get-text-property start 'epa-coding-system-used)
'undecided)))
(if (y-or-n-p "Replace the original text? ")
(let ((inhibit-read-only t)
buffer-read-only)