diff options
author | Bastien Guerry <bzg@altern.org> | 2013-02-16 22:29:34 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-02-16 22:29:34 +0100 |
commit | f8b15da24c1e4a052411ef53a483aadf5752d00e (patch) | |
tree | 42533585eadc2326b3782bde2b1cbaa737d1294b | |
parent | 45d52bfb4c676245658d277526dab4e132028a35 (diff) | |
download | org-mode-f8b15da24c1e4a052411ef53a483aadf5752d00e.tar.gz |
org.el (org-set-tags-command): Fix bug.
* org.el (org-set-tags-command): Fix bug when setting tags for
multiple headlines in an active region.
Do not set the end of the region back to the beginning of the
previous headline.
-rw-r--r-- | lisp/org.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 189b416..7939804 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13603,7 +13603,9 @@ If ONOFF is `on' or `off', don't toggle but set to this state." (if (or (org-at-heading-p) (and arg (org-before-first-heading-p))) (org-set-tags arg just-align) (save-excursion - (org-back-to-heading t) + (unless (and (org-region-active-p) + org-loop-over-headlines-in-active-region) + (org-back-to-heading t)) (org-set-tags arg just-align)))) (defun org-set-tags-to (data) |