emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

easy-menu subtlety


From: Dan Nicolaescu
Subject: easy-menu subtlety
Date: Wed, 20 Feb 2008 08:01:09 -0800

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... 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]