]> git.eshelyaron.com Git - emacs.git/commit
Preserve more markers when reverting .gpg files
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 30 Aug 2019 10:20:30 +0000 (12:20 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 4 Sep 2019 13:20:00 +0000 (15:20 +0200)
commit9df72ecb6339110a0380c6faf75e7e93025bb26a
tree8f46c3e2c93d4ec1fa370b6f9b7944d1878d5887
parent3f30d98af9401562c68f3a0388cf16593eb572e5
Preserve more markers when reverting .gpg files

* lisp/epa-file.el (epa-file--replace-text): Gingerly replace the
text in the buffer to preserve as many markers as possible
(bug#34720).  This emulates the behaviour of Finsert_file_contents
more accurately.
(epa-file-decode-and-insert): Remove compat code.
(epa-file-insert-file-contents): Use the new function.

* lisp/emacs-lisp/cl-lib.el (cl-incf): Add autoload cookie.
lisp/emacs-lisp/cl-lib.el
lisp/epa-file.el