From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: `safe-local-variable' updates for Common Lisp programmers Date: Tue, 14 Nov 2006 18:39:03 -0500 Message-ID: References: <861wo5prj7.fsf@rakim.cfhp.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163547610 1365 80.91.229.2 (14 Nov 2006 23:40:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2006 23:40:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 15 00:40:07 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gk7sn-00059n-0p for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2006 00:40:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gk7sl-0008Dt-JY for ged-emacs-devel@m.gmane.org; Tue, 14 Nov 2006 18:39:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gk7rx-00080v-HP for emacs-devel@gnu.org; Tue, 14 Nov 2006 18:39:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gk7rv-0007zz-JO for emacs-devel@gnu.org; Tue, 14 Nov 2006 18:39:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gk7rv-0007zr-7h for emacs-devel@gnu.org; Tue, 14 Nov 2006 18:39:07 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gk7rv-00044f-OQ for emacs-devel@gnu.org; Tue, 14 Nov 2006 18:39:07 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 1067A2CFCA5; Tue, 14 Nov 2006 18:39:07 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 850083FE0; Tue, 14 Nov 2006 18:39:03 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 6D0D26C7F3; Tue, 14 Nov 2006 18:39:03 -0500 (EST) Original-To: Edward O'Connor In-Reply-To: <861wo5prj7.fsf@rakim.cfhp.org> (Edward O'Connor's message of "Tue\, 14 Nov 2006 17\:55\:24 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62310 Archived-At: > Andreas Fuchs recently pointed out[0] that Common Lisp files often have > a file-local variables section which specifies the package and syntax of > the code in the file. For example: > -*- mode: lisp; package: cl-user; syntax: ansi -*- > Andreas does the following in his .emacs; perhaps these should be the > default (at least, for files in lisp-mode)? > ,---- > | (put 'package 'safe-local-variable 'symbolp) > | (put 'Package 'safe-local-variable 'symbolp) > | (put 'syntax 'safe-local-variable 'symbolp) > | (put 'Syntax 'safe-local-variable 'symbolp) > | (put 'Base 'safe-local-variable 'integerp) > | (put 'base 'safe-local-variable 'integerp) > `---- Why do people set those vars like you show? I.e. which piece of code makes use of that? Stefan