From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#545: 23.0.60; epg - cannot save changes on encrypted files Date: Sat, 12 Jul 2008 06:05:37 -0700 Message-ID: <87lk079rry.fsf@offby1.atm01.sea.blarg.net> References: <87lk09299j.fsf@literaturlatenight.de> Reply-To: Eric Hanchrow , 545@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215869256 24954 80.91.229.12 (12 Jul 2008 13:27:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jul 2008 13:27:36 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 12 15:28:24 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KHf9B-0005j3-Tc for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jul 2008 15:28:22 +0200 Original-Received: from localhost ([127.0.0.1]:60055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHf8J-00067M-L6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jul 2008 09:27:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KHf8D-00066l-PL for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2008 09:27:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KHf8C-00066S-VN for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2008 09:27:21 -0400 Original-Received: from [199.232.76.173] (port=46739 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHf8C-00066C-JW for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2008 09:27:20 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54042) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KHf8C-0005tr-4Z for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2008 09:27:20 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6CDRF3T013982; Sat, 12 Jul 2008 06:27:16 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m6CDF6R2010572; Sat, 12 Jul 2008 06:15:06 -0700 X-Loop: don@donarmstrong.com Resent-From: Eric Hanchrow Original-Sender: news Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 12 Jul 2008 13:15:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 545 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12158682159957 (code B ref -1); Sat, 12 Jul 2008 13:15:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 12 Jul 2008 13:10:15 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6CDABJV009816 for ; Sat, 12 Jul 2008 06:10:12 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:32825 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KHer7-0003N6-8Z for emacs-pretest-bug@gnu.org; Sat, 12 Jul 2008 09:09:41 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KHerU-0002uZ-LI for emacs-pretest-bug@gnu.org; Sat, 12 Jul 2008 09:10:08 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:51184 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KHerU-0002tt-9s for emacs-pretest-bug@gnu.org; Sat, 12 Jul 2008 09:10:04 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1KHerS-0005kJ-DU for emacs-pretest-bug@gnu.org; Sat, 12 Jul 2008 13:10:02 +0000 Original-Received: from q-static-138-125.avvanta.com ([206.124.138.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Jul 2008 13:10:02 +0000 Original-Received: from offby1 by q-static-138-125.avvanta.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Jul 2008 13:10:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: q-static-138-125.avvanta.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:Xupk/l8D+rAiKmj8S/aoN0Lsc04= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-CrossAssassin-Score: 2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sat, 12 Jul 2008 09:27:21 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18704 gmane.emacs.pretest.bugs:22724 Archived-At: Try this: diff --git a/lisp/epa-file.el b/lisp/epa-file.el index 25edba5..f621a53 100644 --- a/lisp/epa-file.el +++ b/lisp/epa-file.el @@ -182,6 +182,9 @@ context (if (stringp start) (epa-file--encode-coding-string start coding-system) + (unless start + (setq start (point-min) + end (point-max))) (epa-file--encode-coding-string (buffer-substring start end) coding-system)) (if (or epa-file-select-keys (This patch has already been checked in) -- A DRE voting system is one of the simplest computer applications you could imagine. It just adds by one. -- Brit Williams, emeritus professor of computer science