From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Defcustom write-file-functions and write-contents-functions? Date: Sun, 4 Jan 2004 22:41:31 -0600 (CST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200401050441.i054fV506235@raven.dms.auburn.edu> References: <200312311657.hBVGvD428945@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1073280215 6870 80.91.224.253 (5 Jan 2004 05:23:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2004 05:23:35 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jan 05 06:23:33 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 1AdNDB-00020Z-00 for ; Mon, 05 Jan 2004 06:23:33 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AdNDA-0002dF-00 for ; Mon, 05 Jan 2004 06:23:32 +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 1AdO2m-0007gV-KM for emacs-devel@quimby.gnus.org; Mon, 05 Jan 2004 01:16:52 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AdNw2-0003Mr-8C for emacs-devel@gnu.org; Mon, 05 Jan 2004 01:09:54 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AdNWm-0002Jy-M5 for emacs-devel@gnu.org; Mon, 05 Jan 2004 00:44:21 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdNWK-0001sL-KJ for emacs-devel@gnu.org; Mon, 05 Jan 2004 00:43:20 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i054g0Kk013929; Sun, 4 Jan 2004 22:42:00 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i054fV506235; Sun, 4 Jan 2004 22:41:31 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: abraham@dina.kvl.dk In-reply-to: (message from Per Abrahamsen on Sun, 04 Jan 2004 15:54:22 +0100) 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:19011 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19011 Per Abrahamsen wrote: Luc Teirlinck writes: > Do you really want to make those two functions customizable through > Custom? If not, it would probably be a good idea to add a comment to the defvar stating why they are not declared with decustom. As soon as it is clear whether we want the new hook `before-save-hook' (which I personally believe would be a good idea), I could add some comments to the documentation strings of `write-file-functions' and `write-contents-functions' as well as to their description in `(elisp)Saving Buffers'. Basically, people have been trying to use especially `write-file-functions' for things it was not intended for and can not be used for, because it is not guaranteed to run. If we add `before-save-hook', we can tell people to use that customizable, normal, unconditionally run hook instead. Sincerely, Luc.