From: Christian Zang <christian.zang@fh-weihenstephan.de>
To: Anthony Lander <anthonylander@yahoo.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Link-protocols
Date: Mon, 1 Mar 2010 20:03:50 +0100 [thread overview]
Message-ID: <61628028-883F-414F-881C-954D7E116B4F@gmail.com> (raw)
In-Reply-To: <2EC25EC8-DB09-44A0-90DE-7F394DBB0D34@yahoo.com>
Hi Anthony,
thanks a lot - that works! Indeed, the org-mailing-list is one of the nicest places on the 'web!
Best,
Christian
Am 01.03.2010 um 17:43 schrieb Anthony Lander:
> Hi Christian,
>
> Just some small errors in the papers code. Try this instead:
>
> (org-add-link-type "papers" 'org-papers-item-open)
>
> (defun org-papers-item-open (url)
> "Open the given uid, which is a reference to an item in Papers"
> (shell-command (concat "open \"papers:" url "\"")))
>
> 'org-add-link-type needs the name of the protocol, so in this case 'papers', as that is the protocol part of the link. Also, there was a missed bad variable reference: you renamed uid to url, but missed the reference in the shell command accidentally.
>
> Anyway, this code should work. Please let me know one way or another.
>
> Best regards,
>
> -Anthony
>
> On 28-Feb-10, at 3:18 AM, Christian Zang wrote:
>
>> Hi Anthony,
>>
>> thanks a lot for your interest in that specific problem.
>>
>> Am 27.02.2010 um 14:37 schrieb Anthony Lander:
>>
>>> On 10-Feb-27, at 3:10 AM, Christian Zang wrote:
>>>
>>>> Am 26.02.2010 um 22:50 schrieb Anthony Lander:
>>>>
>>>>> Hmm... that's weird. Can you get papers.app to open the link from the command line with 'open'? I figured it out the format with Together by using the "copy item link" command. You could also try dragging the link from the app to the terminal and see what it pastes. Or if none of those work, you can try do some applescripting to try to figure it out.
>>>>
>>>> In Terminal "open" works just fine with the papers://... link, and so does pasting the link into a browser. I am a little bit confused, maybe I should look into applescript.
>>>
>>> Well, if 'open' works from the command line, then I suspect the bug is somewhere else. If you send me the code you modified for papers.app and a small org file with a link in it, I'll take a look at it to see if there is something missing in the org setup. Also, which emacs and which org versions are you using?
>>
>> Please find attached the part of my .emacs where I put the modified code, and an org-file with links. And: I am using the emacs 23.1.92 build from http://emacsformacosx.com/ with org-mode 6.34trans.
>>
>> Thanks!
>>
>> Best,
>> Christian
>>
>> <papers_test.org><emacs_part.el>
>
prev parent reply other threads:[~2010-03-01 19:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-26 13:57 Link-protocols Christian Zang
2010-02-26 17:18 ` Link-protocols Anthony Lander
2010-02-26 20:32 ` Link-protocols Christian Zang
[not found] ` <C5C97495-256A-4E77-A771-64162AAE9424@yahoo.com>
[not found] ` <71467D6F-AFC1-41D1-98E1-769CEAC861BB@gmail.com>
[not found] ` <709E8EC5-5644-4A8D-A512-19BF3A7F4BEC@yahoo.com>
[not found] ` <1E6E90F1-CE8E-45E4-B420-10E2AF9BE493@gmail.com>
[not found] ` <2EC25EC8-DB09-44A0-90DE-7F394DBB0D34@yahoo.com>
2010-03-01 19:03 ` Christian Zang [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=61628028-883F-414F-881C-954D7E116B4F@gmail.com \
--to=christian.zang@fh-weihenstephan.de \
--cc=anthonylander@yahoo.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.