emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org,
	Nathaniel Cunningham <nathaniel.cunningham@gmail.com>
Subject: Re: searchable refcard?
Date: Tue, 02 Dec 2008 15:35:24 +0100	[thread overview]
Message-ID: <87bpvusl03.fsf@kassiopeya.MSHEIMNETZ> (raw)
In-Reply-To: <8CB24120-0903-4680-8EC0-3EB1CB012DE2@gmail.com> (Carsten Dominik's message of "Tue, 2 Dec 2008 14:01:02 +0100")

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 <carsten.dominik@gmail.com> 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

  reply	other threads:[~2008-12-02 14:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-27  1:21 searchable refcard? Nathaniel Cunningham
2008-11-27 10:07 ` Sebastian Rose
2008-11-27 12:17   ` Alan E. Davis
2008-11-27 15:55     ` Carsten Dominik
2008-11-28  2:44       ` Alan E. Davis
2008-11-30  8:54         ` Carsten Dominik
2008-12-01 12:56           ` Alan E. Davis
2008-12-01 13:06             ` Carsten Dominik
2008-12-01 14:38               ` Sebastian Rose
2008-12-02  8:33                 ` Carsten Dominik
2008-12-02 12:28                   ` Sebastian Rose
2008-12-02 13:01                     ` Carsten Dominik
2008-12-02 14:35                       ` Sebastian Rose [this message]
2008-11-28  7:06   ` Nathaniel Cunningham
2008-12-03 20:40     ` Samuel Wales
2008-12-04  8:10       ` Carsten Dominik
2008-12-11  3:42         ` Samuel Wales

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bpvusl03.fsf@kassiopeya.MSHEIMNETZ \
    --to=sebastian_rose@gmx.de \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nathaniel.cunningham@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).