emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christoph Lange <math.semantic.web@gmail.com>
To: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Function that jumps to an entry with a certain CUSTOM_ID
Date: Tue, 31 Mar 2015 22:59:44 +0200	[thread overview]
Message-ID: <CAOPYeGy4J+nKFLa+f=DZuTYtZY98a5Mm0Cimd8S3Za0GuK9F0A@mail.gmail.com> (raw)
In-Reply-To: <87mw2tx7qg.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 1757 bytes --]

On Mar 31, 2015 9:53 PM, "Nicolas Goaziou" <mail@nicolasgoaziou.fr> wrote:
> The problem is that we're running out of interesting keybindings.

Let me ask the question differently: as all reasonable key bindings are
taken (a statement to which I tend to agree), is the suggestion of
interactive functions to be added to the core of org-mode no longer
appropriate? I.e. should I contribute them to Worg (with which I still need
to familiarise myself) rather than suggesting them here? Or, asking about a
middle course, what's the role of org's "contrib" directory? (Is it even
suitable for something that is not a complete plugin of its own right, but
rather just a single function?)

> "C-c
> j" is not an option since it is reserved to users.

Sorry, this was unfortunate in my initial post. I didn't intend to
hard-code this as the "default" key binding, but it was rather meant to be
read as "if you like this function, you could bind it, for example, to ...".

> Note that you can use
>
>   (let ((h (org-find-property "CUSTOM_ID" custom-id)))
>     (when h (goto-char h)))
>
> instead of
>
>   (org-link-search ...)
>
> for one less level of indirection.

Thanks - makes sense. However probably not if I write a tutorial in the
style of "if you want to do <something>, then copy the following lines to
your. emacs".

But I think I should rather aim at Worg's "contrib" directory, with a short
elisp file containing my function, plus a short HTML file explaining that
there exists an elisp file containing a function that does <a few words
about the functionality> - does this make sense?

Cheers, and thanks for your advice,

Christoph

-- 
Christoph Lange(-Bever)
http://langec.wordpress.com/about
Sent from a mobile device; please excuse my brevity.

[-- Attachment #2: Type: text/html, Size: 2252 bytes --]

  reply	other threads:[~2015-03-31 20:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-31 16:36 Christoph LANGE
2015-03-31 19:55 ` Nicolas Goaziou
2015-03-31 20:59   ` Christoph Lange [this message]
2015-04-01 20:21     ` Nicolas Goaziou
2015-04-06 18:16 ` Leo Ufimtsev

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='CAOPYeGy4J+nKFLa+f=DZuTYtZY98a5Mm0Cimd8S3Za0GuK9F0A@mail.gmail.com' \
    --to=math.semantic.web@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).