diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-06-17 00:39:52 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-06-17 00:39:52 +0200 |
commit | 75238d25ed67a44dbcf79a0961efd5fe7e9c25b0 (patch) | |
tree | 2c658ddfaca444b84071c017dae8283c49dd6841 | |
parent | 504ffefcd5815d5ac770bb8da62c764bab37811a (diff) | |
download | org-mode-75238d25ed67a44dbcf79a0961efd5fe7e9c25b0.tar.gz |
Fix refiling to an empty headline
* lisp/org.el (org-refile): Do not assume the headline is not empty.
Reported-by: Fabrice Popineau <fabrice.popineau@supelec.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/107772>
-rw-r--r-- | lisp/org.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index b2d3809..2508cee 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11921,7 +11921,8 @@ prefix argument (`C-u C-u C-u C-c C-w')." (replace-regexp-in-string org-bracket-link-regexp "\\3" - (nth 4 (org-heading-components))))) + (or (nth 4 (org-heading-components)) + "")))) (org-refile-get-location (cond ((and arg (listp arg)) "Goto") (regionp (concat actionmsg " region to")) |