Hi
I admit this is just a toy, but GNU emacs autosmiley provides a minor
mode, which converts :) in smiley as you type!
http://www.emacswiki.org/emacs-de/download/autosmiley.el
I tried to port it to Xemacs and countered some problems.
It depends on their
;;; jit-lock.el --- just-in-time fontification -*- lexical-binding: t
;;; -*-
Now jit-lock.el contains three functions, or macros not to be found in Xemacs
defvar-local and setq-local.
I just copied there definition
(defmacro defvar-local (var val &optional docstring)
"Define VAR as a buffer-local variable with default value VAL.
Like `defvar' but additionally marks the variable as being automatically
buffer-local wherever it is set."
(declare (debug defvar) (doc-string 3))
;; Can't use backquote here, it's too early in the bootstrap.
(list 'progn (list 'defvar var val docstring)
(list 'make-variable-buffer-local (list 'quote var))))
(defmacro setq-local (var val)
"Set variable VAR to value VAL in current buffer."
;; Can't use backquote here, it's too early in the bootstrap.
(list 'set (list 'make-local-variable (list 'quote var)) val))
And moreover
(current-idle-time)
which is a function implemented in C.
So I just set:
;; (timer-set-idle-time jit-lock-stealth-repeat-timer (current-idle-time))
to
(timer-set-idle-time jit-lock-stealth-repeat-timer nil)
However the autosmiley still does not work, I obtain
(change/warning) Error in `after-change-functions': (void-variable
(memory-full))
Memory full again is a built-in C function, which I could just set to
nil.
But I feel that is turns now to be delicate.
Anybody has interest or and idea or both?
Uwe Brauer
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta