]> git.eshelyaron.com Git - emacs.git/commit
Apply `comment-depth' text properties when calling `back_comment'.
authorAlan Mackenzie <acm@muc.de>
Sat, 5 Mar 2016 18:08:26 +0000 (18:08 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 8 Mar 2016 13:17:14 +0000 (13:17 +0000)
commit223d16fbf4a48f43ebac075e58ae2e5bd8898d7d
treedb11052baa0a266ca74652b934be5ab41051da5d
parent298a0e24abba950bf62edd5c4975f387134a9f9a
Apply `comment-depth' text properties when calling `back_comment'.

Change the definition of `comment-depth''s values from an atom to a cons so as
to hold enough information to initiliaze `scan_sexps_forward''s state.

* src/syntax.c (old_back_comment): renamed from `back_comment'.
(back_comment): New function which, when `comment-cacheing-flag' is non-nil
applies `comment-depth' text properties then (for now) calls
`old-back-comment'.
(scan_sexp_forward): Enhance values applied as `comment-depth''s values.
src/syntax.c