From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: searchable refcard? Date: Tue, 02 Dec 2008 15:35:24 +0100 Message-ID: <87bpvusl03.fsf@kassiopeya.MSHEIMNETZ> References: <20ecf6c70811261721j6c7d50e8v8a51fbea381231bb@mail.gmail.com> <878wr5eb2k.fsf@kassiopeya.MSHEIMNETZ> <7bef1f890811270417s49258b58i477968442799c609@mail.gmail.com> <395BE353-F89F-413A-8045-210F885864F3@uva.nl> <7bef1f890811271844o5231d38ct13e1a0bf14c851c9@mail.gmail.com> <7bef1f890812010456i5c5a1542l8b2bdef7ca3e209c@mail.gmail.com> <874p1o6juq.fsf@kassiopeya.MSHEIMNETZ> <87fxl6sqvl.fsf@kassiopeya.MSHEIMNETZ> <8CB24120-0903-4680-8EC0-3EB1CB012DE2@gmail.com> 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 1L7WIr-0002IE-Sv for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 09:32:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7WIr-0002I2-Fw for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 09:32:41 -0500 Received: from [199.232.76.173] (port=48410 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7WIr-0002Hz-Aw for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 09:32:41 -0500 Received: from mail.gmx.net ([213.165.64.20]:55457) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L7WIq-0006sc-Sk for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 09:32:41 -0500 In-Reply-To: <8CB24120-0903-4680-8EC0-3EB1CB012DE2@gmail.com> (Carsten Dominik's message of "Tue, 2 Dec 2008 14:01:02 +0100") 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: Carsten Dominik Cc: emacs-orgmode@gnu.org, Nathaniel Cunningham Carsten, thanks for the hint! Maybe I'll try to learn a little more elisp between the years :-) I tried it the stupid way, just to see it working: (defun org-context-help () "Context help for org-mode" (interactive) (if (org-at-table-p) (info "(org)tables") (if (org-at-timestamp-p) (info "(org)timestamps") (if (org-at-item-checkbox-p) (info "(org)Checkboxes") (if (org-at-item-p) (info "(org)plain lists") (if (org-at-heading-p) (info "(org)headlines") (if (org-at-property-p) (info "(org)Properties and Columns") ))))))) Just for the fun of it. I tried to use a list like this: (setq org-context-help-map '(('org-at-item-checkbox-p "(org)Checkboxes" "(org)plain lists") ('org-at-item-p "(org)plain lists" "(org)Checkboxes") ('org-at-property-p "(org)Properties and Columns") ('org-at-timestamp-p "(org)timestamps" "(org)deadlines and scheduling") ('org-at-table-p "(org)tables") ('org-at-heading-p "(org)headlines"))) and dolist and eval, but I couldn't get my head around those `non-local exits' (throw and catch). It should work with a list, to offer several sections in the manual per context. And such a list would be easy to maintain. Still an elisp-dyslexic, Sebastian Carsten Dominik writes: > On Dec 2, 2008, at 1:28 PM, Sebastian Rose wrote: > >> >> Just courious: >> >> How would I reveal the context at point? >> Would I use those predicates as `org-at-xxx-p'? > > > C-h f org-context RET > > We can extend this function if needed for context help. > > - Carsten > -- 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