Fabrice Popineau <fabrice.popin...@gmail.com> writes: > Hi, > > I'm trying to program some stuff of my own and > either I misunderstand the documentation or something is wrong > with #'org-get-tags-at. > > I have a heading: > > * Bar :foo:bar:baz: > > (org-get-tags-at) > while on the heading returns ("baz") > I would expect ("foo" "bar" "baz") > > What is the reason for tat result?
Don't know. The function seems a bit complicated for what it does... Here’s some ways to get local tags. * headline :tag1:tag3:tag2: #+BEGIN_SRC emacs-lisp (save-excursion (org-back-to-heading) (org-element-property :tags (org-element-at-point))) #+END_SRC #+BEGIN_SRC emacs-lisp (save-excursion (org-back-to-heading) (looking-at org-complex-heading-regexp) (split-string (or (match-string 5) "") ":" t)) #+END_SRC -- Hvor meget poesi tror De kommer ud af et glas isvand?