emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to check whether an element (really) has some tag?
@ 2015-01-28 22:08 Marcin Borkowski
  2015-01-29 12:00 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Borkowski @ 2015-01-28 22:08 UTC (permalink / raw)
  To: Org-Mode mailing list

Hi there again,

I can do
(member-ignore-case "sometag" (org-element-property :tags element)),
but I'd like to know whether some element has the tag, not taking
inheritance into account.  Is there a simple way to do it?  (If not,
I'll consider using properties instead of tags for my purpose - but tags
are simpler to use/edit and visible...)

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to check whether an element (really) has some tag?
  2015-01-28 22:08 How to check whether an element (really) has some tag? Marcin Borkowski
@ 2015-01-29 12:00 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-01-29 12:00 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Org-Mode mailing list

Hello,

Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:

> I can do (member-ignore-case "sometag" (org-element-property :tags
> element)), but I'd like to know whether some element has the tag, not
> taking inheritance into account. Is there a simple way to do it?

There is no simpler solution than the one you suggested, which, IMO, is
already simple enough.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-29 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-28 22:08 How to check whether an element (really) has some tag? Marcin Borkowski
2015-01-29 12:00 ` Nicolas Goaziou

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).