From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: local-after-save-hook? Date: 21 Jun 2002 16:06:34 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: Reply-To: sds@gnu.org NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024690155 1052 127.0.0.1 (21 Jun 2002 20:09:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2002 20:09:15 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17LUiZ-0000Gr-00 for ; Fri, 21 Jun 2002 22:09:15 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17LVAs-0005sS-00 for ; Fri, 21 Jun 2002 22:38:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17LUiU-0001kp-00; Fri, 21 Jun 2002 16:09:10 -0400 Original-Received: from h021.c001.snv.cp.net ([209.228.32.135] helo=c001.snv.cp.net) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17LUg1-0001aE-00 for ; Fri, 21 Jun 2002 16:06:37 -0400 Original-Received: (cpmta 17531 invoked from network); 21 Jun 2002 13:06:35 -0700 Original-Received: from 65.114.186.226 (HELO glip.premonitia.com) by smtp.premonitia.com (209.228.32.135) with SMTP; 21 Jun 2002 13:06:35 -0700 X-Sent: 21 Jun 2002 20:06:35 GMT Original-To: emacs-devel@gnu.org X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Mail-Copies-To: never Original-Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5070 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5070 There is a buffer-local hook `local-write-file-hooks' (which is called before writing the file) but no `local-after-save-hook' (called after the file is written). Why? I can emulate this behavior: (defun my-after-save-hook-function () do something useful (remove-hook 'after-save-hook 'my-after-save-hook-function)) (add-hook 'local-write-file-hooks (lambda () (add-hook 'after-save-hook 'my-after-save-hook-function))) but I would prefer to have `local-after-save-hook' do you mind if I add it? -- Sam Steingold (http://www.podval.org/~sds) running RedHat7.2 GNU/Linux When we write programs that "learn", it turns out we do and they don't.