From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Lange Subject: Re: Function that jumps to an entry with a certain CUSTOM_ID Date: Tue, 31 Mar 2015 22:59:44 +0200 Message-ID: References: <551ACD1D.6020501@gmail.com> <87mw2tx7qg.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bf10b1cd678a105129be03a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd3GG-0002Es-DD for emacs-orgmode@gnu.org; Tue, 31 Mar 2015 16:59:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yd3GF-0004NN-0B for emacs-orgmode@gnu.org; Tue, 31 Mar 2015 16:59:48 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:33053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd3GE-0004MP-Mo for emacs-orgmode@gnu.org; Tue, 31 Mar 2015 16:59:46 -0400 Received: by wgoe14 with SMTP id e14so32570991wgo.0 for ; Tue, 31 Mar 2015 13:59:45 -0700 (PDT) In-Reply-To: <87mw2tx7qg.fsf@nicolasgoaziou.fr> 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: Orgmode Mailing List --047d7bf10b1cd678a105129be03a Content-Type: text/plain; charset=UTF-8 On Mar 31, 2015 9:53 PM, "Nicolas Goaziou" 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 , 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 - 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. --047d7bf10b1cd678a105129be03a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

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

Let me ask the question differently: as all reasonable key b= indings 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 app= ropriate? 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 m= iddle course, what's the role of org's "contrib" director= y? (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 wa= s rather meant to be read as "if you like this function, you could bin= d it, for example, to ...".

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

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

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

Cheers, and thanks for your advice,

Christoph

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

--047d7bf10b1cd678a105129be03a--