Hi
I have problems with the following contructs of GNU emacs.
- in the actually wikipedia-mode, the font lock mechanism
makes reference to a variable called font-lock-doc-face,
which does not exist in xemacs. I have attached the
complete backtrace
The relevant code is
(defvar wikipedia-font-lock-keywords
(list
...
(list "^\\(;\\)\\([^:\n]*\\)\\(:?\\)"
'(1 font-lock-builtin-face)
'(2 font-lock-doc-face)
'(3 font-lock-builtin-face))
....
))
how could I deal with that, is there any alias I could use?
- the other problem has to do with longlines.el which thanks
to Robert Fenk works now also in xemacs. However it uses
define-minor-mode in order to define the minor-mode
(instead of defun). Also define-minor-mode sort of works
now in xemacs, what does not work is the entry to the
minor-mode-alist. So I came up with the following kludge:
(if (featurep 'xemacs)
(defvar mylonglines-mode nil
"Determines if mylonglines minor mode is active.")
(make-variable-buffer-local 'mylonglines-mode)
(defun mylonglines-mode (&optional arg)
"Small hack for putting \"ll\" into the modeline"
(interactive "P")
(setq mylonglines-mode (not (or (and (null arg) mylonglines-mode)
(<= (prefix-numeric-value arg) 0))))
; Add or remove the menu, and run the hook
(if mylonglines-mode
;;everthing when mode is turn on
(progn
(longlines-mode 'toggle)
(message "Longlines is turned on"))
;;everthing when mode is turned off
(progn
(longlines-mode 'toggle)
(message "Longlines is turned off"))))
(or (assoc 'mylonglines-mode minor-mode-alist)
(setq minor-mode-alist
(cons '(mylonglines-mode " ll") minor-mode-alist))))
Is this a good idea, or again are there better solutions?
Thanks
Uwe Brauer