aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2002-04-12 03:05:04 +0000
committerStefan Monnier2002-04-12 03:05:04 +0000
commit2f85befdd53c467df20fc9894bb9ac612e69709e (patch)
tree46bbbf0c4a79eb5d01de5d6846668071731ef964
parenta1906d512b4ba2b323e93dbe9fea218b587d9a92 (diff)
downloademacs-2f85befdd53c467df20fc9894bb9ac612e69709e.tar.gz
emacs-2f85befdd53c467df20fc9894bb9ac612e69709e.zip
(c-backward-to-start-of-if): Don't assume point-min == 1.
-rw-r--r--lisp/progmodes/cc-engine.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 0a9053f04d0..4f21f083fe5 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -963,7 +963,7 @@ brace."
963 (c-beginning-of-statement-1) 963 (c-beginning-of-statement-1)
964 (setq c-parsing-error 964 (setq c-parsing-error
965 (format "No matching `if' found for `else' on line %d" 965 (format "No matching `if' found for `else' on line %d"
966 (1+ (count-lines 1 here)))) 966 (1+ (count-lines (point-min) here))))
967 (throw 'orphan-if nil)))) 967 (throw 'orphan-if nil))))
968 (cond 968 (cond
969 ((looking-at "else\\b[^_]") 969 ((looking-at "else\\b[^_]")