From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How to automatically write *Messages" buffer to a file? Date: Thu, 25 Nov 2004 20:20:54 GMT Message-ID: References: <87sm6zl4sx.fsf@thalassa.informatimago.com> <01c4d23d$Blat.v2.2.2$c2b81b20@zahav.net.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101414053 19638 80.91.229.6 (25 Nov 2004 20:20:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Nov 2004 20:20:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 25 21:20:50 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CXQ6j-0006Eb-00 for ; Thu, 25 Nov 2004 21:20:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXQFw-0004Tf-Ra for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Nov 2004 15:30:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!cyclone.bc.net!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:zGIQPL3mpnT1EdEZNor95rG2eoI= Original-Lines: 21 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1101414054 132.204.24.84 (Thu, 25 Nov 2004 15:20:54 EST) Original-NNTP-Posting-Date: Thu, 25 Nov 2004 15:20:54 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:126920 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22321 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22321 > (add-hook 'after-change-functions 'write-to-log) Please pass set `local' argument. It doesn't make a difference, but it's cleaner. Same thing for remove-hook. > ;; this region doesn't seem to include the > ;; final character, but I can't change the > ;; way it is written or I get error. > ;; > ;; the obvious choice > ;; beg end > ;; doesn't work either. > (- (point-max) > (- end beg)) > (point-max) > "~/LOG" t 'quiet))) Try M-x report-emacs-bug. Stefan