From: Richard M. Stallman Date: Mon, 26 Dec 2005 04:51:46 +0000 (+0000) Subject: (c-emacs-features): Do parse-partial-sexp at point, in case of narrowing. X-Git-Tag: emacs-pretest-22.0.90~5072 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3f264a3af4b71277b02f67d1755bd71f02954b2e;p=emacs.git (c-emacs-features): Do parse-partial-sexp at point, in case of narrowing. --- diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el index 1bb76c170dc..b237dd9a598 100644 --- a/lisp/progmodes/cc-defs.el +++ b/lisp/progmodes/cc-defs.el @@ -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 - "