From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Set tags in region Date: Sat, 10 May 2014 09:14:49 -0500 Message-ID: References: <87ha4yl0xm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0111de625c837104f90c56c0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj83A-0007uR-Ky for emacs-orgmode@gnu.org; Sat, 10 May 2014 10:14:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wj839-00009i-DB for emacs-orgmode@gnu.org; Sat, 10 May 2014 10:14:52 -0400 Received: from mail-oa0-x22c.google.com ([2607:f8b0:4003:c02::22c]:34967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj839-00009a-8B for emacs-orgmode@gnu.org; Sat, 10 May 2014 10:14:51 -0400 Received: by mail-oa0-f44.google.com with SMTP id i11so6352921oag.31 for ; Sat, 10 May 2014 07:14:50 -0700 (PDT) In-Reply-To: <87ha4yl0xm.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: emacs-orgmode --089e0111de625c837104f90c56c0 Content-Type: text/plain; charset=UTF-8 On May 9, 2014 11:21 PM, "Nick Dokos" wrote: > > John Hendy 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 did see that function, but it didn't DUI what I expected with M-x. Would u need to run it as above or could I use M-x with it somehow? A above I take it I'd put that in the buffer and then eval-region? John > > 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 > > --089e0111de625c837104f90c56c0 Content-Type: text/html; charset=UTF-8


On May 9, 2014 11:21 PM, "Nick Dokos" <ndokos@gmail.com> wrote:
>
> 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 did see that function, but it didn't DUI what I expected with M-x. Would u need to run it as above or could I use M-x with it somehow?

A above I take it I'd put that in the buffer and then eval-region?

John

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

--089e0111de625c837104f90c56c0--