emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] ANN: org-mac-protocol, let's try again


From: Christopher Suckling
Subject: Re: [Orgmode] ANN: org-mac-protocol, let's try again
Date: Thu, 23 Jul 2009 14:49:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (darwin)

On Thu, 23 Jul 2009 05:47:14 -0400, Greg Newman <address@hidden> 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 <address@hidden>wrote:
>
>> On Tue, 21 Jul 2009 15:15:09 -0400, Greg Newman <address@hidden> 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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

[Prev in Thread] Current Thread [Next in Thread]