From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: A simple way to search only headlines Date: Fri, 7 Jun 2013 16:31:30 -0400 Message-ID: References: <87sj11a8yq.fsf@thinkpad.tsdh.de> <86y5arocrz.fsf@somewhere.org> <86k3mae2mo.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf301cc006df59b204de965044 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul3Jt-0000Yx-LL for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 16:31:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ul3Jr-0006ZX-52 for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 16:31:33 -0400 Received: from mail-bk0-x233.google.com ([2a00:1450:4008:c01::233]:62441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul3Jq-0006ZM-R0 for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 16:31:31 -0400 Received: by mail-bk0-f51.google.com with SMTP id ji1so1708472bkc.10 for ; Fri, 07 Jun 2013 13:31:30 -0700 (PDT) In-Reply-To: <86k3mae2mo.fsf@somewhere.org> 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: Sebastien Vauban Cc: org mode --20cf301cc006df59b204de965044 Content-Type: text/plain; charset=ISO-8859-1 Thank you both Thorsten and Seb, i really appreciate the help! Seb, you wrote: The programming equivalent to C-c a s is: (org-agenda nil "s") That's what you'd have to bind to a key (using a "lambda" function). im a complete neewb and dont really have any idea on how to do the above, can you show me an example? Best Z On Tue, Jun 4, 2013 at 3:50 AM, Sebastien Vauban wrote: > Hello Xebar, > > >> Or, for a "pure" Org solution: > >> > >> C-c a < s *salsa dance > >> > >> searches for terms appearing only *in the headline* (including tags). > > > > That's great ,i appreciate it! > > > > Seb, is there a way to quick bind a key to the above series of commands? > > The programming equivalent to C-c a s is: > > (org-agenda nil "s") > > That's what you'd have to bind to a key (using a "lambda" function). > > What you want is the restriction to the current buffer as well. You should > update the above, looking at the doc of `org-agenda' (sorry, no time now > to do > it). > > BTW, how to find that you have to bind `org-agenda'? Simply `C-h k', > followed > by the key binding for which you want to know more (here, `C-c a'), such > as: > which function does it call? > > Best regards, > Seb > > -- > Sebastien Vauban > > > --20cf301cc006df59b204de965044 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thank you both Thorsten and Seb, i really appreciate the help!

Seb, you wrote:=A0The programming equivalent to C-c a s is:=

<= span style=3D"font-family:arial,sans-serif;font-size:11.199999809265137px">= =A0 =A0 (org-agenda nil "s")


<= span style=3D"font-family:arial,sans-serif;font-size:11.199999809265137px">= That's what you'd have to bind to a key (using a "lambda"= function).

im a compl= ete neewb and dont really have any idea on how to do the above, can you show me an example= ?

Best

Z

On Tue, Jun 4, 2013 at 3:50 AM, Sebastien V= auban <sva-news@mygooglest.com> wrote:
Hello Xebar,

>> Or, for a "pure" Org solution:
>>
>> =A0 C-c a < s *salsa dance
>>
>> searches for terms appearing only *in the headline* (including tag= s).
>
> That's great ,i appreciate it!
>
> Seb, is there a way to quick bind a key to the above series of command= s?

The programming equivalent to C-c a s is:

=A0 =A0 (org-agenda nil "s")

That's what you'd have to bind to a key (using a "lambda"= function).

What you want is the restriction to the current buffer as well. You should<= br> update the above, looking at the doc of `org-agenda' (sorry, no time no= w to do
it).

BTW, how to find that you have to bind `org-agenda'? =A0Simply `C-h k&#= 39;, followed
by the key binding for which you want to know more (here, `C-c a'), suc= h as:
which function does it call?

Best regards,
=A0 Seb

--
Sebastien Vauban



--20cf301cc006df59b204de965044--