From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Moving my init.el to Org Date: Sat, 06 Sep 2014 12:10:30 +0200 Message-ID: <87wq9h9i09.fsf@gmail.com> References: <20140831103706.549dc45b@aga-netbook> <20140905162710.3464a0db@aga-netbook> <878ulxbgzm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQCxH-0002GK-UX for emacs-orgmode@gnu.org; Sat, 06 Sep 2014 06:10:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQCxB-00054l-Mf for emacs-orgmode@gnu.org; Sat, 06 Sep 2014 06:10:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:35990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQCxB-00054b-GB for emacs-orgmode@gnu.org; Sat, 06 Sep 2014 06:10:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XQCx7-0003WW-7h for emacs-orgmode@gnu.org; Sat, 06 Sep 2014 12:10:41 +0200 Received: from e178063072.adsl.alicedsl.de ([85.178.63.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Sep 2014 12:10:41 +0200 Received: from tjolitz by e178063072.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Sep 2014 12:10:41 +0200 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: emacs-orgmode@gnu.org Eduardo Ochs writes: Hi, > So, questions: > > 1) what is the user-ish way to create a link in Org to the first > occurrence of the string "<>" in ~/.emacs? see http://orgmode.org/manual/Internal-links.html > > 2) I know that Org lets users implement new kinds of hyperlinks. If > the syntax for doing what I asked in (1) is too clumsy, how do we > implement a better syntax? and if its not too clumpsy? ;) > 3) The > > (find-angg ".emacs" "unquote-printable") > > calls my functions to visit a file and jump to a position. How can > I jump to that position using Org's functions *from Lisp*? maybe calling ,----[ C-h f org-store-link RET ] | org-store-link is an interactive autoloaded compiled Lisp function in | `org.el'. | | (org-store-link ARG) | | Store an org-link to the current location. | This link is added to `org-stored-links' and can later be inserted | into an org-buffer with C-c C-l. | | For some link types, a prefix arg is interpreted. | For links to Usenet articles, arg negates `org-gnus-prefer-web-links'. | For file links, arg negates `org-context-in-file-links'. | | A double prefix arg force skipping storing functions that are not | part of Org's core. | | A triple prefix arg force storing a link for each line in the | active region. | | [back] `---- Unfortunately many many org commands do not expose their args as function arguments but unconditionally prompt for them, which makes (re)using them in programs pretty difficult and is a real shame IMO. One would need to change signature and interactive spec for many org commands to make them easily available as kind of 'library functions', and add an option for suppressing any user prompting for non-interactive use. Then direct binding to keys would not be possible anymore, one would need to use convenience commands or lambda expressions that take care of the function arguments. -- cheers, Thorsten