summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2014-04-29 13:05:04 +0200
committerBastien Guerry <bzg@altern.org>2014-04-29 13:05:04 +0200
commit3104f7de7baaf55175cabe077e6abdad72b2a586 (patch)
tree6e294b62610a73ac6ae38408c111970811d6d087
parentae8fd7a1391b3ffa54a981735cb091a266769c13 (diff)
downloadorg-mode-3104f7de7baaf55175cabe077e6abdad72b2a586.tar.gz
org-capture.el (org-capture-fill-template): Fix bug
* org-capture.el (org-capture-fill-template): Deactivate region while trying to align tags on the current headline. Thanks to Alex Kosorukoff for reporting this.
-rw-r--r--lisp/org-capture.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 0433306..11dae4e 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1674,7 +1674,9 @@ The template may still contain \"%?\" for cursor positioning."
(or (equal (char-before) ?:) (insert ":"))
(insert ins)
(or (equal (char-after) ?:) (insert ":"))
- (and (org-at-heading-p) (org-set-tags nil 'align)))))
+ (and (org-at-heading-p)
+ (let ((org-ignore-region t))
+ (org-set-tags nil 'align))))))
((equal char "C")
(cond ((= (length clipboards) 1) (insert (car clipboards)))
((> (length clipboards) 1)