MuMaMo with propertized text does not work sometime
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nXhtml |
New
|
Undecided
|
Unassigned |
Bug Description
I found MuMaMo does not work when using with property based font-lock.
You can check with the following code. It will open a buffer with font-lock based mode in two chunks and emacs-lisp-mode in one chunk at the middle. When it is opened, font lock is good. However, after moving into the emacs-lisp-mode chunk and enter some characters, property based font-lock is off. I chucked it with the latest development version and Emacs 24.1.50.1 and 23.3.1.
;; Usage: emacs -Q -l PATH/TO/
(require 'mumamo)
(define-
(font-lock-mode))
(defvar test-propertize
(defvar test-propertize
(defun test-propertize
(mumamo-
pos max
(lambda (pos max)
(if (and test-propertize
(< pos test-propertize
(> max test-propertize
(list test-propertize
(lambda (pos max)
test-
(define-
"MuMaMo with propertized text"
("MuMaMo with propertized text" test-propertize
(test-
(with-current-
(let ((inhibit-read-only t))
(erase-buffer)
(setq test-propertize
(setq test-propertize
(test-
(insert (propertize "Text with property"
"\n\n")
(setq test-propertize
(insert "
\n(defun func-name ()
\"Document\"
(do-something))
")
(setq test-propertize
(insert (propertize "Text with property"
"\n\n")
(pop-to-buffer (current-buffer))))
Same here, with ein (el-get-installed). As soon as I move point outside of cells, the Python code highlighting is removed and never comes back (save me issuing M-x font-lock- fontify- buffer) .
If I click into other cells (even markdown/text mode cells), this does not happen. Only the cursor must not enter the (yellow-bg) regions between cells.