diff options
| author | Richard M. Stallman | 2005-12-26 04:51:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-12-26 04:51:46 +0000 |
| commit | 3f264a3af4b71277b02f67d1755bd71f02954b2e (patch) | |
| tree | 06d784e290c7d161839878314d8ee93eb5e407e6 | |
| parent | 47b82df9438def318533fe6306b3337ee62cdd52 (diff) | |
| download | emacs-3f264a3af4b71277b02f67d1755bd71f02954b2e.tar.gz emacs-3f264a3af4b71277b02f67d1755bd71f02954b2e.zip | |
(c-emacs-features): Do parse-partial-sexp at point, in case of narrowing.
| -rw-r--r-- | lisp/progmodes/cc-defs.el | 3 |
1 files changed, 2 insertions, 1 deletions
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." | |||
| 1464 | (kill-buffer buf)) | 1464 | (kill-buffer buf)) |
| 1465 | 1465 | ||
| 1466 | ;; See if `parse-partial-sexp' returns the eighth element. | 1466 | ;; See if `parse-partial-sexp' returns the eighth element. |
| 1467 | (if (c-safe (>= (length (save-excursion (parse-partial-sexp 1 1))) 10)) | 1467 | (if (c-safe (>= (length (save-excursion (parse-partial-sexp (point) (point)))) |
| 1468 | 10)) | ||
| 1468 | (setq list (cons 'pps-extended-state list)) | 1469 | (setq list (cons 'pps-extended-state list)) |
| 1469 | (error (concat | 1470 | (error (concat |
| 1470 | "CC Mode is incompatible with this version of Emacs - " | 1471 | "CC Mode is incompatible with this version of Emacs - " |