org-src: Fix idle auto-save feature
commit01f736b763729e4d1e6a82faa31748f2bd2d1e0a
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 11 Sep 2014 16:19:21 +0000 (11 18:19 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 11 Sep 2014 16:21:41 +0000 (11 18:21 +0200)
tree4e009a97cc4aca589490a5e2852476aff9a03947
parentd4a7ba2a966a1a5539318a5512f273cf91a4af4c
org-src: Fix idle auto-save feature

* lisp/org-src.el (org-edit-src-code): Fix regexp.
(org-edit-src-exit): Do not remove auto-save timer.  This is
handled by the timer itself.

`org-edit-src-save' calls `org-edit-src-exit', which then clears the
auto-save timer, thus preventing any further auto-saves before the
next `org-edit-src-code' call.

Thanks to Adriaan Sticker for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90650
lisp/org-src.el