emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christopher Suckling <suckling.list@googlemail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: ANN: org-mac-protocol, let's try again
Date: Thu, 23 Jul 2009 14:49:13 +0100	[thread overview]
Message-ID: <m24ot34ihy.fsf@gmail.com> (raw)
In-Reply-To: <71454fac0907230247g74cde098s2a628e1874fd2b77@mail.gmail.com> (Greg Newman's message of "Thu, 23 Jul 2009 05:47:14 -0400")

On Thu, 23 Jul 2009 05:47:14 -0400, Greg Newman <greg@20seven.org> wrote:

> I'm using 23.x pretests and haven't updated in almost a month so mine is
> probably much older than yours.  I am running 6.28b of org which I think you
> are too.  Not sure what the issue is.
>

Got it (I think)...

org-mac-protocol.el still isn't loading.

What is happening is:

org-link.scpt doesn't require org-mac-protocol.el - it just uses the

org-protocol:/store-link:/

protocol which is defined in org-protocol.el

However, org-note.scpt and org-remember.scpt use the

org-protocol:/mac-remember:/

protocol which is defined in org-mac-protocol.el (along with frame
moving and application switching functions).

But, org-mac-protocol.el hasn't loaded.

So emacsclient trys to open the file :/mac-remember:/z/foo/bar which
tramp intercepts and the barfs on.

I'm not sure why org-mac-protocol.el is not loading. But my guess is
that the variable org-remember-templates is not set when you try to load
org-mac-protocol.el and so it barfs on the (add-to-list
'org-remember-templates ...).

Relevant section of my .emacs looks like:

,----
| (autoload 'remember "remember" "remember mode" t)
| (load "~/.emacs.d/remember-init") 
| ;; assorted remember initializations including
| (setq org-remember-templates '((my templates)))
| 
| (setq org-modules '(org-bibtex org-id org-info org-mac-message org-mac-iCal org-w3m org-elisp-symbol org-protocol org-mac-protocol org-gnus org-jsinfo))
| 
| (require 'org-install)
| (add-hook 'org-load-hook
| 	  (lambda ()
| 	    (load "~/.emacs.d/org-init"))) ;; all my org settings
`----

If this helps, I'll either rewrite the documentation of remove the
(add-to-list 'org-remember-templates ... ) and ask users to add their
own templates.

Christopher





> On Tue, Jul 21, 2009 at 7:33 PM, Christopher Suckling <suckling@gmail.com>wrote:
>
>> On Tue, 21 Jul 2009 15:15:09 -0400, Greg Newman <greg@20seven.org> wrote:
>>
>> > Chris,I figured out what my issue was last night.  My org-mode 6.25 was
>> > stomping on my git clone of 6.28b.  With that fixed i can get it to
>> work...
>> > with only links.
>> > With notes and remember i get the following error every time; any clues?
>> >
>> > Process *tramp/scp org-protocol* exited abnormally with code 255
>> >
>>
>> Greg, I did come across this. Unfortunately, I didn't make a note of
>> when or where and can't reproduce it this evening.
>>
>> I have a suspicion, but only a suspicion, that it may have resulted from
>> a (now fixed) tramp bug in CVS Emacs. I last complied on 15 July. Could
>> this be a possibility?
>>
>> [There are gaps in the above logic; I can't figure out why org-link
>> should work whilst org-note and org-remember bork. I'm clutching at
>> straws. No idea why it is so fragile.]
>>
>> Christopher
>>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2009-07-23 13:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-21  0:03 ANN: org-mac-protocol, let's try again Christopher Suckling
2009-07-21 19:15 ` Greg Newman
2009-07-21 23:33   ` Christopher Suckling
2009-07-23  9:47     ` Greg Newman
2009-07-23 13:49       ` Christopher Suckling [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

  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=m24ot34ihy.fsf@gmail.com \
    --to=suckling.list@googlemail.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).