From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.help Subject: Re: enable-local-variables Date: Mon, 01 Jan 2007 23:50:42 +0100 Organization: nil Message-ID: <45999042$0$30319$9b4e6d93@newsspool1.arcor-online.net> References: <1167681848.399172.255500@h40g2000cwb.googlegroups.com> <45998113$0$5712$9b4e6d93@newsspool3.arcor-online.net> <1167690432.813314.179450@i12g2000cwa.googlegroups.com> Reply-To: angeli@caeruleus.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1167694836 3240 80.91.229.12 (1 Jan 2007 23:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2007 23:40:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 02 00:40:35 2007 Return-path: Envelope-to: geh-help-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 1H1Wld-00088P-CQ for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Jan 2007 00:40:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1Wlc-0007UV-S9 for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jan 2007 18:40:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!news.germany.com!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux) Cancel-Lock: sha1:ZaE6uNsocAZbR44GtwEMk5RvVmo= Original-Lines: 46 Original-NNTP-Posting-Date: 01 Jan 2007 23:50:43 CET Original-NNTP-Posting-Host: cecec33c.newsspool1.arcor-online.net Original-X-Trace: DXC=h=; FQfkHadcPKPPVf; 4hUjic==]BZ:afn4Fo<]lROoRa^YC2XCjHcbiK\GbS\`Z3bf392BQYIaSbiD\SojI5:1jmdTTQbTJXALgjTZ2aNe3PTc Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:144485 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40088 Archived-At: * Eric Twietmeyer (2007-01-01) writes: > Ralf Angeli wrote: >> >> I'd also be interested in knowing which package or code uses the >> variable before giving you a means to shoot yourself in the foot. > > Here is what the text looks like at the bottom of a typical C++ file I > edit: > > /* > Local Variables: > typedefs:("boost" "noncopyable" "shared_ptr" "size_t" "std" "string" > "tCursorIPtr" "tDestroyI" "tEndian" "tStreamI" "tStreamIPtr" "wchar_t" > "wstring") > End: > */ > > So the value of "typedefs" is just a list of quoted symbols. Then (put 'typedefs 'safe-local-variable 'listp) should work. > This list > changes from file to file. It is used by the syntax highlighting code > in C/C++ mode. I couldn't find anything regarding "typedefs" in Emacs' sources. Which mode is this and who is maintaining it? Could you inform those people that they should mark the variable as safe (in case it really is) in their mode? > The question therefore remains, what can I do so that all such values > of typedefs are always considered "safe". I'm not certain why this is > being flagged in the first place, as the documentation I saw about > ricky variables indicates that their name should end in some special > characters, and my typedefs do not end in such characters. So I have > been confused from the start why this is marked as risky in the first > place and therefore why I am being queried about it each time I open > the file. All unknown variables are considered risky in CVS Emacs. -- Ralf