* org-get-tags-at
@ 2016-06-09 5:03 Fabrice Popineau
2016-06-09 6:41 ` org-get-tags-at Rasmus
2016-06-09 7:50 ` org-get-tags-at Marco Wahl
0 siblings, 2 replies; 6+ messages in thread
From: Fabrice Popineau @ 2016-06-09 5:03 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 344 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 636 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org-get-tags-at
2016-06-09 5:03 org-get-tags-at Fabrice Popineau
@ 2016-06-09 6:41 ` Rasmus
2016-06-09 6:48 ` org-get-tags-at Fabrice Popineau
2016-06-09 7:50 ` org-get-tags-at Marco Wahl
1 sibling, 1 reply; 6+ messages in thread
From: Rasmus @ 2016-06-09 6:41 UTC (permalink / raw)
To: emacs-orgmode
Fabrice Popineau <fabrice.popineau@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?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org-get-tags-at
2016-06-09 6:41 ` org-get-tags-at Rasmus
@ 2016-06-09 6:48 ` Fabrice Popineau
0 siblings, 0 replies; 6+ messages in thread
From: Fabrice Popineau @ 2016-06-09 6:48 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 319 bytes --]
2016-06-09 8:41 GMT+02:00 Rasmus <rasmus@gmx.us>:
> Fabrice Popineau <fabrice.popineau@gmail.com> 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
[-- Attachment #2: Type: text/html, Size: 775 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org-get-tags-at
2016-06-09 5:03 org-get-tags-at Fabrice Popineau
2016-06-09 6:41 ` org-get-tags-at Rasmus
@ 2016-06-09 7:50 ` Marco Wahl
2016-06-09 11:42 ` org-get-tags-at Nicolas Goaziou
1 sibling, 1 reply; 6+ messages in thread
From: Marco Wahl @ 2016-06-09 7:50 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org-get-tags-at
2016-06-09 7:50 ` org-get-tags-at Marco Wahl
@ 2016-06-09 11:42 ` Nicolas Goaziou
2016-06-10 20:24 ` org-get-tags-at Fabrice Popineau
0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2016-06-09 11:42 UTC (permalink / raw)
To: Marco Wahl; +Cc: emacs-orgmode
Hello,
Marco Wahl <marcowahlsoft@gmail.com> writes:
> That was a bug and has been fixed now AFAICT.
Thank you for the fix.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org-get-tags-at
2016-06-09 11:42 ` org-get-tags-at Nicolas Goaziou
@ 2016-06-10 20:24 ` Fabrice Popineau
0 siblings, 0 replies; 6+ messages in thread
From: Fabrice Popineau @ 2016-06-10 20:24 UTC (permalink / raw)
To: Marco Wahl, emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 223 bytes --]
2016-06-09 13:42 GMT+02:00 Nicolas Goaziou <mail@nicolasgoaziou.fr>:
> Hello,
>
> Marco Wahl <marcowahlsoft@gmail.com> writes:
>
> > That was a bug and has been fixed now AFAICT.
>
> Thank you for the fix.
>
>
+1
Fabrice
[-- Attachment #2: Type: text/html, Size: 686 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-06-10 20:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-09 5:03 org-get-tags-at Fabrice Popineau
2016-06-09 6:41 ` org-get-tags-at Rasmus
2016-06-09 6:48 ` org-get-tags-at Fabrice Popineau
2016-06-09 7:50 ` org-get-tags-at Marco Wahl
2016-06-09 11:42 ` org-get-tags-at Nicolas Goaziou
2016-06-10 20:24 ` org-get-tags-at Fabrice Popineau
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).