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: [PATCH] allow function values for `enable-local-eval' Date: 02 Jul 2002 23:20:43 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5xk7odesic.fsf@kfs2.cua.dk> References: <200206281741.g5SHfAa04345@santafe.santafe.edu> <87u1nnnqlp.fsf@floss.i-did-not-set--mail-host-address--so-shoot-me> <5xit42rjic.fsf@kfs2.cua.dk> <200206292222.g5TMMKx10256@santafe.santafe.edu> <5x8z4wzbw7.fsf@kfs2.cua.dk> <200207011410.g61EA0Q07792@aztec.santafe.edu> <5xr8inrvgr.fsf@kfs2.cua.dk> <200207021946.g62Jk9502033@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1025641310 16816 127.0.0.1 (2 Jul 2002 20:21:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 2 Jul 2002 20:21:50 +0000 (UTC) Cc: kfogel@red-bean.com, 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 17PU9m-0004N7-00 for ; Tue, 02 Jul 2002 22:21:50 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17PUEx-0003xB-00 for ; Tue, 02 Jul 2002 22:27:11 +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 17PU97-0002Ul-00; Tue, 02 Jul 2002 16:21:09 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17PU86-0002Gy-00; Tue, 02 Jul 2002 16:20:06 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 1C11B7C016; Tue, 2 Jul 2002 20:20:05 +0000 (GMT) Original-To: rms@gnu.org In-Reply-To: <200207021946.g62Jk9502033@aztec.santafe.edu> Original-Lines: 22 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:5358 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5358 Richard Stallman writes: > Well, I still need to do > (put 'c-add-style 'safe-local-eval-function t) > in my .emacs, but that's easier than writing my own > hook function. > > We will do that by default for c-add-style, and various other > safe functions for which users request it. lisp/ediff-init.el and ediff-diff.el have these lines which triggers the eval question: ;;; eval: (put 'ediff-defvar-local 'lisp-indent-hook 'defun) ;;; eval: (put 'ediff-with-current-buffer 'lisp-indent-hook 1) ;;; eval: (put 'ediff-with-current-buffer 'edebug-form-spec '(form body)) I don't think `put' should be a safe-local-eval-function, but maybe it is ok to allow 'edebug-form-spec in addition to 'lisp-indent-hook ? -- Kim F. Storm http://www.cua.dk