From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] allow function values for `enable-local-eval' Date: Fri, 28 Jun 2002 11:41:10 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200206281741.g5SHfAa04345@santafe.santafe.edu> References: Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1025286157 6338 127.0.0.1 (28 Jun 2002 17:42:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2002 17:42:37 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17NzlV-0001e7-00 for ; Fri, 28 Jun 2002 19:42:37 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Nzog-0004Pg-00 for ; Fri, 28 Jun 2002 19:45:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Nzle-00086U-00; Fri, 28 Jun 2002 13:42:46 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Nzk8-0007qK-00; Fri, 28 Jun 2002 13:41:12 -0400 Original-Received: from santafe.santafe.edu (santafe [192.12.12.2]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g5SHfBB09031; Fri, 28 Jun 2002 11:41:11 -0600 (MDT) Original-Received: (from rms@localhost) by santafe.santafe.edu (8.10.2+Sun/8.9.3) id g5SHfAa04345; Fri, 28 Jun 2002 11:41:10 -0600 (MDT) X-Authentication-Warning: santafe.santafe.edu: rms set sender to rms@santafe using -f Original-To: kfogel@red-bean.com In-Reply-To: (message from Karl Fogel on Wed, 26 Jun 2002 18:11:46 -0500) 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:5249 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5249 This patch allows users to set `enable-local-eval' to a function. If the function returns non-nil, the eval happens, otherwise it does not. That is a general basis for a solution, but it has no specific knowledge; it requires that to be provided by the user. I'm not necessarily rejecting it, but it would be more helpful to do something that embody specific knowledge, and does the right thing (for some cases) without requiring user customization. We have a project where virtually every source file has some "eval:" forms. Can you show me some of them? Maybe we can simply allow these forms just as the existing code already allows certain `put' expressions.