From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: risky-local-variable-p called with 1 argument Date: 25 Oct 2002 12:08:44 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5x8z0mygnn.fsf@kfs2.cua.dk> References: <20021025090851.D41A.LEKTU@terra.es> <5xhefayhwu.fsf@kfs2.cua.dk> <20021025105607.D423.LEKTU@terra.es> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035536939 4172 80.91.224.249 (25 Oct 2002 09:08:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 25 Oct 2002 09:08:59 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1850Sg-000150-00 for ; Fri, 25 Oct 2002 11:08:58 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 1850VH-0006P6-00 for ; Fri, 25 Oct 2002 11:11:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 1850T2-0004gV-00; Fri, 25 Oct 2002 05:09:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 1850SO-0003bD-00 for emacs-devel@gnu.org; Fri, 25 Oct 2002 05:08:40 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 1850SL-0003Op-00 for emacs-devel@gnu.org; Fri, 25 Oct 2002 05:08:39 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10) id 1850SK-0003L8-00; Fri, 25 Oct 2002 05:08:36 -0400 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id 837927C017; Fri, 25 Oct 2002 09:08:35 +0000 (GMT) Original-To: Juanma Barranquero In-Reply-To: <20021025105607.D423.LEKTU@terra.es> Original-Lines: 28 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.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8781 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8781 Juanma Barranquero writes: > On 25 Oct 2002 11:41:37 +0200, storm@cua.dk (Kim F. Storm) wrote: > > > That change is not recorded in the lisp/ChangeLog, but I found this in > > the CVS log for lisp/files.el: > > > However, that log message is mis-leading, as the change doesn't define > > a new function risky-local-variable-p, but rather adds a second > > mandatory VAL argument to it. > > Yeah, I found that too. > > > And of course, the last part of that message should have rung a bell :-) > > Sure ;-) > > OK, so what's the VAL supposed to be passed to `risky-local-variable-p'? The value you are about to assign to SYM, afaics... I don't see how we can easily get that value for unsafep-variable, but as a temporary work-around, I think you should just supply an empty string "" as the arg [the only current use of the VAL argument is to test it with stringp]. -- Kim F. Storm http://www.cua.dk