From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Can we add a check to see if user is using old or obsolete code? Date: Thu, 20 Feb 2003 15:26:07 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200302202026.h1KKQ7924606@rum.cs.yale.edu> References: <5xfzqibr72.fsf@kfs2.cua.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045773155 5540 80.91.224.249 (20 Feb 2003 20:32:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2003 20:32:35 +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.35 #1 (Debian)) id 18lxKv-0001Gs-00 for ; Thu, 20 Feb 2003 21:30:29 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18lxYb-0004L0-00 for ; Thu, 20 Feb 2003 21:44:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18lxJs-0003G7-01 for emacs-devel@quimby.gnus.org; Thu, 20 Feb 2003 15:29:24 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18lxJN-0002tO-00 for emacs-devel@gnu.org; Thu, 20 Feb 2003 15:28:53 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18lxIU-00027x-00 for emacs-devel@gnu.org; Thu, 20 Feb 2003 15:27:59 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18lxGl-0001WG-00 for emacs-devel@gnu.org; Thu, 20 Feb 2003 15:26:11 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id h1KKQ7924606; Thu, 20 Feb 2003 15:26:07 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: no-spam@cua.dk (Kim F. Storm) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11798 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11798 > I suggest that we create a new hook, `check-compat-hook', which is run > at the end of `normal-top-level' (i.e. after all normal user-setup > actions have been performed). You can also use (eval-after-load 'cua '(if (boundp 'CUA-some-obsolete-var) (error "You are using an obsolete version of CUA."))) -- Stefan