Fix storing link in edit buffer
commit9e1591cbd0c6f5663c004692c520b82d9eb353c6
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 30 May 2015 23:54:49 +0000 (31 01:54 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 30 May 2015 23:54:49 +0000 (31 01:54 +0200)
tree23d22e1188ef749c098705f1ee8ca426812c4337
parentf6c75f2e410ae66c1affecd11408196769a35f62
Fix storing link in edit buffer

* lisp/org.el (org-store-link): When creating a link from an edit
  buffer, re-use label on current line, if any.  Give up if call is
  non-interactive, as it would otherwise ask for user's input.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97902>
lisp/org.el