From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken manheimer Newsgroups: gmane.emacs.devel Subject: Re: repairing allout auto-save decrypted-topic protection before emacs 24 release Date: Mon, 4 Jul 2011 18:24:46 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec520e66f907cc104a745d684 X-Trace: dough.gmane.org 1309818328 15694 80.91.229.12 (4 Jul 2011 22:25:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2011 22:25:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 05 00:25:24 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qdra0-0000Mt-8a for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2011 00:25:24 +0200 Original-Received: from localhost ([::1]:45295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdrZz-0005SE-B9 for ged-emacs-devel@m.gmane.org; Mon, 04 Jul 2011 18:25:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdrZh-0005Qa-4v for emacs-devel@gnu.org; Mon, 04 Jul 2011 18:25:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdrZf-0008V2-81 for emacs-devel@gnu.org; Mon, 04 Jul 2011 18:25:04 -0400 Original-Received: from mail-pv0-f169.google.com ([74.125.83.169]:61606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdrZe-0008UA-MH for emacs-devel@gnu.org; Mon, 04 Jul 2011 18:25:03 -0400 Original-Received: by pvc12 with SMTP id 12so6126892pvc.0 for ; Mon, 04 Jul 2011 15:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=X7US79ROMkDly9ciGPAg1ELDAM7H6lEJgwsybhxH/MU=; b=OE+m68t2qZITmQqvOIRZS/NDLRFzTlD0Y16ZbenxUrApgLmwI+ga/Iu+fiVeXYI+TV gBgbdRv2HtZOtK0UBI0T+HJmDFCH2VApZSHLc7xuVtje/7SJ18n6ogSqJxdtTmzPzRk7 M01jp9pp5guBrs7+fak219N7tmEZSDfatx/gI= Original-Received: by 10.68.4.102 with SMTP id j6mr7640248pbj.68.1309818301217; Mon, 04 Jul 2011 15:25:01 -0700 (PDT) Original-Received: by 10.68.40.40 with HTTP; Mon, 4 Jul 2011 15:24:46 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141557 Archived-At: --bcaec520e66f907cc104a745d684 Content-Type: text/plain; charset=ISO-8859-1 ok, done. with the bonus that regular file writes with included topics pending encryption are handled much better, as well. ken On Mon, Jul 4, 2011 at 2:59 PM, ken manheimer wrote: > hi, all. i've discovered a problem with an allout provision to protect > against auto-saves of outlines with encrypted topics that are currently > decrypted, and should have a fix soon. however, with the imminent emacs 24, > i wanted to let you know that i'm working on a fix, and hope to check it in > before the release happens. i should have the fix done by the end of the > day, and don't expect that the release really is that imminent, but figured > it wouldn't hurt to mention it. > > incidentally, the problem i discovered has to do with the way that > auto-save-hook is used. apparently it isn't checked in the context of each > buffer where auto-save is happening, and it offers no provision for > gracefully preventing an auto-save per individual buffer, like eg > write-contents-functions does. so i'm going to be transiently settting > buffer-saved-size to -1 while there are decrypted items to exempt such > buffers from auto-save - should have that done by the end of the day. > (suggestions about the approach are welcome.) > > ken manheimer > --bcaec520e66f907cc104a745d684 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable ok, done. =A0with the bonus that regular file writes with included topics p= ending encryption are handled much better, as well.

ken<= br>
On Mon, Jul 4, 2011 at 2:59 PM, ken manhe= imer <ken.m= anheimer@gmail.com> wrote:
hi, all. =A0i've discovered a problem w= ith an allout provision to protect against auto-saves of outlines with encr= ypted topics that are currently decrypted, and should have a fix soon. =A0h= owever,=A0with the imminent emacs 24, i wanted to let you know that i'm= working on a fix, and hope to check it in before the release happens. =A0i= should have the fix done by the end of the day, and don't expect that = the release really is that imminent, but figured it wouldn't hurt to me= ntion it.

incidentally, the problem i discovered has to do with the wa= y that auto-save-hook is used. =A0apparently it isn't checked in the co= ntext of each buffer where auto-save is happening, and it offers no provisi= on for gracefully preventing an auto-save per individual buffer, like eg wr= ite-contents-functions does. =A0so i'm going to be transiently settting= buffer-saved-size to -1 while there are decrypted items to exempt such buf= fers from auto-save - should have that done by the end of the day. =A0(sugg= estions about the approach are welcome.)

ken manheimer

--bcaec520e66f907cc104a745d684--