Re: [O] org-get-tags-at

2016-06-10 Thread Fabrice Popineau
2016-06-09 13:42 GMT+02:00 Nicolas Goaziou :

> Hello,
>
> Marco Wahl  writes:
>
> > That was a bug and has been fixed now AFAICT.
>
> Thank you for the fix.
>
>
+1

Fabrice


Re: [O] org-get-tags-at

2016-06-09 Thread Nicolas Goaziou
Hello,

Marco Wahl  writes:

> That was a bug and has been fixed now AFAICT.

Thank you for the fix.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-get-tags-at

2016-06-09 Thread Marco Wahl
Hi Fabrice,

> 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?

That was a bug and has been fixed now AFAICT.


Thanks for caring, best regards,
-- 
Marco Wahl -- Freelancer
GPG: 0x49010A040A3AE6F2




Re: [O] org-get-tags-at

2016-06-09 Thread Fabrice Popineau
2016-06-09 8:41 GMT+02:00 Rasmus :

> Fabrice Popineau  writes:
>
> > What is the reason for that result?
>
> Don't know.  The function seems a bit complicated for what it does...
>
> Here’s some ways to get local tags.
>
> Oh great !

Thanks a lot.

Fabrice


Re: [O] org-get-tags-at

2016-06-09 Thread Rasmus
Fabrice Popineau  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?




[O] org-get-tags-at

2016-06-08 Thread Fabrice Popineau
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?

Regards,

Fabrice