From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: local variable for updating the time stamp on save (was: Re: HOW CAN I STOP THIS NOVICE MODE STUFF?) Date: Wed, 02 Jan 2008 22:55:19 -0800 Message-ID: <200801030655.m036tJco000552@oogie-boogie.ics.uci.edu> References: <476ED79F.1000306@gmail.com> <477141A3.7030808@gmail.com> <477BE6DE.3030207@gmail.com> <200801021951.m02Jpq43005487@oogie-boogie.ics.uci.edu> <477C060C.4010903@gmail.com> <200801022157.m02LvVAc013684@oogie-boogie.ics.uci.edu> <477C2857.5060502@gmail.com> <200801030044.m030ikI2020292@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199343466 6471 80.91.229.12 (3 Jan 2008 06:57:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jan 2008 06:57:46 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Bruce Korb Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 03 07:58:06 2008 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 1JAK1l-0004z5-UU for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jan 2008 07:58:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAK1P-00060K-Se for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jan 2008 01:57:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JAK1L-0005zx-Ag for bug-gnu-emacs@gnu.org; Thu, 03 Jan 2008 01:57:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JAK1K-0005zl-HJ for bug-gnu-emacs@gnu.org; Thu, 03 Jan 2008 01:57:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAK1K-0005zi-E9 for bug-gnu-emacs@gnu.org; Thu, 03 Jan 2008 01:57:38 -0500 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JAK1K-0000My-7N for bug-gnu-emacs@gnu.org; Thu, 03 Jan 2008 01:57:38 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id m036tJco000552; Wed, 2 Jan 2008 22:55:19 -0800 (PST) In-Reply-To: <200801030044.m030ikI2020292@oogie-boogie.ics.uci.edu> (Dan Nicolaescu's message of "Wed, 02 Jan 2008 16:44:46 -0800") Original-Lines: 38 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:17288 Archived-At: Dan Nicolaescu writes: > Bruce Korb writes: > > > Dan Nicolaescu wrote: > > > It is, please send the list of variables that you have issues with. > > > If such variables are defined in emacs itself, then the policy is to > > > determine what type of arguments are safe for the variables. If the > > > variables are defined in a package, then it is that package's duty to > > > mark them as safe. > > > > How does "the package" do that? > > Fro example > (put 'VARIABLE_NAME 'safe-local-variable 'integerp) > for a variable that is of type interger. There are many examples of this > in the emacs source code. > > > > If the gnulib project doesn't do this, then which package providers > > actually do know the code? > > I can't parse this. Hmm, so gnulib is a library (never heard of it before). I downloaded it and looked at all the Local Variables section in all the files. Some of the variables used were not marked as safe in Emacs, this was causing warnings. I marked them as safe on the emacs-22.2 CVS branch. It will get merged into CVS HEAD soon. The only issue left with the local variables in gnulib is: # eval: (add-hook 'write-file-hooks 'time-stamp) This cannot be marked as safe as it is. Does anyone know if we already have a solution for something that updates the time stamps when saving? If not, do we want to add such a solution? What would that solution be?