org-brain icon indicating copy to clipboard operation
org-brain copied to clipboard

org-brain-set-tags adds tags at current point, not at headline

Open aragaer opened this issue 4 years ago • 6 comments

In case I have the buffer opened for editing in a different window, when I use T (org-brain-set-tags) on a headline entry, the tags are added right at the end of current line (which could be anywhere in the file), not at the current entry/headline.

aragaer avatar Jul 12 '20 10:07 aragaer

Hmm, that's strange. I do not get this behaviour. Are you using the latest version org-brain, and which version of org-mode are you using?

Kungsgeten avatar Jul 19 '20 08:07 Kungsgeten

Just got this on org-20200525, org-brain-20200625.2050, GNU Emacs 26.3.

aragaer avatar Jul 19 '20 17:07 aragaer

Seems like you're running the latest version then. org-brain-set-tags uses org-set-tags-command which should go back to the heading before modifying the tags. Could it be that org-set-tags-command has been remapped to something else (if you check the documentation on it using C-h f)?

Kungsgeten avatar Jul 20 '20 09:07 Kungsgeten

Checked it and org-set-tags-command works properly (that is - it adds to the headline regardless of where in the entry I'm editing) and is not remapped to anything.

aragaer avatar Jul 20 '20 12:07 aragaer

Unfortunately I haven't been able to reproduce this bug. I'm leaving the issue open in case someone else have the same error or know something about it.

Kungsgeten avatar Jul 27 '20 08:07 Kungsgeten

Looks like it's caused by some other packages I'm using since it doesn't happen with "just emacs with org and org-brain". It appears that removing evil-mode fixes the problem.

aragaer avatar Aug 31 '20 21:08 aragaer