From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63997 Path: news.gmane.org!not-for-mail From: Karl Chen Newsgroups: gmane.emacs.gnus.general Subject: hashcash - buffer modification Date: Tue, 14 Nov 2006 15:48:03 -0800 Message-ID: Reply-To: quarl+dated+1163979873.4d5c88@nospam.quarl.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163560534 1514 80.91.229.2 (15 Nov 2006 03:15:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Nov 2006 03:15:34 +0000 (UTC) Original-X-From: ding-owner+M12520@lists.math.uh.edu Wed Nov 15 04:15:33 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GkBFM-0005pW-3x for ding-account@gmane.org; Wed, 15 Nov 2006 04:15:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1GkB7h-0003Tl-Ry; Tue, 14 Nov 2006 21:07:37 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Gk81L-0002ZC-IP for ding@lists.math.uh.edu; Tue, 14 Nov 2006 17:48:51 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1Gk81F-0003ST-KK for ding@lists.math.uh.edu; Tue, 14 Nov 2006 17:48:51 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Gk81E-0004X6-00 for ; Wed, 15 Nov 2006 00:48:44 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gk80y-0006z9-6k for ding@gnus.org; Wed, 15 Nov 2006 00:48:28 +0100 Original-Received: from roar.cs.berkeley.edu ([128.32.35.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Nov 2006 00:48:28 +0100 Original-Received: from quarl by roar.cs.berkeley.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Nov 2006 00:48:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: roar.cs.berkeley.edu X-Quack-Archive: 1 Gmane-From: 1 User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:S2VKKqi+2kKNLWO0ssbTA9uKNT0= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:63997 Archived-At: Hi, I'm glad hashcash is now integrated and on by default. One thing that bothers me about the asynchronous payment insertion, which is otherwise awesome, is that it sets the message buffer modification bit. I use the advice below to get around it; how about integrating it into hashcash-insert-payment-async-2? (defadvice hashcash-insert-payment-async-2 (around kc-hashcash-set-notmodified (buffer &rest l) activate) (let ((modified (buffer-modified-p buffer))) ad-do-it (save-excursion (set-buffer buffer) (set-buffer-modified-p modified)))) -- Karl 2006-11-14 15:44