emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Set tags in region
Date: Sat, 10 May 2014 00:20:21 -0400	[thread overview]
Message-ID: <87ha4yl0xm.fsf@gmail.com> (raw)
In-Reply-To: CA+M2ft_LW8Hgx+PTXbNBzW1JCunvzHwNCfpTJ+nLP1HoO9r12Q@mail.gmail.com

John Hendy <jw.hendy@gmail.com> writes:

> Hello,
>
>
> Just curious of there's a way to set the tags in a region all at once?

(org-map-entries (function org-set-tags) nil 'region)

or

(org-map-entries (lambda () (org-set-tags-to '(foo))) nil 'region)

or some variation thereof.

> I see there's a way to do it via agenda, but I was curious if there
> was also a way to do it on a group of headlines from the buffer
> itself. In various google strategies, it looked like the answer was
> no.
>
> This is just a random file (making a camping packing/shopping list),
> so to do it via the way that seemed apparent was:
>
> C-c a
>> to restrict to the file
> s to conduct a "fake search" that would just give all the headlines in
> the buffer
> highlight region
> : to set tags
>
> It would have just been easier to C-space on a region and set them in
> groups right from the buffer. I sort of expected something like C-u
> C-c C-c to set region tags? Thinking about it, I suppose since these
> happened to be tagged with :export:, I could have done an M-x
> replace-string and appended my additional tag.
>
>
> Thanks!
> John
>
>

-- 
Nick

  reply	other threads:[~2014-05-10  4:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-10  2:53 Set tags in region John Hendy
2014-05-10  4:20 ` Nick Dokos [this message]
2014-05-10 14:14   ` John Hendy
2014-05-10 16:55     ` Alexander Baier
2014-05-10  9:08 ` Alexander Baier
2014-05-21  2:29   ` Bastien
2014-05-10 11:00 ` Alexander Baier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ha4yl0xm.fsf@gmail.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).