Commit ea703822 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

(c-set-offset): Don't find a default syntactic element through

syntactic analysis if called outside a CC Mode buffer.
parent 278dfc68
2003-02-10 Martin Stjernholm <mast@lysator.liu.se>
* progmodes/cc-styles.el (c-set-offset): Don't find a default
syntactic element through syntactic analysis if called outside
a CC Mode buffer.
2003-02-09 Martin Stjernholm <mast@lysator.liu.se>
 
* progmodes/cc-mode.el (c-basic-common-init): Install
......
......@@ -445,10 +445,11 @@ and exists only for compatibility reasons."
;; initial contents tries to be the last element
;; on the syntactic analysis list for the current
;; line
(let* ((syntax (c-guess-basic-syntax))
(len (length syntax))
(ic (format "%s" (car (nth (1- len) syntax)))))
(cons ic 0))
(and c-buffer-is-cc-mode
(let* ((syntax (c-guess-basic-syntax))
(len (length syntax))
(ic (format "%s" (car (nth (1- len) syntax)))))
(cons ic 0)))
)))
(offset (c-read-offset langelem)))
(list langelem offset current-prefix-arg)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment