]> git.eshelyaron.com Git - emacs.git/commitdiff
(org-set-tags): Keep single space after stars.
authorCarsten Dominik <dominik@science.uva.nl>
Mon, 3 Jul 2006 10:57:35 +0000 (10:57 +0000)
committerCarsten Dominik <dominik@science.uva.nl>
Mon, 3 Jul 2006 10:57:35 +0000 (10:57 +0000)
lisp/textmodes/org.el

index 6a3fd27380a45e137800d0f6f054c9bf36cffdd8..79d526cbe7685c2c8b04bb392f89fac9c437a0a1 100644 (file)
@@ -8713,6 +8713,8 @@ With prefix ARG, realign all tags in headings in the current buffer."
       (if (equal tags "")
          (save-excursion
            (beginning-of-line 1)
+           (skip-chars-forward "*")
+           (if (= (char-after) ?\ ) (forward-char 1))
            (and (re-search-forward "[ \t]+$" (point-at-eol) t)
                 (replace-match "")))
        (move-to-column (max (current-column)