diff options
| author | Stefan Monnier | 2015-09-09 15:14:52 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2015-09-09 15:14:52 -0400 |
| commit | ab21f61a552f038485d40218dfd94a16b843eb52 (patch) | |
| tree | 876a849cbfffc86a355480c17f93589fab012f82 /etc | |
| parent | 74baea086d1ea606bae99bfc8c9195c21d5530fc (diff) | |
| download | emacs-ab21f61a552f038485d40218dfd94a16b843eb52.tar.gz emacs-ab21f61a552f038485d40218dfd94a16b843eb52.zip | |
Make syntax.c call syntax-propertize on demand
* lisp/emacs-lisp/syntax.el (syntax--jit-propertize): New function.
(parse-sexp-propertize-function): Use it.
(syntax-propertize): Disable parse-sexp-propertize-function.
* src/syntax.c (parse_sexp_propertize, update_syntax_table_forward):
New functions.
(syms_of_syntax): New vars `parse-sexp-propertize-done' and
`parse-sexp-propertize-function'.
* src/syntax.h (struct gl_state_s): Add `e_property_truncated' field.
(UPDATE_SYNTAX_TABLE_FORWARD): Use update_syntax_table_forward.
(SETUP_BUFFER_SYNTAX_TABLE): Set e_property_truncated.
* lisp/progmodes/elisp-mode.el (elisp-byte-code-syntax-propertize):
Don't assume `point' is set.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -977,6 +977,9 @@ be updated accordingly. | |||
| 977 | 977 | ||
| 978 | * Lisp Changes in Emacs 25.1 | 978 | * Lisp Changes in Emacs 25.1 |
| 979 | 979 | ||
| 980 | ** syntax-propertize is now automatically called on-demand during forward | ||
| 981 | parsing functions like `forward-sexp'. | ||
| 982 | |||
| 980 | ** New hooks prefix-command-echo-keystrokes-functions and | 983 | ** New hooks prefix-command-echo-keystrokes-functions and |
| 981 | prefix-command-preserve-state-hook, to allow the definition of prefix | 984 | prefix-command-preserve-state-hook, to allow the definition of prefix |
| 982 | commands other than the predefined C-u. | 985 | commands other than the predefined C-u. |