From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: merik Newsgroups: gmane.emacs.help Subject: Creating custom hooks? Date: 22 Jan 2003 09:19:07 GMT Organization: College of Computing, Georgia Tech Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1043227496 28074 80.91.224.249 (22 Jan 2003 09:24:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 22 Jan 2003 09:24:56 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18bH7s-0007IP-00 for ; Wed, 22 Jan 2003 10:24:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18bH8U-0000TZ-01 for gnu-help-gnu-emacs@m.gmane.org; Wed, 22 Jan 2003 04:25:30 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!newsfeed.utk.edu!news-ext.gatech.edu!news-int.gatech.edu!cc.gatech.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: oscar.cc.gatech.edu User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (SunOS/5.7 (sun4u)) Original-Xref: shelby.stanford.edu gnu.emacs.help:109336 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5859 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5859 I was wondering if it is possible to create a custom hook. In particular I would like a hook that is triggered whenever any sort of saving is attempted, whether it be autosaving, (save-buffer) or (save-buffer-kill-emacs). thanks, -- serendipity merik nirmal