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: 30 Jun 2002 23:37:12 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5x8z4wzbw7.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> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1025469547 30121 127.0.0.1 (30 Jun 2002 20:39:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 30 Jun 2002 20:39:07 +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 17OlTP-0007pi-00 for ; Sun, 30 Jun 2002 22:39:07 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17OlXc-0006f3-00 for ; Sun, 30 Jun 2002 22:43:28 +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 17OlTV-0002Oi-00; Sun, 30 Jun 2002 16:39:13 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17OlQw-00023v-00; Sun, 30 Jun 2002 16:36:35 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 957717C017; Sun, 30 Jun 2002 20:36:32 +0000 (GMT) Original-To: rms@gnu.org In-Reply-To: <200206292222.g5TMMKx10256@santafe.santafe.edu> Original-Lines: 27 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:5277 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5277 Richard Stallman writes: > I'm working on a project where the files belonging to > one of the modules have a rather complicated -- but harmless -- eval: > > Could you show it to us, please? > I edited out the details but here it is: eval: (c-add-style "StyleX" (quote ((c-basic-offset . 4) (c-offsets-alist (label . *) ...))) t) Even if we provided a c-add-style: hook similar to c-file-style: I couldn't just replace the eval: with it... First, I'm not in control of those files, so I'm not in a position to change those files, so I have to live with that `eval:'. Secondly, even if I could change the eval:, that would disturbe other developers which are still using older versions of emacs (some are still using 20.7, and are not going to change any time soon). Consequently, for me, it would be really nice if I could check for this specific hook and just say it's ok. -- Kim F. Storm http://www.cua.dk