changeset 33080:8f3b77df5346

(imenu-generic-expression) (imenu-progress-message): Only defvar when compiling.
author Dave Love <fx@gnu.org>
date Mon, 30 Oct 2000 19:56:32 +0000
parents 678eca93205c
children 91435f3e0675
files lisp/progmodes/cc-menus.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cc-menus.el	Mon Oct 30 19:49:10 2000 +0000
+++ b/lisp/progmodes/cc-menus.el	Mon Oct 30 19:56:32 2000 +0000
@@ -39,8 +39,9 @@
     (load "cc-defs" nil t)))
 
 ;; Dummy definitions to shut up the compiler in case imenu doesn't exist.
-(defvar imenu-generic-expression)
-(defvar imenu-case-fold-search)
+(eval-when-compile
+  (defvar imenu-generic-expression)
+  (defvar imenu-case-fold-search))
 (or (fboundp 'imenu-progress-message)
     (defun imenu-progress-message (&rest args) nil))