+2007-12-11 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * progmodes/verilog-mode.el (set-buffer-menubar): Remove unused
+ function.
+ (add-submenu): Only define for XEmacs.
+ (verilog-regexp-words): Revert previous change, keep the other
+ definition.
+
2007-12-09 Dan Nicolaescu <dann@ics.uci.edu>
* progmodes/perl-mode.el (perl-continued-statement-offset)
nil ;; fab
(defmacro store-match-data (&rest args) nil))
(error nil))
- (condition-case nil
- (if (boundp 'current-menubar)
- nil ;; great
- (progn
- (defmacro set-buffer-menubar (&rest args) nil)
- (defmacro add-submenu (&rest args) nil))
- )
- (error nil))
+ (if (featurep 'xemacs)
+ (condition-case nil
+ (if (boundp 'current-menubar)
+ nil ;; great
+ (progn
+ (defmacro add-submenu (&rest args) nil))
+ )
+ (error nil)))
(condition-case nil
(if (fboundp 'zmacs-activate-region)
nil ;; great
(concat open (mapconcat 'regexp-quote strings "\\|") close)))
))
-(defun verilog-regexp-words (a)
- "Call 'regexp-opt' with word delimiters for the words A."
- (concat "\\<" (verilog-regexp-opt a t) "\\>"))
+(eval-when-compile
+ (defun verilog-regexp-words (a)
+ "Call 'regexp-opt' with word delimiters for the words A."
+ (concat "\\<" (verilog-regexp-opt a t) "\\>")))
(defun verilog-customize ()
"Link to customize screen for Verilog."