diff options
author | Carsten Dominik <dominik@science.uva.nl> | 2007-03-03 11:17:49 +0000 |
---|---|---|
committer | Carsten Dominik <dominik@science.uva.nl> | 2007-03-03 11:17:49 +0000 |
commit | 362bcf23fe813c32b30676282262c79ae0648ecd (patch) | |
tree | cbc980656b2da97c8a6468539b7ccb19a38cfd72 | |
parent | 309c91ff8c9b6431015f6ec82f6d36e87d30e98e (diff) | |
download | emacs-362bcf23fe813c32b30676282262c79ae0648ecd.tar.gz |
Improved previous change.
-rw-r--r-- | lisp/textmodes/org.el | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el index 5cab0fd8f01..bba5832b0e6 100644 --- a/lisp/textmodes/org.el +++ b/lisp/textmodes/org.el @@ -11614,20 +11614,20 @@ With prefix ARG, realign all tags in headings in the current buffer." (if just-align (setq tags current) ;; Get a new set of tags from the user - (setq table (or org-tag-alist (org-get-buffer-tags)) - org-last-tags-completion-table table - current-tags (org-split-string current ":") - inherited-tags (nreverse - (nthcdr (length current-tags) - (nreverse (org-get-tags-at)))) - tags - (if (or (eq t org-use-fast-tag-selection) - (and org-use-fast-tag-selection - (delq nil (mapcar 'cdr table)))) - (org-fast-tag-selection current-tags inherited-tags table) - (let ((org-add-colon-after-tag-completion t)) - (org-trim - (save-excursion + (save-excursion + (setq table (or org-tag-alist (org-get-buffer-tags)) + org-last-tags-completion-table table + current-tags (org-split-string current ":") + inherited-tags (nreverse + (nthcdr (length current-tags) + (nreverse (org-get-tags-at)))) + tags + (if (or (eq t org-use-fast-tag-selection) + (and org-use-fast-tag-selection + (delq nil (mapcar 'cdr table)))) + (org-fast-tag-selection current-tags inherited-tags table) + (let ((org-add-colon-after-tag-completion t)) + (org-trim (completing-read "Tags: " 'org-tags-completion-function nil nil current 'org-tags-history)))))) (while (string-match "[-+&]+" tags) |