From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.devel Subject: Re: Defcustom write-file-functions and write-contents-functions? Date: Mon, 05 Jan 2004 19:38:10 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200312311657.hBVGvD428945@raven.dms.auburn.edu> <200312311927.hBVJR8H29112@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073328143 31706 80.91.224.253 (5 Jan 2004 18:42:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2004 18:42:23 +0000 (UTC) Cc: teirllm@dms.auburn.edu, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jan 05 19:42:15 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AdZg6-0003Dv-00 for ; Mon, 05 Jan 2004 19:42:14 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AdZg6-0004fX-00 for ; Mon, 05 Jan 2004 19:42:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdacG-0004oS-6q for emacs-devel@quimby.gnus.org; Mon, 05 Jan 2004 14:42:20 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AdabS-0004XD-BB for emacs-devel@gnu.org; Mon, 05 Jan 2004 14:41:30 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AdaaN-0004DB-68 for emacs-devel@gnu.org; Mon, 05 Jan 2004 14:40:58 -0500 Original-Received: from [217.13.230.178] (helo=yxa.extundo.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AdaZp-00041y-7a; Mon, 05 Jan 2004 14:39:49 -0500 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.10/8.12.10) with ESMTP id i05IcAAU030284 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 5 Jan 2004 19:38:11 +0100 Original-To: rms@gnu.org X-Hashcash: 0:040105:rms@gnu.org:361a42993bc10cb5 X-Hashcash: 0:040105:monnier@iro.umontreal.ca:b9c995a8341ad9a3 X-Hashcash: 0:040105:teirllm@dms.auburn.edu:e9ddbe315d070805 X-Hashcash: 0:040105:emacs-devel@gnu.org:a69af032008df288 In-Reply-To: (Richard Stallman's message of "Mon, 05 Jan 2004 12:56:20 -0500") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19019 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19019 Richard Stallman writes: > >> * files.el (before-save-hook): Add. > >> (basic-save-buffer): Use before-save-hook. > > > > Please don't. There are already plenty of hooks run at that place > > and the code is hairy enough as it is. > > It appears as if none of the existing hooks can support the feature > that was needed here -- unconditionally invoking some code before > saving a buffer. This seems like a rather simple and useful hook. > > I agree--we should add this. I have installed it.