diff options
| author | Stefan Monnier | 2012-08-06 13:41:32 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-08-06 13:41:32 -0400 |
| commit | 638eaeb924506f36781213e71e02632660f71844 (patch) | |
| tree | 32fe373104d1f540f9ff9ce3571b695d9868c63f | |
| parent | a08eadfecc8651d6da2cdcb326d333545cb5f7c1 (diff) | |
| download | emacs-638eaeb924506f36781213e71e02632660f71844.tar.gz emacs-638eaeb924506f36781213e71e02632660f71844.zip | |
* lisp/progmodes/cperl-mode.el (cperl-mode): Yet another fix for
syntax-propertize-function.
Fixes: debbugs:10095
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 8 |
2 files changed, 14 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 635ecc054dd..a4a5ab7eb39 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-08-06 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/cperl-mode.el (cperl-mode): Yet another fix for | ||
| 4 | syntax-propertize-function (bug#10095). | ||
| 5 | |||
| 1 | 2012-07-28 Chong Yidong <cyd@gnu.org> | 6 | 2012-07-28 Chong Yidong <cyd@gnu.org> |
| 2 | 7 | ||
| 3 | * progmodes/gdb-mi.el (gdb-place-breakpoints): Fix the call to | 8 | * progmodes/gdb-mi.el (gdb-place-breakpoints): Fix the call to |
| @@ -15,8 +20,8 @@ | |||
| 15 | 20 | ||
| 16 | 2012-07-21 Leo Liu <sdl.web@gmail.com> | 21 | 2012-07-21 Leo Liu <sdl.web@gmail.com> |
| 17 | 22 | ||
| 18 | * progmodes/cc-cmds.el (c-defun-name): Use | 23 | * progmodes/cc-cmds.el (c-defun-name): |
| 19 | match-string-no-properties instead for consistency. | 24 | Use match-string-no-properties instead for consistency. |
| 20 | 25 | ||
| 21 | 2012-07-20 Leo Liu <sdl.web@gmail.com> | 26 | 2012-07-20 Leo Liu <sdl.web@gmail.com> |
| 22 | 27 | ||
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 58cbf26496d..9c329a8902e 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -1838,7 +1838,13 @@ or as help on variables `cperl-tips', `cperl-problems', | |||
| 1838 | (set (make-local-variable 'cperl-syntax-done-to) nil) | 1838 | (set (make-local-variable 'cperl-syntax-done-to) nil) |
| 1839 | (set (make-local-variable 'syntax-propertize-function) | 1839 | (set (make-local-variable 'syntax-propertize-function) |
| 1840 | (lambda (start end) | 1840 | (lambda (start end) |
| 1841 | (goto-char start) (cperl-fontify-syntaxically end)))) | 1841 | (goto-char start) |
| 1842 | ;; Even if cperl-fontify-syntaxically has already gone | ||
| 1843 | ;; beyond `start', syntax-propertize has just removed | ||
| 1844 | ;; syntax-table properties between start and end, so we have | ||
| 1845 | ;; to re-apply them. | ||
| 1846 | (setq cperl-syntax-done-to start) | ||
| 1847 | (cperl-fontify-syntaxically end)))) | ||
| 1842 | (make-local-variable 'parse-sexp-lookup-properties) | 1848 | (make-local-variable 'parse-sexp-lookup-properties) |
| 1843 | ;; Do not introduce variable if not needed, we check it! | 1849 | ;; Do not introduce variable if not needed, we check it! |
| 1844 | (set 'parse-sexp-lookup-properties t) | 1850 | (set 'parse-sexp-lookup-properties t) |