Skip to content
This repository
Browse code

Ensure that encrypted strings are written with no conversion.

Thanks to Sakuma.

* twittering-mode.el: Ensure that encrypted strings are written
with no conversion. Thanks to Sakuma.
(twittering-write-and-encrypt): ensure that encrypted strings are
written with no conversion.
  • Loading branch information...
commit c519bad5a1e7ae60eabc5f0df4adcc0758366abf 1 parent b490a48
Tadashi MATSUO cvmat authored

Showing 2 changed files with 11 additions and 2 deletions. Show diff stats Hide diff stats

  1. +7 0 ChangeLog
  2. +4 2 twittering-mode.el
7 ChangeLog
... ... @@ -1,3 +1,10 @@
  1 +2011-01-09 Tadashi MATSUO <tad@mymail.twin.jp>
  2 +
  3 + * twittering-mode.el: Ensure that encrypted strings are written
  4 + with no conversion. Thanks to Sakuma.
  5 + (twittering-write-and-encrypt): ensure that encrypted strings are
  6 + written with no conversion.
  7 +
1 8 2010-12-17 Yuto HAYAMIZU <y.hayamizu@gmail.com>
2 9
3 10 * twittering-mode.el (twittering-organic-retweet): prohibit
6 twittering-mode.el
@@ -2659,7 +2659,8 @@ like following:
2659 2659 ;; In order to prevent `epa-file' to encrypt the file double,
2660 2660 ;; `epa-file-name-regexp' is temorarily changed into the null
2661 2661 ;; regexp that never matches any string.
2662   - (let ((epa-file-name-regexp "\\`\\'"))
  2662 + (let ((epa-file-name-regexp "\\`\\'")
  2663 + (coding-system-for-write 'binary))
2663 2664 (when (fboundp 'epa-file-name-regexp-update)
2664 2665 (epa-file-name-regexp-update))
2665 2666 (with-temp-file file
@@ -2678,7 +2679,8 @@ like following:
2678 2679 ;; This is required because `alpaca-save-buffer' checks its timestamp.
2679 2680 (with-temp-file file)
2680 2681 (with-temp-buffer
2681   - (let ((buffer-file-name file))
  2682 + (let ((buffer-file-name file)
  2683 + (coding-system-for-write 'binary))
2682 2684 (insert str)
2683 2685 (condition-case nil
2684 2686 (if (alpaca-save-buffer)

0 comments on commit c519bad

Please sign in to comment.
Something went wrong with that request. Please try again.