From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#4554: local variable for updating the time stamp on save Date: Thu, 24 Sep 2009 23:51:23 +0300 Organization: JURTA Message-ID: <87hbut1vpi.fsf@mail.jurta.org> Reply-To: Juri Linkov , 4554@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253827664 28397 80.91.229.12 (24 Sep 2009 21:27:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Sep 2009 21:27:44 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 24 23:27:37 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mqvqb-0000wZ-VK for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Sep 2009 23:27:30 +0200 Original-Received: from localhost ([127.0.0.1]:52160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqvqb-0007yP-Cr for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Sep 2009 17:27:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqvqK-0007qP-6m for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 17:27:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqvqF-0007mi-Ca for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 17:27:11 -0400 Original-Received: from [199.232.76.173] (port=58824 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqvqF-0007mR-0a for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 17:27:07 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45256) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MqvqE-0006wX-Ci for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 17:27:06 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8OLR4gk028535; Thu, 24 Sep 2009 14:27:04 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8OLA5KA026143; Thu, 24 Sep 2009 14:10:05 -0700 Resent-Date: Thu, 24 Sep 2009 14:10:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 24 Sep 2009 21:10:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4554 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125382629824611 (code B ref -1); Thu, 24 Sep 2009 21:10:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 24 Sep 2009 21:04:58 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8OL4uGg024598 for ; Thu, 24 Sep 2009 14:04:57 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqvUl-0006Hm-Ru for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 17:04:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqvUg-0006Fp-TH for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 17:04:55 -0400 Original-Received: from [199.232.76.173] (port=55825 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqvUg-0006Fh-O8 for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 17:04:50 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:41012 helo=mx2.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqvUg-0003hg-6g for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 17:04:50 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.70.149.cable.starman.ee [82.131.70.149]) by mx2.starman.ee (Postfix) with ESMTP id 7A1373F40B9 for ; Fri, 25 Sep 2009 00:04:40 +0300 (EEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 24 Sep 2009 17:27:11 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31475 Archived-At: The defcustom `safe-local-eval-forms' contains '((add-hook 'write-file-hooks 'time-stamp)) but the documentation suggests using (add-hook 'before-save-hook 'time-stamp) This patch adds the recommended form to `safe-local-eval-forms' as well: Index: lisp/files.el =================================================================== RCS file: /sources/emacs/emacs/lisp/files.el,v retrieving revision 1.1083 diff -c -r1.1083 files.el *** lisp/files.el 21 Sep 2009 22:12:30 -0000 1.1083 --- lisp/files.el 24 Sep 2009 20:47:28 -0000 *************** *** 2687,2693 **** :group 'find-file :type 'alist) ! (defcustom safe-local-eval-forms '((add-hook 'write-file-hooks 'time-stamp)) "Expressions that are considered safe in an `eval:' local variable. Add expressions to this list if you want Emacs to evaluate them, when they appear in an `eval' local variable specification, without first --- 2687,2695 ---- :group 'find-file :type 'alist) ! (defcustom safe-local-eval-forms ! '((add-hook 'before-save-hook 'time-stamp) ! (add-hook 'write-file-hooks 'time-stamp)) "Expressions that are considered safe in an `eval:' local variable. Add expressions to this list if you want Emacs to evaluate them, when they appear in an `eval' local variable specification, without first -- Juri Linkov http://www.jurta.org/emacs/