On 2015-06-23 00:24, briangpowell . wrote: > Cool, what do you do with "xmpp:"?
just opening 'psi-plus' here with a message window, I haven't figured out how to do more (aka all this xmpp: url variants) Again, just a crude works-for-me snippet: ;;; org-xmpp.el - Support for xmpp communication (require 'org) (org-add-link-type "xmpp" 'org-xmpp-open) (defcustom org-xmpp-command "psi-plus --remote --uri='%u'" "The Emacs command to be used to make a xmpp request." :group 'org-link :type '(string)) (defun org-xmpp-open (destination) "make a xmpp to DESTINATION" (start-process-shell-command "xmpp" nil (org-replace-escapes org-xmpp-command `(("%u" . ,destination))))) (provide 'org-xmpp) ;;; org-xmpp.el ends here Christian > > On Mon, Jun 22, 2015 at 11:02 AM, Christian Thaeter > <ct.orgm...@pipapo.org> wrote: > > > > > > > On 2015-06-22 11:27, Michael Strey wrote: > > > > > On So, 2015-06-21, Christian Thaeter wrote: > > > > > > [...] > > > > > > > looks good, I'll use that instead of my hack. > > > > > > Look out for bugs. It's one of my very first emacs-lisp hacks. > > > > > > > I've a minor ideas to add: > > > > > > > > Instead just append the telephone number to the end of the > > > > dial command one could use (org-replace-escapes STRING TABLE), > > > > that allows little more flexible commandline generation. > > > > > > Thanks for the hint. Could you please give me an example where > > > this increased flexibility would be required? > > > > I am using linphone too, where that just works to append the > > sanitized telephone number at the end. But I can imagine that other > > dial programs may have different calling conventions. Also I may > > feel a bit safer by quoting the telephone number, For example: > > > > linephone -c 'sip:%n' > > > > Maybe in the long run (I have no urge here, works for me now). > > You/we/someone could make this whole thing more generic, handling > > different kinds of communication protocols (I made another one for > > xmpp: meanwhile). > > > > tel: urls are somewhat simple https://www.ietf.org/rfc/rfc3966.txt > > (still surprisingly more syntax than just a number) but when you > > look at sip: http://tools.ietf.org/html/rfc3261#section-19.1 things > > get way more complicated. > > > > Christian > > > > > > > > > > > > Best regards > > > -- > > > Michael Strey > > > http://www.strey.biz * https://twitter.com/michaelstrey > > > > > > > > > > > >