Mercurial > emacs
changeset 67811:e7ac0fc47db5
(c-emacs-features): Do parse-partial-sexp at point, in case of narrowing.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 26 Dec 2005 04:51:46 +0000 |
parents | 65be704fdaf2 |
children | b22c9dac64c1 |
files | lisp/progmodes/cc-defs.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/cc-defs.el Mon Dec 26 04:46:06 2005 +0000 +++ b/lisp/progmodes/cc-defs.el Mon Dec 26 04:51:46 2005 +0000 @@ -1464,7 +1464,8 @@ (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 - "