[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: easy-menu subtlety
From: |
Dan Nicolaescu |
Subject: |
Re: easy-menu subtlety |
Date: |
Wed, 20 Feb 2008 09:20:30 -0800 |
Andreas Schwab <address@hidden> writes:
> Dan Nicolaescu <address@hidden> writes:
>
> > 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])
>
> That looks completely bogus to me. The result of the evaluation of the
> form is a single vector, with the other two just thrown away. I think
> the intention was to write this:
>
> ("Move"
> ,@(if (featurep 'xemacs)
> '(["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]))
Thanks, but it doesn't work with emacs-21: "Invalid menu item in easymenu"