(c-emacs-features): Do parse-partial-sexp at point, in case of narrowing.

This commit is contained in:
Richard M. Stallman 2005-12-26 04:51:46 +00:00
parent 47b82df943
commit 3f264a3af4

View file

@ -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 - "