Hi Ryan,

thanks for this patch.

I ended up to instead provide a special command to align
all tags, because org-set-tags should throw an error when
called not on a headline, for other reasons.

I am assuming that you want to call this from some lisp function - so

  (org-align-all-tags)

should now do the job for you.

HTH. and thanks again.

- Carsten

On Apr 8, 2010, at 8:11 PM, Ryan Thompson wrote:

Hi,

When I run (org-set-tags t t) to realign all tags in the buffer, it
doesn't work unless the point is currently on a headline, because
org-set-tags calls (org-get-tags-string) early on, and
org-get-tags-string raises an error if not on a headline. This can be
fixed by moving the binding of `current' to `(org-get-tags-string)'
into the else clause of the first if statment. I have attached a patch

-Ryan
--
<fix-org-set-tags-with- prefix.diff>_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten





_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to