From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.help Subject: Re: How to automatically write *Messages" buffer to a file? Date: Wed, 24 Nov 2004 22:52:46 -0600 Message-ID: References: <87sm6zl4sx.fsf@thalassa.informatimago.com> <01c4d23d$Blat.v2.2.2$c2b81b20@zahav.net.il> <7eact6oqjq.fsf@ada2.unipv.it> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1101358424 24000 80.91.229.6 (25 Nov 2004 04:53:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Nov 2004 04:53:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 25 05:53:33 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 1CXBdM-00014W-00 for ; Thu, 25 Nov 2004 05:53:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXBmX-0007Ro-IF for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Nov 2004 00:03:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CXBmL-0007RJ-GF for help-gnu-emacs@gnu.org; Thu, 25 Nov 2004 00:02:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CXBmI-0007Py-3C for help-gnu-emacs@gnu.org; Thu, 25 Nov 2004 00:02:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXBmH-0007PE-J4 for help-gnu-emacs@gnu.org; Thu, 25 Nov 2004 00:02:45 -0500 Original-Received: from [146.6.139.124] (helo=dell3.ma.utexas.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CXBce-0005Bn-2S for help-gnu-emacs@gnu.org; Wed, 24 Nov 2004 23:52:48 -0500 Original-Received: from linux183.ma.utexas.edu (mail@linux183.ma.utexas.edu [146.6.139.172]) by dell3.ma.utexas.edu (8.11.0.Beta3/8.10.2) with ESMTP id iAP4qk812435; Wed, 24 Nov 2004 22:52:46 -0600 Original-Received: from jcorneli by linux183.ma.utexas.edu with local (Exim 3.36 #1 (Debian)) id 1CXBcc-0005K6-00; Wed, 24 Nov 2004 22:52:46 -0600 Original-To: help-gnu-emacs@gnu.org In-reply-to: <7eact6oqjq.fsf@ada2.unipv.it> (message from Thien-Thi Nguyen on Wed, 24 Nov 2004 23:00:57 +0100) 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:22296 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22296 Joe Corneli writes: > True, using `write-region' is more transparent (and I had an > error in my advice to this function), but I don't see why > advising `write-region' and then calling `append-to-file' > wouldn't work. i don't understand what you mean by transparent, here. Easy to understand. Simple. Direct. Since `append-to-file' is just a wrapper for `write-region', using `write-region' to stand for itself is clearer, hence "more transparent". Also the complications of advice can be avoided, again, making the code clearer.