       (graphviz-dot-real-indent-line)
     (save-excursion
       (graphviz-dot-real-indent-line))))
+
+(defun graphviz-dot-get-indendation()
+  "Return current line's indentation"
+  (interactive)
+  (message "Current indentation is %d." 
+	   (current-indentation))
+  (current-indentation))
         
 (defun graphviz-dot-real-indent-line ()
   "Indent current line of dot code."

                                   (not (looking-at ".*\\[.*"))) ; TODO:PP : "
                          (forward-line -1))
                        (current-indentation))
                       (t
                        ;; default case, indent the
                        ;; same as previous line
                        (current-indentation)) ))) )))

(defun graphviz-dot-indent-graph ()

;;; graphviz-dot-mode.el --- Mode for the dot-language used by graphviz (att).

;; Copyright (C) 2002 - 2011 Pieter Pareit <pieter.pareit@gmail.com>

;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
