unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* easy-menu subtlety
@ 2008-02-20 16:01 Dan Nicolaescu
  2008-02-20 16:32 ` Andreas Schwab
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Nicolaescu @ 2008-02-20 16:01 UTC (permalink / raw)
  To: emacs-devel


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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-20 19:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-20 16:01 easy-menu subtlety Dan Nicolaescu
2008-02-20 16:32 ` Andreas Schwab
2008-02-20 17:20   ` Dan Nicolaescu
2008-02-20 18:02     ` Stefan Monnier
2008-02-20 18:20       ` Dan Nicolaescu
2008-02-20 19:17         ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).