-----Original Message-----
From: Jeff.Suttor(a)Sun.COM [mailto:Jeff.Suttorīŧ Sun.COM]
Sent: Saturday, August 17, 2002 1:25 PM
To: jde(a)sunsite.dk
Subject: JDEE & XEmacs: fix: deactivate-mark void error
there have been many reports of people who use JDEE & XEmacs
experiencing errors resulting in an error message that deactivate-mark
is void.
it appears that many XEmacs distributions are being shipped with a
simple.el that has deactivate-mark commented out. a specific datapoint:
$ uname -a
Linux localhost.localdomain 2.4.18-5 #1 Mon Jun 10 15:31:48 EDT 2002
i686 unknown
$ xemacs -V
XEmacs 21.4 (patch 6) "Common Lisp" [Lucid] (i386-redhat-linux, Mule) of
Fri Feb 22 2002 on
daffy.perf.redhat.com
$ grep "(defsubst deactivate-mark" /usr/share/xemacs-21.4.6/lisp/simple.el
;(defsubst deactivate-mark ()
the simplest way for most users to work around this is to edit
~/.xemacs/init.el and add:
;; the following was missing/commented out of
;; /usr/share/xemacs-21.4.6/lisp/simple.el and is necessary to run
;; JDEE. it appears to have originate with FSFmacs and is used by
;; tempo template. it appears to be the minimum necessary to use JDEE.
(defvar mark-active nil)
(defsubst deactivate-mark ()
(if transient-mark-mode
(progn
(setq mark-active nil)
(run-hooks 'deactivate-mark-hook))))
those of you that really understand XEmacs and its use of lisp are free
to cringe and suggest a better hack-a-round.
I encourage all people that have experienced this problem to provide
feedback to the source of their distribution that it is being shipped in
a mis-configured way that is preventing them from using common
applications.
P.S. to all Java programmers, be sure to use CheckStyle:
http://checkstyle.sourceforge.net/
from JDEE, Ant, the command line, embedded, whatever. I don't care what
you do, as long as you're consistent. :)
--
Jeff Suttor <Jeff.Suttor(a)Sun.com>