From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: searchable refcard Date: Tue, 02 Dec 2008 21:47:13 +0100 Message-ID: <87tz9mqp7y.fsf@kassiopeya.MSHEIMNETZ> References: <49354FA8.8080106@sift.info> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7c6n-0004Zf-3l for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 15:44:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7c6l-0004Yv-L0 for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 15:44:36 -0500 Received: from [199.232.76.173] (port=52538 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7c6l-0004Yr-DE for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 15:44:35 -0500 Received: from mail.gmx.net ([213.165.64.20]:49128) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L7c6h-0000Jh-Sz for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 15:44:35 -0500 In-Reply-To: <49354FA8.8080106@sift.info> (Robert Goldman's message of "Tue, 02 Dec 2008 09:09:28 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Robert, those functions you mentioned are on my list for long winter nights :-) Robert Goldman writes: > (let ((cell (find-if (lambda (lst) (eval `(,(first lst)))) > org-context-help-map))) > (when cell > (eval `(,(second cell))))) > > The find avoids the need to do a non-local exit. > > Note that I don't understand what you're doing with having two info > indices, so I ignored the second one... Sometimes more than just one section of the manual match the context. I would like to choose in those situations. While on a checkbox item, the sections `checkboxes' and 'plain lists' both match. RET RET should just open the default (which would be the first of those two). > Alternatively > > (loop for (test info-entry info-entry2) in org-context-help-map > when (eval `(,test)) > return info-entry) > using the loop macro... > > BTW, I don't think you want that quote inside your definition of > org-context-help-map. You want '((org-at-item-checkbox-p ...)) not > '(('org-at-item-checkbox-p ...)) The extra quote will be a nuisance. Regards, Sebastian -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.rose emma-stil de, sebastian_rose gmx de Http: www.emma-stil.de