commit f116f4ae8a9983022920495cc83ad84a6f77e2d1
parent 28cf6193a777e9d4302dc97409118dbf4db7ebb0
Author: Oleh Krehel <ohwoeowho@gmail.com>
Date: Tue, 22 Sep 2015 11:58:01 +0200
Discard "TODO" etc when forming a directory from heading name
Fixes #23
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/org-download.el b/org-download.el
@@ -146,8 +146,7 @@ will be used."
(progn
(unless (= cur-lvl 1)
(org-up-heading-all (- (1- (org-current-level)) lvl)))
- (substring-no-properties
- (org-get-heading)))
+ (nth 4 (org-heading-components)))
""))))
(defun org-download--dir-1 ()