This error was produced when invoking jde-compile-jde from GNU emacs 20.7 invoked with no site file and with the minimal jde .emacs (see below)
 
Compiling file c:/apps/emacs-20.7/site-lisp/jde-2.2.8/lisp/tree-widget.el at Wed Oct 10 15:13:25 2001
While compiling toplevel forms:
  ** reference to free variable widget-button-keymap
  ** the function extent-list is not known to be defined.
The problem appears to be the attempt to support both GNU Emacs and Xemacs using runtime conditionals.  It appears that compile-time conditionals are needed in order to compile the code in tree-widget.el, or some additional runtime conditionals are needed, such as
 
if (not (featurep 'xemacs))
  (progn
    (defvar widget-button-keymap nil)
    (defun extent-list () nil)))
 
You can also work around the problem in ways which break Xemacs support.
 
If any reply is sent, I'd appreciate being cc'ed directly, since I'm not currently subscribed to the list.  Thanks much.
 
Jeff
 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; minimal .emacs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Stuff for JDE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(let ((site-lisp "c:/apps/emacs-20.7/site-lisp"))
  (add-to-list 'load-path (expand-file-name (concat site-lisp "/jde-2.2.8/lisp")))
  (add-to-list 'load-path (expand-file-name (concat site-lisp "/semantic-1.4beta11")))
  (add-to-list 'load-path (expand-file-name (concat site-lisp "/speedbar-0.14beta1")))
  (add-to-list 'load-path (expand-file-name (concat site-lisp "/elib-1.0")))
  (add-to-list 'load-path (expand-file-name (concat site-lisp "/eieio-0.16"))))
 
;; Set the debug option to enable a backtrace when a
;; problem occurs.
(setq debug-on-error t)
 

;; If you want Emacs to defer loading the JDE until you open a
;; Java file, edit the following line
(setq defer-loading-jde nil)
;; to read:
;;
;;  (setq defer-loading-jde t)
;;
 
(if defer-loading-jde
    (progn
      (autoload 'jde-mode "jde" "JDE mode." t)
      (setq auto-mode-alist
     (append
      '(("\\.java\\'" . jde-mode))
      auto-mode-alist)))
  (require 'jde))
 

;; Sets the basic indentation for Java source files
;; to two spaces.  Handled below.
; (defun my-jde-mode-hook ()
;   (setq c-basic-offset 2))
 
; (add-hook 'jde-mode-hook 'my-jde-mode-hook)
 

(c-add-style "my-java" (list "java"
        '(c-basic-offset . 2)
        '(c-offsets-alist . ((substatement-open . 0)))
        ))
(c-add-style "my-c++" (list "stroustrup"
        '(c-basic-offset . 2)
        '(c-offsets-alist . ((substatement-open . 0)))
        ))
 
(add-hook 'c++-mode-hook (lambda () (c-set-style "my-c++")))
(add-hook 'java-mode-hook (lambda () (c-set-style "my-java")))
(add-hook 'jde-mode-hook (lambda () (c-set-style "my-java")))
 
(custom-set-variables
 '(c-basic-offset 2))
(custom-set-faces)
 
(setq c-default-style "user");
 
;;;;;;;;;;;;;;;;;;;;  end of JDE and style stuff ;;;;;;;;;;;;;;;;;;;;;;;;;

Reply via email to