From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: A simple way to search only headlines Date: Tue, 11 Jun 2013 00:31:16 -0400 Message-ID: <87bo7di7zf.fsf@pierrot.dokosmarshall.org> References: <87sj11a8yq.fsf@thinkpad.tsdh.de> <86y5arocrz.fsf@somewhere.org> <86k3mae2mo.fsf@somewhere.org> <87mwr1egjr.fsf@berkeley.edu> <87ip1pkwco.fsf@pierrot.dokosmarshall.org> <86bo7e4dww.fsf@somewhere.org> <87d2ruktd0.fsf@pierrot.dokosmarshall.org> <86txl60zy5.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmGF3-0007mL-Sa for emacs-orgmode@gnu.org; Tue, 11 Jun 2013 00:31:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmGF2-0000d7-Ut for emacs-orgmode@gnu.org; Tue, 11 Jun 2013 00:31:33 -0400 Received: from plane.gmane.org ([80.91.229.3]:37065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmGF2-0000cz-Og for emacs-orgmode@gnu.org; Tue, 11 Jun 2013 00:31:32 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UmGEx-0007He-Tc for emacs-orgmode@gnu.org; Tue, 11 Jun 2013 06:31:27 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Jun 2013 06:31:27 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Jun 2013 06:31:27 +0200 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: emacs-orgmode@gnu.org "Sebastien Vauban" writes: > Hi Nick, > > Nick Dokos wrote: >> "Sebastien Vauban" writes: >>> Nick Dokos wrote: >>>> The OP probably wants this in the global keymap, rather than in the >>>> org-mode-map: just like the agenda dispatcher C-c a, this functionality is >>>> useful outside an org file. >>>> >>>> (global-set-key (kbd "C-M-h") (lambda () (interactive) (org-agenda nil "s" "<"))) >>> >>> Not sure to understand when this functionality would be useful outside of Org. >>> Can you explain? >> >> I meant "org buffer": you might want to issue the command from an >> arbitrary buffer, not just an org mode buffer, so the key should be >> defined globally. > > I still don't understand. > You understand all too well :-) > Here, the command is for searching among (Org) headlines of the current buffer > -- see the restriction "<". I don't see how it would make sense to call that > on something other than an Org mode buffer? > > Maybe you missed the "<" restriction? Or do I miss something else? > I did. Sorry about that. -- Nick