Commit 3f264a3a authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

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

parent 47b82df9
......@@ -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))))
(setq list (cons 'pps-extended-state list))
(error (concat
"CC Mode is incompatible with this version of Emacs - "
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment