org-src.el (org-src-native-tab-command-maybe): Check that we are in a source code...
commit9c8f4a53d7463c6e65961faba03877085efd65fe
authorBastien Guerry <bzg@altern.org>
Wed, 3 Apr 2013 15:40:10 +0000 (3 17:40 +0200)
committerBastien Guerry <bzg@altern.org>
Wed, 3 Apr 2013 16:28:29 +0000 (3 18:28 +0200)
tree5ba1a8422b99cc1c3fca1295d9452f9439b2b88b
parentafe762fa9f6789bf995718edc6afd0d720de1141
org-src.el (org-src-native-tab-command-maybe): Check that we are in a source code block

* org-src.el (org-src-native-tab-command-maybe): Check that we
are in a source code block.

Consider this content:

#+HEADERS: :var data1=1
#+BEGIN_SRC emacs-lisp :var data2=2
  (message "data1:%S, data2:%S" data1 data2)
#+END_SRC

Before the fix, hitting TAB on #+HEADERS would throw an error.
lisp/org-src.el