(c-emacs-features): Do parse-partial-sexp at point, in case of narrowing.
This commit is contained in:
parent
47b82df943
commit
3f264a3af4
1 changed files with 2 additions and 1 deletions
|
@ -1464,7 +1464,8 @@ non-nil, a caret is prepended to invert the set."
|
|||
(kill-buffer buf))
|
||||
|
||||
;; See if `parse-partial-sexp' returns the eighth element.
|
||||
(if (c-safe (>= (length (save-excursion (parse-partial-sexp 1 1))) 10))
|
||||
(if (c-safe (>= (length (save-excursion (parse-partial-sexp (point) (point))))
|
||||
10))
|
||||
(setq list (cons 'pps-extended-state list))
|
||||
(error (concat
|
||||
"CC Mode is incompatible with this version of Emacs - "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue