From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: easy-menu subtlety Date: Wed, 20 Feb 2008 08:01:09 -0800 Message-ID: <200802201601.m1KG19WW029916@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203523577 16033 80.91.229.12 (20 Feb 2008 16:06:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2008 16:06:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 20 17:06:35 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JRrSS-0002YS-7l for ged-emacs-devel@m.gmane.org; Wed, 20 Feb 2008 17:06:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRrRx-0001Kb-Az for ged-emacs-devel@m.gmane.org; Wed, 20 Feb 2008 11:05:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JRrQh-0008Mq-0M for emacs-devel@gnu.org; Wed, 20 Feb 2008 11:04:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JRrQd-0008Im-SH for emacs-devel@gnu.org; Wed, 20 Feb 2008 11:04:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRrQd-0008II-IZ for emacs-devel@gnu.org; Wed, 20 Feb 2008 11:04:15 -0500 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JRrQd-0000Iv-1s for emacs-devel@gnu.org; Wed, 20 Feb 2008 11:04:15 -0500 X-ICS-MailScanner-Watermark: 1204128070.22499@kaUifQiSXGiG8L9G2WENUg Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m1KG19WW029916 for ; Wed, 20 Feb 2008 08:01:09 -0800 (PST) Original-Lines: 20 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89693 Archived-At: The last 3 lines of this code sequence in lisp/progmodes/verilog-mode.el: ("Move" ,(if (featurep 'xemacs) (progn ["Beginning of function" verilog-beg-of-defun t] ["End of function" verilog-end-of-defun t] ["Mark function" verilog-mark-defun t]) ["Beginning of function" beginning-of-defun t] ["End of function" end-of-defun t] ["Mark function" mark-defun t]) work fine on emacs-22.1 (and later), but do not work on emacs-21. emacs-21 throws an error when loading this file: Wrong type argument: listp, ["Mark function" mark-defun t] Does anyone know how to rewrite that code so that it works both in emacs-21 and emacs-22? It's not obvious to me...