Prevent export to file from overwriting current file
commita8e48bd3a8139d6a15881061c28ca63751a213d0
authorNicolas Goaziou <n.goaziou@gmail.com>
Fri, 15 Feb 2013 14:06:01 +0000 (15 15:06 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Fri, 15 Feb 2013 14:06:01 +0000 (15 15:06 +0100)
tree05f038e3bcf5eb9afd03e149b0b8cc0847237464
parent5bceb621424c9d8fda93b9c5cbef2c8bccaa59de
Prevent export to file from overwriting current file

* lisp/ox.el (org-export-output-file-name): Add a protection when
  output file name is the same as the original org.
* testing/lisp/test-ox.el: Add tests.
lisp/ox.el
testing/lisp/test-ox.el