diff options
| author | Alan Mackenzie | 2012-01-31 21:59:58 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2012-01-31 21:59:58 +0000 |
| commit | abbceb009c33d3fcb19a967555464efb3b3f73aa (patch) | |
| tree | c87ecd817cd8832b110173fcac6dcffa535711a8 | |
| parent | 6df6ae42fedb347936ce4c68e11f5d3e8b1d0040 (diff) | |
| download | emacs-abbceb009c33d3fcb19a967555464efb3b3f73aa.tar.gz emacs-abbceb009c33d3fcb19a967555464efb3b3f73aa.zip | |
Fix an off by one error in c-guess-basic-syntax CASE 5B.1.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0146dd8652f..71f96cccfeb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-01-31 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | * progmodes/cc-engine.el (c-guess-basic-syntax): CASE 5B.1: Fix an | ||
| 4 | off by one error. | ||
| 5 | |||
| 1 | 2012-01-31 Chong Yidong <cyd@gnu.org> | 6 | 2012-01-31 Chong Yidong <cyd@gnu.org> |
| 2 | 7 | ||
| 3 | * frame.el (set-frame-font): New arg ALL-FRAMES. | 8 | * frame.el (set-frame-font): New arg ALL-FRAMES. |
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 25344fe96a7..52f18a89849 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -9447,7 +9447,7 @@ comment at the start of cc-engine.el for more info." | |||
| 9447 | 9447 | ||
| 9448 | ;; CASE 5B.1: Member init list. | 9448 | ;; CASE 5B.1: Member init list. |
| 9449 | ((eq (char-after tmp-pos) ?:) | 9449 | ((eq (char-after tmp-pos) ?:) |
| 9450 | (if (or (> tmp-pos indent-point) | 9450 | (if (or (>= tmp-pos indent-point) |
| 9451 | (= (c-point 'bosws) (1+ tmp-pos))) | 9451 | (= (c-point 'bosws) (1+ tmp-pos))) |
| 9452 | (progn | 9452 | (progn |
| 9453 | ;; There is no preceding member init clause. | 9453 | ;; There is no preceding member init clause. |