On 21/07/06, Kevin Rodgers <ihs_4664@yahoo.com> wrote:
(defun c++-complete-or-indent ()
(interactive)
"Try to complete the current symbol at point, otherwise indent."
;; Kludge this because semantic-ia-complete-symbol really doesn't
;; return anything useful:
(when (equal (semantic-ia-complete-symbol (point))
"No smart completions found.")
(c-indent-command current-prefix-arg)))
(add-hook 'c++-mode-hook
(lambda ()
(local-set-key "\t" c++-complete-or-indent)))
Hi all,
There's a problem with this code which I'm not being able to solve.
When you are on an empty line, there's no autocompletion but the
cursor is not indented to the correct position either. Any way to
solve this?