Commit 638eaeb9 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/progmodes/cperl-mode.el (cperl-mode): Yet another fix for

syntax-propertize-function.

Fixes: debbugs:10095
parent a08eadfe
2012-08-06 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/cperl-mode.el (cperl-mode): Yet another fix for
syntax-propertize-function (bug#10095).
2012-07-28 Chong Yidong <cyd@gnu.org>
* progmodes/gdb-mi.el (gdb-place-breakpoints): Fix the call to
......@@ -15,8 +20,8 @@
2012-07-21 Leo Liu <sdl.web@gmail.com>
* progmodes/cc-cmds.el (c-defun-name): Use
match-string-no-properties instead for consistency.
* progmodes/cc-cmds.el (c-defun-name):
Use match-string-no-properties instead for consistency.
2012-07-20 Leo Liu <sdl.web@gmail.com>
......
......@@ -1838,7 +1838,13 @@ or as help on variables `cperl-tips', `cperl-problems',
(set (make-local-variable 'cperl-syntax-done-to) nil)
(set (make-local-variable 'syntax-propertize-function)
(lambda (start end)
(goto-char start) (cperl-fontify-syntaxically end))))
(goto-char start)
;; Even if cperl-fontify-syntaxically has already gone
;; beyond `start', syntax-propertize has just removed
;; syntax-table properties between start and end, so we have
;; to re-apply them.
(setq cperl-syntax-done-to start)
(cperl-fontify-syntaxically end))))
(make-local-variable 'parse-sexp-lookup-properties)
;; Do not introduce variable if not needed, we check it!
(set 'parse-sexp-lookup-properties t)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment